Need sample code of FTM for PWM Generation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need sample code of FTM for PWM Generation

ソリューションへジャンプ
4,830件の閲覧回数
sujinvincent
Contributor II

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

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
3,158件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Maybe you can refer the example in "AN5142 Features of the FlexTimer Module".

AN5142.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

6 返答(返信)
3,158件の閲覧回数
mjbcswitzerland
Specialist V
0 件の賞賛
返信
3,158件の閲覧回数
sujinvincent
Contributor II

thanks mark

0 件の賞賛
返信
3,158件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Sujin,

You can refer the PWM examples in KINETIS-SDK.

FTM PWM SDK_2.1_MK26FN2M0xxx18.png

Please search K26 then select MK26FN2M0xxx18 and download SDK_2.1_MK26FN2M0xxx18.

Select K26.png

Download SDK_2.1_MK26FN2M0xxx18.png
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!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
3,158件の閲覧回数
sujinvincent
Contributor II

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

0 件の賞賛
返信
3,159件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Maybe you can refer the example in "AN5142 Features of the FlexTimer Module".

AN5142.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,158件の閲覧回数
sujinvincent
Contributor II

Thanks Robin

0 件の賞賛
返信