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

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
Availability:
Requires:
Examples:
Example Files:
Also See:
setup_capture( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
264
Only available on devices with built in analog to digital converters
Constants are defined in the devices .h file.
// Set all ADC pins to analog mode
setup_adc_ports(ALL_ANALOG);
// Pins AN0, AN1 and AN3 are analog and all other pins
// are digital.
setup_adc_ports(sAN0|sAN1|sAN3);
// Pins AN0 and AN1 are analog. The VrefL pin
// and Vdd are used for voltage references
setup_adc_ports(sAN0|sAN1, VREF_VDD);
ex_admm.c
setup_adc(), read_adc(), set_adc_channel(),
setup_capture(x, mode)
x is 1-8 and defines which input capture module is being configured
mode is defined by the constants in the devices .h file
None
This function specifies how the input capture 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 Input Capture modules
None
setup_timer3(TMR_INTERNAL | TMR_DIV_BY_8);
setup_capture(2, CAPTURE_FE | CAPTURE_TIMER3);
while(TRUE) {
None
get_capture(
}
timerValue = get_capture(2, TRUE);
printf(“Capture 2 occurred at: %LU”, timerValue);
),
setup_compare(
),
Input Capture Overview
ADC Overview

Related parts for PCWHD IDE COMPILER