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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/02/08 20:01
Modified:
  01/02/08 20:03

Read: times


 
#148943 - Delay
Responding to: ???'s previous message
Steve Floyd said:


;***************************************
; .5 SEC DELAY ROUTINE
DELAY:      MOV R7,#0AH       ;OUTER LOOP COUNTER SET TO 10 TIMES
            MOV R5,#236       ;INNER LOOP COUNT SET TO 236 TIMES
LOOP2:      MOV R6,#00H       ;MIDDLE LOOP SET TO 256 TIMES
LOOP1:      DJNZ R5,LOOP1     ;LOOP 256 TIMES
            DJNZ R6,LOOP1     ;LOOP 236 TIMES
            DJNZ R7,LOOP2     ;LOOP 10 TIMES
            RET               ;RETURN PROGRAM
;***************************************


Steve


The structure of this looks odd. Try commenting out the calls to the delay routine in the STEPW sections and see what happens.

Jon

PS. Do you have a simulator? If not look here http://www.vaultbbs.com/pinnacle/

List of 28 messages in thread
TopicAuthorDate
8052 help w/ my code please            01/01/70 00:00      
   How to program a stepper driver            01/01/70 00:00      
   Delay            01/01/70 00:00      
   this makes absolutely no sense            01/01/70 00:00      
      tried commenting delay            01/01/70 00:00      
         no offense, but THINK            01/01/70 00:00      
            ah            01/01/70 00:00      
               yes            01/01/70 00:00      
   What is oscillator speed?            01/01/70 00:00      
      osc speed            01/01/70 00:00      
         MEGAHENRY?            01/01/70 00:00      
            oops            01/01/70 00:00      
   Try this            01/01/70 00:00      
      Not the cure            01/01/70 00:00      
         SWITCHES            01/01/70 00:00      
      Was that YOUR simulator, Jon? :-)            01/01/70 00:00      
         Pinnacle52            01/01/70 00:00      
   Found it            01/01/70 00:00      
      Almost there            01/01/70 00:00      
         any LEDs?            01/01/70 00:00      
            no led's            01/01/70 00:00      
               then use the scope as a LED... :-)            01/01/70 00:00      
                  but not THIS nonsense!            01/01/70 00:00      
                  good idea            01/01/70 00:00      
                     Try it now.            01/01/70 00:00      
                        I think, Steve meant, he will try to use the scope            01/01/70 00:00      
                           Oh..OK            01/01/70 00:00      
                              It works            01/01/70 00:00      

Back to Subject List