Min PWM frequency set to 16kHz
New ZC detector got some cleanup
More cleanups
Lock-free duty cycle update