Content originally posted in LPCWare by irvind on Mon Dec 31 12:06:04 MST 2012
Quote: TheFallGuy
First, look at the maximum frequency of your pulses. Is it possible to service those quickly enough?
Next, look at your interrupt handling code. Make sure you are doing the minimum amount of processing possible.Also:
- clear the interrupt early, so another pulse can cause an interrupt
- before returning from your handler, look to see if another is pending and service it (this will save a small amount of time - although Cortex-M parts do tail-chaining, so it doesn't stack and unstack registers unnecessarily)
Hi FallGuy,
Thanks for your reply.
my input signal varies from time to time based on machine speed, so I can't give an exact speed right now. Currently I just increase a counter in ISR to check if any missing pulse.
I would like to know if any parameter to configure GPIO interrupt speed? How to calculate the fastest interrupt speed of GPIO?