![background image](http://html1.mh-extra.com/html/national-instruments/pc-dio-24/pc-dio-24_user-manual_3505829035.webp)
Chapter 4
Register-Level Programming
© National Instruments Corporation
4-5
PC-DIO-24 User Manual
Table 4-2. Port C Set/Reset Control Words
Number
Bit Set
Bit Reset
Bit Set or
Control Word
Control Word
Reset in Port C
0
0xxx0001
0xxx0000
xxxxxxxn
1
0xxx0011
0xxx0010
xxxxxxnx
2
0xxx0101
0xxx0100
xxxxxnxx
3
0xxx0111
0xxx0110
xxxxnxxx
4
0xxx1001
0xxx1000
xxxnxxxx
5
0xxx1011
0xxx1010
xxnxxxxx
6
0xxx1101
0xxx1100
xnxxxxxx
7
0xxx1111
0xxx1110
nxxxxxxx
Programming Considerations
Mode 0–Basic I/O
Mode 0 can be used for simple I/O functions for each of the three ports with no handshaking.
Each port can be assigned as an input or an output port. The 16 possible I/O configurations are
shown in Table 4-3. Notice that bit 7 of the control word is set when programming the mode of
operation for each port.
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...