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

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
set_compare_time( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
set_motor_pwm_duty( )
Syntax:
Parameters:
Returns:
Function:
Availability:
set_compare_time(x, ocr, [ocrs])
x is 1-8 and defines which output compare module to set time for
ocr is the compare time for the primary compare register.
ocrs is the optional compare time for the secondary register. Used for dual
compare mode.
None
This function sets the compare value for the output compare module. If the output
compare module is to perform only a single compare than the ocrs register is not
used. If the output compare module is using double compare to generate an output
pulse, then ocr signifies the start of the pulse and ocrs defines the pulse
termination time.
Only available on devices with output compare modules.
Nothing
// Pin OC1 will be set when timer 2 is equal to 0xF000
setup_timer2(TMR_INTERNAL | TIMER_DIV_BY_8);
set_compare_time(1, 0xF000);
setup_compare(1, COMPARE_SET_ON_MATCH | COMPARE_TIMER2);
None
get_capture(
set_motor_pmw_duty(pwm,group,time);
pwm- Defines the pwm module used.
group- Output pair number 1,2 or 3.
time- The value set in the duty cycle register.
void
Configures the motor control PWM unit duty.
Devices that have the motor control PWM unit.
),
setup_compare(
),
ouput compare
/ PWM Overview
253

Related parts for PCDIDE COMPILER