You might also look at some previous posts on the subject as here: http://www.picbasic.co.uk/forum/showthread.php?t=575