xPC Target | ![]() ![]() |
PCI Bus I/O Devices
The xPC Target I/O library supports I/O boards with a PCI bus. During the boot process, the BIOS creates a conflict-free configuration of base addresses and interrupt lines for all PCI devices in the target system. The user does not need to define any base address information in the dialog boxes of the drivers.
All PCI device driver blocks have an additional entry in their dialog boxes. This entry is called PCI Slot (-1 Autodetect)
and allows you to use several identical PCI boards within one target system. This entry uses a default value of -1,
which allows the driver to search the entire PCI bus to find the board. When more than one board of the same type is found, it is necessary for you to use a designated slot number and avoid the use of autodetection. For manually setting the slot number you use a number greater than or equal to 0. If the board is not able to locate this slot in the target PC, your target application will generate an error message after downloading.
If this additional entry is set to any value equal to or greater than 0
, you must be aware of the manufacturer's identification number (Vendor ID) and the board identification number (Device ID) of those boards supported by the
I/O library. When the target is booted, the BIOS is executed and the target PC monitor shows parameters for any PCI boards installed on the target PC. An example is shown below:
In this example, the third line indicates the location of the ComputerBoards PCI-DIO48 board. This is known since the ComputerBoards Vendor ID is 0x1307
and the Device ID is 0xb
. In this case, you now can see that the ComputerBoards board is plugged into the PCI slot 11 (Device No.), and that this value must be entered in the dialog box entry in your I/O device driver for each model that uses this I/O device.
![]() | ISA Bus I/O Devices | xPC Target I/O Driver Structures | ![]() |