Main Content

F2838x-M4 UART Receive

Receive data from the Universal Asynchronous Receiver Transmitter (UART) port

Since R2020a

  • F2838x-M4 UART Receive block

C2000 Microcontroller Blockset / F2838x / M4
C2000 Microcontroller Blockset / F28M35x / M3
C2000 Microcontroller Blockset / F28M36x / M3


Receive serial data from the Universal Asynchronous Receiver/ Transmitter (UART) port.

You can specify the ASCII characters for packaging your data with the additional package header and terminator. You can specify the data type and the data length that you want to receive using the block.

DMA interrupt will be used in the background for Data transfer from Receive FIFO to buffer. UART_DMARx interrupt will be triggered when any data will be received in the FIFO.



expand all

Outputs the data read from the UART port.

The status port outputs one of these values:

  • 0 — represents no error in data reception

  • 1 — represents frame error

  • 2 — represents parity error

  • 3 — represents data synchronization error

  • 4 — represents a break in the data reception

  • 8 — represents an overrun error.


expand all

Specify the additional package header to use as the prefix before the data packet to synchronize the data packets.

Specify the additional package terminator to use as the suffix after the data packet to synchronize the data packets.

Select the output data type.

Specify the data length to receive.

Enabling this option ensures that the FIFO buffer is checked for data availability before receiving the data.

Specify the sample time for receiving data. To execute this block asynchronously, set Sample Time to -1.

Version History

Introduced in R2020a