This demo was created for the serial to usb port selection problem.
http://www.picbasic.co.uk/forum/showthread.php?t=7372