Hello, I am trying to create H-BRIDGE controller for project that I shouldnt be speaking about. I am using four n-channel mosfets. I have to develop software that will control mentioned h bridge, so I need complementary PWM signals.
I know, that LPC1125 does not natively support complementary outputs, but is there a way to somehow do it?
I thought about using two timers, where one of them will have slightly different duty cycle and polarity, so it will create deadtime. I got stuck with changing the polarity of the timer. I havent found register to do that.
Second thought was to use four match registers and their outputs, but that also failed, cause I cant tie together two match register outputs withou some logical gates.
Third thought is to use other mcu, but LPC1125 is really cheap and I am really budget tied. What would you potentionally reccomend. Thanks in advance
Hi,
The SCTimer supports to generate the complementary PWM signal pair with dead time, we have the example to control BLDC with SCTimer as PWM signals generator.
Pls refer to the section 9. PWM with deadtime in AN11538.pdf
For the BLDC control, pls refer to an12602.pdf
https://www.nxp.com.cn/docs/en/application-note/AN12602.pdf
and software package:
an12602sw
Hope it can help you
BR
XiangJun Rong