Documentation

RS232 State (Composite)

RS232 State block

Library

Simulink® Real-Time™ Library for RS-232

Description

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.

The input data vector can be one of Int8, UInt8, Int16, or UInt16. If the input vector is Int8 or UInt8, no error status is available and the Boolean outputs are false. If the input vector is Int16 or UInt16, 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 in 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.

Block Parameters

Overrun error output

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.

Parity error output

Select this check box to retrieve parity error output. This output is true if any byte in the input vector fails the parity check.

Framing error output

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.

Break interrupt output

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.

    Note:   For some serial I/O port modules, disconnecting the serial cable does not cause a break.

Was this topic helpful?