2021-09-02 10:47 AM
Is there a difference in the port pin setup, between I2C and SMBUS-two-wire mode?
Say the STM32F469NIHx, if I set the mode to I@C, but the MCU drives a SMBUS device, is there any potential problem?
Any help appreciated
2021-09-02 10:52 AM
There are some subtle differences, but they are generally compatible with each other. The reference manual describes the differences and how to switch to SMBus.
To switch from I2C mode to SMBus mode, the following sequence should be performed.
• Set the SMBus bit in the I2C_CR1 register
• Configure the SMBTYPE and ENARP bits in the I2C_CR1 register as required for the
application