UARTE — Universal asynchronous receiver/transmitter with EasyDMA

The Universal asynchronous receiver/transmitter with EasyDMA (UARTE) offers fast, full-duplex, asynchronous serial communication with built-in flow control (CTS, RTS) support in hardware at a rate up to 1 Mbps, and EasyDMA data transfer from/to RAM.

Listed here are the main features for UARTE:

Figure 1. UARTE configuration
UARTE configuration

The GPIOs used for each UART interface can be chosen from any GPIO on the device and are independently configurable. This enables great flexibility in device pinout and efficient use of board space and signal routing.

Note: The external crystal oscillator must be enabled to obtain sufficient clock accuracy for stable communication. See CLOCK — Clock control for more information.

EasyDMA

The UARTE implements EasyDMA for reading and writing to and from the RAM.

If the TXD.PTR and the RXD.PTR are not pointing to the Data RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory for more information about the different memory regions.

The .PTR and .MAXCNT registers are double-buffered. They can be updated and prepared for the next RX/TX transmission immediately after having received the RXSTARTED/TXSTARTED event.

The ENDRX and ENDTX events indicate that the EasyDMA is finished accessing the RX or TX buffer in RAM.

Transmission

The first step of a DMA transmission is storing bytes in the transmit buffer and configuring EasyDMA. This is achieved by writing the initial address pointer to TXD.PTR, and the number of bytes in the RAM buffer to TXD.MAXCNT. The UARTE transmission is started by triggering the STARTTX task.

After each byte has been sent over the TXD line, a TXDRDY event will be generated.

When all bytes in the TXD buffer, as specified in the TXD.MAXCNT register, have been transmitted, the UARTE transmission will end automatically and an ENDTX event will be generated.

A UARTE transmission sequence is stopped by triggering the STOPTX task. A TXSTOPPED event will be generated when the UARTE transmitter has stopped.

If the ENDTX event has not already been generated when the UARTE transmitter has come to a stop, the UARTE will generate the ENDTX event explicitly even though all bytes in the TXD buffer, as specified in the TXD.MAXCNT register, have not been transmitted.

If flow control is enabled through the HWFC field in the CONFIG register, a transmission will be automatically suspended when CTS is deactivated and resumed when CTS is activated again, as shown in the following figure. A byte that is in transmission when CTS is deactivated will be fully transmitted before the transmission is suspended.

Figure 2. UARTE transmission
UARTE transmission

The UARTE transmitter will be in its lowest activity level, and consume the least amount of energy, when it is stopped, i.e. before it is started via STARTTX or after it has been stopped via STOPTX and the TXSTOPPED event has been generated. See POWER — Power control for more information about power modes.

Reception

The UARTE receiver is started by triggering the STARTRX task. The UARTE receiver is using EasyDMA to store incoming data in an RX buffer in RAM.

The RX buffer is located at the address specified in the RXD.PTR register. The RXD.PTR register is double-buffered and it can be updated and prepared for the next STARTRX task immediately after the RXSTARTED event is generated. The size of the RX buffer is specified in the RXD.MAXCNT register. The UARTE generates an ENDRX event when it has filled up the RX buffer, as seen in the following figure.

For each byte received over the RXD line, an RXDRDY event will be generated. This event is likely to occur before the corresponding data has been transferred to Data RAM.

The RXD.AMOUNT register can be queried following an ENDRX event to see how many new bytes have been transferred to the RX buffer in RAM since the previous ENDRX event.

Figure 3. UARTE reception
UARTE reception

The UARTE receiver is stopped by triggering the STOPRX task. An RXTO event is generated when the UARTE has stopped. The UARTE will make sure that an impending ENDRX event will be generated before the RXTO event is generated. This means that the UARTE will guarantee that no ENDRX event will be generated after RXTO, unless the UARTE is restarted or a FLUSHRX command is issued after the RXTO event is generated.

