RM0402 Rev 6 661/1163
RM0402 Fast-mode Plus Inter-integrated circuit (FMPI2C) interface
722
When the FMPI2C is disabled (PE=0), the I
2
C performs a software reset. Refer to
Section 23.4.6: Software reset for more details.
Noise filters
Before enabling the FMPI2C peripheral by setting the PE bit in FMPI2C_CR1 register, the
user must configure the noise filters, if needed. By default, an analog noise filter is present
on the SDA and SCL inputs. This analog filter is compliant with the I
2
C specification which
requires the suppression of spikes with a pulse width up to 50 ns in Fast-mode and Fast-
mode Plus. The user can disable this analog filter by setting the ANFOFF bit, and/or select a
digital filter by configuring the DNF[3:0] bit in the FMPI2C_CR1 register.
When the digital filter is enabled, the level of the SCL or the SDA line is internally changed
only if it remains stable for more than DNF x FMPI2CCLK periods. This allows spikes with a
programmable length of 1 to 15 FMPI2CCLK periods to be suppressed.
Caution: Changing the filter configuration is not allowed when the FMPI2C is enabled.
Table 118. Comparison of analog vs. digital filters
- Analog filter Digital filter
Pulse width of
suppressed spikes
≥ 50 ns
Programmable length from 1 to 15 I2C peripheral
clocks