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

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
setup_compare( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
setup_crc(mode)
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
266
setup_compare(x, mode)
mode is defined by the constants in the devices .h file
x is 1-8 and specifies which OC pin to use.
None
This function specifies how the output compare module is going to function based
on the value of mode. The device specific options are listed in the device .h file.
Only available on devices with output compare modules.
None
// Pin OC1 will be set when timer 2 is equal to 0xF000
setup_timer2(TMR_INTERNAL | TIMER_DIV_BY_16);
set_compare_time(1, 0xF000);
setup_compare(1, COMPARE_SET_ON_MATCH | COMPARE_TIMER2);
None
set_compare_time(), set_pwm_duty(), setup_capture(),
Overview
setup_crc(polynomial terms)
polynomial - This will setup the actual polynomial in the CRC engine. The power
of each term is passed separated by a comma. 1 is allowed, but ignored.
undefined
Configures the CRC engine register with the polynomial
Only the devices with built in CRC module
Nothing
setup_crc (12, 5);
// CRC Polynomial is X
setup_adc(16, 15, 3, 1);
// CRC Polynomial is X
ex_admm.c
crc_init(); crc_calc();
crc_calc8()
12
16
+ X
+ X
5
15
+ 1
+ X
3
+ X
1
+ 1
Output Compare / PWM

Related parts for PCWHD IDE COMPILER