User`s manual
About the X5 XMC Modules
Use the baseboard
IdRom()
method to obtain a reference to the internally-managed
IUsesPmcEeprom
object, as shown
below:
// Open the module
Innovative::X5_400M Module;
Module.Target(0);
Module.Open();
// Create a 50-32-bit-word section at offset zero in ROM user space
PmcIdromSection Section1(Module.IdRom().Rom(), PmcIdrom::waUser, 0, 50);
// Create a 50-32-bit-word section at offset 50 in ROM user space
PmcIdromSection Section2(Module.IdRom().Rom(), PmcIdrom::waUser, 50, 50);
// Write to ROM
for (int i = 0; i < 50; ++i)
Section1.AsInt(i, i*2);
Section1.StoreToRom();
for (int i = 50; i < 100; ++i)
Section2.AsFloat(i, static_cast<float>(i*2));
Section2.StoreToRom();
// Read from ROM
Section1.LoadFromRom();
for (int i = 0; i < 50; ++i)
int x = Section1.AsInt(i);
Section2.LoadFromRom();
for (int i = 50; i < 100; ++i)
float x = Section2.AsFloat(i);
Digital
I/O
The X5 series has a digital I/O port accessible over the P16 connector that provides basic bit I/O. The port provides 16 bits of I/
O that may be used as inputs or outputs. The port is configured and accesses directly from the PCI Express host. For more
advanced applications, the digital I/O port may be reconfigured in custom logic applications for a variety purposes since it is
provides direct connections to the applicant FPGA. The port pins use 3.3V LVTTL signaling.
The
DIO
port
is
presented
on
P16.
See
the
connectors section of this chapter
the
connector
pin out and information about the
connector.
Software
Support
The
digital
I/O
hardware
is
controlled
by
the
IUsesDioPort
class.
Its
properties:
Table 9.
IUsesDioPort
Class
Operations
Function Type Description
DioPortConfig() Property Configures banks of bits for input or output
X5-GSPS User's Manual 35