mike you may find this interesting
www.picbasic.co.uk/forum/showthread.php?t=12433