- Fri Aug 11, 2017 7:12 am
#195812
I'm looking for some guidance on something that is tripping me up while attempting to set the Si4703 to 2-wire mode (i2c).
To set the Si4703 to i2c mode, the SDA (SDIO) line must be held low while the reset line is transitioning from a low to high condition.
On the Raspberry Pi, most of the GPIO pins can be setup to have alternative functions...and more specifically in this case, the SDA pin could also be setup as a digital input or output. This is actually good in the case of the Si4703.
However, a problem occurs when using python. Once the SDA pin is configured with RPI.GPIO python module to be a digital output, there seems to be no way to reconfigure it back as SDA. This conflicts with the needs of the Si4703 to be reset into i2c mode, as the SDA line absolutely needs to act as a digital ouput, pulling the line low during reset.
While googling, it appears this didn't use to be a problem (pin acting as digital output and SDA line) with older revisions of the Raspberry Pi, but it certainly is now.
Any help is appreciated...I feel like I'm making this too hard.
To set the Si4703 to i2c mode, the SDA (SDIO) line must be held low while the reset line is transitioning from a low to high condition.
On the Raspberry Pi, most of the GPIO pins can be setup to have alternative functions...and more specifically in this case, the SDA pin could also be setup as a digital input or output. This is actually good in the case of the Si4703.
However, a problem occurs when using python. Once the SDA pin is configured with RPI.GPIO python module to be a digital output, there seems to be no way to reconfigure it back as SDA. This conflicts with the needs of the Si4703 to be reset into i2c mode, as the SDA line absolutely needs to act as a digital ouput, pulling the line low during reset.
While googling, it appears this didn't use to be a problem (pin acting as digital output and SDA line) with older revisions of the Raspberry Pi, but it certainly is now.
Any help is appreciated...I feel like I'm making this too hard.