- Fixed regen oscillation bug by updating the pulse time on every PWM cycle
- Using DMA for pulse counting to allow the pulse rate to be higher than the PWM frequency
- Allowing 1.1kHz PWM frequency