Note: If the ENDRX event has not been generated when the UARTE receiver stops, indicating that all pending content in the RX FIFO has been moved to the RX buffer, the UARTE will generate the ENDRX event explicitly even though the RX buffer is not full. In this scenario the ENDRX event will be generated before the RXTO event is generated.

To determine the amount of bytes the RX buffer has received, the CPU can read the RXD.AMOUNT register following the ENDRX event or the RXTO event.

The UARTE is able to receive up to four bytes after the STOPRX task has been triggered, as long as these are sent in succession immediately after the RTS signal is deactivated. After the RTS is deactivated, the UART is able to receive bytes for a period of time equal to the time needed to send four bytes on the configured baud rate.

After the RXTO event is generated the internal RX FIFO may still contain data, and to move this data to RAM the FLUSHRX task must be triggered. To make sure that this data does not overwrite data in the RX buffer, the RX buffer should be emptied or the RXD.PTR should be updated before the FLUSHRX task is triggered. To make sure that all data in the RX FIFO is moved to the RX buffer, the RXD.MAXCNT register must be set to RXD.MAXCNT > 4, as seen in the following figure. The UARTE will generate the ENDRX event after completing the FLUSHRX task even if the RX FIFO was empty or if the RX buffer does not get filled up. To be able to know how many bytes have actually been received into the RX buffer in this case, the CPU can read the RXD.AMOUNT register following the ENDRX event.

Figure 4. UARTE reception with forced stop via STOPRX
UARTE reception with forced stop via STOPRX

If HW flow control is enabled through the HWFC field in the CONFIG register, the RTS signal will be deactivated when the receiver is stopped via the STOPRX task or when the UARTE is only able to receive four more bytes in its internal RX FIFO.

With flow control disabled, the UARTE will function in the same way as when the flow control is enabled except that the RTS line will not be used. This means that no signal will be generated when the UARTE has reached the point where it is only able to receive four more bytes in its internal RX FIFO. Data received when the internal RX FIFO is filled up, will be lost.

The UARTE receiver will be in its lowest activity level, and consume the least amount of energy, when it is stopped, i.e. before it is started via STARTRX or after it has been stopped via STOPRX and the RXTO event has been generated. See POWER — Power control for more information about power modes.

Error conditions

An ERROR event, in the form of a framing error, will be generated if a valid stop bit is not detected in a frame. Another ERROR event, in the form of a break condition, will be generated if the RXD line is held active low for longer than the length of a data frame. Effectively, a framing error is always generated before a break condition occurs.

An ERROR event will not stop reception. If the error was a parity error, the received byte will still be transferred into Data RAM, and so will following incoming bytes. If there was a framing error (wrong stop bit), that specific byte will NOT be stored into Data RAM, but following incoming bytes will.

Using the UARTE without flow control

If flow control is not enabled, the interface will behave as if the CTS and RTS lines are kept active all the time.

Parity and stop bit configuration

Automatic even parity generation for both transmission and reception can be configured using the register CONFIG. See the register description for details.

The amount of stop bits can also be configured through the register CONFIG.

Low power

When putting the system in low power and the peripheral is not needed, lowest possible power consumption is achieved by stopping, and then disabling the peripheral.

The STOPTX and STOPRX tasks may not be always needed (the peripheral might already be stopped), but if STOPTX and/or STOPRX is sent, software shall wait until the TXSTOPPED and/or RXTO event is received in response, before disabling the peripheral through the ENABLE register.

Pin configuration

The different signals RXD, CTS (Clear To Send, active low), RTS (Request To Send, active low), and TXD associated with the UARTE are mapped to physical pins according to the configuration specified in the PSEL.RXD, PSEL.CTS, PSEL.RTS, and PSEL.TXD registers respectively.

The PSEL.RXD, PSEL.CTS, PSEL.RTS, and PSEL.TXD registers and their configurations are only used as long as the UARTE is enabled, and retained only for the duration the device is in ON mode. PSEL.RXD, PSEL.RTS, PSEL.RTS, and PSEL.TXD must only be configured when the UARTE is disabled.

