English
Language : 

SAM7S256_14 Datasheet, PDF (483/775 Pages) ATMEL Corporation – ARM-based Flash MCU
34.5.1 PWM Clock Generator
Figure 34-2. Functional View of the Clock Generator Block Diagram
MCK modulo n counter
MCK
MCK/2
MCK/4
MCK/8
MCK/16
MCK/32
MCK/64
MCK/128
MCK/256
MCK/512
MCK/1024
Divider A
clkA
PREA DIVA
PWM_MR
Divider B
clkB
PREB DIVB
PWM_MR
Caution: Before using the PWM macrocell, the programmer must first enable the PWM clock in the Power Man-
agement Controller (PMC).
The PWM macrocell master clock, MCK, is divided in the clock generator module to provide different clocks avail-
able for all channels. Each channel can independently select one of the divided clocks.
The clock generator is divided in three blocks:
– a modulo n counter which provides 11 clocks: FMCK, FMCK/2, FMCK/4, FMCK/8, FMCK/16, FMCK/32,
FMCK/64, FMCK/128, FMCK/256, FMCK/512, FMCK/1024
– two linear dividers (1, 1/2, 1/3, ... 1/255) that provide two separate clocks: clkA and clkB
Each linear divider can independently divide one of the clocks of the modulo n counter. The selection of the clock
to be divided is made according to the PREA (PREB) field of the PWM Mode register (PWM_MR). The resulting
clock clkA (clkB) is the clock selected divided by DIVA (DIVB) field value in the PWM Mode register (PWM_MR).
After a reset of the PWM controller, DIVA (DIVB) and PREA (PREB) in the PWM Mode register are set to 0. This
implies that after reset clkA (clkB) are turned off.
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
483