When bit-banging I2C using 2 PIO lines do these lines still need to be pulled high? Obviously using a dedicated I2C bus the lines must be pulled high as the pins are open-drain outputs but PIO pins aren't open-drain.
Electronic – Bit-banging I2C question
bit-bangi2c
Related Topic
- Electronic – bitbanging i2c problem with ACK from slave
- I2C baud rates and delay calc(bit banging)
- Electronic – I2C: Unable to Read Multiple Byte using Bit-Banging method
- Electronic – Open drain concept in I2C bus
- Electronic – 2C lines use open drain driver instead of tri-state drivers
- Electrical – Open drain in I2C
- Electronic – Does clock speed matter when recovering from I2C bus lock up
- Electrical – I2C bus isolation for dummies
Best Answer
Yes, both lines need to be pulled high at all time.
Also, when bitbanging I2C, rather than switching the LOW/HIGH states of the pin, switch between LOW/HiZ by simply altering the DDR/DIR registers.