Re: PIC 18F4550 dooes not respond to interrupts at all :-(



The situation is even worse. This PIC does not respond to any
interrupts.
I have added:
bsf INTCON,INT0IE, ACCESS
to the initialization routine
and then:

HiIrq:
pop ; According to the errata 80220g.pdf
banksel int_flag
setf int_flag, BANKED
call ser_rx_irq
call int0_irq
retfie FAST

int0_irq:
btfss INTCON,INT0IF,ACCESS
return
bcf INTCON,INT0IE,ACCESS
return


What I can see is that INTCON has initially value 0xd5, and then,
after I press the button connected to the INT0 line - 0xd7.
The HiIrq routine is never called, even though GIE and PEIE bits are
set.
Does it mean, that this chip is damaged? What else could cause such a
problem?
Unfortunately I'm currently on my hollidays and this is the only
18F4550 I have with me :-(/
.


Quantcast