52.7.13 PWM Channel Update Register x

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

Bit 3130292827262524 
 CUPD[31:24] 
Access WWWWWWWW 
Reset  
Bit 2322212019181716 
 CUPD[23:16] 
Access WWWWWWWW 
Reset  
Bit 15141312111098 
 CUPD[15:8] 
Access WWWWWWWW 
Reset  
Bit 76543210 
 CUPD[7:0] 
Access WWWWWWWW 
Reset  

Bits 31:0 – CUPD[31:0] Channel Update Register

This register acts as a double buffer for the period or the duty cycle. This prevents an unexpected waveform when modifying the waveform period or duty cycle.

Only the first 16 bits (internal channel counter size) are significant.

When PWM_CMRx.CPD = 0, the duty cycle (CDTY of PWM_CDTYx) is updated with the CUPD value at the beginning of the next period.

When PWM_CMRx.CPD = 1, the period (CPRD of PWM_CPRDx) is updated with the CUPD value at the beginning of the next period.