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?
Solved! Go to Solution.
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:
Best Regards,
Marek Neuzil
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:
Best Regards,
Marek Neuzil
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
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
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.