Datasheet
951
SAM4S Series [DATASHEET]
11100F–ATARM–29-Jan-14
39.7.9 PWM Sync Channels Mode Register
Name: PWM_SCM
Address: 0x40020020
Access: Read/Write
This register can only be written if bits WPSWS2 and WPHWS2 are cleared in the “PWM Write Protection Status Register” .
• SYNCx: Synchronous Channel x
0: Channel x is not a synchronous channel.
1: Channel x is a synchronous channel.
• UPDM: Synchronous Channels Update Mode
Notes: 1. The update occurs at the beginning of the next PWM period, when the UPDULOCK bit in “PWM Sync Channels
Update Control Register” is set.
2. The update occurs when the Update Period is elapsed.
• PTRM: PDC Transfer Request Mode
• PTRCS: PDC Transfer Request Comparison Selection
Selection of the comparison used to set the flag WRDY and the corresponding PDC transfer request.
31 30 29 28 27 26 25 24
––––––––
23 22 21 20 19 18 17 16
PTRCS PTRM – – UPDM
15 14 13 12 11 10 9 8
––––––––
76543210
––––SYNC3SYNC2SYNC1SYNC0
Value Name Description
0 MODE0 Manual write of double buffer registers and manual update of synchronous channels
(1)
1 MODE1 Manual write of double buffer registers and automatic update of synchronous channels
(2)
2MODE2
Automatic write of duty-cycle update registers by the PDC and automatic update of synchronous
channels
(2)
UPDM PTRM WRDY Flag and PDCTransfer Request
0x
The WRDY flag in “PWM Interrupt Status Register 2” and the PDC transfer request are never set
to ‘1’.
1x
The WRDY flag in “PWM Interrupt Status Register 2” is set to ‘1’ as soon as the update period is
elapsed, the PDCtransfer request is never set to ‘1’.
2
0
The WRDY flag in “PWM Interrupt Status Register 2” and the PDC transfer request are set to ‘1’
as soon as the update period is elapsed.
1
The WRDY flag in “PWM Interrupt Status Register 2” and the PDC transfer request are set to ‘1’
as soon as the selected comparison matches.