To secure correct signal levels on the pins by the UARTE when the system is in OFF mode, the pins must be configured in the GPIO peripheral as described in the following table.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

Table 1. GPIO configuration before enabling peripheral
UARTE signalUARTE pinDirectionOutput value
RXDAs specified in PSEL.RXDInputNot applicable
CTSAs specified in PSEL.CTSInputNot applicable
RTSAs specified in PSEL.RTSOutput1
TXDAs specified in PSEL.TXDOutput1

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA
UARTE0 : S
UARTE0 : NS
0x50008000
0x40008000
USNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 0
UARTE1 : S
UARTE1 : NS
0x50009000
0x40009000
USNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 1
UARTE2 : S
UARTE2 : NS
0x5000A000
0x4000A000
USNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 2
UARTE3 : S
UARTE3 : NS
0x5000B000
0x4000B000
USNSSANoUniversal asynchronous receiver/transmitter with EasyDMA 3

Register overview

RegisterOffsetTZDescription
TASKS_STARTRX0x000Start UART receiver
TASKS_STOPRX0x004Stop UART receiver
TASKS_STARTTX0x008Start UART transmitter
TASKS_STOPTX0x00CStop UART transmitter
TASKS_FLUSHRX0x02CFlush RX FIFO into RX buffer
SUBSCRIBE_STARTRX0x080Subscribe configuration for task STARTRX
SUBSCRIBE_STOPRX0x084Subscribe configuration for task STOPRX
SUBSCRIBE_STARTTX0x088Subscribe configuration for task STARTTX
SUBSCRIBE_STOPTX0x08CSubscribe configuration for task STOPTX
SUBSCRIBE_FLUSHRX0x0ACSubscribe configuration for task FLUSHRX
EVENTS_CTS0x100CTS is activated (set low). Clear To Send.
EVENTS_NCTS0x104CTS is deactivated (set high). Not Clear To Send.
EVENTS_RXDRDY0x108Data received in RXD (but potentially not yet transferred to Data RAM)
EVENTS_ENDRX0x110Receive buffer is filled up
EVENTS_TXDRDY0x11CData sent from TXD
EVENTS_ENDTX0x120Last TX byte transmitted
EVENTS_ERROR0x124Error detected
EVENTS_RXTO0x144Receiver timeout
EVENTS_RXSTARTED0x14CUART receiver has started
EVENTS_TXSTARTED0x150UART transmitter has started
EVENTS_TXSTOPPED0x158Transmitter stopped
PUBLISH_CTS0x180Publish configuration for event CTS
PUBLISH_NCTS0x184Publish configuration for event NCTS
PUBLISH_RXDRDY0x188Publish configuration for event RXDRDY
PUBLISH_ENDRX0x190Publish configuration for event ENDRX
PUBLISH_TXDRDY0x19CPublish configuration for event TXDRDY
PUBLISH_ENDTX0x1A0Publish configuration for event ENDTX
PUBLISH_ERROR0x1A4Publish configuration for event ERROR
PUBLISH_RXTO0x1C4Publish configuration for event RXTO
PUBLISH_RXSTARTED0x1CCPublish configuration for event RXSTARTED
PUBLISH_TXSTARTED0x1D0Publish configuration for event TXSTARTED
PUBLISH_TXSTOPPED0x1D8Publish configuration for event TXSTOPPED
SHORTS0x200Shortcuts between local events and tasks
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
ERRORSRC0x480

Error source

This register is read/write one to clear.

ENABLE0x500Enable UART
PSEL.RTS0x508Pin select for RTS signal
PSEL.TXD0x50CPin select for TXD signal
PSEL.CTS0x510Pin select for CTS signal
PSEL.RXD0x514Pin select for RXD signal
BAUDRATE0x524Baud rate. Accuracy depends on the HFCLK source selected.
RXD.PTR0x534Data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last transaction
TXD.PTR0x544Data pointer
TXD.MAXCNT0x548Maximum number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last transaction
CONFIG0x56CConfiguration of parity and hardware flow control

