I have connected an infra red sensor to the receive pin on a PIC18F4321 to receive commands from a remote. I have defined an ISR to be triggered whenever there is data in the buffer. I have done this with great success with a PIC16F47. I have made sure that the baud rate and parity are correct.
My ISR calls a sub to handle the incoming data.
I am using PCWH compiler Ver. 4.031.
Whenever I compile I get the following message:
Warning 216: Interrupts disabled during call to prevent re-entrancy: (@delay_ms2)
Clicking on the error message takes you to the very end of the code to a blank line. ???????????!!!!!!!!!!!
When the code is downloaded into the chip, it interrupts once then never again.
The error message would suggest that its disabling all interrupts when it goes to the ISR, is there a way around this? Am I missing something?
I tried re-enabling interrupts in the main program loop...to no avail.
Any help would be appreciated. Thanks, D.
frequentguest Guest
Posted: Thu Jan 10, 2008 2:55 pm
search the forum for this phrase:
Quote:
"Interrupts disabled during call to prevent re-entrancy"
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum