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

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
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 PCDIDE COMPILER