Hello, Let me introduce myself I am yasir amir khan. I am electrical engineer, running an online consultancy business, with several years of project related experience. Please check out my profile. and search my name on web, I have also authored several books and papers. Please provide more details i can give you MPLAB code simulated on proteus.