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

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
Availability:
Requires:
Examples:
Example Files:
Also See:
sleep( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
sleep(mode)
mode configures what sleep mode to enter, mode is optional. If mode is
SLEEP_IDLE, the PIC will stop executing code but the peripherals will still be
operational. If mode is SLEEP_FULL, the PIC will stop executing code and the
peripherals will stop being clocked, peripherals that do not need a clock or are
using an external clock will still be operational. SLEEP_FULL will reduce power
consumption the most. If no parameter is specified, SLEEP_FULL will be used.
Undefined
Issues a SLEEP instruction. Details are device dependent. However, in general the
part will enter low power mode and halt program execution until woken by specific
external events. Depending on the cause of the wake up execution may continue after
the sleep instruction. The compiler inserts a sleep() after the last statement in main().
All devices
Nothing
disable_interrupts(INT_GLOBAL);
enable_interrupt(INT_EXT);
clear_interrupt();
sleep(SLEEP_FULL);
//after INT_EXT wake-up, will resume operation from this point
ex_wakup.c
reset cpu()
Domain error occurs in the following cases:
asin: when the argument not in the range[-1,+1]
acos: when the argument not in the range[-1,+1]
atan2: when both arguments are zero
Range error occur in the following cases:
cosh: when the argument is too large
sinh: when the argument is too large
All devices
#INCLUDE <math.h>
float phase;
// Output one sine wave
for(phase=0; phase<2*3.141596; phase+=0.01)
ex_tank.c
log(), log10(), exp(), pow(),
set_analog_voltage( sin(phase)+1 );
//sleep until an INT_EXT interrupt
sqrt()
287

Related parts for PCDIDE COMPILER