![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 499](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801499.webp)
GD32F20x User Manual
499
Figure 19-12. 8-bit format USART synchronous waveform (CLEN=1)
CK pin(CPL=1, CPH=0)
CK pin (CPL=0, CPH=1)
CK pin (CPL=1, CPH=1)
Master data output
Master data input
frame data (8bit)
Idle
Idle
Start
Stop
bit4
bit5
bit6
bit7
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
bit0
bit1
bit2
bit3
CK pin (CPL=0, CPH=0)
19.3.10.
IrDA SIR ENDEC mode
The IrDA mode is enabled by setting the IREN bit in USART_CTL2. The LMEN, STB[1:0],
CKEN bits in USART_CTL1 and HDEN, SCEN bits in USART_CTL2 should be reset in IrDA
mode.
In IrDA mode, the USART transmission data frame is modulated in the SIR transmit encoder
and transmitted to the infrared LED through the TX pin. The SIR receive decoder receives the
modulated signal from the infrared LED through the RX pin, and puts the demodulated data
frame to the USART receiver. The baud rate should not be larger than 115200 for the encoder.
Figure 19-13. IrDA SIR ENDEC module
Normal
USART
Transmit
Encoder
Receive
Decoder
SIR MODULE
TX
RX
TX pin
RX pin
IREN
1
0
0
1
Infrared
LED
outside chip
inside chip
In IrDA mode, the polarity of the TX pin and RX pin is different. The TX pin is usually at low
state, while the RX pin is usually at high state. The IrDA pins keep stable to represent the
logic
‘1’, while an infrared light pulse on the IrDA pins (a Return to Zero signal) represents the
logic ‘0’. The pulse width should be 3/16 of a bit period. The IrDA could not detect any pulse
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...