piyush manavar
Member level 4
Hi
I am developing a program for velocity measurement of object.
In this program i need to use timer interrupt.
But i don't know how to use timer interrupt in c language.
In assembly i can do this job very well but in c language how to interface interrupt and how ini. timer for 500us(8 MHz X-tal) and how the program can jump on specific location and come back after ISR. To do this which header file i have to include in AVRstudio.
If i want to write a program for specific location what i will have to write instead of org 0f45 (in assembly) in c language
Thanks
I am developing a program for velocity measurement of object.
In this program i need to use timer interrupt.
But i don't know how to use timer interrupt in c language.
In assembly i can do this job very well but in c language how to interface interrupt and how ini. timer for 500us(8 MHz X-tal) and how the program can jump on specific location and come back after ISR. To do this which header file i have to include in AVRstudio.
If i want to write a program for specific location what i will have to write instead of org 0f45 (in assembly) in c language
Thanks