Skip to main content
Graduate
December 5, 2024
Question

stm32f334 ADC conflict

  • December 5, 2024
  • 3 replies
  • 2868 views

Hi all.
Why when I configure an ADC input in PA2 port, I have a conflict with another pin PA3 port that is configured as GPIO?
Many thanks.

bestyeng_0-1733415071251.png

 

    This topic has been closed for replies.

    3 replies

    Super User
    December 5, 2024

    In your screenshot, the conflict is not on IN2 - it's on IN3:

    AndrewNeil_0-1733416138365.png

    Presumably, IN3 is on PA3?

    bestyengAuthor
    Graduate
    December 5, 2024

    Hi Andrew, the problem is on IN3 mapped on PA2, but the tool tell that the conflict is on PA3 that is mapped as GPIO.

    bestyeng_0-1733416511756.png

     

    Technical Moderator
    December 5, 2024

    Hello @bestyeng @Andrew Neil 

    In your case if you want to set IN3 on the IN3 Differential, you will need to use Both PA2 ADC Positive input analog and PA3 for Negative input analog. For the single-ended mode you just need the IN3 on the PA2. You can see more about that on the following Figure 25 From the RM0364: 

    STTwo32_0-1733417244419.png

    Best Regards.

    STTwo-32

    bestyengAuthor
    Graduate
    December 5, 2024

    Ok, many thanks. So in this case single ended is only a warning, I may not consider it?
    Best regards.

    Explorer
    December 5, 2024

    If you selected single-ended and not differential, this is a bug in the Cube tool.