| ??? 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 |



