p3p / pio-framework-arduino-lpc176x

10 stars 20 forks source link

Enable Hardware PWM, Frequency modification #16

Closed p3p closed 5 years ago

p3p commented 5 years ago

Hardware PWM channels are enabled again, although latching needed disabled for reliable function, needs further investigation.

Added the framework for changing the frequency of both Software and Hardware PWM, Hardware PWM will run upto 100KHz and maintain 256 levels, overhead of Software PWM would be a problem even in simple applications above 10KHz.