Regarding Hall Sensor on S12ZVML

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

Regarding Hall Sensor on S12ZVML

652 Views
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 Kudos
3 Replies

476 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

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

Thanks,

Daniel

0 Kudos

476 Views
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 Kudos

476 Views
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 Kudos