I am programming a MKE02Z32 using KDS and Processor Expert. I am using the FTM module(specifically the FTM2) to create a set of control signals. I have this basically working correctly. My question involves the best way to enable/disable the signals as a group. Is there a way from the software to do this enabling/disabling dynamically? I need the signals to take their programmed initial levels when disabled (say because of some other detected fault condition) and then to be able to re-enable them.
Hi Robert,
Does the function of "Enable()" and "Disable()" can meet your requirement ?
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have instantiated a FTM2 component. I do not see a Timer under Referenced_Components only a MCULibConfig therefor the functions you mention do not present themselves as available.
Thanks
Bob
Hello Robert,
You can also write disable/enable code by yourself , it just configure the register of :FTMx_SC
The two functions I mentioned also only configure this register:
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------