Suppressing digital pin switching noise

If you are talking Arduino, a choke can be placed in series with the AVCC pin.

Edit
10uH should be sufficient.
.