XRA1202/1202P
7
REV. 1.0.1
8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET
1.2 Interrupts
The table below summarizes the interrupt behavior of the different register settings for the XRA1202/1202P.
T
ABLE
3: I
NTERRUPT
G
ENERATION
AND
C
LEARING
GCR
B
IT
IER
B
IT
REIR
B
IT
FEIR
B
IT
IFR
B
IT
I
NTERRUPT
G
ENERATED
B
Y
: I
NTERRUPT
C
LEARED
B
Y
:
1 0 X X X No interrupts enabled (default) N/A
1 1 0 0
0 A rising or falling edge on the input Reading the GSR register or if the input
changes back to its previous state (state of
input during last read to GSR)
1 A rising or falling edge on the input and
remains in the new state for more than
1075ns
1 1 1 0
0 A rising edge on the input Reading the GSR register
1 A rising edge on the input and remains high
for more than 1075ns
1 1 0 1
0 A falling edge on the input Reading the GSR register
1 A falling edge on the input and remains low
for more than 1075ns
1 1 1 1
0 A rising or falling edge on the input Reading the GSR register
1 A rising or falling edge on the input and
remains in the new state for more than
1075ns
0 x x x x No interrupts in output mode N/A
XRA1202/1202P
8
8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET
REV. 1.0.1
2.0 REGISTER DESCRIPTION
2.1 GPIO State Register (GSR) - Read-Only
The status of P7 - P0 can be read via this register. A read will show the current state of these pins (or the
inverted state of these pins if enabled via the PIR Register). Reading this register will clear an input interrupt
(see Table 3 for complete details). Reading this register will also return the last value written to the OCR
register for any pins that are configured as outputs (ie. this is not the same as the state of the actual output pin
since the output pin can be in three-state mode). A write to this register has no effect. The MSB of this register
corresponds with P7 and the LSB of this register corresponds with P0.
2.2 Output Control Register (OCR) - Read/Write
When P7 - P0 are defined as outputs, they can be controlled by writing to this register. Reading this register
will return the last value written to it, however, this value may not be the actual state of the output pin since
these pins can be in three-state mode. The MSB of this register corresponds with P7 and the LSB of this
register corresponds with P0.
2.3 Input Polarity Inversion Register (PIR) - Read/Write
When P7 - P0 are defined as inputs, this register inverts the polarity of the input value read from the Input Port
Register. If the corresponding bit in this register is set to ’1’, the value of this bit in the GSR Register will be the
inverted value of the input pin. If the corresponding bit in this register is set to ’0’, the value of this bit in the
GSR Register will be the actual value of the input pin. The MSB of this register corresponds with P7 and the
LSB of this register corresponds with P0.
2.4 GPIO Configuration Register (GCR) - Read/Write
This register configures the GPIOs as inputs or outputs. After power-up and reset, the GPIOs are inputs.
Setting these bits to ’0’ will enable the GPIOs as outputs. Setting these bits to ’1’ will enable the GPIOs as
inputs. The MSB of this register corresponds with P7 and the LSB of this register corresponds with P0.
2.5 Input Internal Pull-up Enable/Disable Register (PUR) - Read/Write
This register enables/disables the internal pull-up resistors for an input. After power-up and reset, the internal
pull-up resistors are disabled for the XRA1202. Writing a ’1’ to these bits will enable the internal pull-up
resistors. After power-up and reset, the internal pull-up resistors are enabled for the XRA1202P. Writing a ’0’
to these bits will disable the internal pull-up resistors. The MSB of this register corresponds with P7 and the
LSB of this register corresponds with P0.
2.6 Input Interrupt Enable Register (IER) - Read/Write
This register enables/disables the interrupts for an input. After power-up and reset, the interrupts are disabled.
Writing a ’1’ to these bits will enable the interrupt for the corresponding input pins. See Table 3 for complete
details of the interrupt behavior for various register settings. No interrupts are generated for outputs when GCR
bit is 0. The MSB of this register corresponds with P7 and the LSB of this register corresponds with P0.
2.7 Output Three-State Control Register (TSCR) - Read/Write
This register can enable/disable the three-state mode of an output. Writing a ’1’ to these bits will enable the
three-state mode for the corresponding output pins. The MSB of this register corresponds with P7 and the LSB
of this register corresponds with P0.
2.8 Input Interrupt Status Register (ISR) - Read-Only
This register reports the input pins that have generated an interrupt. See Table 3 for complete details of the
interrupt behavior for various register settings. The MSB of this register corresponds with P7 and the LSB of
this register corresponds with P0.
XRA1202/1202P
9
REV. 1.0.1
8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET
2.9 Input Rising Edge Interrupt Enable Register (REIR) - Read/Write
Writing a ’1’ to these bits will enable the corresponding input to generate an interrupt on the rising edge. See
Table 3 for complete details of the interrupt behavior for various register settings. The MSB of this register
corresponds with P7 and the LSB of this register corresponds with P0.
2.10 Input Falling Edge Interrupt Enable Register (FEIR) - Read/Write
Writing a ’1’ to these bits will enable the corresponding input to generate an interrupt on the falling edge.
Writing a ’1’ to these bits will make that input generate an interrupt on the rising edge only. See Table 3 for
complete details of the interrupt behavior for various register settings. The MSB of this register corresponds
with P7 and the LSB of this register corresponds with P0.
2.11 Input Filter Enable Register (IFR) - Read/Write
By default, the input filters are enabled (IFR = 0xFF). When the input filters are enabled, any pulse that is
greater than 1075ns will generate an interrupt (if enabled). Pulses that are less than 225ns will be filtered and
will not generate an interrupt. Pulses in between this range may or may not generate an interrupt. Writing a ’0’
to these bits will disable the input filter for the corresponding inputs. With the input filters disabled, any change
on the inputs will generate an interrupt (if enabled). See Table 3 for complete details of the interrupt behavior
for various register settings. The MSB of this register corresponds with P7 and the LSB of this register
corresponds with P0.

XRA1202PIL16-F

Mfr. #:
Manufacturer:
MaxLinear
Description:
Interface - I/O Expanders XRA1202PIL16-F
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union