Skip to Main Content Skip to Search
Product Documentation

RS-232/422/485 Write Hardware FIFO (Composite) - RS-232/422/485 Write Hardware FIFO block

Library

xPC Target Library for RS232

Description

The Write Hardware FIFO block writes the data from the input port (labeled E) to the hardware FIFO in the UART for this port. The following pseudocode describes the behavior of this FIFO.

if (enable is false)
     return
else
{
     if (input data empty)
          disable transmitter buffer empty interrupt
          return
     else
          copy input data to HW FIFO
}

Block Parameters

Base address (Mainboard, ISA boards)

Enter the base address of the UART for which you want to write the hardware FIFO.

For Diamond-MM-8 boards, this block uses the base address you enter for the Send/Receive block.

Port

From the list, choose a port. This is the port to which this block writes data.

Assert on Transmit (RS-422/485 boards)

Select None, RTS, or DTR. The board asserts either no bit, the RTS bit, or the DTR bit in the modem control register upon data transmission.

For half duplex operation, set the jumper on the board to send either RTS or DTR signals to the transmit enable gate. See the board documentation for further information.

PCI Slot (PCI boards)

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
  


Related Products & Applications

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