Skip to main content
kshin.1
Visitor II
March 16, 2020
Solved

ADC120 Channel Selection

I am using ADC chip ADC120.

​

Data is output, but the channel is not changed, so only IN0 data is output.

​

The SCLK goes low and data is entered in DIN.

SCLK goes low and DOUT is read.

​

I am not sure how to change the channel.

​

Please help.

Thanks.​

    This topic has been closed for replies.
    Peter BENSCH
    Peter BENSCHBest answer
    ST Technical Moderator
    June 3, 2020

    The ADC120 uses SPI for communication.

    Please have a look at the datasheet, where you will find the control register on pg. 2, which selects the input channel.0693W000001puUwQAI.png

    The corresponding timing diagram can be found on page 7:

    0693W000001puVGQAY.png

    Good luck!

    /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.

    2 replies

    Peter BENSCH
    Peter BENSCHBest answer
    ST Technical Moderator
    June 3, 2020

    The ADC120 uses SPI for communication.

    Please have a look at the datasheet, where you will find the control register on pg. 2, which selects the input channel.0693W000001puUwQAI.png

    The corresponding timing diagram can be found on page 7:

    0693W000001puVGQAY.png

    Good luck!

    /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.
    aksoy_otomasyon
    Associate II
    November 28, 2023

    Hello kshin.1,

     I use ADC120 same with you, but same problem. Did you solve the problem. I change channel but its gives only first ch. May be share basic example code.
    Thank you.