I was wondering if there is a version of the Assembly SimonK Firmware for Quadcopters' ESCs written in AVR C. Also, if it does not exist, how hard would it be to code one?
How hard? For you or me??????
I’ve not looked closely at the code but I suspect it is very timing sensitive, thus the need for asm. Higher level parts of the code could probably be done in C. At a minimum, you’d need specific bits of inline asm.
You can get more advanced micros with hardware in the timers more suited to BLDC control. With these, using C is more likely.
The reason the people at Castle Creations made as much money as they have is that they have some really smart guys who have ironed out all the issues in developing BLDC ESCs where others have failed. Sadly for them the Chinese found some equally smart guys and the ESC market tends to be flooded with Chinese imports these days. But it is not (generally) something you just knock together in your back bedroom (or if you intend to budget for a large stock of MOSFETs as you are likely going to burn your way through a few before you are finished!).
Having said that I guess Mr Castle Creations probably started the whole endeavour in his back bedroom a long time ago so if you work at itfor a year or two you may be able to come up with a stable design too (and then make millions!)
© 2020 Microchip Technology Inc.