Hi. The XC8 version works as explained in this video: https://youtu.be/cPigAoimpX8
You might watch part 3 as well. Just set your configuration bits based on your PIC18F45K22.
We have many videos explaining how to set your configuration bits.
IF you have any more question, please explain in detail what problem you are facing.
- This reply was modified 4 months, 3 weeks ago by Bitahwa Bindu.