nolmtz
Newbie level 1
I have enough knowledge of programming to have modified some existing code, allowing it to have a 2 sec delay and then flash at a particular Hz.
My question is can someone help me in an example, or new code, that will allow for the circuit to do what I have done to this point, but then turn off after 15 seconds?
The way it is written is it calls a Delay loop for the 2 sec initial delay, and then calls a Delay loop that causes the strobing. The strobe delay loop loops until power is removed. I'd like to somehow insert a timer / counter function into / around this loop so that it shuts off the strobing after 15 seconds.
I'm using MPLAB X IDE 3.15 on a PIC12F509.
Any guidance is greatly appreciated!
My question is can someone help me in an example, or new code, that will allow for the circuit to do what I have done to this point, but then turn off after 15 seconds?
The way it is written is it calls a Delay loop for the 2 sec initial delay, and then calls a Delay loop that causes the strobing. The strobe delay loop loops until power is removed. I'd like to somehow insert a timer / counter function into / around this loop so that it shuts off the strobing after 15 seconds.
I'm using MPLAB X IDE 3.15 on a PIC12F509.
Any guidance is greatly appreciated!