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

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
high_speed_adc_done( )
Syntax:
Parameters:
Returns:
Function:
236
read_high_speed_adc(pair,mode,result);
only
read_high_speed_adc(pair,result);
read_high_speed_adc(pair);
read_high_speed_adc(mode,result);
only
read_high_speed_adc(result);
read_high_speed_adc();
pair – Optional parameter that determines which ADC pair number to start and/or
read. Valid values are 0 to total number of ADC pairs. 0 starts and/or reads ADC
pair AN0 and AN1, 1 starts and/or reads ADC pair AN2 and AN3, etc. If omitted
then a global start and/or read will be performed.
mode – Optional parameter, if used the values may be:
result – Pointer to return ADC conversion too. Parameter is optional, if not used
the read_fast_adc() function can only perform a start.
Undefined
This function is used to start an analog to digital conversion and/or read the digital
value when the conversion is complete. Calls to setup_high_speed_adc() and
setup_high_speed_adc_pairs() should be made sometime before this function is
called.
When using this function to perform an individual start and read or individual start
only, the function assumes that the pair's trigger source was set to
INDIVIDUAL_SOFTWARE_TRIGGER.
When using this function to perform a global start and read, global start only, or
global read only. The function will perform the following steps:
When using this function to perform a individual read only. The function can read
the ADC result from any trigger source.
1.
GLOBAL_SOFTWARE_TRIGGER.
2.
3.
4.
highest (if doing a read).
5.
·
·
·
ADC_START_AND_READ (starts conversion and reads result)
ADC_START_ONLY (starts conversion and returns)
ADC_READ_ONLY(reads conversion result)
Determine which ADC pairs are set for
Clear the corresponding ready flags (if doing a start).
Set the global software trigger (if doing a start).
Read the corresponding ADC pairs in order from lowest to
Clear the corresponding ready flags (if doing a read).
// Individual start and read or read
// Global start and read or read
// Individual start and read
// Global start and read
// Individual start only
// Global start only

Related parts for PCDIDE COMPILER