Go Down

Topic: understanding timer interrupts (Read 1 time) previous topic - next topic

afremont


In the original the ISR didn't do anything at all because it was misnamed:

Code: [Select]

ISR(TIMERx_OVF_vect)



I saw that too, but I figured since the OP wasn't asking for help with mysterious resets, that the real program must have it correctly spelled out somewhere.  ;)  But yeah, any routine named exactly the way the OP showed isn't being called by the interrupt processor.
Experience, it's what you get when you were expecting something else.

titous


I assume that the overflow ISR is doing something with toggling pins based upon the comments.


Yep, you assumed correctly. The code is used to drive a stepper motor which needs an alternating HIGH/LOW sequence of pin actuation.


In the original the ISR didn't do anything at all because it was misnamed:

Code: [Select]

ISR(TIMERx_OVF_vect)



Yep, it was misnamed, must have happened while I was doing some reading on TIMERx, the correct version should be:
Code: [Select]

ISR(TIMER1_OVF_vect)

Go Up