Mode 1 Strobed Input Programming Example; Mode 1-Strobed Output; Figure 6-3. Port C Pin Assignments On I/O Connector When Port C Configured For Mode 1 Input - National Instruments 6508 PCI-DIO-96 User Manual

A 96-bit parallel digital i/o interface for pci bus computers
Table of Contents

Advertisement

Mode 1–Strobed Output
Note:
© National Instruments Corporation
At the digital I/O connector, port C has the pin assignments shown in
Figure 6-3 when in mode 1 input. Notice that the status of STBA* and
the status of STBB* are not included in the port C status word.
Figure 6-3. Port C Pin Assignments on I/O Connector when Port C Configured

Mode 1 Strobed Input Programming Example

The following example shows how to configure PPI A for mode 1
input.
Write (8255Cnfg, 0xB0)
Loop until IBFA (PC5) is set, indicating that data is
Read (PortA)
For mode 1 examples, you must configure the don't care bits appropriately
in the control word if you want to use the other ports in combination with
the example.
The control word written to the Configuration Register to configure
port A for output in mode 1 is shown in Figure 6-4. You can use bits
PC4 and PC5 of port C as extra input or output lines.
PC7
PC6
Group A
PC5
PC4
PC3
PC2
Group B
PC1
PC0
for Mode 1 Input
Set mode 1—port A is an input.
available in port A to be read
Now, read the data from port A
6-13
Chapter 6
I/O
I/O
IBFA
STBA*
INTRA
STBB*
IBFB
INTRB
PCI-DIO-96 User Manual
Programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-dio-96

Table of Contents