Groundig unused atmega328 pins?

robitabu:
Hi everybody,
I'm currently using a few atmega328 standalone on breadboards and I'm wondering if it may help to ground unused I/O pins like it's been done with any logic gate to prevent floating input values. Not that I have a specific problem as of now. But since I'm going to port those breadboard prototypes to a PCB, I'd like to know if I should ground those pins in advance.

Anyone has a few words to say about that?

Cheers :slight_smile:

I wouldn't bother with grounding pins. First if there was ever a sketch loaded in error that changed the pin to an output pin and set output to high you could damage the pin. Second, if your concerned about floating inputs, just enable the internal pull-up resistors for those pin you will not be using.

Lefty