what have you tried ?
what chip are you using? can you provide a schematic


https://www.picbasic.co.uk/forum/sho...th-Pic16LF722A