![National Instruments Lab-PC+ User Manual Download Page 188](http://html.mh-extra.com/html/national-instruments/lab-pc/lab-pc_user-manual_709718188.webp)
Register-Level Programming
Appendix E
Lab-PC+ User Manual
E-32
© National Instruments Corporation
Port B direction
1 = input
0 = output
Group B Mode
0 = Mode 0
1 = Mode 1
1
X
X
1/0
1
1/0
X
1/0
7
6
5
4
3
2
1
0
Port C bits (PC2-PC0)
1 = input
0 = output
During a Mode 2 data transfer, the status of the handshaking lines and interrupt signals can be
obtained by reading Port C. The Port C status-word bit definitions for a Mode 2 transfer are
shown next.
Port C status-word bit definitions for bidirectional data path (Port A only):
7
6
5
4
3
2
1
0
OBFA*
INTE1
IBFA
INTE2
INTRA
I/O
I/O
I/O
Bit
Name
Description
7
OBFA*
Output buffer full. Low indicates that the CPU has written data out
to Port A.
6
INTE1
Interrupt enable bit for output. If this bit is set, interrupts are
enabled from the 8255A for OBF*. Controlled by bit set/reset of
PC6.
5
IBFA
Input buffer full. High indicates that data has been loaded into the
input latch of Port A.
4
INTE2
Interrupt enable bit for input. If this bit is set, interrupts are
enabled from the 8255A for IBF. Controlled by bit set/reset of
PC4.
3
INTRA
Interrupt request status. If INTE1 is high and IBFA is high, this bit
is high, indicating that an interrupt request is asserted for input
transfers. If INTE2 is high and OBFA* is high, this bit is high,
indicating that an interrupt request is asserted for output transfers.
2-0
I/O
Extra I/O status lines available if Port B is not configured for
Mode 1.
Summary of Contents for Lab-PC+
Page 89: ......
Page 90: ......
Page 91: ......
Page 92: ......
Page 93: ......
Page 94: ......
Page 95: ......
Page 96: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 101: ......
Page 102: ......
Page 103: ......
Page 104: ......
Page 105: ......
Page 106: ......
Page 107: ......
Page 108: ......
Page 109: ......
Page 110: ......
Page 111: ......
Page 112: ......
Page 113: ......
Page 114: ......
Page 115: ......
Page 116: ......