stmpe1600 STMicroelectronics, stmpe1600 Datasheet - Page 16
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
stmpe1600
Manufacturer Part Number
stmpe1600
Description
16-bit Port Expander With Ultra-low Power Consumption Xpander Logictm
Manufacturer
STMicroelectronics
Datasheet
1.STMPE1600.pdf
(26 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
stmpe1600QTR
Manufacturer:
ST
Quantity:
20 000
GPIO controller
8
Note:
16/26
GPIO controller
A total of 16 GPIOs are available in the STMPE1600 port expander IC. The GPIO controller
contains the registers that allow the host system to configure each of the pins into either a
GPIO (input or output), or into one of the alternate functions. Unused GPIOs should be
configured as outputs to minimize the power consumption.
A group of registers are used to control the exact function of each of the 16 GPIOs. The
registers and their respective address are listed in the following table.
Table 8.
Once the last register address 0x16-0x17 location is accessed, the locations of 0x18 to
0xFF are reserved. After 0xFF location, the pointer rolls over to the 0x00 register address
location.
All GPIO registers are named as GPxx, where:
xx represents the functional group.
The function of each bit is shown in the following table:
Table 9.
On power-up reset, all GPIOs are set as input.
IO-15 IO-14 IO-13 IO-12 IO-11 IO-10
GPIO monitor pin state
GPIO set pin state
GPIO set pin direction
GPIO polarity inversion
15
Register name
14
Address
0x10
0x12
0x14
0x16
13
GPIO controller registers
GPIO bit function
12
11
Register name
Reading this bit yields the current state of the bit. Writing has no effect.
Writing ‘1’ to this bit causes the corresponding GPIO to go to ‘1’ state.
Writing ‘0’ to this bit causes the corresponding GPIO to go to ‘0’ state.
‘0’ sets the corresponding GPIO to input state, and ‘1’ sets it to output
state. All bits are ‘0’ on reset.
Writing a ‘1’ enables polarity inversion on the Input Port.
Writing a ‘0’, the input port polarity is retained. The reset value is 0.
10
Doc ID 16938 Rev 1
GPPIR
GPMR
GPDR
GPSR
IO-9
9
IO-8
8
IO-7
7
GPIO monitor pin state
register
GPIO set pin state
register
GPIO set pin direction
register
GPIO polarity inversion
register
IO-6
6
Description
IO-5
5
Function
IO-4
4
IO-3
3
IO-2
(during sequential
2
Auto-increment
R/W)
IO-1
Yes
Yes
Yes
Yes
STMPE1600
1
IO-0
0