blueroomelectronics
Well-Known Member
Which MCU are you using?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I am talking transistor(s) on the input pin, inside the PIC. The current draw we are talking about is internal to the PIC. It does not flow through the pin but is affected by the voltage on the pin.First I am a digital person. So ANYTHING I saw about analog should be taken with a pound of salt.
But that was my question, why does it draw internally too much current?EDIT: Digital circuits are created from analog devices. But the digital circuits do not function well if used in an analog way. They expect inputs to be hi or lo. The inbetween area should be advoided.
EDIT2: Pullup and down resistors only work if all devices on the line are tristated. They do not work with an analog voltage on the line.
But that was my question, why does it draw internally too much current?
and what if i defined it as tristate?
I could not find info on what the input will read if the voltage is in the undefined region between VIL and VIH. But the input is digitial, when you read the bit it must be a 1 or a 0.The Input Low Voltage (VIL) is the maximum voltage level that will be read as a logic ’0’.
The Input High Voltage (VIH) is the minimum voltage level that will be read as a logic ’1’.
As you may know input and tristate are the same. When you set a port as an input it is tristated (not driving the line).
I am not so sure I agree with that statement. Tristate usually refers to an output device such as a buffer. When tri stated the output no longer drivers the line as it goes into a high Z state.
I agree that inputs do not drive a line but they are still able to respond to a signal, where tristate essentially disables an output. My 2 cents