SST89V58RD Silicon Storage Technology, SST89V58RD Datasheet - Page 53

no-image

SST89V58RD

Manufacturer Part Number
SST89V58RD
Description
FlashFlex51 MCU
Manufacturer
Silicon Storage Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
SST89V58RD2-33-C-NJE
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
SST89V58RD2-33-C-NJE
Manufacturer:
SST
Quantity:
20 000
Part Number:
SST89V58RD2-33-C-TQJE
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
SST89V58RD2-33-I-N
Manufacturer:
SST
Quantity:
134
Part Number:
SST89V58RD2-33-I-NJE
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
SST89V58RD2-33-I-TQJE
Manufacturer:
Microchip Technology
Quantity:
10 000
www.DataSheet4U.com
FlashFlex51 MCU
SST89E52RD2/RD / SST89E54RD2/RD / SST89E58RD2/RD
SST89V52RD2/RD / SST89V54RD2/RD / SST89V58RD2/RD
8.3.4 Pulse Width Modulator
The Pulse Width Modulator (PWM) mode is used to gener-
ate 8-bit PWMs by comparing the low byte of the PCA
timer (CL) with the low byte of the compare register
(CCAPnL). When CL < CCAPnL the output is low. When
CL ≥ CCAPnL the output is high. To activate this mode, the
user must set the PWM and ECOM bits in the module’s
CCAPMn SFR. (See Figure 8-5 and Table 8-7)
In PWM mode, the frequency of the output depends on the
source for the PCA timer. Since there is only one set of CH
and CL registers, all modules share the PCA timer and fre-
quency. Duty cycle of the output is controlled by the value
TABLE
©2006 Silicon Storage Technology, Inc.
PCA Timer Mode
1/12 Oscillator Frequency
1/4 Oscillator Frequency
Timer 0 Overflow:
External Input (Max)
FIGURE
8-bit
16-bit
8-bit Auto-Reload
8-7: Pulse Width Modulator Frequencies
8-5: PCA Pulse Width Modulator Mode
ECOMn CAPPn CAPNn MATn
Enable
Overflow
0
PCA Timer/Counter
0
8-bit Comparator
CCAPnH
CCAPnL
CL
0
TOGn
3.9 KHz to 15.3 Hz
0
11.8 KHz
12 MHz
3.9 KHz
15.5 Hz
0.06 Hz
5.9 KHz
53
PWMn ECCFn
loaded into the high byte (CCAPnH). Since writes to the
CCAPnH register are asynchronous, a new value written to
the high byte will not be shifted into CCAPnL for compari-
son until the next period of the output (when CL rolls over
from 255 to 00).
To calculate values for CCAPnH for any duty cycle, use
the following equation:
where CCAPnH is an 8-bit integer and Duty Cycle is a
fraction.
CL < CCAPnL
CL >= CCAPnL
0
PWM Frequency
CCAPMn
CCAPnH = 256(1 - Duty Cycle)
n=0 to 4
0
1
5.2 KHz to 20.3 Hz
1255 F27.0
15.6 KHz
5.2 KHz
7.8 KHz
16 MHz
20.3 Hz
0.08 Hz
CEXn
S71255-05-000
Data Sheet
T8-7.0 1255
5/06

Related parts for SST89V58RD