You may want to look at this sample also.
http://melabs.com/resources/samples/pbp/usart.bas