23.3.2.3.2 Two Ramp Mode

In Two Ramp mode the TCD counter counts up until it reaches the CMPACLR value, then it Resets and counts up until it reaches the CMPBCLR value. Then, the TCD cycle is done and the counter restarts from 0x000, beginning a new TCD cycle. The TCD cycle period is given by:

T TCD_cycle = ( CMPACLR + 1 + CMPBCLR + 1 ) f CLK_TCD_CNT
Figure 23-5. Two Ramp Mode

In the figure above, CMPASET < CMPACLR and CMPBSET < CMPBCLR. This causes the outputs to go high. There are no restrictions on the CMPASET/CLR compared to the CMPBSET/CLR values.

In Two Ramp mode, it is not possible to get overlapping outputs.