F2838x-M4 UART Receive
Receive data from the Universal Asynchronous Receiver Transmitter (UART) port
Embedded Coder Support Package for Texas Instruments C2000 Processors / F2838x / M4
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.
Data — UART receive data
vector | scalar
Outputs the data read from the UART port.
Status — UART receive status
0 | 1 | 2 | 3 | 4 | 8
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.
Additional package header — Prefix header
Specify the additional package header to use as the prefix before the data packet to synchronize the data packets.
Additional package terminator — Suffix terminator
Specify the additional package terminator to use as the suffix after the data packet to synchronize the data packets.
Data type — Type of data to be received
uint8 (default) |
Select the output data type.
Data length — Size of data to be received
1 (default) | positive integer
Specify the data length to receive.
Enable blocking mode — Enable blocking mode for data transmission
off (default) | on
Enabling this option ensures that the FIFO buffer is checked for data availability before receiving the data.
Sample time — Interval at which block reads data
Specify the sample time for receiving data. To execute this block asynchronously, set Sample Time to -1.