--- In Electronics_101@..., "lcdpublishing"
<lcdpublishing@...> wrote:
Hi Guys,
I will be needing to take one "output" from a photo interrupter
switch and connect that signal to two different AVRs as inputs. I
am not sure if it is okay to do that or not. Here is my initial
plan....
Photo-interrupter that will pull a signal to ground.
AVR inputs both pulled high with 10K resistors.
No reason it shouldn't work EXCEPT that you now have 2 10k resistors
in parallel so the load is 5k. SOME photo interrupters don't have the
ability to sink much current. If you see on a scope that the signal
doesn't come close to 0V then dump one of the resistors.
The pullup is associated with the interrupter, not the AVR pins. A
single resistor is fine.
Just be darned certain that you don't define both AVR pins as outputs
and set them to opposite states.
You could put 330 ohm resistors in series with the input pins to
protect the chips from each other in the event they were defined as
outputs.
Richard