Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 25th April 2004, 06:11 AM   (permalink)
Default Timer: Interrupt Flag (IF) and Interrupt Enable (IE)

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


[u]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
patricktran is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:37 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker