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

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

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

Jump to solution
490 Views
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 Kudos
1 Solution
477 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
478 Views
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 Kudos