Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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:

Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket

List of 33 messages in thread
TopicAuthorDate
blinking LED won't blink            01/01/70 00:00      
   Describe The Connection            01/01/70 00:00      
      show your schematic            01/01/70 00:00      
         how true            01/01/70 00:00      
   it IS blinking, but you don\'t see it it\'s too fast            01/01/70 00:00      
      You're right, Jan! It is a 16,384 MHz one-clocker            01/01/70 00:00      
   before Andy or Erik runs on you...            01/01/70 00:00      
      40pin PDIP, he mentioned the eval board...            01/01/70 00:00      
         and what?            01/01/70 00:00      
            Very suspicious            01/01/70 00:00      
               Ignore him            01/01/70 00:00      
                  But then he learns nothing            01/01/70 00:00      
                     Valid point! It's about documentation!            01/01/70 00:00      
                  .. or ask for additional info...            01/01/70 00:00      
               Does anybody see a "proper" reset?            01/01/70 00:00      
         and so what?            01/01/70 00:00      
            He\'s being optimistic            01/01/70 00:00      
               18 messages so far.            01/01/70 00:00      
   Are you using the on-board LED\'s?            01/01/70 00:00      
      How many people do we need            01/01/70 00:00      
         just two:            01/01/70 00:00      
            zero            01/01/70 00:00      
         You forgot YOUR contribution to the list...            01/01/70 00:00      
   blinking LED wont blionk with schematics            01/01/70 00:00      
      Sink instead of source            01/01/70 00:00      
         mov r1,#255h?            01/01/70 00:00      
            OP used "#255h". Knows the hell...            01/01/70 00:00      
         this will be a little bit too slow            01/01/70 00:00      
            What would be a nice blinking period??            01/01/70 00:00      
               OK, OK....            01/01/70 00:00      
                  I also had a long day...            01/01/70 00:00      
    Reply:blinking LED won't blink            01/01/70 00:00      
      No need            01/01/70 00:00      

Back to Subject List