52.7.9 PWM Channel Mode Register x

Name: PWM_CMRx
Offset: 0x0200 + x*0x20 [x=0..3]
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
      CPDCPOLCALG 
Access R/WR/WR/W 
Reset 000 
Bit 76543210 
     CPRE[3:0] 
Access R/WR/WR/WR/W 
Reset 0000 

Bit 10 – CPD Channel Update Period

ValueDescription
0 Writing to PWM_CUPDx will modify the duty cycle at the next period start event.
1 Writing to PWM_CUPDx will modify the period at the next period start event.

Bit 9 – CPOL Channel Polarity

ValueDescription
0 The output waveform starts at a low level.
1 The output waveform starts at a high level.

Bit 8 – CALG Channel Alignment

ValueDescription
0 The period is left-aligned.
1 The period is center-aligned.

Bits 3:0 – CPRE[3:0] Channel Prescaler

ValueNameDescription
0000 MCK

Peripheral clock

0001 MCKDIV2

Peripheral clock divided by 2

0010 MCKDIV4

Peripheral clock divided by 4

0011 MCKDIV8

Peripheral clock divided by 8

0100 MCKDIV16

Peripheral clock divided by 16

0101 MCKDIV32

Peripheral clock divided by 32

0110 MCKDIV64

Peripheral clock divided by 64

0111 MCKDIV128

Peripheral clock divided by 128

1000 MCKDIV256

Peripheral clock divided by 256

1001 MCKDIV512

Peripheral clock divided by 512

1010 MCKDIV1024

Peripheral clock divided by 1024

1011 CLKA

Clock A

1100 CLKB

Clock B

Other

Reserved