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

Warning related Question

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



Joined: 05 Dec 2009
Posts: 40

View user's profile Send private message

Warning related Question
PostPosted: Fri Apr 08, 2011 12:47 pm     Reply with quote

hey guys

when i use float variables in interrupt i get this warning

Quote:

>>>Warning 216"Bells.c" Line 410(0,1): Interrupts disabled during call to prevent re-entrancy: (@FLT)
Memory usage: ROM=15% RAM=6% - 9%
0 Errors, 1 Warnings



is it OK
???? what does it means ??
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 08, 2011 1:17 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=43264
http://www.ccsinfo.com/forum/viewtopic.php?t=30539
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Fri Apr 08, 2011 2:37 pm     Reply with quote

Add the points about _time_. Float arithmetic is slow, you really don't want this sort of time delay in an interrupt. see if you can consider using scaled integer arithmetic instead (still need to duplicate the arithmetic library to avoid the error, but a much better chance of things not going wrong....).
In the manual 'Common questions and answers;, 'How much time to math operations take', and then scream gently, when thinking about handling things in interrupts.....

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Apr 09, 2011 5:47 am     Reply with quote

Poor little PICs, seems everyone wants them to 'do the near impossible','yesterday','faster than a speeding bullit'...
They really weren't originally designed for this life !
But, they do math faster than me with pencil and paper when 3 phones are ringing off the hook ! It's all a matter of perspective.
Interrrupts ? Get in, set a flag(or 2), get out, end of ISR code......
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