![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 325](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630325.webp)
www.geehy.com Page 324
Figure 75 USART Synchronous Transmission Timing Diagram (DBLCFG=1)
DBLCFG=1(9-bit data)
RX (from slave device)
TX (from master device)
Start
bit
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6 Bit 7
Stop
bit
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6 Bit 7
CK(CPOL=0,CPHA=0)
CK(CPOL=0,CPHA=1)
CK(CPOL=1,CPHA=0)
CK(CPOL=1,CPHA=1)
Bit 8
Bit 8
LIN mode
LINMEN bit of USART_CTRL2 register decides whether to enter LIN mode.
When entering LIN mode:
All data frames are 8 data bits and 1 stop bit.
The CLKEN bit and STOPCF bit of USART_CTRL2 register and IREN
bit, HDEN bit and SCEN bit of USART_CTRL3 register need to be
cleared.
In LIN master mode, USART can generate break frame, and the detection
length of break frame can be set to 10 bits and 11 bits through LBDLCFG bit of
USART_CTRL2. The break frame detection circuit is independent of USART
receiver, and no matter in idle state or in data transmission state, RX pin can
detect the break frame, and LBDFLG bit of USART_STS register is set to 1; at
this time, if LBDIEN bit of USART_CTRL2 is enabled, an interrupt will be
generated.
Detection of break frame in idle state
In idle state, if a break frame is detected on RX pin, the receiver will receive a
data frame of 0 and generate FEFLG.