RS-232/422/485 Read Int(errupt) Status
Simulink® Real-Time™ Library for RS-232
The Read Interrupt Status block reads the interrupt status for the boards in the system.
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 output for this block is a vector with one 32-bit element for each port. Each element contains two pieces of information for that port, where the four bytes are
[0, 0, IIR, Reason]
The Read Interrupt Status block has signal output with the following format:
This output is a vector of integers. The values in the reason byte and their definitions are
0 — This UART did not cause this interrupt.
1 — Receive characters are available.
2 — Transmit holding register is empty.
3 — Modem status has changed (ignored).
This second byte is the value read from the Interrupt Reason Register (IIR). This register is specific to the 16450, 16550, and 16750 types of UARTs. Several bites in this register indicate the active FIFO depth and the maximum number of characters that can be written in the transmitter empty interrupt handlers to the transmit FIFO.
Enter the base address of the first UART for which you want to read the interrupt status.
Enter the base address of the second UART for which you want to read the interrupt status.
If only one board of this type is in the target computer, enter
automatically locate the board.
If two or more boards of this type are in the target computer,
enter the bus number and the PCI slot number of the board associated
with this driver block. Use the format
To determine the bus number and the PCI slot number, type:
tg = slrt; getPCIInfo(tg, 'installed')
These parameters contain the address of the port for which you want to read the interrupt status.
Starting from the First port address parameter value you select in the Parameter Group: Board Setup dialog of the Send/Receive block, the subsequent parameters contain the incremental port addresses.
These parameters contain the addresses of the ports for which you want to read the interrupt status.
Starting from the Base address parameter value in the Parameter Group: Board Setup dialog of the Send/Receive block, the subsequent parameters contain the incremental port addresses.
This parameter contains the address for the interrupt status. This parameter derives from the configurations you define in the Parameter Group dialog of the Send/Receive block.