925
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
Figure 37-13. Method 3 (UPDM=2 and PTRM=1 and PTRCS=0)
37.6.3
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,
Section 37.6.2.7 “Synchronous Channels”
). These comparisons are intended to gen-
erate pulses on the event lines (used to synchronize ADC, see
), to generate software interrupts and to trigger PDC transfer requests for the synchronous
channels (see
“Method 3: Automatic write of duty-cycle values and automatic trigger of the
Figure 37-14. Comparison Unit Block Diagram
CCNT0
CDTYUPD
0x20
0x40
0x60
UPRCNT
0x0
0x1
0x0
0x1
0x0
0x1
CDTY
UPRUPD
0x1
0x3
CMP0 match
transfer request
WRDY
0x0
0x1
0x2
0x3
0x0
0x1
0x2
UPR
0x1
0x3
0x80
0xA0
0xB0
0x20
0x40
0x60
0x80
0xA0
=
fault on channel 0
CNT [PWM_CCNT0]
CNT [PWM_CCNT0]
is decrementing
CALG [PWM_CMR0]
CV [PWM_CMPVx]
=
1
0
1
Comparison x
CVM [PWM_CMPVx]
=
CPRCNT [PWM_CMPMx]
CTR [PWM_CMPMx]
CEN [PWM_CMPM]x
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 ...