??? 08/13/07 14:20 Read: times Msg Score: -1 -1 Didn't Search First |
#143164 - blinking LED won't blink |
I'm using a DS89C450 sitting on a DS89C450-K00 eval board. I connected a LED and a resistor to P1.0 and hooked up pin 20 to ground. Then I wrote the following program and uploaded onto the chip.
led1 EQU P1.0 MOV R0, #255h Start: DJNZ R0, Loop ;using the R0 register as a pausing loop CPL led1 MOV R0, #255h ;refill R0 to loop again SJMP Start Loop: SJMP Start END The LED lights up, but it won't blink. |