RS232 State block
Simulink® Real-Time™ Library for RS-232
The RS232 State block monitors the board state information that is present in the vector coming out of a receive port on a send/receive block.
Note: The Diamond Systems PC/104 boards and blocks will be removed in a future release. Do not use them in new models. Instead, use boards and blocks available from www.speedgoat.com.
The input data vector can be one of
UInt16. If the input vector is
no error status is available and
the Boolean outputs are false. If the input vector is
the upper byte should contain the error status bits from the UART.
This block accumulates errors over the whole input vector. An output error state is true if it is true for any byte in the input vector.
The FIFO Hardware FIFO block puts the UART status
16+32 bit data streams. The RS232 State block
looks at this status. Note that only the FIFO Read block passes this
status information to its output port.
Select this check box to retrieve overrun error output. This output is true if the FIFO in the UART was filled while a character in the input vector was being received.
Select this check box to retrieve parity error output. This output is true if any byte in the input vector fails the parity check.
Select this check box to retrieve framing error output. This output is true if a framing error occurs on any character in this vector. For example, a framing error might occur if the baud rates between the transmitter and receiver do not match.
Select this check box to retrieve break interrupt output. A break interrupt output is not an error, but the UART treats it like an error state. The break condition is detected if the serial line remains at logic 0 (negative voltage) for more than one character time.
For some serial I/O port modules, disconnecting the serial cable does not cause a break.