Quote:
Originally Posted by jayhorizon
i am seeing that just counting edges is my best bet at this point instead of using interrupts. I am still not where i want to be in repeatablity but i am working on it.
|
You won't get repeatability by counting edges. You are running a general purpose operating system with multiple interrupts and processes; your edge counting code is not going to be running all the time, and you will miss edges.
You will either have to route the incoming signal to TIN, or you will have to get the interrupt solution working.
You should be able to handle 500kHz interrupts on a 400MHz processor, but you will need to prioritize the interrupts (and make sure your interrupt code doesn't take too long). You may be better off directly using the FIQ (fast interrupt request) from the ARM processor, which probably isn't handled by the kernel at all; you will catch it directly. Your interrupt code should do nothing except increment a counter.