Go Down

Topic: Reading Multiple Gates on One I/O Pin (Read 982 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
--
I write books about Arduino and Electronics: http://simonmonk.org

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
--
I write books about Arduino and Electronics: http://simonmonk.org

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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy