Skip to main content
Associate
Sep 9, 2023 9:08 AM UTC
Solved

ADC STM32L152 with 25 channel

 

Hi all,

I am doing a project and need up to 25 ADC channels to read current from HAL ACS712 sensor,
I have never read so many ADC channels.
I saw that the STM32L152VET6 supports 25 ADC channels, so I chose it.
I have a problem when configuring with ST32 IDE, how to identify IN0 and IN0b in Rank - channel, I see that there is only channel 0 to channel 1, channel 0b is not found.

Please help me, thanks all !

Hoi_0-1694250437569.png

 



This topic has been closed for replies.
Issamos
IssamosBest answer
Super User
Sep 12, 2023 1:31 AM UTC

Hello @Hoi 

I suggest you to try using one of the MCUs STM32H743xI/G, that can give you up to 36 ADC channels that work simultaneously.

Best regards.

II

3 replies

TDK
Sep 11, 2023 2:04 PM UTC

Channel 0b is in bank B. Channel 0 is in bank A. You can't convert channels in separate banks without reconfiguring the ADC. The bank selection is done in ADC settings.

TDK_0-1694440850633.png

Just a note: The STM32L152VET6 is NRND status.

TDK_1-1694441076619.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
HoiAuthor
Associate
Sep 12, 2023 1:13 AM UTC

Therefore, we cannot read 25 adc at the same time, because we need to set up ADC to select Bank

Issamos
IssamosBest answer
Super User
Sep 12, 2023 1:31 AM UTC

Hello @Hoi 

I suggest you to try using one of the MCUs STM32H743xI/G, that can give you up to 36 ADC channels that work simultaneously.

Best regards.

II