progress for today and yesterday
experimenting with phase correct pwm
working phase correct PWM

Frequency still not final value. Set low for debug purposes. ADC is not working quite as expected. Possibly because it uses 10bit