Hi,
Damn I am struggling lately, I could really use some help right now.
I have a program that is capturing different data from both CCP modules, the routine is started by an interrupt on a comparator and I am attempting to limit the duration that the ccp modules are capturing by setting a timer for approx 200ms.
What Is hapening is that the interrupt timer is flagged but it is looping through the routine again, but only once.
I have identified where the problem lies and I have stripped out the irrelevant code.
As can be seen I am using Darrel's Instant Interrupts. I have tried rearanging the placement of the timer0 commands, timer on/off enable/disable I have disabled the flag and set those manually in the INTCON but all to no avail.
The following code produces a trace on portd that clearly shows the routine passing through the timer0 interrupt sequence twice. As this is a module in larger compilation I would really wish not to ignore this error, besides I dislike things not being correct it is like attempting to sweep things under the carpet,, they will always come back to haunt you!
Thanks
ps Now I have to try and find out how to insert the code inside this message.
Bookmarks