I WOULD LIKE TO MAKE A COUNTDOWN TIMER 99min-59sec. WITH 4 LED DISPLAY 7 SEG. I FOUND SOMETHING SIMILAR AT www.turbokeu.com/myprojects/countdown3.htm ,BUT THE CODE IS IN HEX AND ASSEMBLY THAT I CAN'T HANDLE WELL. I WOULD LIKE TO MAKE SOME MODIFICATIONS IN THE CODE,SOME ARE AS FOLLOWS:
A. AFTER THE COUNTDOWN START FROM A PRESET TIME, I WOULD LIKE TO PAUSE THE COUNTDOWN (WITH A PULSE AT SOME INPUT OF PIC) , STORE THE REMAINING TIME , ADD AN EXTRA TIME TO REMAINING TIME , TOTAL TIME WILL DISPLAY AT 7SEG. DIGITS AND START A NEW COUNTDOWN FROM THIS TIME. THE EXTRA TIME CAN BE PRESET AND STORE AT EEPROM .
B. 1 MINUTE BEFORE 00.00 THE BUZZER WILL MAKE A BEEP , THE SAME EVERY 10 SECONDS UNTIL THE END OF COUNTDOWN.THEN WE HAVE 3 BEEPS AND THE DISPLAYS REMAINS TO 00.00 UNTIL THE NEXT START.
IS THERE ANY IDEA ON HOW TO TRANSLATE HEX OR ASSEMBLY TO PIC-BASIC OR C ? IF NOT, IS THERE SOME CODE IN ASSEMBLY THAT HELP ME MAKE THE ABOVE MODIFICATIONS?
GENERALLY, HOW TO MAKE AN ADDITION OF TWO TIMES (IN mins-secs) IN PIC BASIC,AND THE TOTAL TIME (IN THE SAME FORMAT 00.00) TO STORE IN PIC EEPROM OR EXTERNAL EEPROM TO USE AS START COUNTDOWN TIME?
THANKS IN ADVANCE.
BASIL
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Basil,
You are getting the cart before the horse. You can't add features until you have the base to build on. make a plan.
I understand you want a 4 - 7 segment LED display. How are you driving them?
How many buttons do you want? 3 like the example or more or keypad
What pic are you going to use?
Write down some of the operation sequences step by step. How does the timer get preset time? Or does the operator set the time? How does the timer start? (i know)Press start How does the operator stop the timer? Do you want to reset to the same time multiple times? What happens when you time out?
Other program choices are:
interrupt driven for the time count?
interrupt driven for the button/key input?
using external display driver for the 7 seg disp?
using GCbasic to code the 7 seg disp?
I am sorry but I didn't understand if you knew where to start.
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I WOULD LIKE TO MAKE A COUNTDOWN TIMER 99min-59sec. WITH 4 LED DISPLAY 7 SEG. I FOUND SOMETHING SIMILAR AT www.turbokeu.com/myprojects/countdown3.htm ,BUT THE CODE IS IN HEX AND ASSEMBLY THAT I CAN'T HANDLE WELL. I WOULD LIKE TO MAKE SOME MODIFICATIONS IN THE CODE,SOME ARE AS FOLLOWS:
A. AFTER THE COUNTDOWN START FROM A PRESET TIME, I WOULD LIKE TO PAUSE THE COUNTDOWN (WITH A PULSE AT SOME INPUT OF PIC) , STORE THE REMAINING TIME , ADD AN EXTRA TIME TO REMAINING TIME , TOTAL TIME WILL DISPLAY AT 7SEG. DIGITS AND START A NEW COUNTDOWN FROM THIS TIME. THE EXTRA TIME CAN BE PRESET AND STORE AT EEPROM .
B. 1 MINUTE BEFORE 00.00 THE BUZZER WILL MAKE A BEEP , THE SAME EVERY 10 SECONDS UNTIL THE END OF COUNTDOWN.THEN WE HAVE 3 BEEPS AND THE DISPLAYS REMAINS TO 00.00 UNTIL THE NEXT START.
IS THERE ANY IDEA ON HOW TO TRANSLATE HEX OR ASSEMBLY TO PIC-BASIC OR C ? IF NOT, IS THERE SOME CODE IN ASSEMBLY THAT HELP ME MAKE THE ABOVE MODIFICATIONS?
GENERALLY, HOW TO MAKE AN ADDITION OF TWO TIMES (IN mins-secs) IN PIC BASIC,AND THE TOTAL TIME (IN THE SAME FORMAT 00.00) TO STORE IN PIC EEPROM OR EXTERNAL EEPROM TO USE AS START COUNTDOWN TIME?
THANKS IN ADVANCE.
BASIL
Basil,
You are getting the cart before the horse. You can't add features until you have the base to build on. make a plan.
I understand you want a 4 - 7 segment LED display. How are you driving them?
How many buttons do you want? 3 like the example or more or keypad
What pic are you going to use?
Write down some of the operation sequences step by step. How does the timer get preset time? Or does the operator set the time? How does the timer start? (i know)Press start How does the operator stop the timer? Do you want to reset to the same time multiple times? What happens when you time out?
Other program choices are:
interrupt driven for the time count?
interrupt driven for the button/key input?
using external display driver for the 7 seg disp?
using GCbasic to code the 7 seg disp?
I am sorry but I didn't understand if you knew where to start.
Mike