This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Now we run a main isr which takes about 90us while the period is 100us, so only 10us is left. We want to use cup timer1 ISR to send SPI to ADS7253 9 times(which needs 2us for one time,totally need 18us ) to get the ADC data in parallel with above main isr. Obviously, the conflict is the 18us > 10us. And we also wonder how the run the cup timer1 ISR 9 times in average time in the main ISR.
Could you give some help to solve this two questions?
Peter
Hi,
Have you tried to optimize the ISRs? If you are using C, you can try enabling the compiler optimization to save come ISR cycles.
Are you sending the ADC converted data via SPI? In that case, use can include teh PSI routines in the ADC ISR itself. It would save some cycles spend due to CPU Timers's ISR latency
Regards.
Veena