Re: PIC 18F4550 dooes not respond to interrupts at all :-(
- From: wzab <wzab01@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 01:26:33 -0700 (PDT)
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 :-(/
.
- References:
- Prev by Date: Re: Microwave communications
- Next by Date: Re: Flushing EP2IN on MAX3421E and WinUSB
- Previous by thread: PIC 18F4550 - EUSART does not generate interrupts
- Next by thread: Microwave communications
- Index(es):