Effect of a time-consuming ISR (Pleeeeese help!!!)
"Fred" <beagle2-h4u632SxQnhWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I am having problems with a native ISR (triggered by timer 3) that runs in the background in a java application. Basically the rate at which the ISR runs is a bit slower (about 0.8 times) than it should be. The application involves reading the ADC chip (for all 8 channels) in the ISR, and then when the program execution returns to the java side, it sends a multicast packet containing this data. This is a university project and due to lack of time I have not bothered to optimise the native function that reads the ADC chip, if anyone has an optimised version that is called from within assembly, I would be very grateful if they could email it to me. The ISR is set to run every 10 ms, but it seems to be running every 12ms approximately. The problem seems to be that the ISR is taking too long, because I tried it with making it read just one channel and it was fine. The timer 3 isr is set to high priority so this can't be the problem (I don't think). The main thing for me is to be able to explain this bizarre behaviour if I cant fix it. Thank you very much in advance. Fred Sick of spam? Fadmail (www.fadmail.com) recommends using SpamCop (www.spamcop.net) for reporting spam! _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini