Richardcavell
Member
Hi, everyone. I designed this partial circuit myself. This is a "slave" AVR. The idea is that the general purpose input/output pins of the slave AVR are connected directly to a DB25 connector. (Don't ask me why I'm using DB25 or why I'm not using ordinary chip-to-chip protocols). The idea is that a master circuit may or may not be plugged in to this DB25 connector. If it is, then it will supply +5 volts through a 220 ohm resistor into "slave present". It will then go through the 220 ohm resistor on the slave AVR's side and into the input pin of the AVR. What I want to make sure is that if the DB25 is not connected to a master - and therefore the slave present line is floating - that it will read as 0.
In order to do this, do I connect a very large value resistor from slave present to ground? If so, what value do I need to ensure that +5 volts going through 2 x 220 ohm resistors will read as "high" and a floating line will read as "low"?
Richard
In order to do this, do I connect a very large value resistor from slave present to ground? If so, what value do I need to ensure that +5 volts going through 2 x 220 ohm resistors will read as "high" and a floating line will read as "low"?
Richard