Thank Rapheal for replying this post. To be honest, i am completely blank
right now.
the simulation can blink the led well..

Your delay loop might be optimized away, causing your output ports to be
> high most of the time. Try making i, j, and k volatile (maybe a volatile
> k suffices) or insert an _asm nop _endasm; (or even an empty _asm
> _endasm;) into the inner loop body.
>

what do you mean volatile? actually, the TRISD or PORTD always make me
confuse,
The LED is connected to the PIC16F877A PORTD. From the PORTD there is a
Resistor.
And the LED located between the resistor and ground.

To light on the LED.. i should do

TRISD = 0x00;
PORTD = 0x3F ?

sorry.. for thus stupid question. And thanks for your feedback..
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to