cancel
Showing results for 
Search instead for 
Did you mean: 

adc120

imnavajas
Associate

We need to use the ADC chip ADC120 within our design, unfortunately the readout process that we perform only outputs channel IN0 data as output, regardless what we set in ADD2, ADD1 and ADD0 bits. I am not sure how to change the channel, but following the datasheet the SPI waveforms looks ok.

We came from a design where the TI ADC128s102 (pin to pin and SPI waveform compatible with ADC120) was the selected part, and appliying the same program the channel selected is read without any problem.

Please find attached the oscilloscope screenshot.

Thanks in advance.

0693W00000GYZGaQAP.png

0693W00000GYZH4QAP.png

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Jiri HLADIK
Associate II

Hello,

There is always channel 0 sampled after the chip enable by CS pin. After that you program channel to be sampled and next reading is done on that channel.

Chip is almost completely disabled without CS so it doesn't remember previous setup.

The input voltage is being tracked right after first SCK pulse but in that time the ADC channel is not programmed yet. So channel 0 is sampled by default at first reading after chip enable and during that time you program channel for next reading. 

Best regards

Jiri

View solution in original post

5 REPLIES 5
HaJes
Associate

I am facing the same problem with the ADC120 evaluation board (STEVAL-AKI001V1). Have you been able to solve the problem?

Thanks, HaJes

HaJes
Associate

Meanwhile, I have been able to solve the problem. The hint is given in the application note AN5454 which reads as follows:

"The user attention is drawn to the fact that the data sampled at T0 time is outputted at T0+16SCLK on the DOUT bus. Another important point is that the device measures the channel 0 just after the CSn has been set low".

This means when reading just one channel that is different from 0, one needs to read 2x16 bit to get the result, which I wasn't aware of. I suggest adding the statement from the application note to the other documents (ADC120, RHFAD128, STEVAL-AKI001V1 and UM2691) to remove misunderstandings.

Thanks, Harald

Thanks, @HaJes​, for the suggestion which we will try to accommodate in the documentation.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Jiri HLADIK
Associate II

Hello,

There is always channel 0 sampled after the chip enable by CS pin. After that you program channel to be sampled and next reading is done on that channel.

Chip is almost completely disabled without CS so it doesn't remember previous setup.

The input voltage is being tracked right after first SCK pulse but in that time the ADC channel is not programmed yet. So channel 0 is sampled by default at first reading after chip enable and during that time you program channel for next reading. 

Best regards

Jiri

Hello Jiri HLADIK,

  I am trying to get other ch, but its fail. I read only first ch. 
Please in there any basic code can you share. 
Thank you.