Skip to main content
Visitor II
February 4, 2024
Solved

STM32G4 ADC Different Pin

  • February 4, 2024
  • 1 reply
  • 1913 views

STer:

      Using the ADC's Differential Function,But I can't find  ADC12_INN1  ADC12_INP1  match PIN ?

 

    This topic has been closed for replies.
    Best answer by AScha.3

    Better look at the rm -> ADC1/2/3/4/5 connectivity , to see whats possible for ADCx :

    AScha3_0-1707115166601.png

    And when you set the channel in Cube, it anyway shows you, whats possible and on which pin you get the input.

    1 reply

    Super User
    February 4, 2024

    If you set IN1 -> differential, IN1 + IN2 are now _INP1 + _INN1 : (IN2 cannot use separate then)

     

    AScha3_2-1707053730930.png

     

    AScha3_0-1707053448455.png

    + on pins of IN1 + IN2 then:

    AScha3_1-1707053507481.png

     

    TLi.5Author
    Visitor II
    February 5, 2024

    Thank you for your reply!

    May I take  ADC1_INx---INP   and ADC1_IN(x+1) --- INN?

    AScha.3Answer
    Super User
    February 5, 2024

    Better look at the rm -> ADC1/2/3/4/5 connectivity , to see whats possible for ADCx :

    AScha3_0-1707115166601.png

    And when you set the channel in Cube, it anyway shows you, whats possible and on which pin you get the input.