DocID024597 Rev 5 1503/1830
RM0351 Single Wire Protocol Master Interface (SWPMI)
1517
1. Disable stream or channel in DMA module
2. Read the number of bytes in the received frame payload in the SWPMI_RFL register
3. Read the frame payload in the RAM buffer
4. Enable stream or channel in DMA module
5. Set CRXBFF bit in the SWPMI_ICR register to clear RXBFF flag (refer to Figure 484:
SWPMI single software buffer mode reception).
Figure 484. SWPMI single software buffer mode reception
Multi software buffer mode
This mode allows to work with several frame buffers in the RAM memory, in order to ensure
a continuous reception, keeping a very low CPU load, using the DMA. The frame payloads
are stored in the RAM memory, together with the frame status flags. The software can check
the DMA counters and status flags at any time to handle the received SWP frames in the
RAM memory.
The Multi software buffer mode must be used in combination with the DMA in circular mode.
The Multi software buffer mode is selected by setting both RXDMA and RXMODE bits in
SWPMI_CR register.
D^ϯϯϯϱϭsϭ
^K& K&ZϬ ϭ Ϯ ϯ ϰ ϱ ϲ ϳ ϴ ϵ ϭϬ ϭϭ ϭϮ
^tW
ŝŶƉƵƚ
ZyE
^tWD/ͺZZ
Zy&&
ƐĞƚďLJ,tĐůĞĂƌĞĚďLJD
ϯͲϮͲϭͲϬ ϳͲϲͲϱͲϰ
ϭϭͲϭϬͲϵͲ
ϴ
džͲdžͲϭϯͲϭϮ
džͲdžͲdžͲdž
dž ϭϰĚ
^tWD/ͺZ&>
ϭϯ
ƐĞƚďLJ,tĐůĞĂƌĞĚďLJ^t
^h^WE
DƚƌĂŶƐĨĞƌƐĚĂƚĂĨƌŽŵ
^tWD/ͺZZƚŽZD
d&
ƐĞƚďLJ,tĐůĞĂƌĞĚďLJ^t
ƐĞƚďLJ,t
ϯͲϮͲϭͲϬ
ϳͲϲͲϱͲϰ
ϭϭͲϭϬͲϵͲϴ
DƚƌĂŶƐĨĞƌƐĚĂƚĂĨƌŽŵ
^tWD/ͺZZƚŽZD
DƚƌĂŶƐĨĞƌƐĚĂƚĂĨƌŽŵ
^tWD/ͺZZƚŽZD
DƚƌĂŶƐĨĞƌƐĚĂƚĂĨƌŽŵ
^tWD/ͺZZƚŽZD
džͲdžͲϭϯͲϭϮ
ZD
/ŶƚĞƌŶĂůďƵĨĨĞƌ
ϯͲϮͲϭͲϬ ϳͲϲͲϱͲϰ ϭϭͲϭϬͲϵͲϴ
džͲdžͲdžͲdž
džͲdžͲϭϯͲϭϮ