Skip to main content
Explorer
September 9, 2023
Solved

ADC STM32L152 with 25 channel

  • September 9, 2023
  • 2 replies
  • 1302 views

 

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.
    Best answer by Issamos

    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

    2 replies

    Super User
    September 11, 2023

    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

     

    HoiAuthor
    Explorer
    September 12, 2023

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

    IssamosAnswer
    Graduate II
    September 12, 2023

    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