Hi,
We are using the Hercules RM48 Board.
For hex adc value returned from TI sample code
1. for ambient light sensor /** - Start Group1 ADC Conversion * Select Channel 9 - Ambient Light Sensor for Conversion */ adcStartConversion_selChn(adcREG1, Ambient_Light_Sensor, 1, adcGROUP1); /** - Wait for ADC Group1 conversion to complete */ while(!adcIsConversionComplete(adcREG1, adcGROUP1)); /** - Read the conversion result * The data contains the Ambient Light sensor data */ adcGetSingleData(adcREG1, adcGROUP1, adc_data_ptr); is there an equation to convert the returned hex value?
2. Same for TI's Temp_Sensor_Demo.
/** - Start Group1 ADC Conversion
* Select Channel 8 - Tempurature Sensor for Conversion
*/
adcStartConversion_SelChn(adcREG1, Temperature_Sensor, 1, adcGROUP1);
/** - Wait for ADC Group1 conversion to complete */
while(!adcIsConversionComplete(adcREG1, adcGROUP1));
/** - Read the conversion result
* The data contains the Temperature sensor data
*/
adcGetSingleData(adcREG1, adcGROUP1, adc_data_ptr);
Also with the how should convert returned hex data from i.e., ambient light and temperature data to interpret this data? Is there someplace in manual which outlines how to process returned hex values from adc? Thank you