Closed greymfm closed 1 year ago
Hey @greymfm,
This is intentionally left unimplemented. The generic driver for 6pwm does not really exist and your code might work for your case but will not work in most cases. And due to the inherent complexity od 6pwm implementations on different hardware platforms we prefer to leave these functions unimplemented.
You are absolutely right - In this moment I see the problem with my code (it only produces a deadtime at the falling edge but not at the rising edge ...) - I was missing a comment like yours in the generic code ;-) (like 'you cannot implement a deadtime in a generic way, it is always hardware-specific...') :-)
function '_writeDutyCycle6PWM' is missing in: https://github.com/simplefoc/Arduino-FOC/blob/dev/src/drivers/hardware_specific/generic_mcu.cpp
The missing (and tested) code is like this: