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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER