Interrupts And Status; Pdma Interface; Register Map; Table 55. Usart Register Map - Holtek HT32F52342 User Manual

32-bit microcontroller with arm cortex-m0+ core
Table of Contents

Advertisement

32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52342/HT32F52352

Interrupts and Status

The USART can generate interrupts when the following event occurs and corresponding interrupt
enable bits are set:
Receive FIFO time-out interrupt: An interrupt will be generated when the USART receive FIFO
does not receive a new data package during the specified time-out interval.
Receiver line status interrupts: The interrupts will be generated when the USART receiver
overrun error, parity error, framing error and break events occur.
Transmit FIFO threshold level interrupt: An interrupt will be generated when the data to be
transmitted in the USART Transmit FIFO is less than the specified threshold level.
Transmit complete interrupt: An interrupt will be generated when the Transmit FIFO is empty
and the content of the transmit shift register (TSR) is also completely shifted.
Receive FIFO threshold level interrupt: An interrupt will be generated when the FIFO received
data amount has reached the specified threshold level.

PDMA Interface

The PDMA interface is integrated in the USART. The PDMA function can be enabled by setting
the TXDMAEN or RXDMAEN bit in the USRCR register to 1 in the transmit or receive mode
respectively. When the data to be transmitted in the USART Transmit FIFO is less than the TX
FIFO threshold level specified by the TXTL field in the USRFCR register and the TXDMAEN
bit is set to 1, the PDMA function will be activated to move data from a source location into the
USART TX FIFO.
Similarly, when the received data amount in the receive FIFO is equal to the RX FIFO threshold
level specified by the RXTL field in the USRFCR register and the RXDMAEN bit is set to 1, the
PDMA function will be activated to move data from the USART RX FIFO to a specific destination
location. For a mode detailed description on the PDMA configurations, refer to the PDMA chapter.

Register Map

The following table shows the USART registers and reset values.

Table 55. USART Register Map

Register
USRDR
0x000
USRCR
0x004
USRFCR
0x008
USRIER
0x00C
USRSIFR
0x010
USRTPR
0x014
IrDACR
0x018
RS485CR
0x01C
SYNCR
0x020
USRDLR
0x024
USRTSTR
0x028
Rev. 1.30
Offset
USART Data Register
USART Control Register
USART FIFO Control Register
USART Interrupt Enable Register
USART Status & Interrupt Flag Register
USART Timing Parameter Register
USART IrDA Control Register
USART RS485 Control Register
USART Synchronous Control Register
USART Divider Latch Register
USART Test Register
511 of 656
Description
Reset Value
0x0000_0000
0x0000_0000
0x0000_0000
0x0000_0000
0x0000_0180
0x0000_0000
0x0000_0000
0x0000_0000
0x0000_0000
0x0000_0010
0x0000_0000
September 28, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Ht32f52352

Table of Contents