25.6.5.25 Enum tcc_wave_generation

This enum is used to specify the waveform generation mode.

Table 25-94. Members
Enum valueDescription

TCC_WAVE_GENERATION_NORMAL_FREQ

Normal Frequency: Top is the PER register, output toggled on each compare match.

TCC_WAVE_GENERATION_MATCH_FREQ

Match Frequency: Top is CC0 register, output toggles on each update condition.

TCC_WAVE_GENERATION_SINGLE_SLOPE_PWM

Single-Slope PWM: Top is the PER register, CCx controls duty cycle ( output active when count is greater than CCx).

TCC_WAVE_GENERATION_DOUBLE_SLOPE_CRITICAL

Double-slope (count up and down), non centre-aligned: Top is the PER register, CC[x] controls duty cycle while counting up and CC[x+N/2] controls it while counting down.

TCC_WAVE_GENERATION_DOUBLE_SLOPE_BOTTOM

Double-slope (count up and down), interrupt/event at Bottom (Top is the PER register, output active when count is greater than CCx).

TCC_WAVE_GENERATION_DOUBLE_SLOPE_BOTH

Double-slope (count up and down), interrupt/event at Bottom and Top: (Top is the PER register, output active when count is lower than CCx).

TCC_WAVE_GENERATION_DOUBLE_SLOPE_TOP

Double-slope (count up and down), interrupt/event at Top (Top is the PER register, output active when count is greater than CCx).