AT32UC3C1512C Automotive Atmel Corporation, AT32UC3C1512C Automotive Datasheet - Page 985

no-image

AT32UC3C1512C Automotive

Manufacturer Part Number
AT32UC3C1512C Automotive
Description
Manufacturer
Atmel Corporation
33.6.3
9166C–AVR-08/11
PWM Comparison Units
The PWM provides 8 independent comparison units able to compare a programmed value with
the current value of the channel 0 counter (which is the channel counter of all synchronous
channels,
on the event lines (used to synchronize ADC, see
ware interrupts and to trigger PDCA transfer requests for the synchronous channels (see
Section 33.6.2.10 on page
Figure 33-14. Comparison Unit Block Diagram
The comparison x matches when it is enabled by the CEN bit in the
ter” on page 1032
reaches the comparison value defined by the CV field in
1030
”Channel Mode Register” on page
made when the counter is counting up or counting down (in left alignment mode CALG=0, this
bit is useless).
If a fault is active on the channel 0, the comparison is disabled and cannot match (see
33.6.2.6 on page
The user can define the periodicity of the comparison x by the CTR and CPR fields (in CMPxV).
The comparison is performed periodically once every CPR+1 periods of the counter of the chan-
nel 0, when the value of the comparison period counter CPRCNT (in CMPxM) reaches the value
defined by CTR. CPR is the maximum value of the comparison period counter CPRCNT. If
CPR=CTR=0, the comparison is performed at each period of the counter of the channel 0.
The comparison x configuration can be modified while the channel 0 is enabled by using the
”PWM Comparison x Mode Update Register” on page 1033
parison x). In the same way, the comparison x value can be modified while the channel 0 is
enabled by using the
ters for the comparison x).
(CMPxV for the comparison x). If the counter of the channel 0 is center aligned (CALG=1 in
Section 33.6.2.7 on page
CEN [PWM_CMPxM]
fault on channel 0
CV [PWM_CMPxV]
CNT [PWM_CCNT0]
CNT [PWM_CCNT0] is decrementing
CVM [PWM_CMPxV]
CALG [PWM_CMR0]
CPRCNT [PWM_CMPxM]
CTR [PWM_CMPxM]
975).
(CMPxM for the comparison x) and when the counter of the channel 0
”Comparison x Value Update Register” on page 1031
982).
1034), the CVM bit (in CMPxV) defines if the comparison is
977). These comparisons are intended to generate pulses
=
=
=
1
Section 33.6.4 on page
0
1
”Comparison x Value Register” on page
(CMPxMUPD registers for the com-
”Comparison x Mode Regis-
Comparison x
987), to generate soft-
AT32UC3C
(CMPxVUPD regis-
Section
985

Related parts for AT32UC3C1512C Automotive