If functions, making them constant

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 :?

electronicchris:
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.

oops sorry new to the site :oops: but yh thanks ill try nd work them out.