pca9502 NXP Semiconductors, pca9502 Datasheet - Page 5

no-image

pca9502

Manufacturer Part Number
pca9502
Description
8-bit I/o Expander With I2c-bus/spi Interface
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pca9502BS
Manufacturer:
NXP
Quantity:
1 667
Part Number:
pca9502BS
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
pca9502BSЈ¬128
Manufacturer:
NXP
Quantity:
15
NXP Semiconductors
8. Register descriptions
Table 6.
[1]
[2]
PCA9502_3
Product data sheet
Register
address
General Register Set
0x0A
0x0B
0x0C
0x0D
0x0E
Other addresses 0x00 through 0x09, 0x0F are reserved and should not be accessed (read or write).
These bits are reserved and should be set to 0.
[1]
[1]
[1]
[1]
[1]
Register
IODir
IOState
IOIntEna
reserved
[2]
IOControl reserved
PCA9502 internal registers
7.2 Interrupts
8.1 Programmable I/O pins Direction register (IODir)
Bit 7
bit 7
bit 7
bit 7
reserved
[2]
[2]
The PCA9502 has interrupt generation capability. The interrupt enable register (IOIntEna)
enables interrupts due to I/O pin change of state, and the IRQ signal in response to an
interrupt generation.
The programming combinations for register selection are shown in
Table 5.
This register is used to program the I/O pins direction. Bit 0 to bit 7 control GPIO0 to
GPIO7.
Table 7.
Remark: If there is a pending input (GPIO) interrupt and IODir is written, this pending
interrupt will be cleared, that is, the interrupt signal will be negated.
Register name
IODir
IOState
IOIntEna
IOControl
Bit
7:0
Bit 6
bit 6
bit 6
bit 6
reserved
[2]
reserved
[2]
Symbol
IODir
Register map - read/write properties
IODir register (address 0x0A) bit description
Read mode
I/O pin direction
I/O pin states
I/O interrupt enable register
I/O pins control
Bit 5
bit 5
bit 5
bit 5
reserved
[2]
reserved
[2]
Rev. 03 — 13 October 2006
Description
set GPIO pins 7:0 to input or output
0 = input
1 = output
Bit 4
bit 4
bit 4
bit 4
reserved
[2]
reserved
[2]
Bit 3
bit 3
bit 3
bit 3
reserved
[2]
SReset
8-bit I/O expander with I
Bit 2
bit 2
bit 2
bit 2
reserved
[2]
reserved
[2]
Write mode
I/O pin direction
n/a
I/O interrupt enable register
I/O pins control
Bit 1
bit 1
bit 1
bit 1
reserved
[2]
reserved
[2]
Table
2
C-bus/SPI interface
PCA9502
© NXP B.V. 2006. All rights reserved.
5.
Bit 0
bit 0
bit 0
bit 0
reserved
[2]
IOLatch
5 of 25
R/W
R/W
R/W
R/W
R/W

Related parts for pca9502