No1Daemon
Newbie level 5

Hi there
I am doing a project of a timer device using a PIC12F683 and I am struggling to implement code to do 2 different functions for the same switch
I have 2 switches, Switch A on GP4 and Switch B on GP5. I want it to work like this
Switch A short press call increment timer routine
Switch A pressed and held call Low voltage cutoff routine
Switch B short press call Activate timer set by Switch A routine
Can someone please help me to work this code out using either an ocerflowing timer or a flip flop method which I have read about(or another if you have an easier method)
Thanks
Steve
I am doing a project of a timer device using a PIC12F683 and I am struggling to implement code to do 2 different functions for the same switch
I have 2 switches, Switch A on GP4 and Switch B on GP5. I want it to work like this
Switch A short press call increment timer routine
Switch A pressed and held call Low voltage cutoff routine
Switch B short press call Activate timer set by Switch A routine
Can someone please help me to work this code out using either an ocerflowing timer or a flip flop method which I have read about(or another if you have an easier method)
Thanks
Steve