FTM Quad Decoder Demo App

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FTM Quad Decoder Demo App

755 Views
Keith4DSmith
Contributor V

The following code snippet is from the SDK 2.4 ftm_quad_decoder example in the 'demo_apps' folder.

/* Set the modulo values for Quad Decoder. */
FTM_SetQuadDecoderModuloValue(DEMO_FTM_BASEADDR, 0U, DEMO_QUAD_DECODER_MODULO);

/* Enable the Quad Decoder mode. */
phaseParamsConfigStruct.enablePhaseFilter = true;
phaseParamsConfigStruct.phaseFilterVal = 16;
phaseParamsConfigStruct.phasePolarity = kFTM_QuadPhaseNormal;
FTM_SetupQuadDecode(DEMO_FTM_BASEADDR, &phaseParamsConfigStruct, /* Phase A. */
&phaseParamsConfigStruct, /* Phase B. */
kFTM_QuadPhaseEncode);

The assignment

phaseParamsConfigStruct.phaseFilterVal = 16;

has not affect.

The width of the phaseFilterVal is only 4 bits. 16 is the same as zero.

Labels (1)
0 Kudos
2 Replies

538 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Keith Smith,

Thanks for reporting this issue.
I will inform our MCUXpresso SDK team.

Best Regards,

Robin

0 Kudos

538 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Received the reply from MCUXpresso SDK team, they will fix it in the next version.

Best Regards,

Robin

0 Kudos