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:10
Read: times


 
#148944 - this makes absolutely no sense
Responding to: ???'s previous message
MAIN:       JNB MODE,CONT100RPM ; JUMP IF MODE IS CONT

STEPW50:    JNB SWITCH1,STEPW100
            JNB SWITCH2,STEPW100
            LJMP STEPLOOP ;CODE HERE TO STEP
            CALL DELAY
            SJMP MAIN

assuming mode is true
the code will always (there is no set/clear of the switches) be the equivalent of a jump to steploop. also the 2 instructions following the jump to steploop will never be executed.
This (dead instructions following the jump to steploop ) is repeated many times

Erik


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