FTM Output Trigger using Processor Expert

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

FTM Output Trigger using Processor Expert

ソリューションへジャンプ
1,003件の閲覧回数
philipp_laemmle
Contributor II

Hi

I'm using the MK21FN1M0 and I want to trigger the PDB from FTM output. Unfortunately I can't enable the trigger output on the TimerUnit in Processor Expert. Do you have any suggestions?

pastedImage_0.png

pastedImage_1.png

タグ(4)
1 解決策
571件の閲覧回数
marek_neuzil
NXP Employee
NXP Employee


Hello Philipp,

You are right that TimerUnit_LDD does not provide properties to configure the external trigger (FTM_EXTTRIG register) that are used by PDB device. You can used TimerUnit_LDD and configure the FTM_EXTTRIG register by the FTM_PDD_WriteExternalTriggerReg(PeripheralBase, Value) PDD macro. Or you can use Init_FTM component that cover all register of the FTM (there are version specific registers; use the Advance view in the Component Inspector), see the following screenshot:

Init_FTM_ExternalTriggers.png

Best Regards,

Marek Neuzil

元の投稿で解決策を見る

4 返答(返信)
572件の閲覧回数
marek_neuzil
NXP Employee
NXP Employee


Hello Philipp,

You are right that TimerUnit_LDD does not provide properties to configure the external trigger (FTM_EXTTRIG register) that are used by PDB device. You can used TimerUnit_LDD and configure the FTM_EXTTRIG register by the FTM_PDD_WriteExternalTriggerReg(PeripheralBase, Value) PDD macro. Or you can use Init_FTM component that cover all register of the FTM (there are version specific registers; use the Advance view in the Component Inspector), see the following screenshot:

Init_FTM_ExternalTriggers.png

Best Regards,

Marek Neuzil

571件の閲覧回数
philipp_laemmle
Contributor II

Hello Marek

Thanks for your help.

In case of using the peripheral init module, I have to implement the methods for the timer by myself. Is this right?

Best Regards

Philipp

0 件の賞賛
571件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Philipp,

I look at your PDB clock have not enable .

And Why FTM cant trigger PDB,  this is not only depend on your processor expert configuration , but also your code.

Please attach your code , or say in detailed.

Best Regards!

Alice

0 件の賞賛
571件の閲覧回数
robotjosh
Contributor IV

Processor expert often does not give you complete control.  Its a great tool to use as a starting point to get stuff kinda working.  Then you can look at what it does to write the real driver.

0 件の賞賛