Pages: [1]   Go Down
Author Topic: PWM and its logic level inverse  (Read 457 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I am building basically some thing like a AC motor controller, the design uses a full H-bridge to generate alternating current. I have 2 problems I cant figure out. First is I need a PWM signal, easy part, but I also need its logic level inverse, can I do this all inside a atmega328 or equivalent or do I need an external inverter. I would like very much to minimize the parts count. Second is how much trouble is it to change the PWM frequencies on the program end of thing and when the chip is on and running.

Thanks
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can I do this all inside a atmega328

Not well.  You would have to do software PWM.

Quote
or equivalent or do I need an external inverter

Better choice.

Or, some ATtiny models have inverted output with "dead-time generator".


Quote
Second is how much trouble is it to change the PWM frequencies on the program end of thing and when the chip is on and running.

Depends on the frequency.  Changing the "prescalar" is trivial but the frequency changes are rather dramatic.  It is possible to fine tune the frequency but there is potentially some lost resolution.  In other words, it all depends on the details.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34229
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need a TC4428, it is two half H-bridges with inverted inputs so you just connect the two inputs to the same pin.
If you need more current than this will provide then use the outputs to drive another pair of FETs.
Logged

Pages: [1]   Go Up
Jump to: