AnsweredAssumed Answered

FTM Quad Decoder with A/B/Z on TWR-K64F

Question asked by Andy Berger on Mar 16, 2018
Latest reply on May 17, 2018 by xiangjun.rong

I am using a TWR-K64F-120M dev board and would like to input quadrature decoder A, B, and Z inputs. I have been able to successfully run the ftm_quad_decoder example based on A/B inputs. However, this demo uses FTM2. The 144-pin MAP BGA chip that I have only has pins available for CH0 and CH1 for FTM2. It does however have all 8 channels for FTM0, but in this case, there is no QD_PHA or QD_PHB (quadrature phase A and phase B) ALT functionality for any of the 8 pins, so it's not obvious to me how to set up FTM0 for this mode. 


For example, I can modify the FTM0_QDCTRL register, but how do I specify which of the 8 channels correspond to A, B, and Z?


Are there demo projects that I could reference for setting up A/B/Z decoding?