I am using eCAP module to compute wheel speed , and i observed some spike in the speed data.Whenever the spike is seen in data i could observe that the C1 capture tick is incorrect, that is its coming very quicker than the ideal pulse count should be eg.ideal pulse should not coming within 200 micro seconds but the c1 capture is lesser than that which intern affects the upcoming capture ticks also.I am using interrupt bsed eCAP capture as soon as the event4 occurs it gets inot ISR and i will be getting those capture values and reseting the eCAP counter then wrap again to eCAP1.
I have two question
1)Do i need to increase the VIM channel priority for eCAP interrupts and moving them to FIQ since i am using two ecap interrupt,both ecap interrupt will be happening at the same time(eCAP4 & eCAP6).
2)What is really happening after fourth eCAP interrupt and does eCAP reseting and wrapping around are happening faster because this affects only the C1 capture i checked the c1,c2,c3,c4 values.