Hi,
I am sorry you got confused with the 10 and 13. They just instruct your hyperterminal to make a new line so that you get the next reading on a next line. Good that you found out the solution to your LCDOUT and your code is okay. Now the calibration part :
Well try it out with a 0.22uF. And run the program. Your B0=255 means that the program has calibrated the scale value for your circuit. Notedown the scale value and use it in your program without using anymore calibration. It is a one time process to get the full range out of the pot command. Actually the pot command charges and discharges your capacitor through this resistor (in your case the LDR) and finds the time constant. It makes the Input/Output to get a tristated sort of logic. The PICs have an inbuilt schmiddt trigger which allows the software to sense the discharge slope.
Hope this helps
Regards
Sougata
Bookmarks