cp2120 Silicon Laboratories, cp2120 Datasheet - Page 19

no-image

cp2120

Manufacturer Part Number
cp2120
Description
Single Chip Spi To I2c Transfer Integrated Clock; No External Clock Required On-chip Voltage Monitor
Manufacturer
Silicon Laboratories
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cp2120-GM
Manufacturer:
AMS
Quantity:
195
Part Number:
cp2120-GMR
Manufacturer:
PANASONIC
Quantity:
12 500
7. Port I/O
The CP2120 offers eight general-purpose port pins that can be configured as output, input, or quasi-bidirectional
output by writing to the internal registers, IOCONFIG and IOCONFIG2. Pin state can be updated by writing to the
internal register, IOSTATE. Reading the IOSTATE Internal Register will return the current values of each port pin.
The port pin, EINT, can be configured as an edge-triggered interrupt source by writing to the EDGEINT Internal
Register. The EIT bit sets the interrupt to trigger upon a 0 to 1 or a 1 to 0 logic change on the pin. The bit, EIE,
enables the pin as an interrupt source.
Once the interrupt has been configured and enabled, the CP2120 will pull the INT pin low when the port pin's logic
value switches to “1'” or “0”, depending on the interrupt configuration specified in the EIT bit. When an interrupt is
triggered, EIF in the EDGEINT Internal Register is set. Reading from EDGEINT will clear the EIF bit.
Internal Register Address:
PCIO3.1
R/W
Bit 7
Reset Value:
Internal Register Definition 7. IOCONFIG: Port I/O Configuration
Bit 7-6:
Bit 5-4:
Bit 3-2:
Bit 1-0:
These bits select the port state for GPIO pins 3 through 0.
PCIO3.0
R/W
Bit 6
0x00
0x00
PCIO3.1-PCIO3.0: Port Configuration for GPIO Pin 3
PCIO2.1-PCIO2.0: Port Configuration for GPIO Pin 2
PCIO1.1-PCIO1.0: Port Configuration for GPIO Pin 1
PCIO0.1-PCIO0.0: Port Configuration for GPIO Pin 0
PCIO2.1
PCIOx.1
Bit 5
R/W
0
0
1
1
PCIO2.0
PCIOx.0
R/W
Bit 4
0
1
0
1
Rev. 0.3
PCIO1.1
Open Drain Output
Input Only
Push-Pull Output
Input Only
GPIO Pin x Mode
R/W
Bit3
PCIO1.0
Bit 2
R/W
PCIO0.1
R/W
Bit 1
PCIO0.0
CP2120
R/W
Bit 0
19

Related parts for cp2120