the encoder is built within the servo motor most of the times... until and unless you specify what motor you are going to use ( make and model), its of no use simply posting tutorials as you are simply opening new threads of same topic.
---------- Post added at 10:36 ---------- Previous post was at 10:34 ----------
if you dont understand then clarify all your doubts in the same thread... there is no imit to ask questions here. and we will be happy to solve your problem any number of times..
read the tutorials in above links... if you dont want the tutorials then tell us excatly your problem so that someone can help you...
---------- Post added at 10:38 ---------- Previous post was at 10:36 ----------
I have a feeling that you are doing this project just because someone told you to do or suggested you to do... you can go for other PIC controllers rather than the one you have choosen...
You first need to understand how a servo motor works.. difference between dc motor and servo motor??
understand PWM concepts.. write your own program to learn it and then interface servo motor to PIC...
without basic knowledge you wont understand anything we tell and you will feel embrassed to ask same question again and again.....