Regarding Hall Sensor on S12ZVML

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

Regarding Hall Sensor on S12ZVML

792 次查看
pratibhasurabhi
Contributor V

Hi I am using MTRCKTSBNZVM128 starter kit for Hall sensor algorithm.

I have found out a considerable and varying amount of delay from the moment hall pattern is changed and Hall ISR is serviced.Also the Hall ISR are not periodic in nature.

Can someone please tell me the reason behind this and also how to alleviate this problem of delay between actuall hall signal change and ISR.

0 项奖励
回复
3 回复数

616 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

How long are the delays and how do you measure that?

Thanks,

Daniel

0 项奖励
回复

616 次查看
pratibhasurabhi
Contributor V

Hi Daniel ,

The delay vary, they are in the range of 30 us to 80us.

I am attaching a screenhot where i took 3 signals

Hall Signal motor side (H1), Hall signal on the port of the MCU(H1_MCUPort) and Hall ISR occurence.(Hall_ISr)

In the screenshot attached the delay is of 44 usHallDelay.JPG

0 项奖励
回复

616 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The signals at PT1/2/3 have to reach V_IH, V_IL (Table A-12, #1-5, S12ZVM RM) to be detected.

Also, the IC1 interrupt has the second highest priority (5) after ADC0_done (6), as per MTRCKTSBNZVM128 source code. If there is ADC0_done ISR in progress, IC1 interrupt must wait.

 

Regards,

Daniel

0 项奖励
回复