avr timer interrupt problem

Status
Not open for further replies.

5282604

Full Member level 4
Joined
Dec 19, 2009
Messages
194
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
egypt
Visit site
Activity points
2,404
i use mikroc compilier

when i use timer interrupt . when is there timer over flow the timer interrupt function is work.
but when avr cpu is return from interrupt function it's not return to the last programm adress(when intterupt is done)
but it start from beganing from the main code and this corrupted my code
 

thank you the problem is solved the problem because i use delay_ms with timer interrupt
and this corrupted delay_ms time. thank you
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…