Im doing my PIC programming using the CCS Compiler. However, when come to delay, i know how to write a simple program that my output delay for a few second.
I was thinking that my output will always high until the user press a button then only my output will become low.
My question is: do i need to do a loop for my delay so that when user press the button then the delay is equal to zero. or is there anything that i can do to my hardware?
I was thinking that my output will always high until the user press a button then only my output will become low.
My question is: do i need to do a loop for my delay so that when user press the button then the delay is equal to zero. or is there anything that i can do to my hardware?