TIDUCL0 January 2017
PWM_PERIOD sets the value in capture and compare register 0 of Timer_D0. The Timer_D is initialized to operate at 25 MHz; see Equation 4 to calculate the PWM frequency. The TIMER_D PWM is configured in up-down mode.
For example, with PWM_PERIOD = 625: