Skip to main content
jeffrey23
Associate III
Apr 27, 2010 2:12 PM UTC
Question

Is it possible to use GPIO EXTI and Output pins at the same port ?

Posted on April 27, 2010 at 16:12

Is it possible to use GPIO EXTI and Output pins at the same port ?

    This topic has been closed for replies.

    3 replies

    brazov22
    Associate III
    May 17, 2011 1:08 PM UTC
    Posted on May 17, 2011 at 15:08

    If you configure PC6 as pull-up with interrupt pin, you'd configure:

     EXTI->CR1 = 0x20;       // Port C falling edge only

    so forcing a transition from vdd to gnd you'd go inside PC interrupt routine. Anyway this doesn't explain why it works on PD6.

    brazov2

    jeffrey23
    jeffrey23Author
    Associate III
    May 17, 2011 1:08 PM UTC
    Posted on May 17, 2011 at 15:08

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6Y9&d=%2Fa%2F0X0000000bqU%2FxiLWzq5oi.fFj2jPU11fjs93C2dmlVloDgn.EDN0ISQ&asPdf=false
    brazov22
    Associate III
    May 17, 2011 1:08 PM UTC
    Posted on May 17, 2011 at 15:08

    Hi,

    yes you'd be able to configure PC6 as EXTI and PC5 as output.

    Please post part of your code where you configure PC6 and PC5 GPIO.

    brazov2