You should ideally put a 100nf capacitor across pins 32 + and pin 31 -, and another 100nf across pin 11 + and pin 12 - although you can usually make do with just one if your power rails are straight across from 32 to 11.
Pin 1 is Mclre and should not be connected directly to +5v, but by a 10k resistor, a decoupling capacitor in not needed here, unless you are using a reset switch etc.
its helpful , and recommended to connect 100nf decoupling capacitors between +VCC & GND .
that cancel the effect of electronic noise , so the PIC16f877 has a high sensitivity for the noise .
but if u built an 5V DC PSU , its very simple , its consist of 470UF on the input of the 7805 and 100 UF and 100NF on the output of 7805 , this will help u , and i' m work on this way , and i don' t have a problems .
The Two Vss & Vdd pins are internally connected.But its good if you can connect both Vss & Vdd pins & place one 0.1uF capacitor as close as to the power rails.
i have attached a picture... the picture shows the PIC16f877 used for some home automation...
though i am using the PIC for a completely different purpose, i am just looking at the way in which the 0.1uF capacitors have been connected to the Vdd pins...
can i use the same way of connecting the capcitors?
???
They're are two 0.1uf caps in the drawing, they need to be near the power / gnd pairs on the 16F877A. It's assumed the reader will follow good PCB layout practice. Just like the crystal and its caps, you would mount thoses as near as possible to the xtal pins.