View previous topic :: View next topic |
Author |
Message |
starfire151
Joined: 01 Apr 2007 Posts: 195
|
where to find summary of suffixes for #int_xxx? |
Posted: Tue Nov 29, 2016 11:18 am |
|
|
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
|
|
Posted: Tue Nov 29, 2016 11:25 am |
|
|
It's in the July 2016 PCD manual. Page 138 at the bottom. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Tue Nov 29, 2016 11:34 am |
|
|
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
|
|
Posted: Thu Dec 01, 2016 7:30 am |
|
|
I found the description in the July PCD manual.
Thanks. |
|
|
|