STM32H7 ADCv4 configuration

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

STM32H7 ADCv4 configuration

Post by mikeprotts »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32H7 ADCv4 configuration

Post by Giovanni »

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

Post by mikeprotts »

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

Mike
Post Reply