gneidermeier / stm8_mcp

Open-source brushless motor control firmware on STM8s microcontrollers.
Apache License 2.0
6 stars 5 forks source link

PWM at 12kHz #16

Closed gneidermeier closed 3 years ago

gneidermeier commented 3 years ago

Observed Castle Creations running PWM at 12k. Verify that PWM can be set to both 8kHz and 12kHz and probably 16kHz should be possible as well (w/o consuming too much CPU on the ISRs). Higher PWM should improve sampling of voltage/back-EMF. This one is probably going to need to wait in line behind e.g. #12

gneidermeier commented 3 years ago

PWM is setup for 10k - see commit 165f17c1abdff90c892b4ccb9f599531f9d2a7c8