PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 136

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
Elements:
Purpose:
122
NoCear, LEVEL=n, HIGH, FAST
These directives specify the following function is an interrupt function. Interrupt
functions may not have any parameters. Not all directives may be used with all
parts. See the devices .h file for all valid interrupts for the part or in PCW use
the pull down VIEW | Valid Ints
The MPU will jump to the function when the interrupt is detected. The compiler
will generate code to save and restore the machine state, and will clear the
interrupt flag. To prevent the flag from being cleared add NOCLEAR after the
#INT_xxxx. The application program must call
ENABLE_INTERRUPTS(INT_xxxx) to initially activate the interrupt.
An interrupt marked FAST uses the shadow feature to save registers. Only one
interrupt may be marked fast. Any registers used in the FAST interrupt beyond
the shadow registers is the responsibility of the user to save and restore.
Level=n specifies the level of the interrupt.
Enable_interrupts specifies the levels that are enabled. The default is level 0
and level 7 is never disabled. High is the same as level = 7.
A summary of the different kinds of dsPIC/PIC24 interrupts:
#INT_SPI2
#INT_SPI2E
#INT_SPIE
#INT_STACKERR
#INT_TBE
#INT_TBE2
#INT_TIMER1
#INT_TIMER2
#INT_TIMER3
#INT_TIMER4
#INT_TIMER5
#INT_TIMER6
#INT_TIMER7
#INT_TIMER8
#INT_TIMER9
#INT_UART1E
#INT_UART2E
#INT_xxxx
Normal (low priority) interrupt. Compiler saves/restores key registers.
SPI2 Transfer Done
SPI2 Error
SPI Error
Stack Error
RS232 transmit buffer empty
RS232 transmit buffer 2 empty
Timer 1 overflow
Timer 2 overflow
Timer 3 overflow
Timer 4 overflow
Timer 5 overflow
Timer 6 overflow
Timer 7 overflow
Timer 8 overflow
Timer 9 overflow
UART1 error
UART2 error

Related parts for PCDIDE COMPILER