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

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
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
setup_adc(mode)
setup_adc2(mode)
Syntax:
Parameters:
Returns:
Function:
262
Configures the ADC clock speed and the ADC sample time. The ADC converters
have a maximum speed of operation, so ADC clock needs to be scaled
accordingly. In addition, the sample time can be set by using a bitwise OR to
concatenate the constant to the argument.
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 (mode);
setup_adc2(mode);
mode- Analog to digital mode. The valid options vary depending on the device. See
the devices .h file for all options. Some typical options include:
undefined
Configures the ADC clock speed and the ADC sample time. The ADC converters
have a maximum speed of operation, so ADC clock needs to be scaled accordingly.
In addition, the sample time can be set by using a bitwise OR to concatenate the
constant to the argument.
conversion time
ADC_OFF
ADC_CLOCK_INTERNAL
ADC_CLOCK_DIV_32 – The ADC will use the external clock scaled down by 32
ADC_CLOCK_DIV_32
ADC_CLOCK_INTERNAL – The ADC will use an internal clock
ADC_TAD_MUL_16 – The ADC sample time will be 16 times the ADC
ADC
Overview,

Related parts for PCWHD IDE COMPILER