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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/03/03 16:17
Read: times


 
#57743 - RE: toggle function
Responding to: ???'s previous message
Ok this will work for a latching push button
if you want to use a momentary switch then
you need to record the switch status and complement
the port output.

toggle_port_pin

jb p3.7,set_port_hi
clr p1.1
ljmp toggle_port_pin

set_port_hi
setb p1.1
ljmp toggle_port_pin



List of 28 messages in thread
TopicAuthorDate
toggle function            01/01/70 00:00      
   RE: toggle function            01/01/70 00:00      
   RE: toggle function            01/01/70 00:00      
   RE: toggle function            01/01/70 00:00      
   RE: toggle function            01/01/70 00:00      
      RE: toggle function            01/01/70 00:00      
         Hardware De-bounce            01/01/70 00:00      
            De-bouncing is more complex!            01/01/70 00:00      
            RE: Hardware De-bounce            01/01/70 00:00      
               RE: Hardware De-bounce            01/01/70 00:00      
                  RE: Hardware De-bounce            01/01/70 00:00      
                     RE: Classic Hardware De-bounce            01/01/70 00:00      
                        RE: Classic Hardware De-bounce            01/01/70 00:00      
            RE: Hardware De-bounce            01/01/70 00:00      
               RE: Hardware De-bounce            01/01/70 00:00      
   Switch bounce - Scope plots            01/01/70 00:00      
      RE: Switch bounce - Scope plots            01/01/70 00:00      
      APOLOGIES... :(            01/01/70 00:00      
         RE: Note            01/01/70 00:00      
             Resistor for capacitor dischar            01/01/70 00:00      
               RE: Resistor for capacitor dischar            01/01/70 00:00      
               RE: Added Resistor            01/01/70 00:00      
                  RE: Added Resistor            01/01/70 00:00      
                     RE: Added Resistor            01/01/70 00:00      
                     Did you read my last reply?            01/01/70 00:00      
      RC + Schmitt-trigger - Scope plots            01/01/70 00:00      
   RE: toggle function            01/01/70 00:00      
      RE: toggle function            01/01/70 00:00      

Back to Subject List