Go Down

Topic: Reading Multiple Gates on One I/O Pin (Read 919 times) previous topic - next topic

wwbrown

I am trying to read when the state of one of 8 photogates goes low by checking one I/O pin, the timing requirement of the system does not allow me to poll 8 pins sequentially.  I would like to be able to set up an interrupt on one pin that would be trigger on a falling edge when any of the 8 gates goes low.

This may be a trivial question and an easy Google if I knew what the name of a device like was, but alas I do not.  Can someone give me digital hand?

Thanks

wade

Si

I'm not entirely sure what you are trying to do, I'm guessing use a latching parallel to serial shift register.

You may not need to do that, it is possible to read 8 IO pins on the Arduino simultaneously (well nearly), as long as they are on the same port.

http://www.arduino.cc/en/Reference/PortManipulation
--
My New Arduino Book: http://www.arduinobook.com

AWOL

#2
Nov 12, 2010, 09:41 pm Last Edit: Nov 12, 2010, 09:41 pm by AWOL Reason: 1
An 8-input NAND.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Si

erm, yes - I see what you mean, I completely missed the point.

http://ecee.colorado.edu/~mcclurel/dm74ls30.pdf
--
My New Arduino Book: http://www.arduinobook.com

wwbrown

AWOL,

The NAND gate was exactly what I was looking for thanks.

wade

Tim Williams

Why use a gate at all.

Use a 'wired or'.


retrolefty

Yes a diode wired to each device can be wired-ORed to create a single signal.

Lefty

Go Up