I am sure you have read this
http://www.picbasic.co.uk/forum/showthread.php?t=543
but jump down to post #29 by Darrel.