Hi All,
I am using Kinetis K26-180M, I am new for embedded system and i need to generate multiple frequency's tone using PWM,
In my hardware the speaker lines are with FTM1 and FTM2 modules, could you please give any sample code for pwm genration on FTM module. also i am using IAR embedded work bench.
Thanks and Regards,
sujin
Solved! Go to Solution.
Hi
Maybe you can refer the example in "AN5142 Features of the FlexTimer Module".
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
See chapter 5 and Appendix D of http://www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF
Regards
Mark
thanks mark
Hi Sujin,
You can refer the PWM examples in KINETIS-SDK.
Please search K26 then select MK26FN2M0xxx18 and download SDK_2.1_MK26FN2M0xxx18.
You can getting start with KSDK reading "How to start with KSDK".
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Robin
thanks for you time
I got those examples, I gone through it, I feel too hard to digest those configurations and coding, Bcoz I am entirely new for embedded system, so if there is any code for accessing from register level it will more helpful to me
my situation is like i need to create bare metal example in which configure the clock as external 16 MHZ oscillator, from that oscillator i need to clock the timer module.
Thanks and Regards,
Sujin Vincent
Hi
Maybe you can refer the example in "AN5142 Features of the FlexTimer Module".
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Robin