AnsweredAssumed Answered

FTM Quad Decoder will not interrupt on time overflow

Question asked by Andy Berger on Jul 26, 2018
Latest reply on Aug 2, 2018 by Alice_Yang

I am initializing an FTM module using MCUXpresso Config Tools (v4.0) in Quadrature Decoder Mode, and setting CNTIN = 0 and MOD = 399. I have checked "Time overflow interrupt" and "Enable interrupt request" to generate an interrupt each time the counter wraps around from MOD to CNTIN. However, Config Tools will not generate the code: 

FTM_EnableInterrupts(FTM_2_PERIPHERAL, kFTM_TimeOverflowInterruptEnable);

when I toggle "Time overflow interrupt", so I have had to add it manually. This is dangerous, since peripherals.c will be overwritten by future changes to the initialization from Config Tools.


This seems to be a bug with Config Tools, since it does generate the FTM_EnableInterrupts() command for FTM channels that are not set up in Quadrature Decoder Mode.