I have a PCB that uses STM32U575 MCU and it has 3 sensors shown in the image connected to it through I2C bus. Using internal ADC of the MCU I want to also read the analog data that is coming from the bus. Is there a way to do it? Maybe there is a example or a reference project which I can follow and do it.
Generally what you do is examine docs for allowed pin voltage range, and sometimes
the ADC are specialized and have their own range. I see no evidence in datasheet that
a direct connection is a problem, so answer yes. But I would qualify that by recommending
you see if there is an ap note devoted on using that ADC that should reveal considerations
in its use.
You may or may not know there are real cheap logic analyzer PC solutions with software that can
capture and format the data captured ? Goto ebay and do a search with "logic analyzer chip".
Might be handy to use to verify your code and design.
Find many great new & used options and get the best deals for for USB Logic Analyzer 24MHz 8CH Debug Device SPI UART EMI FPGA ARM 8 Channel... at the best online prices at eBay! Free shipping for many products!
To the OP:
The microcontroller seems to have fast enough ADCs for the task.
However…..
Have you given a thought about the memory requirements, both its record length and its save rate, for the data set that will be created?
I always like to run ADC to DAC and test for errors due to Vref or ground noise in sensor or ADC. DAC's are usually better at this.
You ought to learn how to do this and sweep the sensor to validate calibration drift , linearity and monotonic errors with environmental changes (V,Temp). (e.g. ...0111 to ...1010 skipped 1000 and 1001)
A circular buffer of data and W/R may be used or DMA using real-time from Analog Input to Output by structured uC tasks.