cancel
Showing results for 
Search instead for 
Did you mean: 

ADC120 Channel Selection

kshin.1
Associate

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 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
Peter BENSCH
ST Employee

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.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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

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.