Hi All,
I need to tweek my PIC SW with some added functions. Hope some with good programming skills can lend me hand.
1)I need to make my START_STOP button when pressed a second time to stop the counter and resets.
30min_button is ON
Start_Stop_button is ON
Counter starts to count down
If Start_Stop_button is pressed again counter resets.
2) when insignal Oven_OFF is received Counter stops and resets.
Thanks a lot//gonzo
1) Which PIC? (exactly)
2) Which compiler?
3) What configuration bit settings?
4) What value crystal (assuming 2-pin crystal used)
I will make a wild guess a mikroC compiler, in which case zip up the whole project folder into a .zip file and post here. This will tell me most of what I need to know to try and help you.
Still need to know the answer to question 4 even with zip file
Hi Hexreader,
I tried your code on my device. It was not working as I want it to work.
May be you misunderstood how I was thinking.
It should work like this:
It has 3 set time buttons: 30 min , 2 hour and 5 hour
start/Stop button
When the device is on it will display some messages.
Timer OFF
Set Time : 00:00
When I press 30 min button: green_led is ON
Message: Set time 00;30
When i press the Start/Stop button: Start_Stop led is ON
Message: Timer is ON
So if I want to abort time maybe change so I want to press the Start/Stop again and it should reset the counter to zero
and OFF the green_led and Start/Stop led.
The Oven_OFF is signal from another microcontroller which is HIGH and the PIC resets the current counter when it receives this.
I hope you can help to tween your code.
//regards,Gonzo