| Contents | Index |
xPC Target Library for RS232
The Read Hardware FIFO block reads characters from the hardware FIFO in the UART. It then outputs those characters as the low-order byte of an unsigned 32-bit integer vector with a width of 65. This output vector is large enough to hold the maximum number of characters that the hardware FIFO can hold. The first element of the vector specifies the number of data elements in the remainder of the vector.
If the input to the enable port (input port, labeled E) is not true, this block outputs a 0 length vector. The following illustrates the vector.

The UART error status can contain one of the following error values:
0x02 — Overrun error
0x04 — Parity error
0x08 — Framing error
0x01 — Break interrupt
The data byte ranges from 0 to 255.
The dialog box for the RS-232 FIFO Read block contains the following fields:
From the list, choose a port. This block reads the hardware FIFO from this port.
Select this check box to flush the hardware FIFO when the device starts up.
Enter the base address of the UART for which you want to read the hardware FIFO.
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

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 |