XRA1404
4
8-BIT SPI GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS REV. 1.0.0
1.0 FUNCTIONAL DESCRIPTIONS
1.1 SPI bus Interface
The SPI interface consists of four lines: serial clock (SCL), chip select (CS#), slave output (SO) and slave input
(SI). The serial clock, slave output and slave input can be as fast as 26 MHz. To access the device in the SPI
mode, the CS# signal is asserted by the SPI master, then the SPI master starts toggling the SCL signal with
the appropriate transaction information. The first bit sent by the SPI master includes whether it is a read or
write transaction and the register being accessed. See
Table 1 below.
TABLE 1: SPI COMMAND BYTE FORMAT
BIT FUNCTION
7 Read/Write#
Logic 1 = Read
Logic 0 = Write
6:1 Command Byte
0 Reserved
FIGURE 3. SPI WRITE
0 0 0 A3 A2 A1 A0 X D7 D6 D5 D4 D3 D2 D1 D0
SCL
SI
FIGURE 4. SPI READ
1
0
0A3A2
A1
A0 X
D7
D6 D5 D4 D3 D2 D1
D0
SCL
SI
SO
After the last read or write transaction, the SPI master will set the SCL signal back to its idle state (LOW).
XRA1404
5
REV. 1.0.0 8-BIT SPI GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS
1.1.1 SPI Command Byte
An SPI command byte is sent by the SPI master following the slave address. The command byte indicates the
address offset of the register that will be accessed.
Table 2 below lists the command bytes for each register.
TABLE 2: COMMAND BYTE (REGISTER ADDRESS)
COMMAND BYTE REGISTER NAME DESCRIPTION READ/WRITE DEFAULT VALUES
0x00 GSR - GPIO State Read-Only 0xXX
0x01 OCR - Output Control Read/Write 0xFF
0x02 PIR - Input Polarity Inversion Read/Write 0x00
0x03 GCR - GPIO Configuration Read/Write 0xFF
0x04 PUR - Input Internal Pull-up Resistor Enable/Disable Read/Write 0x00
0x05 IER - Input Interrupt Enable Read/Write 0x00
0x06 TSCR - Output Three-State Control Read/Write 0x00
0x07 ISR - Input Interrupt Status Read 0x00
0x08 REIR - Input Rising Edge Interrupt Enable Read/Write 0x00
0x09 FEIR - Input Falling Edge Interrupt Enable Read/Write 0x00
0x0A IFR - Input Filter Enable/Disable Read/Write 0xFF
1.2 Interrupts
The table below summarizes the interrupt behavior of the different register settings for the XRA1404.
TABLE 3: INTERRUPT GENERATION AND CLEARING
BIT BIT BIT BIT BIT
INTERRUPT GENERATED BY: INTERRUPT CLEARED BY:
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
GCR IER REIR FEIR IFR
XRA1404
6
8-BIT SPI GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS REV. 1.0.0
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 XRA1404. Writing a ’1’ to these bits will enable the internal pull-up
resistors. 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.

XRA1404IG16-F

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