8000 Add ADC 14bit support in U5 by ouoam · Pull Request #2747 · stm32duino/Arduino_Core_STM32 · GitHub
[go: up one dir, main page]

Skip to content

Add ADC 14bit support in U5 #2747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add ADC 14bit support in U5 #2747

wants to merge 1 commit into from

Conversation

ouoam
Copy link
@ouoam ouoam commented Jun 5, 2025

Summary

STM32U5 Series cannot set analog read resolution to 14-bit. Because MAX_ADC_RESOLUTION has a value of 12 instead of 14.

This PR fixes the following bugs

  • Bug U5 cannot read ADC with 14-bit resolution

Motivation
When set analog read resolution to 14-bit, analog only read with 12-bit

Validation

  • Build and test with custom U585VI board

@fpistm fpistm added the enhancement New feature or request label Jun 5, 2025
@fpistm fpistm added this to the 2.11.0 milestone Jun 5, 2025
@fpistm
Copy link
Member
fpistm commented Jun 5, 2025

Hi @ouoam
Thanks for pointing this.
Before U5, when ADC_RESOLUTION_14B is defined ADC_RESOLUTION_16B is also defined.
That's why it was not managed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants
0