Configured For Mode 2; Figure B-11. Port C Pin Assignments On I/O Connector When Port C Is Configured For Mode 2 - National Instruments PCI-DIO-96 User Manual

96-bit and 24-bit parallel digital i/o interface for pci, pxi, and compactpci
Hide thumbs Also See for PCI-DIO-96:
Table of Contents

Advertisement

Appendix B
Register-Level Programming — Port C Status-Word Bit Definitions for Bidirectional Data Path (Port A Only)
Figure B-11 shows the port C pin assignments on the digital I/O connector when port C is
configured for mode 2. Notice that the port C status word does not include the status of
STBA* or the status of ACKA*.

Figure B-11. Port C Pin Assignments on I/O Connector when Port C is Configured for Mode 2

Mode 2 Bidirectional Bus Programming Example
The following example shows how to configure PPI A for mode 2 input and output.
Write (8255Cnfg, 0xC0)
Write (8255Cnfg, 0x09)
Write (8255Cnfg, 0x0D)
Loop until the INTRA (PC3) status flag is set, indicating the 82C55
If IBFA (PC5) is set, read (PortA)If input buffer is full, read data
If OBFA* (PC7) is set,
write (PortA, data)
PCI-DIO-96/PXI-6508/PCI-6503 User Manual
Group A
Group B
# The three port C lines associated with group B function based on the
mode selected for group B; that is, if group B is configured for mode 0,
PC<2..0> function as general-purpose I/O, but if group B is configured
for mode 1 input or output, PC<2..0> function as handshaking lines as
shown in the preceding mode 1 sections.
PC7
OBFA*
PC6
ACKA*
PC5
IBFA
PC4
STBA*
PC3
INTRA
PC2
#
PC1
#
PC0
#
Set mode 2—port A is bidirectional
Set PC4 to enable the INTRA status
flag for input
Set PC6 to enable the INTRA status
flag for output
is ready for a transfer
If output buffer is not full, write
data
B-28
ni.com

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-6503Pxi-6508

Table of Contents