Hello,
What should I do for unused GPIO pins?
should they be connected to GND with pull down or left unconnected?
And what will be direction of GPIO pins? Input or output?
Regards,
Raşit GÖKALAN
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
What should I do for unused GPIO pins?
should they be connected to GND with pull down or left unconnected?
And what will be direction of GPIO pins? Input or output?
Regards,
Raşit GÖKALAN
Hi,
As Gaston has mentioned, all GPIO are inputs after reset. However, when using GPIO as inputs, care should be taken to make sure that the voltage on the GPIO input is either logic high or logic low. Issues can occur if a mid-level voltage is on an input pin.
There are a few approaches to dealing with unconnected GPIO:
1) Leave unused GPIO pins floating. In software, confirm that they are configured as inputs and enable their respective on-chip internal pullup (via GP*PUD). Note that, depending on the device and the GPIO#, some pullups may be on or off at reset.
2) Leave unused GPIO pins floating. In software, configure the GPIOs as outputs and drive them either high or low (if low, you should make sure that the internal pull-up is off to save power)
3) Pull unused GPIOs high externally via resistors.
1 & 2 should be similarly fine. 3 is extra safe.
More thoughts:
https://e2e.ti.com/support/microcontrollers/c2000/w/design_notes/3148.gpio-unused-pins-suggested-connections
Thank you,
Brett