Hello everybody,
I am playing with FRDM-KL25Z at the moment, namely with Init_TMP component and blue LED. If I want to set up the mode of channels as a Center-aligned PWM, output signal is not produced farther away. But if I change it to Edge-aligned PWM, it works fine and LED lights.
In attachment you can see screenshot of my current setting.
Is there any bug, or so? This puzzles me.....
Thank you.
Hi Alice,
I would like to thank you for your advice and help.I highly appreciate it. Center-aligned PWM is working properly at the moment :-)
Have a nice day.
Miroslav
Hi Miroslav
Welcome !
BR
Alice
Hello Miroslav,
I test your project on my side , find there is a bug in the generated code of Init_TPM.
Please add these code in the file of "TPM0.C"
TPM0_C0SC = (TPM_CnSC_MSB_MASK | TPM_CnSC_ELSB_MASK);
and disable the original code of TPM0_C0SC :
After change the code, please choose " Don't Write Generated Component Modules":
Then build , run ...
I also attached the project which I changed .
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Miroslav,
Could you please share your project to me , I will check it on my side .
BR
Alice