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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/07 07:51
Read: times


 
#133287 - How its happen?
Dear all,
here my schematic



My program

INIT:
MOV SP,#7
LOOP:
CPL P1.7
LCALL DELAY
LJMP LOOP

DELAY:
MOV R0,#1
L21:
MOV R1,#80
L11:
MOV R2,#0FFH
DJNZ R2,$
DJNZ R1,L11
DJNZ R0,L21
RET

.END

Sorry my circuit maybe not perfect, but my strong question is not in my circuit.
After I apply the power supply, Program running properly. The LED blinking constant (time on = time off).
I disturb my circuit by pressing SW1 many times, and I see the LED time blinking not constant.
My question: How the value in register R0, R1, R2 are change? If I see the delay time on the LED is like more
than 5 in the R0 in the delay subrutin but in my program I never load value more than 1 in R0.
thankyou verymuch

regard

hendry


List of 51 messages in thread
TopicAuthorDate
How its happen?            01/01/70 00:00      
   correction            01/01/70 00:00      
   my 2 cents            01/01/70 00:00      
   What is exactly RLY fuction?            01/01/70 00:00      
      Effect of relay            01/01/70 00:00      
         Isn't it called EMI?            01/01/70 00:00      
            Sure - radiated and conducted            01/01/70 00:00      
               Ok, thought so :)            01/01/70 00:00      
                  Maybe it's a test?            01/01/70 00:00      
                     Not very kind to operator :)            01/01/70 00:00      
         A diode helps.            01/01/70 00:00      
            But immunity is best!            01/01/70 00:00      
         Arcing machine            01/01/70 00:00      
            RF oscillations            01/01/70 00:00      
               School experiment            01/01/70 00:00      
   Ok, we posted in the same minute :)            01/01/70 00:00      
      This time it was Andy and AGAIN same time :)            01/01/70 00:00      
      I'll build in some random delay next time :-)            01/01/70 00:00      
   the solution will be here            01/01/70 00:00      
   I'm puzzled            01/01/70 00:00      
      It damps out the relay voltage spikes?            01/01/70 00:00      
         not much, if any - 33pF?            01/01/70 00:00      
            Should be a printing error.            01/01/70 00:00      
   let's focus            01/01/70 00:00      
      Of course it is possible.            01/01/70 00:00      
      why focus            01/01/70 00:00      
         because......            01/01/70 00:00      
            Part more susceptable to EMI?            01/01/70 00:00      
            'experiment' all you want            01/01/70 00:00      
            prevent problems            01/01/70 00:00      
      where did we not focus?            01/01/70 00:00      
         conclusion            01/01/70 00:00      
            You are a funny guy...            01/01/70 00:00      
               chips is different            01/01/70 00:00      
                  already answered            01/01/70 00:00      
                  That's the definition of "Unreliable"!!            01/01/70 00:00      
                  pure unadulterated male cow manure            01/01/70 00:00      
                     The Relay            01/01/70 00:00      
                        The purpose of a Watchdog            01/01/70 00:00      
                           Woof            01/01/70 00:00      
                              Grrr            01/01/70 00:00      
                                 Watchdog Hit Report            01/01/70 00:00      
                  Some hints...            01/01/70 00:00      
                     The decoupling Cap            01/01/70 00:00      
                        With shortest leads to Vcc and GND pins            01/01/70 00:00      
                     What software,Kai?            01/01/70 00:00      
                        Target            01/01/70 00:00      
                           yes            01/01/70 00:00      
                     Thankyou Kai            01/01/70 00:00      
   isn't it obvious?            01/01/70 00:00      
      No you missed that it is the coil...            01/01/70 00:00      

Back to Subject List