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

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:
Availability:
Requires:
Examples:
Example Files:
Also See:
i2c_isr_state( )
Syntax:
Parameters:
Returns:
state = i
state = i
None
state is an 8 bit int
0 - Address match received with R/W bit clear, perform i2c_read( ) to read the I2C
address.
1-0x7F - Master has written data; i
0x80 - Address match received with R/W bit set; perform i2c_read( ) to read the
I2C address, and use i2c_write( ) to pre-load the transmit buffer for the next
transaction (next I2C read performed by master will read this byte).
0x81-0xFF - Transmission completed and acknowledged; respond with i
to pre-load the transmit buffer for the next transation (the next I2C read performed
by master will read this byte).
value = high_speed_adc_done([pair]);
pair – Optional parameter that determines which ADC pair's ready flag to check.
An int16. If pair is used 1 will be return if ADC is done with conversion, 0 will be
return if still busy. If pair isn't use it will return a bit map of which conversion are
ready to be read. For example a return value of 0x0041 means that ADC pair 6,
AN12 and AN13, and ADC pair 0, AN0 and AN1, are ready to be read.
Can be polled to determine if the ADC has valid data to be read.
Only on devices with a built-in high-speed analog to digital converter.
None
int16 result[2]
setup_high_speed_adc_pair(1,
setup_high_speed_adc( ADC_CLOCK_DIV_4);
read_high_speed_adc(1, ADC_START_ONLY);
while(!high_speed_adc_done(1));
read_high_speed_adc(1, ADC_READ_ONLY, result);
printf(“AN2 value = %LX, AN3 value =
%LX\n\r”,result[0],result[1]);
None
setup_high_speed_adc(), setup_high_speed_adc_pair(),
If not used all ready flags are checked.
2
2
c_isr_state();
c_isr_state(stream);
2
c_read() will immediately return the data
INDIVIDUAL_SOFTWARE_TRIGGER);
read_high_speed_adc()
2
c_write()
193

Related parts for PCDIDE COMPILER