Hello Walter,
Look at this/these posts:
http://www.picbasic.co.uk/forum/showthread.php?t=9011
http://www.picbasic.co.uk/forum/showthread.php?t=8355