cancel
Showing results for 
Search instead for 
Did you mean: 

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

jeffrey23
Associate II
Posted on April 27, 2010 at 16:12

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

3 REPLIES 3
brazov22
Associate II
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

jeffrey23
Associate II
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 II
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