I am working on 80x86 platform using IAR C compiler and using µC/OS-II. My application needs to send an input to the filter task periodically say at a frequence of 1 MHz. Can any one tell me how to send interrupts periodically or is there any other method by which we can achieve this. I tried OSTimeDly, but the delay time limit is only in miliseconds while th eapplication requires a time gap in microseconds.
Should th einterrupt routiens b compulsarily implemented in Assembly. I haven't done interrupt programming before. Where can i find some examples or tutorials.
I particularly dont understand how the where the interrupts are listened to and then handled to ISR and where this ISR should actually be written.
Your system uses a interrupt vector table in some memory area. Then, if the vector table is composed of a far address, you need not use an assembly language instruction. But, if the vector table is composed of a far jump instruction, you shold use that assemly jump instruction. In both cases, they use C language rather than assembly language to implement interrupt routines these days.
thanks a lot..can you please tell me where can i find some examples for interupt programming. I havent done interrput programming befor and really like to go through soem examples. I loked at the examples given in the book µC/OS-II by Jean Labrosse, but could not find any using interrupts.
For interrupt processing in non-os based embedded systems refer to Gaonkar's book. Ans for OS based, you usually have examples provided somewhere in the installation. (usually the examples folder which invariably contains the Interrupt processing)