PollForConversion function is supposed to convert analog values. But, after conversion I get only few values i.e maximum minimum and mid values. Could anyone help me in this regard.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-02 2:01 AM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-05 3:48 AM
Hello @RPOOJ
Thanks for the feedback.
I test it with using STM32F401RETx then i had no problem.
How to reproduce:
----------------------------
- Open CubeMX the select board :STM32F401RETx
- Select ADC: IN0 ==> * Go to Parameter Setting: Enable Continuous Conversion Mode, *Go to Rank: Sampling Time: 480 Cycles
- Activate RCC==> High Speed Clock (HSE): Crystal/Ceramic Resonator
- Generate code
- In the main.c file : create a variable to store values from ADC
- Start ADC
- Compile
- Download and debug
Regards,
Nesrine
