Urgent 51 single chip microcomputer electronic clock design

Updated on technology 2024-03-02
4 answers
  1. Anonymous users2024-02-06

    I have ready-made, and there is a schematic, but you have to write it yourself, give me the mailbox, and I will send it to you, which I made when I was learning a single-chip microcomputer, with an alarm clock function, adjustable time, etc.

  2. Anonymous users2024-02-05

    Let's talk about the steps:

    1. Digital tube drive circuit design. Generally, it is driven by a triode such as 9013 or a latch such as 74HC573 to make it turn on and off normally.

    2. Use dynamic scanning to make the digital tube display the number you want, which can be scanned with interrupt or not.

    3. Use a real-time clock chip such as DS1302 to get the time data you want. There are many source programs on the Internet that you can search for. There are a few things you need to learn: (1) initialize the chip; (2) obtaining temporal data; (3) Know how to modify the data.

    Set the button (this is a multiplex button, press once to enter the setting mode, and let a certain bit flash, and then press to let the next bit flash in turn, indicating that it is selected, until the number to be set is completed and then press to confirm the setting), + key and - key. This is not only as simple as modifying the data, but also involves modifying the data of the DS1302, and you need to disable the write protection function of the DS1302 and enable this function after the setting is completed.

    The above words are hand-typed, I hope it will help you.

  3. Anonymous users2024-02-04

    Well, I've done this before. But there is a certain amount of error, and I used to make it more than ten seconds slower every hour.

    1.Timer Interrupt: Use a timer (16 is the mode) to set the base time (the longer the better).

    If the frequency of the crystal oscillator is lower, you can set the base time of the second, and then after you have the base time, you will have an interruption every second, and calculate the time once, and the calculation formula will needless to say, mathematical knowledge. After the calculation, update the time once!

    2.External Interrupt: Just one external interrupt plus a three-input AND gate can be extended from 0 to three inputs. Then the key is detected in the interrupt program, and then the corresponding time is calculated, and the time is updated once!

    3.Main program: The main program is to display, let the digital tube scan dynamically, and display the time. Infinite loop. After waiting for the interruption to come and update the time, the digital tube will naturally display the updated time.

    That's basically it. Just a Juche idea. Breaking it down, it's not much work. After all, this thing is simple.

    Finally, I wish the landlord success.

  4. Anonymous users2024-02-03

    Halo, your sense of accomplishment, and getting a complete design is far superior to making it directly.

Related questions
12 answers2024-03-02

There is an ADC0804 acquisition program, Sensible electronic design VGZ

10 answers2024-03-02

time=th1*256+tl1;

This is to use the timer t1 to count, time=th1*256+tl1; This is to calculate the time according to the count value of the timer counter t1, th1 is the higher 8 bits of the counter, and the count result is of course multiplied by 256 times, plus the value of the lower 8 bits tl1. >>>More

9 answers2024-03-02

16 and 7 are the number of bytes between the PC and the data ** at the time of the lookup command. >>>More

16 answers2024-03-02

Isn't this thing just a digital tube displaying 16 digits? Prompt you 16 times to get there, let go after you think to press the stop button. If so, the procedure is available for reference: >>>More

6 answers2024-03-02

Not at all contradictory. The purpose of each port of the single-chip microcomputer is different, the structure is also different, you say that the current of the LED MA level can make it brighter, which refers to the rated brightness, different power has different brightness, you can't compare the 1 mm patch with the 10 mm one, can you understand? If you want to use LEDs at the P2 port, there are two ways. >>>More