Page 1 of 1

Inputs

Posted: Tue Feb 06, 2007 7:29 pm
by EddieB
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

Posted: Fri Feb 09, 2007 11:26 am
by Steve
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.

Posted: Fri Feb 09, 2007 11:59 am
by EddieB
Hello Steve,

I am not using the Hp488, Im using the multiprogrammer...

Cheers