TASKS_STARTRX

Address offset: 0x000

Start UART receiver

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STARTRXStart UART receiver
Trigger1Trigger task

TASKS_STOPRX

Address offset: 0x004

Stop UART receiver

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOPRXStop UART receiver
Trigger1Trigger task

TASKS_STARTTX

Address offset: 0x008

Start UART transmitter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STARTTXStart UART transmitter
Trigger1Trigger task

TASKS_STOPTX

Address offset: 0x00C

Stop UART transmitter

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOPTXStop UART transmitter
Trigger1Trigger task

TASKS_FLUSHRX

Address offset: 0x02C

Flush RX FIFO into RX buffer

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_FLUSHRXFlush RX FIFO into RX buffer
Trigger1Trigger task

SUBSCRIBE_STARTRX

Address offset: 0x080

Subscribe configuration for task STARTRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STARTRX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_STOPRX

Address offset: 0x084

Subscribe configuration for task STOPRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOPRX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_STARTTX

Address offset: 0x088

Subscribe configuration for task STARTTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STARTTX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_STOPTX

Address offset: 0x08C

Subscribe configuration for task STOPTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task STOPTX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_FLUSHRX

Address offset: 0x0AC

Subscribe configuration for task FLUSHRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task FLUSHRX will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

EVENTS_CTS

Address offset: 0x100

CTS is activated (set low). Clear To Send.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_CTSCTS is activated (set low). Clear To Send.
NotGenerated0Event not generated
Generated1Event generated

EVENTS_NCTS

Address offset: 0x104

CTS is deactivated (set high). Not Clear To Send.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_NCTSCTS is deactivated (set high). Not Clear To Send.
NotGenerated0Event not generated
Generated1Event generated

EVENTS_RXDRDY

Address offset: 0x108

Data received in RXD (but potentially not yet transferred to Data RAM)

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RXDRDYData received in RXD (but potentially not yet transferred to Data RAM)
NotGenerated0Event not generated
Generated1Event generated

EVENTS_ENDRX

Address offset: 0x110

Receive buffer is filled up

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDRXReceive buffer is filled up
NotGenerated0Event not generated
Generated1Event generated

EVENTS_TXDRDY

Address offset: 0x11C

Data sent from TXD

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_TXDRDYData sent from TXD
NotGenerated0Event not generated
Generated1Event generated

EVENTS_ENDTX

Address offset: 0x120

Last TX byte transmitted

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDTXLast TX byte transmitted
NotGenerated0Event not generated
Generated1Event generated

EVENTS_ERROR

Address offset: 0x124

Error detected

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ERRORError detected
NotGenerated0Event not generated
Generated1Event generated

EVENTS_RXTO

Address offset: 0x144

Receiver timeout

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RXTOReceiver timeout
NotGenerated0Event not generated
Generated1Event generated

EVENTS_RXSTARTED

Address offset: 0x14C

UART receiver has started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_RXSTARTEDUART receiver has started
NotGenerated0Event not generated
Generated1Event generated

EVENTS_TXSTARTED

Address offset: 0x150

UART transmitter has started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_TXSTARTEDUART transmitter has started
NotGenerated0Event not generated
Generated1Event generated

EVENTS_TXSTOPPED

Address offset: 0x158

Transmitter stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_TXSTOPPEDTransmitter stopped
NotGenerated0Event not generated
Generated1Event generated

PUBLISH_CTS

Address offset: 0x180

Publish configuration for event CTS

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event CTS will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_NCTS

Address offset: 0x184

Publish configuration for event NCTS

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event NCTS will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_RXDRDY

Address offset: 0x188

Publish configuration for event RXDRDY

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXDRDY will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_ENDRX

Address offset: 0x190

Publish configuration for event ENDRX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ENDRX will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_TXDRDY

