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.
Hi,
How long are the delays and how do you measure that?
Thanks,
Daniel
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 us
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