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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/26/05 07:32
Read: times


 
#88516 - All looped up...
Responding to: ???'s previous message


LOOP1:  MOV COUNT1, #5H
        
LOOP2:  CODE...
LOOP3:  CODE... 
        DJNZ COUNT1, LOOP2
        (CONDITION)
        JMP  LOOP1 



Please be forwarned that though this will do what you want, it is an endless loop. You need something more to break the loop - like check for some (CONDITION) before looping to LOOP1. Else only a RESET can get break the looooooo...p.

Also if you have no spare IRAM space to allocate for COUNT1, just use any free register R0 to R7 or B register.

Raghu

List of 3 messages in thread
TopicAuthorDate
LOOP HELP            01/01/70 00:00      
   All looped up...            01/01/70 00:00      
   Spend a bit time!            01/01/70 00:00      

Back to Subject List