??? 08/16/07 13:08 Read: times |
#143338 - blinking LED wont blionk with schematics Responding to: ???'s previous message |
Salim C. Andraos said:
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. Thanks for the noob guide Andy. I needed that. This is the schematic to the eval board (pages 7 - 12). http://datasheets.maxim-ic.com/en/ds/DS8...50-K00.pdf The eval board has 40 header pins (J4 on the board). Thats where i connected the LED as follows: ![]() ![]() |