CONFIGURING PWM PINS AS INVERTER MODE

Dear all,

I would like to generate the complementary PWM signal from a one given by a duty cycle in a certain PWM pin with my Arduino Due. My application is controlling power electronic.

I am not so skilled programmer, but I could do it in the past with my Arduino Mega since I found more information about this than for the Due.

I guess that could be necessary to program the internal register for this purpose, configuring an inverter mode, etc. but if sb share an example about how to do this i will be really glad. The configuration of dead time would be also welcome.

Thanks in advance.

You should find what you're looking for in there. I haven't touched it in over a year. Presumably it still could compile. At one point I really did drive the inverter for an electric car with it.

You own the pieces if you use it. Your millage may vary. Past performance is not indicative of future results. If it freaks out, gains sentience, and kills us all that's on you. But, it's free code. Use what you want.

Thank you very much¡,

It was indeed helpful.

We got what we wanted by manipulating slightly your material.