cancel
Showing results for 
Search instead for 
Did you mean: 

ADC STM32L152 with 25 channel

Hoi
Associate II

 

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

 



1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
TDK
Guru

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".
Hoi
Associate II

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

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