STM32G474: Put ADC in known reset state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-02 8:22 AM
My board can startup from a variety of different ways: from power-up reset, jump between application and bootloader, external watchdog reset, or software restart for other reasons.
I want to ensure ADC1 and ADC2 are initialized from a clean known state.
Is it okay to use the AHB2RSTR register, ADC12RST bits, at the beginning of the program, to ensure the ADC are starting up same as from power-up reset?
- Labels:
-
ADC
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-02 9:34 AM
Hi @TwelveSquared​
Yes, you can use that bit to reset the ADC.
Bouraoui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-02 10:46 AM
Hello @Bouraoui Chemli​
Will there be any problems if the ADC is enabled, doing conversions, etc., while this bit is used to reset it?
Thanks for your reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-04 6:21 AM
Hi @TwelveSquared​
There will be no problem. It is OK to use it when ADC is enabled.
Bouraoui
