LCU out PWM

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

LCU out PWM

4,364 Views
zeyu__1
Contributor I

 

I would like to know how to generate the application in this reference document through LCU components or have routines implemented through API functions in SDK. Thank you very much for your help!

lcu.png

0 Kudos
Reply
5 Replies

4,343 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@zeyu__1

attached is a bried routine I wrote when testing LCU and eMIOS module.

The LCU module is used to realize the output of complementary PWM with insert dead time.

 

If you want to have a deeper understanding of its implementation process, the following information will be very helpful to you.

https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/s32k344-brushless-d... 

Senlent_0-1700536055105.png

 

0 Kudos
Reply

4,332 Views
zeyu__1
Contributor I

Hi@Senlent 

Thank you very much for sharing, I am trying to replicate your routine,I want to drive the stepper motor driver through a PWM,Can you provide some thoughts on the unintended effects of my one-way PWM using only LCU out

0 Kudos
Reply

4,325 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@zeyu__1

The routine I provide you is already the simplest one.

eMIOS.ch1->TRGMUX->LCU0.0->Pair PWM with Dead time.

0 Kudos
Reply

4,312 Views
zeyu__1
Contributor I

Hi@Senlent

I understand the logic of what you said, based on which I would like to discuss something else with you,

For example, is it possible to write UCDIS registers to enable and disable PWM output at will after initialization via this API function Emios_Pwm_Ip_SetChannelEnable (), and also, after the LCU initializes and sets the output, I mean after the hardware is connected and can output PWM, Is it possible to change the PWM duty cycle and period of eMIOS output through API functions to achieve more operations?

Thank you very much for your answer, and I look forward to your reply this time

0 Kudos
Reply

4,304 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@zeyu__1

yes, you can test the demo project that i have sent you.

0 Kudos
Reply