STMPE1601TBR STMICROELECTRONICS [STMicroelectronics], STMPE1601TBR Datasheet - Page 30

no-image

STMPE1601TBR

Manufacturer Part Number
STMPE1601TBR
Description
16-bit enhanced port expander with keypad and PWM controller Xpander Logic
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STMPE1601TBR
Manufacturer:
st
Quantity:
1 712
Part Number:
STMPE1601TBR
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
STMPE1601TBR
Manufacturer:
ST
0
Part Number:
STMPE1601TBR
Manufacturer:
ST
Quantity:
20 000
GPIO controller
10.1
30/58
GPIO control registers
A group of registers is used to control the exact function of each of the 16 GPIOs.
All the GPIO registers are named as GPxxx_yyy, where:
Table 19.
The function of each bit is shown in the following table:
Table 20.
GPIO monitor pin state
GPIO set pin state
GPIO clear pin state
GPIO set pin direction
GPIO edge detect status
GPIO rising edge
GPIO falling edge
GPIO pull up
GPIO alternate function
(upper bit)
GPIO alternate function
(lower bit)
Register name
GPxxx_msb
GPxxx_lsb
Xxx represents the functional group
Yyy represents the byte position of the GPIO
Lsb registers control GPIO[7:0]
Msb registers control GPIO[8:15]
Bit description
Register description
IO-15
IO-7
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’ has no effect.
Writing ‘1’ to this bit causes the corresponding GPIO to go to ‘0’ state.
Writing ‘0’ has no effect.
‘0’ sets the corresponding GPIO to input state, and ‘1’ sets it to output
state
Set to ‘1’ by hardware when there is a rising/falling edge on the
corresponding GPIO. Writing ‘1’ clears the bit. Writing ‘0’ has no effect.
Set to ‘1’ to enable rising edge detection on the corresponding GPIO.
Set to ‘1’ to enable falling edge detection on the corresponding GPIO.
Set to ‘1’ to enable internal pull-up resistor
‘00’ for primary function
‘01’ for Alternate Function 1
‘10’ for Alternate Function 2
‘11’ - Reserved
7
IO-14
IO-6
6
IO-13
IO-5
5
IO-12
IO-4
4
Function
IO-11
IO-3
3
IO-10
IO-2
2
IO-9
IO-1
1
STMPE1601
IO-0
IO-8
0

Related parts for STMPE1601TBR