Control D
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CMPBVAL[3:0] | CMPAVAL[3:0] | ||||||
AccessR/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
Reset0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Compare x Value (in Active state)
This bit field sets the logical value of the PWMx signal for the corresponding states in the TCD cycle.
These settings are valid only if the Compare Output Value Override (CMPOVR) bit
in the Control C (TCDn.CTRLC) register is written to ‘1
’.
CMPxVAL | DTA | OTA | DTB | OTB |
---|---|---|---|---|
PWMA | CMPAVAL[0] | CMPAVAL[1] | CMPAVAL[2] | CMPAVAL[3] |
PWMB | CMPBVAL[0] | CMPBVAL[1] | CMPBVAL[2] | CMPBVAL[3] |
When used in One Ramp mode, WOA will only use the setup for Dead-Time A (DTA) and On-Time A (OTA) to set the output. WOB will only use Dead-Time B (DTB) and On-Time B (OTB) values to set the output.
CMPxVAL | DTA | OTA | DTB | OTB |
---|---|---|---|---|
PWMA | CMPAVAL[1] | CMPAVAL[0] | - | - |
PWMB | - | - | CMPBVAL[3] | CMPBVAL[2] |