Hello,
I am currently working on trying to get an 2 PWM output signals with different frequency with the LPC54102.
The SCT right now is able to output one signal, but I am trying to do the same with the CB32Tx peripheral. I couldn't get around any example codes on how to do it, I was wondering if you guys have any material I could use???? is this application achievable????
thanks,
Ricardo B.
Hi,
Pls download SDK package from the website for LPC54102-EVK:
https://mcuxpresso.nxp.com/en/welcome
and refer to PWM example based on CTimer.
Hope it is helpful
BR
XiangJun Rong
Hello Xiangjun,
I was able to output the signals needed from the CB32T0 and CB32T1 (both 512Hz signals with 45% of duty cycle).
At this time, I have one more question. I need to invert the signals between each other. While Timer0 is outputting a high, I need Timer1 to output a low state. Is there a way to accomplish this????
thanks again.
Hi,
Regarding your question, it is impossible to generate a pair of complementary PWM signals with CB32Tx, the PWM signal with CB32Tx always outputs low at start, and outputs high when a match happens, furthermore, it does not has the feature to invert the output signal.
Hope it can help you
BR
XiangJun Rong
what about the SCT ? is the SCT block capable ???
Thanks for your help, I was able to setup the sct to get the 2 complementary signals.
thanks for your help Xiangjun!