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

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
delay_us( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
delay_us (time)
time - a variable 0-65535(int16) or a constant 0-65535
Note: Previous compiler versions ignored the upper byte of an int16, now the
upper byte affects the time.
undefined
Creates code to perform a delay of the specified length. Time is specified in
microseconds. Shorter delays will be INLINE code and longer delays and variable
delays are calls to a function. This function works by executing a precise number
of instructions to cause the requested delay. It does not use any timers. If
interrupts are enabled the time spent in an interrupt routine is not counted toward
the time.
The delay time may be longer than requested if an interrupt is serviced during the
delay. The time spent in the ISR does not count toward the delay time.
All devices
#USE DELAY
#use delay(clock=20000000)
do {
output_high(PIN_B0);
delay_us(duty);
output_low(PIN_B0);
delay_us(period-duty);
} while(TRUE);
ex_sqw.c
delay_ms(), delay_cycles(),
#USE DELAY
175

Related parts for PCDIDE COMPILER