This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48l952 adc leak problem

Other Parts Discussed in Thread: HALCOGEN

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

 

  • Hi Giorgio,

    I don't know how you connect the sensors to ADC1 input pins on J9. Can you please test your code using channel 8 and channel 9 of ADC1? Those two channels are used for thermal (AIN8) sensor and light sensor (AIN9) on board. The sensors are located between the two connectors for DCAN (J2, J3).

    Regards,

    QJ 

  • Hi QJ,

    Thank you for your message.

    As you suggested Channel 8 and 9 are working properly.

    I have also discovery that the leaking was my fault, as, I don't why, I was connecting the ground pin of the sensor back to the ground pin of the board and for some reason it gives some problem and the other issue was that I was testing sensor 1 when sensor 2 was not powered, now that they are both powered, the problem is not there anymore and the converted reading are correct.

    Thanks again for your help

    Giorgio
  • Nice knowing the problem was solved. Can you please click on the green button "Verify Answer" to close this thread? Thanks

    Regards,
    QJ