begin small. Have a look there
http://www.picbasic.co.uk/forum/show...1&postcount=11
and forget the SERIN stuff. Your PIC have an USART, use it with HSERIN or by reading RCREG