cy8c9520a Cypress Semiconductor Corporation., cy8c9520a Datasheet - Page 12

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
Config (29h)
This register selects the clock source for the PWM selected by
the PWM Select register (28h) and interrupt logic.
There are six available clock sources: 32 kHz (default), 24 MHz,
1.5 MHz, 93.75 kHz, 367.6 Hz, or previous PWM output. The
367.6 Hz clock is user programmable. It divides the 93.75 kHz
clock source by the divisor stored in the Divider register (2Ch).
The default divide ratio is 255. (see
default, all PWMs are clocked from 32 kHz.
Table 11. PWM Clock Sources
Each PWM can generate an interrupt at the rising or falling edge
of the output pulse. There is a limitation on the clock source for
a PWM to generate an interrupt. Only the slowest speed source
(programmed to 367.6 Hz) with the divider equal to 255 allows
interrupt generation. Consequently, to create a PWM interrupt, it
is necessary to choose the programmable divider output as the
clock source (write xxxxx100b to Config register (29h)), write 255
to the Divide register (2Ch), and select PWM for pin output (1Ah).
Interrupt status is reflected in the Interrupt Status registers
(10h-17h) and can cause INT line activation if enabled by the
corresponding mask bit in the Interrupt Mask register:
Period Register (2Ah)
Table 12. Period Register
This register sets the period of the PWM counter. Allowed values
are between 1 and FFh. The effective output waveform period of
the PWM is:
Pulse Width Register (2Bh)
This register sets the pulse width of the PWM output. Allowed
values are between zero and the (Period - 1) value. The duty
cycle ratio can be computed using the following equation:
Document Number: 38-12036 Rev. *B
xxxxx000b
xxxxx001b
xxxxx010b
xxxxx011b
xxxxx100b
xxxxx101b
xxxx0xxxb
xxxx1xxxb
Config PWM
Config PWM
DutyCycle
t
OUT
=
Period t
=
PulseWidth
Period
CLK
32 kHz (default)
24 MHz
1.5 MHz
93.75 kHz
367.6 Hz (programmable)
Previous PWM
Falling pulse edge (default)
Rising pulse edge
.
PWM Clock Source
PWM Interrupt on
Table 11
for details). By
Divider Register (2Ch)
This register sets the frequency on the output of the program-
mable divider:
Allowed values are between 1 and 255.
Enable Register (2Dh)
The WDE bit configures the write disable pin to operate either as
a GPIO or as WD. It also enables/disables EEPROM operations
(EEE bit) or makes the EEPROM read-only (EERO bit). Bit
assignments are shown in
Table 13. Enable Register
Each ’1’ enables the corresponding feature, ’0’ disables.
Writes to this register differ from other registers. The write
sequence to modify the Enable register is as follows:
This write sequence secures the register from accidental
changes. The register can be read without the use of the unlock
key.
By default, EERO and EEPROM (EEE bit) are disabled and WD
line (WDE bit) is set to GPIO (WD disabled).
When performing a burst write operation that crosses this
register, the data written to this register is ignored and the
address increments to 2Eh.
Device ID/Status Register (2Eh)
This register stores device identifiers (2xh/4xh/6xh) and reflects
which settings were loaded during startup, either factory defaults
(FD) or user defaults (UD). By default during startup, the device
attempts to load the user default block. If it is corrupted then
factory defaults are loaded and the low nibble of this register is
set high to inform which set is active. The high nibble is always
equal to 2 for CY8C9520A, 4 for CY8C9540A, and 6 for
CY8C9560A.
This register is read-only.
Table 14. Device ID Status Register
1. Send device I2C address with bit 0.
2. Send register address 2Dh.
3. Send unlock key - the sequence of three bytes: 43h, 4Dh, 53h;
4. Send new Enable register value.
Function Device Family (2, 4,or 6)
Function
Frequency
Default
('C', 'M', 'S' in ASCII bytes).
Bit
Bit
=
7
7
93.75
Divider
6
Reserved
Reserved
kHz
6
CY8C9520A, CY8C9540A
.
5
5
Table 13 on page
4
4
3
EERO
3
Reserved
2
0
CY8C9560A
2
12.
EEE
1
0
1
Page 12 of 24
FD/UD
WDE
0
0
0
[+] Feedback

Related parts for cy8c9520a