CY8C9520A
CY8C9540A
CY8C9560A
Document Number: 38-12036 Rev. *I Page 4 of 32
Device Access Addressing
Following a start condition, the I
2
C master device sends a byte
to address an I
2
C slave. This address accesses the device in the
CY8C95xx. By default there are two possible address formats in
binary representation: 010000A0X and 101000A0X. The first is
used to access the multi port device and the second to access
the EEPROM. If additional address lines (A1-A6) are used then
the Device Addressing. Table 2 defines the device addresses.
This addressing method uses a technique called Extendable Soft
Addressing, described in the section Extendable Soft
Addressing on page 9.
When all address lines A1-A6 are used, the device being
accessed is defined by the first byte following the address in the
write transaction. If the most significant bit (MSb) of this byte is
‘0’, this byte is treated as a command (register address) byte of
the multi-port device. If the MSb is ‘1’, this byte is the first of a
2-byte EEPROM address. In this case, the device masks the
MSb to determine the EEPROM address.
Serial EEPROM Device
EEPROM reading and writing operations require 2 bytes, AHI
and ALO, which indicate the memory address to use.
To read one or more bytes, the master device addresses the unit
with a write cycle (= 0) to send AHI followed by ALO, readdresses
the unit with a read cycle (= 1), and reads one or more data bytes.
Each data byte read increments the internal address counter by
one up to the end of the EEPROM address space. A read or write
beyond the end of the EEPROM address space must result in a
NAK response by the Port Expander.
To write data to the EEPROM, the master device performs one
write cycle, with the first two bytes being AHI followed by ALO.
This is followed by one or more data bytes. In the case of block
writing it is advisable to set the starting address on the beginning
of the 64-byte boundary, for example 01C0h or 0080h, but this is
not mandatory. When a 64-byte boundary is crossed in the
EEPROM, the I
2
C clock is stretched while the device performs
an EEPROM write sequence. If the end of available EEPROM
space is reached, then further writes are responded to with a
NAK.
Refer to Figure 6 on page 10, which illustrates memory reading
and writing procedures for the EEPROM device.
Multi Port I/O Device
This device allows the user to set configurations and I/O
operations through internal registers.
Each data transfer is preceded by the command byte. This byte
is used as a pointer to a register that receives or transmits data.
Available registers are listed in Table 6 on page 11.
Table 2. Device Addressing
Multi-Port Device EEPROM Device
01 0 0 0 0 A
0
R/W 101 000A
0
R/W
01000A
1
A
0
R/W 101 00A
1
A
0
R/W
0100A
2
A
1
A
0
R/W 101 0A
2
A
1
A
0
R/W
010A
3
A
2
A
1
A
0
R/W 101A
3
A
2
A
1
A
0
R/W
01A
4
A
3
A
2
A
1
A
0
R/W 10A
4
A
3
A
2
A
1
A
0
R/W
0A
5
A
4
A
3
A
2
A
1
A
0
R/W 1A
5
A
4
A
3
A
2
A
1
A
0
R/W
A
6
A
5
A
4
A
3
A
2
A
1
A
0
R/W A
6
A
5
A
4
A
3
A
2
A
1
A
0
R/W
CY8C9520A
CY8C9540A
CY8C9560A
Document Number: 38-12036 Rev. *I Page 5 of 32
Pinouts
The CY8C95xxA device is available in a variety of packages, which are listed and illustrated in the following tables.
28-Pin Part Pinout
Table 3. 28-Pin Part Pinout (SSOP)
Pin
No.
Pin Name Description
Figure 2. CY8C9520A 28-Pin Device
1 GPort0_Bit0_PWM3 Port 0, Bit 0, PWM 3.
2 GPort0_Bit1_PWM1 Port 0, Bit 1, PWM 1.
3 GPort0_Bit2_PWM3 Port 0, Bit 2, PWM 3.
4 GPort0_Bit3_PWM1 Port 0, Bit 3, PWM 1.
5 GPort0_Bit4_PWM3 Port 0, Bit 4, PWM 3.
6 GPort0_Bit5_PWM1 Port 0, Bit 5, PWM 1.
7 GPort0_Bit6_PWM3 Port 0, Bit 6, PWM 3.
8 GPort0_Bit7_PWM1 Port 0, Bit 7, PWM 1.
9V
SS
Ground connection.
10 I
2
C Serial Clock (SCL) I
2
C Clock.
11 I
2
C Serial Data (SDA) I
2
C Data.
12 GPort2_Bit3_PWM3/A1 Port 2, Bit 3, PWM 3, Address 1.
13 A0 Address 0.
14 V
SS
Ground connection.
15 GPort2_Bit2_PWM0/WD Port 2, Bit 2, PWM 0, E
2
Write Disable.
16 INT
17 GPort2_Bit1_PWM0/A2 Port 2, Bit 1, PWM 0, Address 2.
18 GPort2_Bit0_PWM2/A3 Port 2, Bit 0, PWM 2, Address 3.
19 XRES Active high external reset with internal pull
down.
20 GPort1_Bit7_PWM0/A4 Port 1, Bit 7, PWM 0, Address 4.
21 GPort1_Bit6_PWM2/A5 Port 1, Bit 6, PWM 2, Address 5.
22 GPort1_Bit5_PWM0/A6 Port 1, Bit 5, PWM 0, Address 6.
23 GPort1_Bit4_PWM2 Port 1, Bit 4, PWM 2.
24 GPort1_Bit3_PWM0 Port 1, Bit 3, PWM 0.
25 GPort1_Bit2_PWM2 Port 1, Bit 2, PWM 2.
26 GPort1_Bit1_PWM0 Port 1, Bit 1, PWM 0.
27 GPort1_Bit0_PWM2 Port 1, Bit 0, PWM 2.
28 V
dd
Supply voltage.
GPort0_Bit0_PWM3
GPort0_Bit1_PWM1
GPort0_Bit2_PWM3
GPort0_Bit3_PWM1
GPort0_Bit4_PWM3
GPort0_Bit5_PWM1
GPort0_Bit6_PWM3
GPort0_Bit7_PWM1
Vss
I2C Serial Clock (SCL)
I2C Serial Data (SDA)
GPort2_Bit3_PWM3/A1
A0
Vss
Vdd
GPort1_Bit0_PWM2
GPort1_Bit1_PWM0
GPort1_Bit2_PWM2
GPort1_Bit3_PWM0
GPort1_Bit4_PWM2
GPort1_Bit5_PWM0/A6
GPort1_Bit6_PWM2/A5
GPort1_Bit7_PWM0/A4
XRES
GPort2_Bit0_PWM2/A3
GPort2_Bit1_PWM0/A2
INT
GPort2_Bit2_PWM0/WD
SSOP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
CY8C9520A
CY8C9540A
CY8C9560A
Document Number: 38-12036 Rev. *I Page 6 of 32
48-Pin Part Pinout
Table 4. 48-Pin Part Pinout (SSOP)
Pin
No.
Pin Name Description
Figure 3. CY8C9540A 48-Pin Device
1 GPort0_Bit0_PWM7 Port 0, Bit 0, PWM 7.
2 GPort0_Bit1_PWM5 Port 0, Bit 1, PWM 5.
3 GPort0_Bit2_PWM3 Port 0, Bit 2, PWM 3.
4 GPort0_Bit3_PWM1 Port 0, Bit 3, PWM 1.
5 GPort0_Bit4_PWM7 Port 0, Bit 4, PWM 7.
6 GPort0_Bit5_PWM5 Port 0, Bit 5, PWM 5.
7 GPort0_Bit6_PWM3 Port 0, Bit 6, PWM 3.
8 GPort0_Bit7_PWM1 Port 0, Bit 7, PWM 1.
9 GPort3_Bit0_PWM7 Port 3, Bit 0, PWM 7.
10 GPort3_Bit1_PWM5 Port 3, Bit 1, PWM 5.
11 GPort3_Bit2_PWM3 Port 3, Bit 2, PWM 3.
12 GPort3_Bit3_PWM1 Port 3, Bit 3, PWM 1.
13 V
SS
Ground connection.
14 GPort3_Bit4_PWM7 Port 3, Bit 4, PWM 7.
15 GPort3_Bit5_PWM5 Port 3, Bit 5, PWM 5.
16 GPort3_Bit6_PWM3 Port 3, Bit 6, PWM 3.
17 GPort3_Bit7_PWM1 Port 3, Bit 7, PWM 1.
18 GPort5_Bit2_PWM3 Port 5, Bit 2, PWM 3.
19 GPort5_Bit3_PWM1 Port 5, Bit 3, PWM 1.
20 I
2
C Serial Clock (SCL) I
2
C Clock.
21 I
2
C Serial Data (SDA) I
2
C Data.
22 GPort2_Bit3_PWM3/A1 Port 2, Bit 3, PWM 3, Address 1.
23 A0 Address 0.
24 V
SS
Ground connection.
25 GPort2_Bit2_PWM0/WD Port 2, Bit 2, PWM 0, E
2
Write Disable.
26 INT
27 GPort2_Bit1_PWM4/A2 Port 2, Bit 1, PWM 4, Address 2.
28 GPort2_Bit0_PWM6/A3 Port 2, Bit 0, PWM 6, Address 3.
29 GPort5_Bit1_PWM0 Port 5, Bit 1, PWM 0.
30 GPort5_Bit0_PWM2 Port 5, Bit 0, PWM 2.
31 GPort4_Bit7_PWM0 Port 4, Bit 7, PWM 0.
32 GPort4_Bit6_PWM2 Port 4, Bit 6, PWM 2.
33 GPort4_Bit5_PWM4 Port 4, Bit 5, PWM 4.
34 GPort4_Bit4_PWM6 Port 4, Bit 4, PWM 6.
35 XRES Active high external reset with internal pull
down.
36 GPort4_Bit3_PWM0 Port 4, Bit 3, PWM 0.
37 GPort4_Bit2_PWM2 Port 4, Bit 2, PWM 2.
38 GPort4_Bit1_PWM4 Port 4, Bit 1, PWM 4.
39 GPort4_Bit0_PWM6 Port 4, Bit 0, PWM 6.
40 GPort1_Bit7_PWM0/A4 Port 1, Bit 7, PWM 0, Address 4.
41 GPort1_Bit6_PWM2/A5 Port 1, Bit 6, PWM 2, Address 5.
42 GPort1_Bit5_PWM4/A6 Port 1, Bit 5, PWM 4, Address 6.
43 GPort1_Bit4_PWM6 Port 1, Bit 4, PWM 6.
44 GPort1_Bit3_PWM0 Port 1, Bit 3, PWM 0.
45 GPort1_Bit2_PWM2 Port 1, Bit 2, PWM 2.
46 GPort1_Bit1_PWM4 Port 1, Bit 1, PWM 4.
47 GPort1_Bit0_PWM6 Port 1, Bit 0, PWM 6.
48 V
dd
Supply voltage.
SSOP
GPort0_Bit0_PWM7
Vdd
GPort0_Bit1_PWM5
GPort1_Bit0_PWM6
GPort0_Bit2_PWM3
GPort1_Bit1_PWM4
GPort0_Bit3_PWM1
GPort1_Bit2_PWM2
GPort0_Bit4_PWM7
GPort1_Bit3_PWM0
GPort0_Bit5_PWM5
GPort1_Bit4_PWM6
GPort0_Bit6_PWM3
GPort1_Bit5_PWM4/A6
GPort0_Bit7_PWM1
GPort1_Bit6_PWM2/A5
GPort3_Bit0_PWM7
GPort1_Bit7_PWM0/A4
GPort3_Bit1_PWM5
GPort4_Bit0_PWM6
GPort3_Bit2_PWM3
GPort4_Bit1_PWM4
GPort3_Bit3_PWM1
GPort4_Bit2_PWM2
Vss
GPort4_Bit3_PWM0
GPort3_Bit4_PWM7
XRES
GPort3_Bit5_PWM5
GPort4_Bit4_PWM6
GPort3_Bit6_PWM3
GPort4_Bit5_PWM4
GPort3_Bit7_PWM1
GPort4_Bit6_PWM2
GPort5_Bit2_PWM3
GPort4_Bit7_PWM0
GPort5_Bit3_PWM1
GPort5_Bit0_PWM2
I2C Serial Clock (SCL)
GPort5_Bit1_PWM0
I2C Serial Data (SDA)
GPort2_Bit0_PWM6/A3
GPort2_Bit3_PWM3/A1
GPort2_Bit1_PWM4/A2
A0
INT
Vss
GPort2_Bit2_PWM0/WD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
48
47
46
45
43
44
42
40
41
39
38
37
36
35
33
34
32
31
30
29
28
27
26
25

CY8C9560A-24AXI

Mfr. #:
Manufacturer:
Cypress Semiconductor
Description:
Interface - I/O Expanders 60BIT IO EXPANDER W/EEPROM
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union