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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/05/01 20:23
Read: times


 
#7878 - RE: Can I poll INT0?
Hello...
I have read the entire thread but i think this may be a problem with synchronization of code and action on the pin. How about using this code snippet.
--------------------
there:
CLR pinx ;where pinx is an I/O pin with a LEd connected to it.
here: jb p3.2,here
SETB pinx
here2: jnb p3.2,hereb
sjmp there
-------------------
This small code will turn the led on if you pull the pin 3.2 to ground and will turn it off if you leave the pin floating.

The first thing i learned is that always solve little problems then look for bigger ones.

Good luck.

List of 15 messages in thread
TopicAuthorDate
Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: Can I poll INT0?            01/01/70 00:00      
RE: J            01/01/70 00:00      
RE: J            01/01/70 00:00      

Back to Subject List