Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

TMR0 overflow within Interrupt. What will happen?

Status
Not open for further replies.

skyrock

New Member
Hello all,

I was thinking of designing an application which use 2 interrupts, i.e. timer and counter at the same time. I've read an article saying that it wont go into 2nd interrupt without resetting GIE. So my question is, when the program runs within an ISR and I havent done anything to GIE, at the same time TMR0 happens to overflow, will the TMR0 intterupt happens AFTER the first interrupt exits and return to normal code? let me clarify further:

TMR1 interrupt occurs -> ISR routine -> within ISR, TMR0 overflow -> will the interrupt occurs after ISR complete its routine OR just will the code ignore TMR0 interrupt at all?

referrence to previous post:
https://www.electro-tech-online.com/threads/interrupts.32781/
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top