Resolving missed capture interrupts on T0/T1
2005-01-19 by Kerem Or
Hi All, For those who need to implement multiple capture functionality on the same timer, can use the sample interrupt service function that I uploaded to the files section. The code is tested with 3 capture inputs (CAP0.0=10kHz,CAP0.1=5kHz, CAP0.2=20Hz) connected to T0. The function works fine and must be called from irq handler. Interrupts can be nested or not. Additional code in the function to resolve missed capture ints just adds few usecs at 60Mhz. Please note that this function is provided for informational purposes. So use it at your own risk. Kerem