cy8c9520 Cypress Semiconductor Corporation., cy8c9520 Datasheet - Page 9

no-image

cy8c9520

Manufacturer Part Number
cy8c9520
Description
20-, 40-, And 60-bit I/o Expander With Eeprom
Manufacturer
Cypress Semiconductor Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cy8c9520-24PVXI
Manufacturer:
CY
Quantity:
5
Part Number:
cy8c9520A-24PVXI
Manufacturer:
LT
Quantity:
1 378
Part Number:
cy8c9520A-24PVXI
Manufacturer:
CYPRESS/赛普拉斯
Quantity:
20 000
CY8C95xx Preliminary Data Sheet
2.2
2.2.1
The A0 line is always used to define the corresponding bit of the
I2C address. This pin should be pulled up or down. If A0 is a
strong pull-up or a strong pull-down (wired through 330 or less
resistor to Vdd or Vss), then that is the only address line being
specified and the A1-A6 lines are used as GPIO. If A0 is a weak
pull-up or a weak pull-down (connected to Vdd or Vss through
75K- 200K-ohm resistor), then A0 is not the only externally
defined address bit. There is a pin assigned to be A1 if it is
needed. This pin can be pulled-up or pulled-down strong or
weak with a resistor. As with A0, the type of pull determines
whether the address bit is the last externally defined address
bit. Differently from A0, A1 is not dedicated as an address pin. It
is only used if A0 is not the only address bit externally defined.
There are also predefined pins for A2, A3, A4, A5 and A6 that
will only be used for addressing if needed. The last address bit
in the chain is pulled strong. That way, only the number of pins
needed to assign the address desired for the part are allocated
as address pins, any pins not used for address bits are avail-
able to be used as GPIO pins. The
on page 3
2.2.2
The interrupt output (if enabled) is activated if one of the follow-
ing events occurs:
The interrupt line is deactivated when the master device per-
forms a read from the corresponding Interrupt Status register.
2.2.3
If this feature is enabled, ‘0’ allows writes to the EEPROM and
‘1’ blocks any memory writes. This pin is checked immediately
before performing any write to memory. If the EEE bit in the
Enable register is not set (EEPROM disabled) or bit EERO is
set (EEPROM is read-only) then WD line level is ignored.
Note that ‘1’ on this line blocks all commands which perform
operations with EEPROM (see
mands,” on page
This line may be enabled/disabled by bit 1 of the Enable regis-
ter (2Dh): ‘1’ enables WD function, ‘0’ disables.
2.2.4
A full device reset is caused by pulling the XRES pin high. The
XRES pin has an always-on pull-down resistor, so it does not
require an external pull down for operation. It can be tied
directly to ground or left open. Behavior after XRES is similar to
POR.
August 17, 2005
One of the GPIO port pins changes state and the corresponding bit
in the Interrupt Mask register is set low.
When a PWM driven by the slowest clock source (367.6 Hz) and
assigned to a pin changes state and the pin’s corresponding bit in
the Interrupt Mask register is set low.
defines the resulting device I2C address.
PIN Descriptions
Extendable Soft Addressing™
Interrupt Pin (INT)
Write Disable Pin (WD)
External Reset Pin (XRES)
14).
Table 3-9, “Available Com-
Table , “Device Addressing,”
Document No. 38-12036 Rev. *A
2.2.5
There are four independent PWMs in the CY8C9520, eight in
the CY8C9540 and sixteen in the CY8C9560. Each I/O pin can
be configured as a PWM output by writing ‘1’ to the correspond-
ing bit of the Select PWM register (see
Select PWM Registers Logic,” on page
The next step of PWM configuration is clock source selection
using the Config PWM registers. There are six available clock
sources: 32 kHz (default), 24 MHz, 1.5 MHz, 93.75 kHz, 367.6
Hz or previous PWM output. (see Figure 2-1).
Figure 2-1. Clock Sources
By default, 32 kHz is selected as the PWM clock.
PWM Period registers are used to set the output period:
Allowed values are between 1 and FFh.
The PWM Pulse Width register sets the duration of the PWM
output pulse. Allowed values are between zero and the (Period-
1) value. The duty cycle ratio can be computed using the follow-
ing equation:
DutyCycle
93.75 kHz
Working with PWMs
1.5 mHz
t
24 mHz
32 kHz
OUT
=
Period
=
Divider (1-255)
PulseWidth
------------------------------
2. Pinouts and Pin Descriptions
Period
×
t
CLK
127).
Table 3-2, “Output and
367.6 Hz -
93.75 kHz
Equation 1
Equation 2
9

Related parts for cy8c9520