LPC1125 complementary PWM generation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1125 complementary PWM generation

1,130 Views
stepan_rydval
Contributor I

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

0 Kudos
1 Reply

1,118 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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:

https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mc...

an12602sw

Hope it can help you

BR

XiangJun Rong

 

 

0 Kudos