I compiled your code with this command:
sdcc -mpic14 -p16f88 main.c

I tested in proteus simulator and it works too. I measured times and it should be:
Led on for about 165ms
Led off for abour 165ms

Have you checked that pic is flashed right? I mean reading PIC code memory and comparing with your hex.

Regards,
Diego Herranz

On Thu, Jun 9, 2011 at 1:51 PM, Laurent FAILLIE <l_faillie@yahoo.com> wrote:
Ok, thanks all for your reply.

> How did you know that the port/pin was stayed low? Did you
> measured it
> by osciloscope or by inspecting the LED (which was "never
> turned on")?

I did 2 checks :
- initially with a RS-232 console and corresponding code on the PIC but has it didn't worked,
- then I tried with this simple LED code.
With LED, I checked only with a analogical Voltmeter (because at least it should notice some voltage ... but it stay desperately at 0.

Definitively, I'll try with a more stabilized supply and put a capacity.

Can you please confirm I didn't miss anything in my code ?
I would like to ensure it's an hardware pb :)

Best regards,

Laurent

---
The misspelling master is on the Web.
  _________    100 % Dictionnary Free !
 /        /(
 /  Dico  / /   Pleins d'autres fautes sur
/________/ /
(#######( /     http://destroyedlolo.info
Quoi, des fautes d'orthographe! Pas possible ;-D.


> Have you tried to test the following code?
>
> While(1)
> {
>    PORTA=255;
>    RB5 = 1;
> }
>
> If the code above worked, it's mean the delay wasn't
> enough. You
> should increase it from 30000 to higher value. If not,
> check the power
> supply quality as suggested before.
>
> Regards,
> I Putu Susila
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically
> advanced content
> authoring tool. Experience the power of Track Changes,
> Inline Image
> Editing and ensure content is compliant with Accessibility
> Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user