S32K144 FTM support hall sensor FTM支持霍尔传感器

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 FTM support hall sensor FTM支持霍尔传感器

ソリューションへジャンプ
388件の閲覧回数
Lilac
Contributor I

在电机控制中,需要通过输入捕获获取3路霍尔信号,将三路信号通过异或功能集中到一路信号中触发中断。资料中提出SIM模块FTMOPT1寄存器的FTM2CH1SEL位可以实现这种异或功能,将FTM2CH0,FTM2CH1,FTM1CH1三路引脚通过异或后由FTM2CH1引脚经过输入捕获触发边沿跳变中断。但我一直是使用组件进行模块配置,从未使用过SIM模块配置,上述功能具体应该如何实现?

In motor control, three Hall sensor signals need to be acquired by input capture, and the three signals are concentrated into one signal through the XOR function to trigger the interrupt. The FTM2CH1SEL bit of FTMOPT1 register of SIM module can realize this XOR function. FTM2CH0,FTM2CH1,FTM1CH1 pins  XOR to FTM2CH1 pin, then pass through input capture to trigger edge hopping interrupt. However, I have always used components for module configuration and never used SIM module configuration. How should the above functions be implemented?

0 件の賞賛
1 解決策
375件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Lilac,

Please refer to the AN12435

AN12435 HALL_SENSOR macro.pngExample 5. S32K144 FTM2 configured by S32 SDK.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
1 返信
376件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Lilac,

Please refer to the AN12435

AN12435 HALL_SENSOR macro.pngExample 5. S32K144 FTM2 configured by S32 SDK.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