Address offset: 0x19C

Publish configuration for event TXDRDY

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXDRDY will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_ENDTX

Address offset: 0x1A0

Publish configuration for event ENDTX

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ENDTX will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_ERROR

Address offset: 0x1A4

Publish configuration for event ERROR

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event ERROR will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_RXTO

Address offset: 0x1C4

Publish configuration for event RXTO

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXTO will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_RXSTARTED

Address offset: 0x1CC

Publish configuration for event RXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event RXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_TXSTARTED

Address offset: 0x1D0

Publish configuration for event TXSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_TXSTOPPED

Address offset: 0x1D8

Publish configuration for event TXSTOPPED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event TXSTOPPED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDDC
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
CRWENDRX_STARTRXShortcut between event ENDRX and task STARTRX
Disabled0Disable shortcut
Enabled1Enable shortcut
DRWENDRX_STOPRXShortcut between event ENDRX and task STOPRX
Disabled0Disable shortcut
Enabled1Enable shortcut

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCTSEnable or disable interrupt for event CTS
Disabled0Disable
Enabled1Enable
BRWNCTSEnable or disable interrupt for event NCTS
Disabled0Disable
Enabled1Enable
CRWRXDRDYEnable or disable interrupt for event RXDRDY
Disabled0Disable
Enabled1Enable
DRWENDRXEnable or disable interrupt for event ENDRX
Disabled0Disable
Enabled1Enable
ERWTXDRDYEnable or disable interrupt for event TXDRDY
Disabled0Disable
Enabled1Enable
FRWENDTXEnable or disable interrupt for event ENDTX
Disabled0Disable
Enabled1Enable
GRWERROREnable or disable interrupt for event ERROR
Disabled0Disable
Enabled1Enable
HRWRXTOEnable or disable interrupt for event RXTO
Disabled0Disable
Enabled1Enable
IRWRXSTARTEDEnable or disable interrupt for event RXSTARTED
Disabled0Disable
Enabled1Enable
JRWTXSTARTEDEnable or disable interrupt for event TXSTARTED
Disabled0Disable
Enabled1Enable
LRWTXSTOPPEDEnable or disable interrupt for event TXSTOPPED
Disabled0Disable
Enabled1Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCTSWrite '1' to enable interrupt for event CTS
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWNCTSWrite '1' to enable interrupt for event NCTS
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWRXDRDYWrite '1' to enable interrupt for event RXDRDY
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDRXWrite '1' to enable interrupt for event ENDRX
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWTXDRDYWrite '1' to enable interrupt for event TXDRDY
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWENDTXWrite '1' to enable interrupt for event ENDTX
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
GRWERRORWrite '1' to enable interrupt for event ERROR
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWRXTOWrite '1' to enable interrupt for event RXTO
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWRXSTARTEDWrite '1' to enable interrupt for event RXSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
JRWTXSTARTEDWrite '1' to enable interrupt for event TXSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
LRWTXSTOPPEDWrite '1' to enable interrupt for event TXSTOPPED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDLJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCTSWrite '1' to disable interrupt for event CTS
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWNCTSWrite '1' to disable interrupt for event NCTS
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWRXDRDYWrite '1' to disable interrupt for event RXDRDY
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDRXWrite '1' to disable interrupt for event ENDRX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWTXDRDYWrite '1' to disable interrupt for event TXDRDY
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
FRWENDTXWrite '1' to disable interrupt for event ENDTX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
GRWERRORWrite '1' to disable interrupt for event ERROR
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
HRWRXTOWrite '1' to disable interrupt for event RXTO
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
IRWRXSTARTEDWrite '1' to disable interrupt for event RXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
JRWTXSTARTEDWrite '1' to disable interrupt for event TXSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
LRWTXSTOPPEDWrite '1' to disable interrupt for event TXSTOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

ERRORSRC

Address offset: 0x480

Error source

This register is read/write one to clear.

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1C
OVERRUN

Overrun error

