Re-read this.
http://www.picbasic.co.uk/forum/showthread.php?t=7700

Post your current code and a schematic.