Hi,
I am working on TI28335 Experimenter'Kit in my application.
For my requirements, I am using timer0 to generate interrupt at every 10uS. There I am doing Analog data reading and doing basic data processing. The ISR completes work in less than 4uS on an average (maximum time is about 6uS). I can not avoid use of timer0 due to higher priority given to it.
I have to do some other computation in main program. I have two options for this.
1. Use simple infinite loop. But, here I have to complete some work based on some conditions occurring. Also, some computation should be given higher priority.
2. Use task scheduler. Presently I don't have much idea about task scheduler.
Now, I have three questions in the context.
1. Can I use INTR instruction so that I can use other interrupts INT1, INT2, .. etc.?
2. If I can use INTR instruction, then will the ISR of corresponding interrupt (called through INTR) be incorruptible by timer0 interrupt or other high priority interrupt ( e.g. interrupt INT2 by INT1)? My idea is to use INTR instruction to make some task ready for execution. In main program, I can check some conditions and unmask the INTx corresponding to the task. If, there is any other INTy with lower priority is running , it should get interrupted by higher priority interrupt INTx. In this way avoiding separate task scheduler.
3. Alternatively, how can I write a simple task scheduler for my application? Is there any simple task scheduler program available?
Vipul Patel