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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/23/02 11:58
Read: times


 
#23312 - RE: compile a simple sample program
I assume this is just an example application you want?

Otherwise I'd use a astable-multivibrator to make the LED's flash.

My miniature Christmas tree was very popular last year...

Anyway :-


org 00h

start:

mov r0,#0ffh
mov r1,#0ffh
setb p2.0
l1:
djnz r1,l1
djnz r0,l1
clr p2.0

mov r0,#0ffh
mov r1,#0ffh
setb p2.3
l2:
djnz r1,l2
djnz r0,l2
clr p2.3
jmp start





something like that should do it, it depends on your clock speed of course....

Did you want source, or HEX format?


Chris.

List of 9 messages in thread
TopicAuthorDate
compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
generating clock            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      
RE: compile a simple sample program            01/01/70 00:00      

Back to Subject List