I am trying to implement an FIR filter, so I need to time the samples precisely. I plan on using one of the Counters to accomplish this. I know I could simply poll for a clock overflow, but I would like to be able to use an interrupt for this time sampling. I have no idea where to start with this.
The main stumbling block I have is how to setup the interrupt service table and the ISFP required.
After doing some research in the Programmer's Guide and CPU/Instruction Set, I still do not have a clear understanding of how to accomplish this.
Question: Can you really move the IST to a section of CPUROM as shown in the CPU/Instruction Set (PG 5-9) or would this be moved to RAM say the 10000000 section?
Question: Each interrupt has its own service packet and this packet is called based on the IFR register?
I see in the Programmer's Guide that you can make a specialized C function for handling the interrupt:
interrupt void int_handler()
{
unsigned int flags;
...
}
Question: Is this a universal handler for all interrupts or does this represent one ISFP?
Question: if this is one for each, how do you line up all these functions into a packet section/map?
Is there any templates or short examples on which to work from?
Any help is greatly appreciated.