Control D

Name:
CTRLD
Offset:
0x03
Reset:
0x00
Access:
-
Bit76543210
CMPBVAL[3:0]CMPAVAL[3:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

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

Compare x Value (in active state)

These bits sets 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 (CTRLC.CMPOVR) 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.