S32K148 ftm resolver ABZ

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

S32K148 ftm resolver ABZ

607 次查看
Leon06
Contributor III

Hi all,

 

I have a question regarding the S32K148 and its ability to read ABZ signals from a resolver.

PTD10>>FTM2_QD_PHB

PTD11>>FTM2_QD_PHA

PTD12>>FTM2_CH2

I’m using the FTM Quadrature Decoder (QD) function to capture the A and B signals, and I would like to clear the FTM counter when the Z signal rises, in order to ensure that any errors are cleared.

Is it correct to configure PTD12 as an input capture pin for this purpose?

 

Thanks,

Leon

#s32k148

标记 (1)
0 项奖励
回复
1 回复

583 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Leon06

From your description, it is not necessary to set PTD12 as input capture.

It should also be possible to set it as GPIO port edge interrupt, which seems simpler.

0 项奖励
回复