2.9.3 Start cannot be generated after a misplaced Stop
Description
If a master generates a misplaced Stop on the bus (bus error), the peripheral cannot
generate a Start anymore.
Workarounds
In the I²C standard, it is allowed to send a Stop only at the end of the full byte (8 bits +
acknowledge), so this scenario is not allowed. Other derived protocols like CBUS allow it,
but they are not supported by the I²C peripheral.
A software workaround consists in asserting the software reset using the SWRST bit in the
I2C_CR1 control register
摘自 STM32F101xC/D/E and STM32F103xC/D/E Errata sheet Doc ID 14732 Rev 7
理解:停止位 在8bit+ACK 之后是不允许的,否则将出错,软件的解决方法是置能I2C_CR1的SWRST为,使软件复位
问题:怎么是a misplaced Stop? |