how to "override" signal with propeller
mike56
Posts: 22
I have a sensor which is going to the input pin of another device.· It is +3.3V when the sensor is on and 0V when the sensor is off.
I want to hook up a pin from the propeller to simulate the sensor input.·
Can I do this by directly hooking up an output pin from the propeller without disconnecting the sensor?
I suspect the input pin is pulled high internally.· When the sensor is off, it is open collector input.· When it is high, it ties ground to the input pin.
Also, what is the pin "resistance" of the propeller pins?· Suppose I have a 1k resistor one end + 3.3V and one end to·the·input pin of the propeller. Then the actual input inside the propeller would be the voltage diver between the 1k and the pin resistance.· What is the pin "resistance"?
Thanks in advance for the help.
I want to hook up a pin from the propeller to simulate the sensor input.·
Can I do this by directly hooking up an output pin from the propeller without disconnecting the sensor?
I suspect the input pin is pulled high internally.· When the sensor is off, it is open collector input.· When it is high, it ties ground to the input pin.
Also, what is the pin "resistance" of the propeller pins?· Suppose I have a 1k resistor one end + 3.3V and one end to·the·input pin of the propeller. Then the actual input inside the propeller would be the voltage diver between the 1k and the pin resistance.· What is the pin "resistance"?
Thanks in advance for the help.
Comments
The Propeller I/O pin doesn't really have a "resistance" because there's a CMOS transistor between the I/O pin and ground (and another one between the I/O pin and Vdd) and the transistor is turned fully on to provide a logic low. The Propeller datasheet (pg 25) gives the output low voltage as 0.4V at 10mA. You'll find that the voltage remains very close to that value until the current gets near to the maximum for the I/O pin (40mA). There's similar behavior for the output high voltage.
Instead of holding the line high, is there a way to simulate an open collecter type output with the propeller without too much extra discrete components?