Question on GPIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-05-07 8:21 PM
Hi all,
I have seen a code where a GPIO pin is configured as output in push-pull mode but the pin is driven by an external circuit to low some times (essentially shorting the top transistor to GND). Is it safe to implement such a circuit? Will the I/O pin remain undamaged? Your comments please? Thank you.PS: I have created a sample schematic for clear understanding of my question.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-05-08 12:25 AM
If you have access to that external circuit, it would be better to make it as a switch with pull-down resistor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-05-08 4:27 AM
I have seen a code where a GPIO pin is configured as output in push-pull mode but the pin is driven by an external circuit to low some times
Where? Provide some context. Is it a bus interface where the direction might be reconfigured? Clearly creating this kind of contention is not desirable.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-05-09 12:45 AM
I/O ports are being used as data bus. Port bits are connected to LCD. After going through the code I realized that no read is being done, so I guess it is ok to have push-pull. Ideally open collector with pull-ups, but speed may be hampered. Thank you.
