# PIC16f877 Interrupt with IAR Compiler

Status
Not open for further replies.

#### flit07

##### New Member
Hi, I'm trying to write a ISR for this PIC, but i'm having trouble with IAR Compiler. The example codes that i'm testing compiled with errors.

I'm trying to compile the example given here
PIC microcontroller interrupt tutorial

The warning says: WREG, PCLATH, STATUS/ALUSTA and BSR will not be saved automatically unless a vector is assigned to the interrupt function.

How should I solve this?

Thanks

#### flit07

##### New Member
[Solved]
I didn't define a interrupt vector, that's why the warning...

Status
Not open for further replies.

Replies
0
Views
1K
Replies
0
Views
1K
Replies
10
Views
10K
Replies
11
Views
5K
Replies
3
Views
2K