Forgot attachment
If it is a noise problem add a muffler... or some more capacitors.
With out seeing the board layout it is hard to say where but try some across the VDD and VSS as near as possible to each device.
Dave
Always wear safety glasses while programming.
Bookmarks