974
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
37.7.39
PWM Channel Period Register
Name:
PWM_CPRDx [x=0..3]
Address:
0x4002020C [0], 0x4002022C [1], 0x4002024C [2], 0x4002026C [3]
Access:
Read-write
This register can only be written if the bits WPSWS3 and WPHWS3 are cleared in
“PWM Write Protect Status Register” on
Only the first 16 bits (channel counter size) are significant.
• CPRD: Channel Period
If the waveform is left-aligned, then the output waveform period depends on the channel counter source clock and can be
calculated:
– By using the PWM master clock (MCK) divided by an X given prescaler value (with X being 1, 2, 4, 8, 16, 32,
64, 128, 256, 512, or 1024). The resulting period formula will be:
– By using the PWM master clock (MCK) divided by one of both DIVA or DIVB divider, the formula becomes,
respectively:
or
If the waveform is center-aligned, then the output waveform period depends on the channel counter source clock and can
be calculated:
– By using the PWM master clock (MCK) divided by an X given prescaler value (with X being 1, 2, 4, 8, 16, 32,
64, 128, 256, 512, or 1024). The resulting period formula will be:
– By using the PWM master clock (MCK) divided by one of both DIVA or DIVB divider, the formula becomes,
respectively:
or
31
30
29
28
27
26
25
24
–
–
–
–
–
–
–
–
23
22
21
20
19
18
17
16
CPRD
15
14
13
12
11
10
9
8
CPRD
7
6
5
4
3
2
1
0
CPRD
X
CPRD
×
(
)
MCK
--------------------------------
CRPD
DIVA
×
(
)
MCK
-------------------------------------------
CRPD
DIVB
×
(
)
MCK
-------------------------------------------
2
X
CPRD
×
×
(
)
MCK
-------------------------------------------
2
CPRD
DIVA
×
×
(
)
MCK
------------------------------------------------------
2
CPRD
×
DIVB
×
(
)
MCK
------------------------------------------------------
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...