| Contents | Index |
xPC Target Library for RS232
The Read Interrupt Status block reads the interrupt status for the boards in the system. 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 hardware FIFO depth and the maximum number of characters that can be written in the transmitter empty interrupt handlers to the transmit hardware 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 PC, enter
-1
to automatically locate the board.
If two or more boards of this type are in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type
getxpcpci
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.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |