CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

RS232 and interrupts

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dloorg
Guest







RS232 and interrupts
PostPosted: Thu Jan 10, 2008 2:40 pm     Reply with quote

Hello all,

I'm at my wits end, maybe someone can help out.

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







PostPosted: Thu Jan 10, 2008 2:55 pm     Reply with quote

search the forum for this phrase:
Quote:
"Interrupts disabled during call to prevent re-entrancy"
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group