Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago. This question has been closed. Reason: Off Topic
How can I set ADC 2.4MSPS?
There are already related questions ... but no good answer for my application. I already set MCU frequency use this link: https://developer.mbed.org/questions/61591/Setting-different-MCU-frequency/
useing analogIn api, SPS is Approximately 444,444.
but It has written 2.4MSPS at datasheet.
Can I set SPS?
Question relating to:
1 Answer
7 years, 9 months ago.
Hello, The datasheet 2.4MSPS can only be achieved in continuous acquisition mode with Fadc set to the maximum (36MHz).
MBED api is based on single-shot acquisitions + some post processing for data normalization. It's purpose is portability rather than speed.
If you want to get the maximum acquisition speed out of the STM32 ADC you may need to use the low level API HAL and bypass mbed abstraction level, or directly access to the registers.