Hi !
I am beginner and I am having a lot of difficulty to implement interrupts in Atmel.
Basically, I used the RTC module to implement a time base of the ?C.
I would like to afterwards generate interrupts at regular intervals to executing a of my functions in parallel operation of the main program.
But the problem is I can not find a concrete example that allows me to put in place an interruption.
So I use the function initalisation above but afterwards how to implement an interruption
On the Internet, I understand the need establish a routine ISR service.
ISR (RTC_Handle)
{
// Here with calling my function
}
But I also find things this way:
NVIC_EnableIRQ (RTC_IRQn);
NVIC_SetPrioroty(RTC_IRQn,2);
but after with this, where do I place my code?
I'm lost
Can someone explain to me how this works with an example without using the functions of atmel?
Thanks