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

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_adc_ports( )
setup_adc_ports2( )
Syntax:
Parameters:
Returns:
Function:
Only the devices with built in analog to digital converter.
Constants are defined in the devices .h file.
setup_adc_ports( ALL_ANALOG );
setup_adc(ADC_CLOCK_INTERNAL );
set_adc_channel( 0 );
value = read_adc();
setup_adc( ADC_OFF );
ex_admm.c
setup_adc_ports(), set_adc_channel(), read_adc(), #DEVICE,
see header file for device selected
setup_adc_ports (value)
setup_adc_ports (ports, [reference])
setup_adc_ports (ports, [reference])
value - a constant defined in the devices .h file
ports - is a constant specifying the ADC pins to use
reference - is an optional constant specifying the ADC reference to use
By default, the reference voltage are Vss and Vdd
ports is a constant specifying the ADC pins to use
reference is an optional constant specifying the ADC reference voltages to use. By
default the reference voltages are Vss and Vdd.
undefined
Sets up the ADC pins to be analog, digital, or a combination and the voltage
reference to use when computing the ADC value. The allowed analog pin
combinations vary depending on the chip and are defined by using the bitwise OR to
concatenate selected pins together. Check the device include file for a complete list
of available pins and reference voltage settings. The constants ALL_ANALOG and
NO_ANALOGS are valid for all chips. Some other example pin definitions are:
• ANALOG_RA3_REF- All analog and RA3 is the reference
• RA0_RA1_RA3_ANALOG- Just RA0, RA1 and RA3 are analog
• sAN1 | sAN2 – AN1 and AN2 are analog, remaining pins are digital
• sAN0 | sAN3 – AN0 and AN3 are analog, remaining pins are digital
ADC
Overview,
263

Related parts for PCWHD IDE COMPILER