Hello,
I am working with the TWR-KV46F150M evaluation board and using MCUXpresso IDE. I have downloaded and installed SDK version 2.8.0 for the TWR-KV46F150M. I am currently testing the PWM driver example by directly importing it from the SDK. i have attached the screen shot of the example project i have imported from SDK.
I can see the PWM output on the pin corresponding to submodule 0, but there is no PWM output on the pin assigned to submodule 1.
Thank you for your assistance. Any guidance or suggestions to resolve this issue will be greatly appreciated.
Hello @EmbedALM
When running the demo, what message is displayed in the terminal?
And please refer to readme.txt to measure the signal using an oscilloscope.
* Probe the pwm signal using an oscilloscope
- At J501_9
- At J501_11
- At J501_30
- At J501_34
BR
Alice
Hello Alice,
Thank you for your response. I checked the terminal, and it displays only "FlexPWM driver example". I also followed the instructions in the readme.txt and probed the pins using an oscilloscope as suggested.
Here’s what I observed:
Additionally, I tried modifying the code by changing the clock setting for submodule 1. Specifically, I replaced:
"pwmConfig.clockSource = kPWM_Submodule0Clock;"
with
"pwmConfig.clockSource = kPWM_BusClock;"
Could you clarify:
Hello @EmbedALM
I have tested the PWM demo on my side, and I have the same issue as yours. Finally, I checked a thread to analyze this issue.
https://community.nxp.com/t5/Kinetis-Support/SDK-PWM-demo-error-on-some-PWM-pins/ta-p/1310710
"
The root cause of the issue is that the demo configures the prescale divider for submodules 1 and 2 to a divide of two. In addition, these submodules use the Master Sync from submodule 0 for the initialization control. This, coupled with a clock that is twice as slow as submodule 0, causes submodules 1 and 2 to re-initialize before the output pins are able to change states.
Set the prescale divide for submodules 1 and 2 to a divide of one (instead of two).
"
I hope this information helps you.
BR
Alice