摘要 |
An initialization method for use in an 12C system is suggested. The 12C system comprises at least a master device and a slave device, which are interconnected via an 12C bus comprising a serial clock (SCL) line and a serial data (SDA) line. The method comprises: configuring an SCL pin, which is connected to the SCL line, of the master device to a General Purpose Input Output (GPIO) mode; informing the slave device to release the SDA line by sending a release signal from the SCL pin of the master device; and setting the 12C bus to a START condition by the master device. The present disclosure also provides a master device in the 12C system. The present disclosure can be applied to various 12C systems to improve the initialization process after abnormal termination of communication between a master device and a slave device. |