half bridge/full bridge pwm

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

Post Reply
richardb
Posts: 310
Joined: Tue Oct 03, 2006 8:54 pm

half bridge/full bridge pwm

Post by richardb » Mon Jan 29, 2024 1:12 pm

Hi 'm having small issue with A switching IC it's a hip4081a and there is an issue where is can blow itself up on start-up if its pins and brought up incorrectly. long story short...
i need to either use the clc's to invert the pwm output onto a different pin and also set both to low on startup

or

enable the half bridge mode for the pwm but i wasnt sure if there was a simple way to do this.


i have used half bridge mode before in a pic18f4550 but i'm now using(going to use)a pic18f27q43

do i need to use the 16bitpwm mode to do this?


Rich
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: half bridge/full bridge pwm

Post by Jerry Messina » Mon Jan 29, 2024 2:13 pm

The PWM peripheral has a lot more control than the CCP used in PWM mode. but you might look at the CWG (complimentary waveform generator).

In any case, if you need the IO pins to power up low you'll have to add pulldown resistors on the IO pins to keep the pins low during startup.
IO pins powerup as inputs, so they'll be floating until you get a chance to initialize them.

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: half bridge/full bridge pwm

Post by Jerry Messina » Mon Jan 29, 2024 11:30 pm

Looking at the HIP4081A datasheet, it has a DIS input that would help with initialization issues.
If you pull that high it should disable the outputs until you have set up the PWM outputs... tie that to an IO pin and set it low once everything is ready.

Both the PWM and CWG peripherals can generate complimentary signals, or as you mentioned you can use a CLC to invert the CCP PWM output.

richardb
Posts: 310
Joined: Tue Oct 03, 2006 8:54 pm

Re: half bridge/full bridge pwm

Post by richardb » Tue Jan 30, 2024 8:06 am

yeah you think the disable input would be ideal and i was using it, but.......


there is an obscure Tb321 application note which suggests that you can get shoot-through faults. if you don't start with certain configurations.


although i'm starting to think that only applies to the original part. there is now an "A" variant which is what I am using.



Thanks for looking John.


Rich
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: half bridge/full bridge pwm

Post by Jerry Messina » Tue Jan 30, 2024 12:48 pm

I see. That app note would worry me... think I'd add the pulldown resistors to the ALI/BLI inputs to keep them low just in case.

Post Reply