Skip to main content
Associate
Oct 20, 2023 3:26 AM UTC
Solved

STM32L4 - internal routing of opamp output to ADC

oscarw_0-1697771613803.png

I'm trying to use the internal op-amps of an STM32L471 to amplify a small current-sense voltage before measuring it via ADC. This figure from the relevant product training resource shows an internal arrow labelled "ADC," coming from the op-amp output. I assumed this meant the output from an internal opamp could be internally routed to the input of an ADC. 

However, I can't find a way to do this, in STM32CubeIDE or in the documentation. This should be possible, right? Would appreciate any info/advice, before I have to start bodging it externally...

Cheers

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Oct 20, 2023 6:56 AM UTC

waclawekjan_0-1697784911313.png

The OPAMP output and ADC input are simply tied together on given pin:

waclawekjan_1-1697784982131.png

 

JW

3 replies

waclawek.jan
waclawek.janBest answer
Super User
Oct 20, 2023 6:56 AM UTC

waclawekjan_0-1697784911313.png

The OPAMP output and ADC input are simply tied together on given pin:

waclawekjan_1-1697784982131.png

 

JW

TDK
Oct 20, 2023 1:58 PM UTC

As JW said, they're on the same pin. It also seems like CubeMX lets you choose to connect them with the appropriate setting (via the VOUT pin).

TDK_0-1697810245638.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
oscarwAuthor
Associate
Oct 22, 2023 10:23 PM UTC

Perfect. Not sure how I missed that, thanks to both of you for the info.