22.5.4 Control D

Name: CTRLD
Offset: 0x03
Reset: 0x00
Property: -

Bit 76543210 
 CMPBVAL[3:0]CMPAVAL[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 0:3, 4:7 – CMPVAL Compare x Value (in active state)

These bits set the active state for the different ramps for compare x.

These settings are only valid if the Compare Output Value Override bit in the Control C register (CMPOVR bit in TCDn.CTRLC) is written to '1'.

CMPxVAL A_off A_on B_off B_on
PWMA CMPAVAL[0] CMPAVAL[1] CMPAVAL[2] CMPAVAL[3]
PWMB CMPBVAL[0] CMPBVAL[1] CMPBVAL[2] CMPBVAL[3]

In One Ramp mode, PWMA will only use A_off and A_on values and PWMB will only use B_off and B_on values. This is due to possible overlap between the values A_off, A_on, B_off, and B_on.