ElectoNewbie
New Member
Hi,
Currently I am using PCF8574A (https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf).
I am able to use the pins P0 to p7 as a current sink and light LEDs ( i.e. the LEDs are connected to voltage source and then to the pins)
But I am unable to ( or rather do not know how to) do the opposite. i.e. use P0 to P7 as a voltage source to power the LEDs
The datasheet says the the pins are quasi-bidirectional.
Also Page 7 shows the different configuration.
My questions:
1. Does the default configuration (current sink) mean 'Output LOW' ?
2. To convert the PIN to a source I will need it to be in 'Input HIGH' config ?
3. Is my assumption that I have to attach a pull-up resistor at the pins to +5V to convert the pin to a source correct ?
4.If the above 3. is correct, then how do I calculate how much resistance to add? in the pull-up?
Currently I am using PCF8574A (https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf).
I am able to use the pins P0 to p7 as a current sink and light LEDs ( i.e. the LEDs are connected to voltage source and then to the pins)
But I am unable to ( or rather do not know how to) do the opposite. i.e. use P0 to P7 as a voltage source to power the LEDs
The datasheet says the the pins are quasi-bidirectional.
Also Page 7 shows the different configuration.
My questions:
1. Does the default configuration (current sink) mean 'Output LOW' ?
2. To convert the PIN to a source I will need it to be in 'Input HIGH' config ?
3. Is my assumption that I have to attach a pull-up resistor at the pins to +5V to convert the pin to a source correct ?
4.If the above 3. is correct, then how do I calculate how much resistance to add? in the pull-up?