Embedded Solutions
Page 12
Programming
Programming the PMC-PARALLEL-TTL requires only the ability to read and write data
in the host's PMC space.
Once the initialization process has occurred, and the system has assigned addresses to
the PMC-Parallel-TTL card the software will need to determine what the address space
is for the PCI interface [BAR0]. The offsets in the address table are relative to the
system assigned BAR0 base address.
The next step is to initialize the PMC-Parallel-TTL. If the basic mode of direct read and
write operations is to be used then the default settings can be used except for setting
the master output enable and the direction bits corresponding to the channels to
transmit on.
If COS inputs are to be used the reference and divisor clocks may require programming.
In many cases the default settings will work. In addition the Rising, Falling, and
Interrupt capabilities need to be programmed. Once the settings are in place it is
recommended that the receive state registers are written to for clearing purposes as the
programming steps may cause phantom events to be captured.
For Windows™ systems the Dynamic Driver can be used. The driver will take care of
finding the hardware and provide an easy to use mechanism to program the hardware.
If you are interested in Linux, VxWorks and other OS please contact Dynamic
Engineering.