English
Language : 

SAM4S_14 Datasheet, PDF (933/1231 Pages) ATMEL Corporation – ARM-based Flash MCU
39.6
Functional Description
The PWM macrocell is primarily composed of a clock generator module and 4 channels.
 Clocked by the master clock (MCK), the clock generator module provides 13 clocks.
 Each channel can independently choose one of the clock generator outputs.
 Each channel generates an output waveform with attributes that can be defined independently for each
channel through the user interface registers.
39.6.1 PWM Clock Generator
Figure 39-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
The PWM master clock (MCK) is divided in the clock generator module to provide different clocks available 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 Clock register (PWM_CLK). The resulting
clock clkA (clkB) is the clock selected divided by DIVA (DIVB) field value.
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
933