Hello,
I'm using the RM48l952ZWT on the TMDSRM48HDK dev board.
I'm connecting 2 sensors to ADC1 channel 0 and 1 (or channel 0 and 2) and i'm using the following instruction to read the converted data:
adcData_t adc_data[2];
adcStartConversion(ADC1,adcGROUP1);
gioSetBit(gioPORTB, 0, 1); /* Trigger ADC1 */
while((adcIsConversionComplete(adcREG1,adcGROUP1))==0);
adcGetData(adcREG1, adcGROUP1,&adc_data_front[0]);
I'm using the following settings in HalCogen:
Everything work fine for Channel 0, The value I read is what i'm excepting. The problem is Channel 2 reading is very much influenced by Channel 0, they are not identical, but for example if Sensor 1 (connected to channel 0) output value is 0 and Sensor 2 (connected to channel 2) output value is 0 I read correctly 0 and 0 in the converted data. But if Sensor 1 output converted reading is 1200 and Sensor 2 should be 0, I read in channel 2 a value of around 1000, and the higher is the reading of Channel 0, the higher is the leaking on Channel 2.
Do I have to handle some others setting in HalcoGen in order to avoid this problem?
Thanks again
Giorgio