SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By electronicchris
#58637
errr hi everyone i was just wondering how i can make it so my "if" function on my PIC program can work all the time. At the moment, the circuit loops back to it every time it gets to the end. This means that the input concerning the "if" function can only be successfully pressed when it gets to the function itself.
I heard from one person that you use and interrupt function but i dont now what that is...
Cheers if you can help :?
By trialex
#58653
electronicchris wrote:errr hi everyone i was just wondering how i can make it so my "if" function on my PIC program can work all the time. At the moment, the circuit loops back to it every time it gets to the end. This means that the input concerning the "if" function can only be successfully pressed when it gets to the function itself.
I heard from one person that you use and interrupt function but i dont now what that is...
Cheers if you can help :?
Yep interrupts are the way to go - problem is you have posted this in the "AVR Code" forums, the "PIC Code" forum is a few down the list on the main board index.
By electronicchris
#58724
oops sorry new to the site :oops: but yh thanks ill try nd work them out.