I have a few questions:
First, what's the default mode of all the pins P0-P7 and P10-P17 after powered up.
Second, it is about the pins' mode. Based on the description in section 8.4, Device Functional Mode, of its data sheet, if I use I2C to write 3 bytes to it:
- 0100 A2A1A0 0
- xx1x xxxx
- xxxx xxxx
Pin5 will become HIGH. For the rest pins, if I don't want to change their High/Low status, it seems I must read their status and write back the same values in step 2 and 3.
Is this correct?
Third, use pin5 as an example. Let's say, if in step 2, I write xx0x xxxx, pin5 will be pulled LOW by PCF8575. This is in output mode, isn't it?
Then how to switch it to input mode? By external circuit? I wonder since pin5 is already pulled down by 8575, how can external circuit pull it HIGH?