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

where to find summary of suffixes for #int_xxx?

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



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

where to find summary of suffixes for #int_xxx?
PostPosted: Tue Nov 29, 2016 11:18 am     Reply with quote

Excuse me if this is a stupid question but I just stumbled onto a suffix option for a #int_xxx that I didn't know existed before. I see from a piece of code there is an option like #int_rda level=4.

Is there a summary of all of the suffix options for interrupts? The manual doesn't show this as an option. I didn't see anything in the header file for the processor, either.

I looked at both the PICC reference manual and the PCD reference manual and didn't see the level=x switch. The manuals cover fast, high, noclear, and global. but not level.

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 29, 2016 11:25 am     Reply with quote

It's in the July 2016 PCD manual. Page 138 at the bottom.
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Tue Nov 29, 2016 11:34 am     Reply with quote

Level is PCD only.

It is under the #INT_xxxx entry in the manual/
Quote:

Elements: NOCLEAR, LEVEL=n, HIGH, FAST, ALT


It then relies on you having read the data sheet for the chip, which will describe how the levels work.

They then explain in the paragraphs after the interrupt descriptions:
Quote:

Level=n specifies the level of the interrupt. Higher numbers are a higher
priority.
Enable_interrupts specifies the levels that are enabled. The default is
level 0 and level 7 is never disabled.
and

Quote:

#INT_xxxxLevel=3
Interrupt is enabled when levels 3 and below are enabled.


are you sure you have the current manual?. The quotes above are directly from the manual, and have been there for the last several years!... They are several pages 'on' in the manual. The full description is more comprehensive in the full pdf manual than the one with the compiler.

Beware of the "I don't want to switch manuals" behaviour. If you load the IDE compiler with a PIC16/18 selected, and then switch to a PIC24, it'll still display the PCM/PCH manual. You have to save the project, come out, and come back in with the PCD chip selected to be using the PCD manual....
Can be very annoying if you are working on projects from different chip families.
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

PostPosted: Thu Dec 01, 2016 7:30 am     Reply with quote

I found the description in the July PCD manual.

Thanks.
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