Single Wire Half Duplex Communication; Figure 175. Usart Data Clock Timing Diagram (M=1); Figure 176. Rx Data Setup/Hold Time - ST STM32F101 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F101 Series:
Table of Contents

Advertisement

Universal synchronous asynchronous receiver transmitter (USART)

Figure 175. USART data clock timing diagram (M=1)

Figure 176. RX data setup/hold time

SCLK (capture strobe on SCLK
rising edge in this example)
t
SETUP
Note:
The function of SCLK is different in Smartcard mode. Refer to the Smartcard mode chapter
for more details.
19.3.10

Single wire half duplex communication

The single-wire half-duplex mode is selected by setting the HDSEL bit in the USART_CR3
register. In this mode, the following bits must be kept cleared:
LINEN and CLKEN bits in the USART_CR2 register,
SCEN and IREN bits in the USART_CR3 register.
The USART can be configured to follow a single wire half duplex protocol. The selection
between half and full duplex communication is done with a control bit 'HALF DUPLEX SEL'
(HDSEL in USART_CR3).
As soon as HDSEL is written to 1:
RX is no longer used,
TX is always released when no data is transmitted. Thus, it acts as a standard I/O in
idle or in reception. It means that the I/O must be configured so that TX is configured as
floating input (or output high open-drain) when not driven by the USART.
Apart from this, the communications are similar to what is done in normal USART mode.
The conflicts on the line must be managed by the software (by the use of a centralized
448/501
Idle or preceding
Start
transmission
Clock (CPOL=0, CPHA=0)
Clock (CPOL=0, CPHA=1)
Clock (CPOL=1, CPHA=0)
Clock (CPOL=1, CPHA=1)
Data on TX
(from master)
Start
Data on RX
(from slave)
Capture Strobe
Data on RX
(from slave)
=
1/16 bit time
t
HOLD
M=1 (9 data bits)
0
1
2
3
4
LSB
0
1
2
3
4
LSB
valid DATA bit
t
SETUP
Idle or next
Stop
transmission
*
*
*
*
8
5
6
7
MSB Stop
5
6
7
8
MSB
*
* LBCL bit controls last data clock pulse
t
HOLD
RM0008

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F101 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f103 series

Table of Contents