CP2120EK Silicon Laboratories Inc, CP2120EK Datasheet - Page 19

KIT EVAL FOR CP2120

CP2120EK

Manufacturer Part Number
CP2120EK
Description
KIT EVAL FOR CP2120
Manufacturer
Silicon Laboratories Inc
Datasheets

Specifications of CP2120EK

Main Purpose
Interface, SPI to I²C
Utilized Ic / Part
CP2120
Processor To Be Evaluated
CP2120
Interface Type
SPI
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Secondary Attributes
-
Embedded
-
Primary Attributes
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
336-1325
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.4
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 CP2120EK