cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 - internal routing of opamp output to ADC

oscarw
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

waclawekjan_0-1697784911313.png

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

waclawekjan_1-1697784982131.png

 

JW

View solution in original post

3 REPLIES 3

waclawekjan_0-1697784911313.png

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

waclawekjan_1-1697784982131.png

 

JW

TDK
Guru

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".
oscarw
Associate

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