Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ISR in pic16f88 using CCX5

Status
Not open for further replies.

brew

Member level 3
Joined
Mar 4, 2011
Messages
59
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,693
hi, i'm trying to a handle several interrupts but i don't know how to create ISR functions for them. is using an IF statement when flag bits of the interrupts are set to high will do? or do i have to do something else.

if(TMR1IF == 1) //IF TMR1 TIMER OVERFLOWS
{
timercounter++;
TMR1IF = 0;
}
if(INT0IF ==1) //IF RB0/INT has an interrupt
{
//wake from sleep
}

thanks

regards, brew.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top