T89C51CC02 Atmel, T89C51CC02 Datasheet - Page 108

no-image

T89C51CC02

Manufacturer Part Number
T89C51CC02
Description
8-Bit MCU
Manufacturer
Atmel
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
T89C51CC02CA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02CA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SITIM
Manufacturer:
Atmel
Quantity:
10 000
T89C51CC02
16.6. Pulse Width Modulator Mode
All the PCA modules can be used as PWM outputs. The output frequency depends on the source for the PCA
timer. All the modules will have the same output frequency because they all share the PCA timer. The duty cycle
of each module is independently variable using the module’s capture register CCAPLn. When the value of the
PCA CL SFR is less than the value in the module’s CCAPLn SFR the output will be low, when it is equal to or
greater than it, the output will be high. When CL overflows from FF to 00, CCAPLn is reloaded with the value
in CCAPHn. the allows the PWM to be updated without glitches. The PWM and ECOM bits in the module’s
CCAPMn register must be set to enable the PWM mode.
108
CL rolls over from FFh TO 00h
loads CCAPnH contents into
CCAPnL
CL (8 bits)
7
-
ECOMn0 00
0
Figure 109. PCA PWM Mode
Preliminary
CCAPMn Register
0PWMn0
8-Bit
Comparator
CCAPxL
CCAPn
CL >= CCAPnL
CL < CCAPnL
“0
“1”
Rev.A - May 17, 2001
CEX

Related parts for T89C51CC02