Skip to main content
Associate
December 11, 2023
Question

adc120 channel selection and data issues

  • December 11, 2023
  • 1 reply
  • 1606 views

hello.

I'm currently testing a 2-axis joystick connected to an ADC120.
I want the X and Y axis values ​​to go into IN0 and IN1, but only the X axis values ​​go into all channels. The channel changes normally, but is it possible to separately input 2-axis data into IN0 and IN1? ?

I can show you my code if you need it.

 

thank you

This topic has been closed for replies.

1 reply

Technical Moderator
December 11, 2023

Hello @WOO ,

 

Can you specify on which STM32 board or family you are working ?

To better understand the issue, can you share the related Mx project or the configuration code ?

 

Best regards :)

 

 

WOOAuthor
Associate
December 14, 2023

Hello.

Firstm thank you for your interest in my project.

The stm32 i am currently working on is stm32f407.

This code sends data through ADC120 via SPI communication.

Please let me know if you need further information.

 

WOO_2-1702518858984.png

 

WOO_3-1702518879097.pngWOO_4-1702518894497.png