Hi, Steve

Always use series resistors not to reach the maximum port allowable current ...

Sorry, but I do not have better.

Using Brown out detect ... may be (inputs as defaults ... but does not protect from surges from peripherals ...).

Alain