EasyManuals Logo

ST STM32L4x6 User Manual

ST STM32L4x6
1693 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1372 background imageLoading...
Page #1372 background image
Single Wire Protocol Master Interface (SWPMI) RM0351
1372/1685 DocID024597 Rev 3
The Software can also read the DMA counter (number of data to transfer) in the DMA
registers in order to retrieve the frame which has already been transferred from the RAM
memory and transmitted. For example, if the software works with 4 transmission buffers, and
if the DMA counter equals 17, it means that two buffers are ready for updating in the RAM
area. This is useful in case several frames are sent before the software can handle the
SWPMI interrupt. If this happens, the software will have to update several buffers.
When there are no more frames to transmit, the user must disable the circular mode in the
DMA module. The transmission will stop at the end of the buffer4 transmission.
If the transmission needs to stop before (for example at the end of buffer2), the user must
set the low significant byte of the first word to 0 in buffer3 and buffer4.
TXDMA bit in the SWPMI_CR register will be cleared by hardware as soon as the number of
data bytes in the payload is read as 0 in the least significant byte of the first word.
Figure 459. SWPMI Multi software buffer mode transmission
40.3.8 Reception procedure
Before starting any frame reception, the user must activate the SWP (refer to
Section 40.3.2: SWP initialization and activation.
Once SWPACT bit is set in the SWPMI_CR register, a RESUME from slave state sets the
SRF flag in the SWPMI_ISR register and automatically enables the SWPMI for the frame
reception.
069
5$0
' ' ' '
' ' ' '
' ' '
' ' ' 7)/
' ' ' '
' ' ' 7)/
' ' ' '
' ' ' '
' ' ' '
' ' ' '
' ' ' '
' ' ' '
' ' '
'
' ' ' 7)/
' ' ' '
' ' ' 7)/
' ' ' '
' ' ' '
' ' ' '
' ' '
'
'
)UDPH7)/ 
)UDPH7)/ 
)UDPH7)/ 
)UDPH7)/ 
'0$B&0$5
ELWZRUG

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32L4x6 and is the answer not in the manual?

ST STM32L4x6 Specifications

General IconGeneral
BrandST
ModelSTM32L4x6
CategoryMicrocontrollers
LanguageEnglish

Related product manuals