Home > other >  For help about the design of the electronic clock.
For help about the design of the electronic clock.

Time:09-22

Title: the design of electronic clock
The design task:
1. Using digital tube as a display device, the design of clock function;
2. Use DS1302 real-time clock module respectively set hours, minutes and seconds, after the reset time is 00-00-00;
3. The calibration function, after pressing a key, "seconds" reset;
4. Press another button to use external interrupt, forward count, reverse counting,




For reference and simulation program, urgent urgent

CodePudding user response:

DS1302 itself is a clock module, as long as you guarantee DS1302 32768 crystals have jobs, that as long as the meter read DS1302 programming DS1302 and duration in the digital tube display, namely home and dry

CodePudding user response:

Tasks 1, 2, according to the friend said above do,
Task 3: should it be used to think you scan IO mouth way, it would be a fixed time to inspect the status of the keys, when they tested the button triggers the image stabilization (can do), then the value in the second place,
Task 4: should it be used to think you IO port interrupt to implement, and then use a global variable is marked a judgment is positive direction/count
  • Related