tinyt Guru
 Joined: 12/11/2017 Location: United StatesPosts: 441 |
Posted: 02:41pm 01 Nov 2018 |
|
|
|
Thanks poida, as always you share your work generously with no hesitation, more codes for me to learn from.
Way back I attempted to modify the AS 7 version code you shared to create deadtimes in the sinewave pwm. No problem with the 50Hz ports, but I was not successful with the 20Khz ports. I even mixed assembler and C, lost more of my side hairs doing that (top is gone a long time ago). If I remember I was able to do it on the leading edges of the SPWM pulses. But I think it is impossible to do it on the trailing edges using the arduino-atmega328 hardware. Your approach of using the IR2184 to do it is best.Edited by tinyt 2018-11-03 |