Skip to content
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

12-bit ADC resolution for BIGTREE_SKR_PRO #20558

Conversation

MoellerDi
Copy link
Contributor

Description

ADC_RESOLUTION defaults to 10 in stm32 arduino: https://github.com/stm32duino/Arduino_Core_STM32/blob/a4058ae1c9e6234b7411ae8214bbd12c99961cca/cores/arduino/pins_arduino.h#L343

BIGTREE_SKR_PRO can use 12-bit ADC (as per stm32f407zgt6 datasheet at https://www.st.com/resource/en/datasheet/dm00037051.pdf)

Benefits

Better PID stability

Configurations

None

Related Issues

#20519, #20539

@thisiskeithb
Copy link
Member

Should this also be enabled on the GTR and other boards with similar MCUs?

@rhapsodyv
Copy link
Sponsor Member

Should this also be enabled on the GTR and other boards with similar MCUs?

Every STM32 mcu can use 12 bit. The STM32F1 hal uses 32 bit for all boards. We should make STM32 use 12 bit too. I opened this issue to not forget: #20539

I think we should just add it in the stm32 base env, instead of adding in each board.

@thisiskeithb
Copy link
Member

I think we should just add it in the stm32 base env, instead of adding in each board.

Agreed.

@rhapsodyv
Copy link
Sponsor Member

I'm closing this in favor of a more generic one, that will set 12 to all STM32 boards: #20562

@rhapsodyv rhapsodyv closed this Dec 24, 2020
@MoellerDi MoellerDi deleted the Marlin-PR/bugfix-2.0.x_12-bit_ADC_BIGTREE_SKR_PRO branch December 24, 2020 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants