FTM Quad Decoder Demo App

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FTM Quad Decoder Demo App

762 次查看
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.

标签 (1)
0 项奖励
2 回复数

545 次查看
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 项奖励

545 次查看
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 项奖励