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 CCS Technical Support

"Interrupts disabled during call to prevent a re-entran

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







"Interrupts disabled during call to prevent a re-entran
PostPosted: Tue Apr 10, 2007 11:00 am     Reply with quote

hello,

I have this warning message when I compil my script.
"Interrupts disabled during call to prevent a re-entrancy"

The problem apparear during the test(robotics), the interruption don't work when my robot run ( Step motor, many delay_ms(xx) in the script).



//----------------------------------------
#int_rda
void Interruption_Fonction()
{
int buffer;
buffer=getc();
if(buffer==0x05)
{
PUTC(0xFF);
D_Rotation(180);
}
}
//---------------------------------------

void main (void)
{
enable_interrupts(int_rda);
enable_interrupts(global);


SET_TRIS_A(0x00);
OUTPUT_A(0x00);
SET_TRIS_B(0x00);
OUTPUT_B(0x00);

SET_TRIS_D(0x00);
OUTPUT_D(0x00);
SET_TRIS_E(0x00);
OUTPUT_E(0x00);


D_Deplacement(600);
}

The interruption function only at certains moments


For me, the problem is during Delay_ms(XX), the interruption is disabled..... as a instruction execution time, but delay is more longer.

The solution is a Flag bit interruption. A test of the flag bit at every turn of loop .... but i don't know how to....
please help me
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 10, 2007 11:32 am     Reply with quote

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=27345&highlight=instance+delayms
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