51 microcontroller DS1302 perpetual calendar clock temperature 12864 display simulation (proteus simulation + program + report + explanation video)

51 microcontroller DS1302 perpetual calendar clock temperature 12864 display simulation


51 microcontroller DS1302 perpetual calendar clock temperature 12864 display simulation (proteus simulation + program + report + explanation video)

Simulation diagram proteus7.8 and above

Program compiler: keil 4/keil 5

Programming language: C language

Design number: S0051

1. Main functions:

Perpetual calendar clock simulation design based on 51 microcontroller

1. Use DS1302 to record the calendar and time, and simulate the startup to display the current real-time time;

2. Press the buttons to set the date and time;

3. Use DS18B20 to detect the temperature, which can display the current temperature value in real time;

4. Use LCD12864 liquid crystal for display;

It should be noted that the 51 microcontroller chip in the simulation is universal. AT89C51 and AT89C52 are specific models of the 51 microcontroller, and the cores are compatible. Regardless of stc or at, the pin functions are the same and the program is the same. The chip can be replaced with 51 microcontroller chips such as STC89C52/STC89C51/AT89C52/AT89C51.

The following is a display diagram of this design information:

2. Simulation

Start simulation

Open the simulation project, double-click the microcontroller in proteus, select the hex file path, and then start simulation. After starting the simulation, LCD12864 displays the computer's local time and day of the week and the temperature of the DS18B20 during the simulation. The time increases by seconds.

img

When the time is displayed, press the setting button to enter the setting mode. First set the year. The year display will turn black with white characters. Complete the setting of the year by pressing the addition and subtraction buttons. After setting the year, set the month. The operation is the same as the year adjustment. Then press the setting button to set the date, clock, minutes and day of the week respectively. Set to the day of the week and then press the setting button to exit the setting mode. If the day of the week is not set and you need to exit the setting mode, just press the setting completion button.

imgThe above simulation results are in line with the design requirements.

3. Program code

Use keil4 or keil5 to compile, the code has comments, and you can understand the meaning of the code in conjunction with the report.

img

4. Design report

5767-word design report

img

5. List of design information contents

Material design materials include simulation, program code, explanation videos, functional requirements, design reports, software and hardware design block diagrams, etc.

0. Common usage problems and solutions – a must-read! ! ! !

1. Simulation diagram

2. Program source code

3. Proposal report

4. Explanation video

5. Functional requirements

6. Components list

7. Design report

8. Software and hardware flow chart

Altium Designer Software Information

filename.bat

KEIL software information

Proteus software information

Microcontroller learning materials

directory listing.txt

Defense skills

Common descriptions for design reports

Double-click the mouse to open and find more 51 STM32 Microcontroller Course Graduation Project.url

img

Data download link (clickable):

Guess you like

Origin blog.csdn.net/weixin_52733843/article/details/133043313