Hello,
I have recently been playing with my development board, but I haven't yet played with inputs. Im using a 16F88...
Heres my idea...
Take 5v from the V+, lower the voltage with a resistor? .. then connect a switch between that and an input pin...
Would this work?
Cheers
Inputs
- Steve
- Matrix Staff
- Posts: 3418
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
if you did this, you would also need a large (10 - 100k) resistor to ground at the i/o pin itself - otherwise, the input would be floating when the switch was not connected and the input value read could be 0 or 1.
There are other ways to connect a switch.
Also note that portA and portB already have switches connected on the HP488 development board.
There are other ways to connect a switch.
Also note that portA and portB already have switches connected on the HP488 development board.