Chapter 4
Register-Level Programming
© National Instruments Corporation
4-3
PC-DIO-24 User Manual
Register Map
The following table lists the address map for the PC-DIO-24. The registers PORTA, PORTB,
PORTC, and CNFG are 8-bit registers in the 82C55A.
Table 4-1. PC-DIO-24 Address Map
Register
Offset Address
(Hex)
Size
Type
PORTA
PORTB
PORTC
CNFG
0x00
0x01
0x02
0x03
8-bit
8-bit
8-bit
8-bit
Read-and-write
Read-and-write
Read-and-write
Write-Only
Note: A number preceded by 0x is a hexadecimal number.
Register Descriptions
Figure 4-1 shows the two control-word formats used to completely program the 82C55A. The
Control Word Flag determines which control-word format is being programmed. When the
Control Word Flag is 1, bits 0 through 6 determine the I/O characteristics of the 82C55A ports
and the mode in which they are operating (that is, mode 0, mode 1, or mode 2). When the
Control Word Flag is 0, bits 3 through 0 determine the bit set/reset format of port C.
Warning:
During programming, note that each time a port is configured, output ports A
and C are reset to 0, and output port B is undefined.
Summary of Contents for PC-DIO-24
Page 51: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 2 National Instruments Corporation...
Page 52: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 3 PC DIO 24 User Manual...
Page 53: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 4 National Instruments Corporation...
Page 54: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 5 PC DIO 24 User Manual...
Page 55: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 6 National Instruments Corporation...
Page 56: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 7 PC DIO 24 User Manual...
Page 57: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 8 National Instruments Corporation...
Page 58: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 9 PC DIO 24 User Manual...
Page 59: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 10 National Instruments Corporation...
Page 60: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 11 PC DIO 24 User Manual...
Page 61: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 12 National Instruments Corporation...
Page 62: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 13 PC DIO 24 User Manual...
Page 63: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 14 National Instruments Corporation...
Page 64: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 15 PC DIO 24 User Manual...
Page 65: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 16 National Instruments Corporation...
Page 66: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 17 PC DIO 24 User Manual...