STM32H7 ADCv4 configuration

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

STM32H7 ADCv4 configuration

Postby mikeprotts » Sat Jun 13, 2020 4:48 pm

I've been trying to port my code from F4/F7 (ADCv2) to H7 (ADCv4), and the ADC configuration has changed a lot.

The one that's puzzling me is why there isn't an ADCD2. From the docs, I thought I should be able to run the three STM32H7 ADCs independently, as with the STM32F7. Have I misunderstood the STM documentation?

Mike

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32H7 ADCv4 configuration

Postby Giovanni » Sat Jun 13, 2020 5:24 pm

Hi,

ADC2 is only supported as slave ADC in dual ADC mode. ADC1 and ADC2 share things like clock enable bits, IRQs etc, it seems to be meant that way.

I have not tried to untangle the two of them.

Giovanni

mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: STM32H7 ADCv4 configuration

Postby mikeprotts » Sat Jun 13, 2020 8:00 pm

That makes sense, I'll just configure that way.

Mike


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 30 guests