Hello,
I am working on the system where I need to run ADCs in multi ADC mode on STM32F7. I found this discussion which is almost 2 years old. What is the current situation? Is multi ADC mode implemented or should I prepare to implement some mechanism similar to the described one?
Regards,
Roman
STM32 Multi ADC mode
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: STM32 Multi ADC mode
Thanks.
One more question, actually possible bug report: while browsing the code I see discrepancy in the code and the comment:
https://github.com/ChibiOS/ChibiOS/blob ... lld.c#L370
/* Finally enabling ADC_CR2_SWSTART.*/
adcp->adc->CR2 = (cr2 | ADC_CR2_CONT);
Shouldn't the constant in the code be 'ADC_CR2_SWSTART'?
One more question, actually possible bug report: while browsing the code I see discrepancy in the code and the comment:
https://github.com/ChibiOS/ChibiOS/blob ... lld.c#L370
/* Finally enabling ADC_CR2_SWSTART.*/
adcp->adc->CR2 = (cr2 | ADC_CR2_CONT);
Shouldn't the constant in the code be 'ADC_CR2_SWSTART'?
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: STM32 Multi ADC mode
Hi,
The ADC_CR2_SWSTART bit is part of the value in "cr2", look at the lines immediately before.
Giovanni
The ADC_CR2_SWSTART bit is part of the value in "cr2", look at the lines immediately before.
Giovanni
-
- Posts: 1
- Joined: Fri Jul 21, 2017 12:21 pm
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 10 guests