ioc
Posted: Fri Dec 17, 2021 7:46 pm
Hi all again. I want to use an interrupt on change on pin rc2 on my current long running project using pic16f18877.
Couple of questions really
Q1: can i put an interrupt anywhere in my code eg in a loop or must it be near the start i.e in an initialisation macro?
Q2; Im using a piece of c code to do a software reset and having dug though a lot of forum messages, I'm trying to use the xc8 function reset() and it doesnt seem to work, but it may be because of q1 above or i'm just a noob
Couple of questions really
Q1: can i put an interrupt anywhere in my code eg in a loop or must it be near the start i.e in an initialisation macro?
Q2; Im using a piece of c code to do a software reset and having dug though a lot of forum messages, I'm trying to use the xc8 function reset() and it doesnt seem to work, but it may be because of q1 above or i'm just a noob