electricity86
New Member
There is something which i dont understand about values of pins.
If you insert the value 1 to a pin does it mean that you open the circuit of the pin (no current), and if you insert the value 0 to a pin you close the circuit?
By saying the 'circuit of the pin' i mean the circuit that contain the '1-logic' voltage source, a Pull-up/Pull-down resistor, and ground.
For example, if there is a GPIO pin P0_0 that is connected to a pull-up resistor, and configured as output, then P0_0=1 means that the pin's output is 1, and P0_0 = 0 means that the pin's output is 0?
and If its connected to pull-down resistor then P0_0 = 1 means that the pin's output is 0?
Thanks!
If you insert the value 1 to a pin does it mean that you open the circuit of the pin (no current), and if you insert the value 0 to a pin you close the circuit?
By saying the 'circuit of the pin' i mean the circuit that contain the '1-logic' voltage source, a Pull-up/Pull-down resistor, and ground.
For example, if there is a GPIO pin P0_0 that is connected to a pull-up resistor, and configured as output, then P0_0=1 means that the pin's output is 1, and P0_0 = 0 means that the pin's output is 0?
and If its connected to pull-down resistor then P0_0 = 1 means that the pin's output is 0?
Thanks!