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.

Timer: Interrupt Flag (IF) and Interrupt Enable (IE)

Status
Not open for further replies.

patricktran

New Member
The more I read, the more confusing I become :(

The problem I am having is when we set. reset interrupt flags, enable bit...

Initialize:
Clear IF
Set IE
Set GIE (must), PEIE (if I use push button)

IRS of Timer:
Save context
Clear GIE (must), PEIE (if I use push button)
Reset Timer
Restore context


Reset Timer:u]
Clear IF
Set IE
Set GIE (must), PEIE (if I use push button)

The routine of timer reset and initialise seem the same. Anyone please help me out.
Thanks
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top