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

PIC24 "Not enough RAM for all variables"?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asmallri



Joined: 12 Aug 2004
Posts: 1680
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Dec 17, 2008 9:50 am     Reply with quote

FvM wrote:

Furthermore, your interrupt service function looks somewhat dubios. Interrupt disable/enable has no effect, cause global interrupts are disabled during execution of the interrupt, if not reenabled explicitely.


Global interrupts are not disabled during execution of an interrupt. Higher priority interrupts can interrupt a lower priority interrupt handler.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Dec 17, 2008 2:56 pm     Reply with quote

Quote:
With #BUILD(STACK=0x0802:0x881) I was able to move my stack into another position.
Very good. I didn't yet notice this option.

Quote:
Global interrupts are not disabled during execution of an interrupt. Higher priority interrupts can interrupt a lower priority interrupt handler.
Correct, strictly spoken. Practically, without assigning new priorities, all PIC24 user interrupts have equal, default priority and don't interrupt each other. Global interrupt disable is used as a function name by CCS C, but doesn't exist in PIC24. The CPU priority is set to highest user level instead.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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