User's Manual

Chapter 4 Register-Level Programming
© National Instruments Corporation 4-27 Lab-NB User Manual
Port B Register
Reading the Port B Register returns the logic state of the eight digital I/O lines constituting port
B, that is, PB<0..7>. If port B is configured for output, the Port B Register can be written to in
order to control the eight digital I/O lines constituting port B. See Programming the Digital I/O
Circuitry later in this chapter for information on how to configure port B for input or output.
Address: Slot starting address + 5 0010 (hex)
Type: Read-and-write
Word Size: 8-bit
Bit Map:
76543210
D7 D6 D5 D4 D3 D2 D1 D0
Bit Name Description
7–0 D<7..0> Data Bit—8-bit port B data.