This should help
http://www.picbasic.co.uk/forum/show...ht=PIC18F14k50