Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
990
39.7.33 PWM Comparison x Value Update Register
Name:
PWM_CMPVUPDx
Address:
0x40020134 [0], 0x40020144 [1], 0x40020154 [2], 0x40020164 [3], 0x40020174 [4], 0x40020184 [5], 
0x40020194 [6], 0x400201A4 [7]
Access:
Write-only
This register acts as a double buffer for the CV and CVM values. This prevents an unexpected comparison x match.
Only the first 16 bits (channel counter size) of field CV
UPD
 are significant.
• CVUPD: Comparison x Value Update
Define the comparison x value to be compared with the counter of the channel 0.
• CVMUPD: Comparison x Value Mode Update 
0: The comparison x between the counter of the channel 0 and the comparison x value is performed when this counter is 
incrementing.
1: The comparison x between the counter of the channel 0 and the comparison x value is performed when this counter is 
decrementing.
Note: This bit is useless if the counter of the channel 0 is left aligned (CALG = 0 in 
)
CAUTION:
 to be taken into account, the write of the register PWM_CMPVUPDx must be followed by a write of the register 
PWM_CMPMUPDx.
31
30
29
28
27
26
25
24
CVMUPD
23
22
21
20
19
18
17
16
CVUPD
15
14
13
12
11
10
9
8
CVUPD
7
6
5
4
3
2
1
0
CVUPD