cy8c9520a Cypress Semiconductor Corporation., cy8c9520a Datasheet - Page 10

no-image

cy8c9520a

Manufacturer Part Number
cy8c9520a
Description
20-, 40-, And 60-bit Io Expander With Eeprom
Manufacturer
Cypress Semiconductor Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cy8c9520a-24PVXI
Manufacturer:
LT
Quantity:
1 378
Part Number:
cy8c9520a-24PVXI
Manufacturer:
CYPRESS/赛普拉斯
Quantity:
20 000
Register Mapping Table
The register address is auto-incrementing. If the master device
writes or reads data to or from one register and then continues
data transfer in the same I2C transaction, sequential bytes are
written or read to or from the following registers. For example, if
the first byte is sent to the Output Port 1 register, then the next
bytes are written to Output Port 2, Output Port 3, Output Port 4
etc. The first byte of each write transaction is treated as the
register address.
To read data from a seires of registers, the master device must
write the starting register address byte then perform a start and
series of read transactions. If no address was sent, reads start
from address 0.
To read a specific register address, the master device must write
the register address byte, then perform a start and read trans-
action.
See
page
The device’s register mapping is listed in Table 7.
Table 7. The Device Register Address Map
Document Number: 38-12036 Rev. *B
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
14h
15h
16h
17h
18h
Address
Figure 7, “Port Reading and Writing in Multi-Port Device,” on
9.
Input Port 0
Input Port 1
Input Port 2
Input Port 3
Input Port 4
Input Port 5
Input Port 6
Input Port 7
Output Port 0
Output Port 1
Output Port 2
Output Port 3
Output Port 4
Output Port 5
Output Port 6
Output Port 7
Interrupt Status Port 0
Interrupt Status Port 1
Interrupt Status Port 2
Interrupt Status Port 3
Interrupt Status Port 4
Interrupt Status Port 5
Interrupt Status Port 6
Interrupt Status Port 7
Port Select
Register
None
None
None
None
None
None
None
None
FFh
FFh
FFh
FFh
FFh
FFh
FFh
FFh
00h
00h
00h
00h
00h
00h
00h
00h
00h
Register Value
Default
Table 7. The Device Register Address Map (continued)
Register Descriptions
The registers for the CY8C95xx are described in the sections
that follow. Note that the PWM registers are located at addresses
28h to 2Bh.
Input Port Registers (00h - 07h)
These registers represent actual logical levels on the pins and
are used for IO port reading operations. They are read only. The
Inversion registers changes the state of reads to these ports.
Output Port Registers (08h - 0Fh)
These registers are used for writing data to GPIO ports. By
default, all ports are in the pull up mode allowing quasi-bidirec-
tional IO. To allow input operations without reconfiguration, these
registers have to store ’1’s.
Output register data also affects pin states when PWMs are
enabled. See
for details.
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
20h
21h
22h
23h
24h
25h
26h
27h
28h
29h
2Ah
2Bh
2Ch
2Dh
2Eh
2Fh
30h
Address
Table 8. Output and Select PWM Registers Logic
Interrupt Mask
Select PWM for Port Output 00h
Inversion
Pin Direction - Input/Output
Drive Mode - Pull Up
Drive Mode - Pull Down
Drive Mode - Open Drain
High
Drive Mode - Open Drain
Low
Drive Mode - Strong
Drive Mode - Slow Strong
Drive Mode - High-Z
Reserved
Reserved
Reserved
Reserved
PWM Select
Config PWM
Period PWM
Pulse Width PWM
Programmable Divider
Enable WDE, EEE, EERO
Device ID/Status
Watchdog
Command
CY8C9520A, CY8C9540A
Register
CY8C9560A
FFh
00h
00h
FFh
00h
00h
00h
00h
00h
00h
None
None
None
None
00h
00h
FFh
80h
FFh
00h
00h
00h
20h/40h/60h
Register Value
Default
Page 10 of 24
[+] Feedback

Related parts for cy8c9520a