Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: sambhav on May 09, 2007, 11:38:16 AM

Title: connection diagram for PIC 16f877
Post by: sambhav on May 09, 2007, 11:38:16 AM
hiii frnds....
i have designed a project with all thhe sensors and othr sstuff.. and i want to interface everything using PIC 16f877... can anyone provide me the basic connection diagram for the PIC to work properly..such as any capacitors, resistors etc...to be put..with the crystal and other stuff..

thanx a lot ... :)
Title: Re: connection diagram for PIC 16f877
Post by: JonHylands on May 09, 2007, 12:14:26 PM
I don't have a diagram handy, but its pretty simple. You need:

Either a ceramic resonator (with three pins), or a crystal and a couple 18 picofarad capacitors. If you're using the resonator, connect the two outside pins to pins 13 and 14, and the center pin to ground. If you're using a crystal, connect the two legs of the crystal to pins 13 and 14. Connect one leg of each capacitor to each leg of the crystal, and the other leg of each capacitor to ground.

You should have a 0.1uF decoupling capacitor between Vdd and Ground (pins 11 and 12). On a 16F877, I normally put one there, and one between 31 and 32 as well.

You should have a 5-10K resistor between pin 1 and Vdd (power).

That's all you need.

- Jon
Title: Re: connection diagram for PIC 16f877
Post by: sambhav on May 10, 2007, 11:37:16 AM
thanx a lot buddy....