Is it possible to use GPIO EXTI and Output pins at the same port ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-04-27 7:12 AM
Posted on April 27, 2010 at 16:12
Is it possible to use GPIO EXTI and Output pins at the same port ?
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
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