// TODO 16.01
            // TCC2_PWM16bitDutySet( 1, (uint32_t)ADC_Result[0] * (TCC2_PWM16bitPeriodGet() + 1) / 4095 );


// TODO 16.02
uint8_t Duty = 50;
int8_t DutyDistance = 2;


// TODO 16.03
            Duty += DutyDistance;
            if (Duty >= 100 || Duty <= 0)
                DutyDistance = -DutyDistance;
            
            TCC2_PWM16bitDutySet( 1, ((uint32_t)Duty * (TCC2_PWM16bitPeriodGet() + 1)) / 100 );
