how to power the ATMEGA328P-PU

Have you looked at any schematics for any of the arduinos? Make the same connections as what the boards have.