Inputs

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
EddieB
Posts: 55
Joined: Tue Jan 30, 2007 7:17 pm
Contact:

Inputs

Post 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

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post 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.

EddieB
Posts: 55
Joined: Tue Jan 30, 2007 7:17 pm
Contact:

Post by EddieB »

Hello Steve,

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

Cheers

Post Reply