| ??? 04/24/03 06:29 Read: times |
#44085 - RE: 8051 & push buttons/switches Responding to: ???'s previous message |
there are two ways in which you can achieve your objective.
one is to give a '1' to the uc indicating the switch is ON the other is to give a '0' case '1': connect one terminal of the switch to +5v the other end to the uc and one end of a 10k resistor. connect the other end of the resistor to ground. case '0': connect one terminal of the resistor to +5v and the other end to the switch and uc. connect the other end of the switch to ground. note. i have assumed that you will be using push to ON switches. hope this is of help. |
| Topic | Author | Date |
| 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & Active low inputs | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
| RE: 8051 & push buttons/switches | 01/01/70 00:00 | |
RE: 8051 & push buttons/switches | 01/01/70 00:00 |



