Skip to main content
Associate
October 20, 2023
Solved

STM32L4 - internal routing of opamp output to ADC

  • October 20, 2023
  • 3 replies
  • 4998 views

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.
Best answer by waclawek.jan

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
October 20, 2023

waclawekjan_0-1697784911313.png

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

waclawekjan_1-1697784982131.png

 

JW

TDK
October 20, 2023

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
October 22, 2023

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