Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

need help with dead time in PWM

Status
Not open for further replies.

pike

Member
A dead time is a small period in the oscillation that totally cuts power to an output pin. I don't think this is needed, cuz i can't think of any reason you would want to do this.

A dead time is usually incorporated into Switch-mode power supplies, this stops both mosfets on the primary winding from firing on the same time.

If you did include the "dead time" the lo time would be extended, so if you had a 50/50 PWM this "dead time" period would alter the low time and aswell as the frequency.

Why do you need this dead time???
 

pike

Member
In that case, you can't do it. PIC's dont support a dead time in a PWM. The best way to do it is to do it manually.

I think there are 2 pins which you are using to switch simultanously on the PIC. You gonna have to incorporate a 1us when both pins are off.

to do this just incorporate a "nop" in between the transistions. Your gonna have to do the switching manually without using using the PWM module.

@ 4mhz, a "nop" will take exactly 1us
@8mhz, a nop will take exactly 500ns
....and so on
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Top