
DocID024597 Rev 5
RM0351
Single Wire Protocol Master Interface (SWPMI)
1517
Corrupted EOF reception
Once an SOF has been received, the SWPMI accumulates the received bytes until the
reception of an EOF (ignoring any possible SOF). Once an EOF has been received, the
SWPMI is ready to start a new frame reception and waits for an SOF.
In case of a corrupted EOF, RXBERF and RXBFF flags will bet set in the SWPMI_ISR
register after the next EOF reception.
Note:
In case of a corrupted EOF reception, the payload reception carries on, thus the number of
bytes in the payload might get the value 31 if the number of received bytes is greater than
30. The number of bytes in the payload is read in the SWPMI_RFL register or in bits [23:16]
of the 8th word of the buffer in the RAM memory, depending on the operating mode.
44.3.10 Loopback
mode
The loopback mode can be used for test purposes. The user must set LPBK bit in the
SWPMI_CR register in order to enable the loopback mode.
When the loopback mode is enabled, SWPMI_TX and SWPMI_RX signals are connected
together. As a consequence, all frames sent by the SWPMI will be received back.
44.4
SWPMI low-power modes
Table 260. Effect of low-power modes on SWPMI
Mode Description
Sleep
No effect. SWPMI interrupts cause the device to exit the Sleep mode.
Low-power run
No effect.
Low-power sleep
No effect. SWPMI interrupts cause the device to exit the Low-power sleep
mode.
Stop 0 / Stop 1
SWPMI registers content is kept. A RESUME from SUSPENDED mode issued
by the slave can wake up the device from Stop 0 and Stop 1 modes if the
SWPCLK is HSI16 (refer to
Section 44.3.1: SWPMI block diagram
).
Stop 2
SWPMI registers content is kept. SWPMI must be disabled before entering
Stop 2.
Standby
The SWPMI peripheral is powered down and must be reinitialized after exiting
Standby or Shutdown mode.
Shutdown