GD32F10x User Manual
442
minus 12. The TC status is forced reset while the guard time counter is counting up. When
the counter reaches the programmed value TC is asserted high.
During USART transmission, if a parity error event is detected, the smartcard may NACK the
current frame by pulling down the TX pin during the last 1 bit time of the stop bits. The USART
can automatically resend data according to the protocol.
The USART will not take the NACK
signal as the start bit.
During USART reception, if the parity error is detected in the current frame, the TX pin is
pulled low during the last 1 bit time of the stop bits. This signal is the NACK signal to smart
card. Then a frame error occurs in smart card side. The RBNE/receive DMA request is not
activated if the received character is erroneous. According to the protocol, the smart card can
resend the data. The NACK signal is enabled by setting the NKEN bit in USART_CTL2.
The idle frame and break frame are not applied for the smartcard mode.
16.3.13.
USART interrupts
The USART interrupt events and flags are listed in the table below.
Table 16-3. USART interrupt requests
Interrupt event
Event flag
Control register
Enable
Control bit
Transmit data buffer empty
TBE
USART_CTL0
TBEIE
CTS toggled flag
CTSF
USART_CTL2
CTSIE
Transmission complete
TC
USART_CTL0
TCIE
Received buff not empty
RBNE
USART_CTL0
RBNEIE
Overrun error
ORERR
Idle frame
IDLEF
USART_CTL0
IDLEIE
Parity error
PERR
USART_CTL0
PERRIE
Break detected flag in LIN mode
LBDF
USART_CTL1
LBDIE
Reception errors (noise flag,
overrun error, framing error) in
DMA reception
NERR or ORERR or
FERR
USART_CTL2
ERRIE
All of the interrupt events are ORed together before being sent to the interrupt controller, so
the USART can only generate a single interrupt request to the controller at any given time.
Software can service multiple interrupt events in a single interrupt service routine.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...