Differential ADC

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Differential ADC

Post by Giovanni »

Hi,

I added the feature to the trunk code. The DIFSEL register initialization value is now part of the ADCConfig structure.

Giovanni
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Differential ADC

Post by neums »

Hi,
what was the intention to add it to the ADCConfig type and not to the ADCConversionGroup? Now the ADC features are divided into two separate structures.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Differential ADC

Post by Giovanni »

Hi,

Does it make sense to have conversion groups with and without the differential settings for the same board? The differential mode is something that is wired at board level so I thought that it can be a global setting.

Giovanni
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Differential ADC

Post by neums »

Hi,
it depends on the application you want to implement. May there is one where you want to measure two channels in differential mode and then switch to single-ended due to a certain condition of your application. I don't know an exact example.
erfan
Posts: 14
Joined: Sat Apr 18, 2015 4:25 pm

Re: Differential ADC

Post by erfan »

Hi,
Is this feature available on STM32F407-Discovery? If it is, would somebody help how to enable it?
Many thanks
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Differential ADC

Post by Giovanni »

It is specific of the STM32F3xx.

Giovanni
Post Reply