UART receive

Block to receive a byte from the UART interface

Description

The block can be used to read the next byte from the UART reception buffer. Optionally, a status output can be enabled.

Parameters
Channel
Select the UART channel
Use status output
Enables/disables the status output port of the block.
Sample time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.
Output1

This output holds the value of the byte that was read from the reception buffer.
The used datatype is 8-bit unsigned.

Output2

If this output has a value of 0, no byte was read from the reception buffer because it was empty.
The used datatype is boolean.