I'm still new to microcontroller, I don't know if this is already have a document about it.
I'm using the ATmega8A for my project and I only need 12 out of 23 I/O pins of the microcontroller, which mean that there are 11 pins that are unused. Since floating pin is bad, is it ok to set those unused I/O pins of the ATmega8A to input and connect all of them directly to ground. Also, I'll disable the all the internal pull-up resistor of the microcontroller since I'm using it for extreme low power application and those as I measure can draw up to 500uA.
I would like to know if it possible to connect all of them directly to ground. Will it cause any damage to the microcontroller like for example, there will be high current flow to the ground when start up. I'm using the 32.768kHz real time clock with 3.3V supply voltage for the ATmega8A.