look at this link

http://www.melabs.com/resources/samples.htm#x1pbp

to start fast, use ADCIN and SEROUT. Do a search on this forum for those statement and look into your PICBASIC manual.

Should be enough to start.