68.7.49 PWM Channel Mode Update Register

This register can only be written if bits WPSWS2 and WPHWS2 are cleared in the PWM Write Protection Status Register.

This register acts as a double buffer for the CPOL value. This prevents an unexpected waveform when modifying the polarity value.

Name: PWM_CMUPDx
Offset: 0x0400 + x*0x20 [x=0..3]
Reset: 
Property: Write-only

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
   CPOLINVUP   CPOLUP  
Access WW 
Reset  
Bit 76543210 
          
Access  
Reset  

Bit 13 – CPOLINVUP Channel Polarity Inversion Update

If this bit is written at ‘1’, the write of the bit CPOLUP is not taken into account.

ValueDescription
0

No effect.

1

The OCx output waveform (output from the comparator) is inverted.

Bit 9 – CPOLUP Channel Polarity Update

The write of this bit is taken into account only if the bit CPOLINVUP is written at ‘0’ at the same time.

ValueDescription
0

The OCx output waveform (output from the comparator) starts at a low level.

1

The OCx output waveform (output from the comparator) starts at a high level.