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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/15/02 14:03
Read: times


 
#21787 - RE: Quick question on port operations
mattew zac wrote:
-------------------------------
Thanks everybody, but I think I didi not explain well my problem

Correct ;o)

I need an external switch, that if the user sets ON then the code will do something, and if the user sets OFF then the code will do something else
is there a way to do that?


Use either P1.0 or P1.1, configured as input. Connect your switch to GND. If it's open, the pin will be high. If it's closed, the pin will be low. Simple as that!

Regards,
Rob.

List of 14 messages in thread
TopicAuthorDate
Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      
RE: Quick question on port operations            01/01/70 00:00      

Back to Subject List