A start bit is received while the previous data still lies in RXD. (Previous data is lost.)

NotPresent0Read: error not present
Present1Read: error present
BRW
W1C
PARITY

Parity error

A character with bad parity is received, if HW parity check is enabled.

NotPresent0Read: error not present
Present1Read: error present
CRW
W1C
FRAMING

Framing error occurred

A valid stop bit is not detected on the serial data input after all bits in a character have been received.

NotPresent0Read: error not present
Present1Read: error present
DRW
W1C
BREAK

Break condition

The serial data input is '0' for longer than the length of a data frame. (The data frame length is 10 bits without parity bit, and 11 bits with parity bit).

NotPresent0Read: error not present
Present1Read: error present

ENABLE

Address offset: 0x500

Enable UART

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLEEnable or disable UARTE
Disabled0Disable UARTE
Enabled8Enable UARTE

PSEL.RTS

Address offset: 0x508

Pin select for RTS signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.TXD

Address offset: 0x50C

Pin select for TXD signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.CTS

Address offset: 0x510

Pin select for CTS signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.RXD

Address offset: 0x514

Pin select for RXD signal

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

BAUDRATE

Address offset: 0x524

Baud rate. Accuracy depends on the HFCLK source selected.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0400000000000100000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWBAUDRATEBaud rate
Baud12000x0004F0001200 baud (actual rate: 1205)
Baud24000x0009D0002400 baud (actual rate: 2396)
Baud48000x0013B0004800 baud (actual rate: 4808)
Baud96000x002750009600 baud (actual rate: 9598)
Baud144000x003AF00014400 baud (actual rate: 14401)
Baud192000x004EA00019200 baud (actual rate: 19208)
Baud288000x0075C00028800 baud (actual rate: 28777)
Baud312500x0080000031250 baud
Baud384000x009D000038400 baud (actual rate: 38369)
Baud560000x00E5000056000 baud (actual rate: 55944)
Baud576000x00EB000057600 baud (actual rate: 57554)
Baud768000x013A900076800 baud (actual rate: 76923)
Baud1152000x01D60000115200 baud (actual rate: 115108)
Baud2304000x03B00000230400 baud (actual rate: 231884)
Baud2500000x04000000250000 baud
Baud4608000x07400000460800 baud (actual rate: 457143)
Baud9216000x0F000000921600 baud (actual rate: 941176)
Baud1M0x100000001 megabaud

RXD

RXD EasyDMA channel

RXD.PTR

Address offset: 0x534

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTR

Data pointer

See the memory chapter for details about which memories are available for EasyDMA.

RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[1..0x1FFF]Maximum number of bytes in receive buffer

RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAMOUNT[1..0x1FFF]Number of bytes transferred in the last transaction

TXD

TXD EasyDMA channel

TXD.PTR

Address offset: 0x544

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTR

Data pointer

See the memory chapter for details about which memories are available for EasyDMA.

TXD.MAXCNT

Address offset: 0x548

Maximum number of bytes in transmit buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[1..0x1FFF]Maximum number of bytes in transmit buffer

TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAMOUNT[1..0x1FFF]Number of bytes transferred in the last transaction

CONFIG

Address offset: 0x56C

Configuration of parity and hardware flow control

Bit number313029282726252423222120191817161514131211109876543210
IDCBBB
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RWHWFCHardware flow control
Disabled0Disabled
Enabled1Enabled
BRWPARITYParity
Excluded0x0Exclude parity bit
Included0x7Include even parity bit
CRWSTOPStop bits
One0One stop bit
Two1Two stop bits

Electrical specification

UARTE electrical specification

SymbolDescriptionMin.Typ.Max.Units
fUARTEBaud rate for UARTE1.1000kbps
tUARTE,CTSHCTS high time1µs
tUARTE,STARTTime from STARTRX/STARTTX task to transmission started0.25µs
1 High baud rates may require GPIOs to be set as High Drive, see GPIO chapter for more details.