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*
Summary of Contents for ITA-5831 Series
Page 10: ...ITA 5831 User Manual x ...
Page 14: ...ITA 5831 User Manual 4 1 5 System Diagram Figure 1 1 ITA 5831 System Diagram ...
Page 16: ...ITA 5831 User Manual 6 ...
Page 17: ...Chapter 2 2 H W Installation Introduction Jumpers and Connectors I O Connectors ...
Page 26: ...ITA 5831 User Manual 16 ...
Page 29: ...19 ITA 5831 User Manual Chapter 3 System Setup Figure 3 2 Mini PCIe Installation ...
Page 34: ...ITA 5831 User Manual 24 Figure 3 10 Battery Module ITA BA61 00A1E ...
Page 37: ...Chapter 4 4 BIOS Settings ...
Page 64: ...ITA 5831 User Manual 54 ...
Page 68: ...ITA 5831 User Manual 58 ...
Page 69: ...59 ITA 5831 User Manual Chapter 5 Driver Installation ...
Page 72: ...ITA 5831 User Manual 62 ...
Page 73: ...Chapter 6 6 GPIO Programming Guide ...
Page 84: ...ITA 5831 User Manual 74 ...
Page 85: ...Appendix A A Watchdog Timer ...
Page 90: ...ITA 5831 User Manual 80 ...
Page 91: ...Appendix B B BSMI RoHS Declaration ...
Page 93: ...Appendix C C Chinese Language Safety Instructions and Battery Information ...