7 years, 11 months ago.

How to read internal analog channels with AnalogIn?


I am using NUCLEO STM32F411 board and need to read analog values from internal ADC channels (those not linked to a particular pin).

Specifically, it is a value of internal temperature sensor (ADC1, Channel 18). I was going through mbed documentation and examples and unfortunately could not find a way how to accomplish that with AnalogIn class.

I checked mbed-src for STM32F4 platform and there seems to be no way how to access internal ADC1 channels as the highest referenced channel is #15.

Is there any way how to do it by mbed API (easy way)?

Or do I have to stick to CMSIS?


Be the first to answer this question.