AT32UC3C1512C Automotive Atmel Corporation, AT32UC3C1512C Automotive Datasheet - Page 977

no-image

AT32UC3C1512C Automotive

Manufacturer Part Number
AT32UC3C1512C Automotive
Description
Manufacturer
Atmel Corporation
33.6.2.7
9166C–AVR-08/11
Synchronous Channels
Some channels can be linked together as synchronous channels. They have the same source
clock, the same period, the same alignment and are started together. In this way, their counters
are synchronized together.
The synchronous channels are defined by the SYNCx bits in the
ter” on page 1004
When a channel is defined as a synchronous channel, the channel 0 is automatically defined as
a synchronous channel too, because the channel 0 counter configuration is used by all the syn-
chronous channels.
If a channel x is defined as a synchronous channel, it uses the following configuration fields of
the channel 0 instead of its own:
Thus writing these fields of a synchronous channel has no effect on the output waveform of this
channel (except channel 0 of course).
Because counters of synchronous channels must start at the same time, they are all enabled
together by enabling the channel 0 (by the CHID0 bit in the ENA register). In the same way, they
are all disabled together by disabling the channel 0 (by the CHID0 bit in the DIS register). How-
ever, a synchronous channel x different from channel 0 can be enabled or disabled
independently from others (by the CHIDx bit in the ENA and DIS registers).
Defining a channel as a synchronous channel while it is an asynchronous channel (by writing the
SYNCx bit to one while it was at zero) is allowed only if the channel is disabled at this time
(CHIDx=0 in
it is a synchronous channel (by writing the SYNCx bit to zero while it was at one) is allowed only
if the channel is disabled at this time.
The UPDM (Update Mode) field in the SCM register allow to select one of the three methods to
update the registers of the synchronous channels:
• CPRE0 field in CMR0 register instead of CPREx field in CMRx register (same source clock)
• CPRD0 field in CMR0 register instead of CPRDx field in CMRx register (same period)
• CALG0 field in CMR0 register instead of CALGx field in CMRx register (same alignment)
• Method 1 (UPDM=0): the period value, the duty-cycle values and the dead-time values must
• Method 2 (UPDM=1): the period value, the duty-cycle values, the dead-time values and the
• Method 3 (UPDM=2): same as Method 2 apart from the fact that the duty-cycle values of ALL
be written by the CPU in their respective update registers (respectively CPRDUPDx,
CDTYUPDx and DTUPDx).The update is triggered at the next PWM period as soon as the
UPDULOCK bit in the
to 1 (see
update period value must be written by the CPU in their respective update registers
(respectively CPRDUPDx, CDTYUPDx and DTUPD). The update of the period value and of
the dead-time values is triggered at the next PWM period as soon as the UPDULOCK bit in
the
of the duty-cycle values and the update period value is triggered automatically after an
update period defined by the UPR field in the
page 1007
synchronous channels are written by the Peripheral DMA Controller (PDCA) (see
”Sync Channels Update Control Register” on page 1006
Section 33.6.2.8 on page
SR register)
(SCUP) (see
(SCM). Only one group of synchronous channels is allowed.
. In the same way, defining a channel as an asynchronous channel while
”Sync Channels Update Control Register” on page 1006
Section 33.6.2.9 on page
979).
”Sync Channels Update Period Register” on
980).
(SCUC) is set to 1. The update
”Sync Channels Mode Regis-
AT32UC3C
(SCUC) is set
Section
977

Related parts for AT32UC3C1512C Automotive