67
ITA-5831 User Manual
Chapter 6
G
PIO Programming
Guide
6.2.4
PCA9554 Register 2 – Polarity Inversion Register
This register allows users to invert the polarity of the input port register data. If a bit in
this register is set (write with “1”), the corresponding input port data is inverted. If a bit
in this register is cleared (write with “0”), the input port data polarity is retained.
If one GPIO pin is set to input, you can control the polarity of input pin from the bit
that corresponds to Register 2.
6.2.5
PCA9554 Register 3 – Configuration Register
This register configures the directions of the I/O pins. If a bit in this register is set, the
corresponding port pin is enabled as an input with a high-impedance output driver. If
a bit in this register is cleared, the corresponding port pin is enabled as an output.
Upon reset, the I/Os are configured as inputs with a weak pull-up to VDD.
Register 3 is used to set each GPIO as input or output:
If the bit is “0”, the corresponding GPIO pin is set as output.
If the bit is “1”, the corresponding GPIO pin is set as input.
Table 6.6: Register 2 Bit Description
Bit
Symbol Access
Value Description
7
N7
R/W
0*
Invert polarity of input port register data
6
N6
R/W
0*
5
N5
R/W
0*
0= Input port register data retained (default)
4
N4
R/W
0*
3
N3
R/W
0*
1= Input port register data inverted
2
N2
R/W
0*
1
N1
R/W
0*
0
N0
R/W
0*
Table 6.7: Register 2 Bit Description
Bit
Symbol Access
Value
Description
7
C7
R/W
1*
Configures the direction of the I/O pins
6
C6
R/W
1*
5
C5
R/W
1*
0= Corresponding port pin is enabled as an output
4
C4
R/W
1*
3
C3
R/W
1*
1= Corresponding port pin is enabled as an input
(default)
2
C2
R/W
1*
1
C1
R/W
1*
0
C0
R/W
1*
Содержание ITA-5831 Series
Страница 10: ...ITA 5831 User Manual x ...
Страница 11: ...Chapter 1 1 Overview Introduction Specifications Power Information Environmental Specifications System Diagram ...
Страница 14: ...ITA 5831 User Manual 4 1 5 System Diagram Figure 1 1 ITA 5831 System Diagram ...
Страница 16: ...ITA 5831 User Manual 6 ...
Страница 17: ...Chapter 2 2 H W Installation Introduction Jumpers and Connectors I O Connectors ...
Страница 26: ...ITA 5831 User Manual 16 ...
Страница 29: ...19 ITA 5831 User Manual Chapter 3 System Setup Figure 3 2 Mini PCIe Installation ...
Страница 32: ...ITA 5831 User Manual 22 Figure 3 6 Easy Swap Module Installation 2 Figure 3 7 COM Module ITA EM SR61 001AE ...
Страница 34: ...ITA 5831 User Manual 24 Figure 3 10 Battery Module ITA BA61 00A1E ...
Страница 37: ...Chapter 4 4 BIOS Settings ...
Страница 64: ...ITA 5831 User Manual 54 ...
Страница 68: ...ITA 5831 User Manual 58 ...
Страница 69: ...59 ITA 5831 User Manual Chapter 5 Driver Installation ...
Страница 72: ...ITA 5831 User Manual 62 ...
Страница 73: ...Chapter 6 6 GPIO Programming Guide ...
Страница 84: ...ITA 5831 User Manual 74 ...
Страница 85: ...Appendix A A Watchdog Timer ...
Страница 90: ...ITA 5831 User Manual 80 ...
Страница 91: ...Appendix B B BSMI RoHS Declaration ...
Страница 93: ...Appendix C C Chinese Language Safety Instructions and Battery Information ...
Страница 95: ...85 ITA 5831 User Manual Appendix C Chinese Language Safety Instructions and Battery Information ...