Based on 51 microcontroller 0.001s precision stopwatch 9.999s simulation design (source code + simulation + schematic + PCB + report + device list + explanation
Based on 51 microcontroller 0.001s precision stopwatch 9.999s simulation design (source code + simulation + schematic + PCB + report + device list + explanation)
Simulation version: proteus 7.8
Program compiler: keil 4/keil 5
Programming language: C language
Design number: S0003
Explainer video
Based on 51 microcontroller 0.001s accuracy 9.999s stopwatch proteus simulation design (source code + simulation + schematic + PCB + report + device list + explanation)
1 Function description:
The timer is a stopwatch with an accuracy of 0.001s;
1. The accuracy of the stopwatch is 0.001s;
2. Buttons can be used to start, pause and clear;
3. After the timer reaches 9.999 seconds, clean up and restart the timer;
4. Use a digital tube to display the timing time;
The simulated 51 microcontroller chip is universal. AT89C51 and AT89C52 are specific models of the 51 microcontroller, and the cores are compatible. As long as the schematic diagram remains unchanged, the main control chip can be replaced with 51 microcontroller chips such as STC89C52/STC89C51/AT89C52/AT89C51/8051.
The following is a display diagram of this design information:
2 Simulation circuit:
Open the simulation project, double-click the microcontroller in proteus, select the hex file path, and then start simulation. After starting the simulation, the digital tube displays 0.000. Press the button to start timing, press the button again to stop timing, and press the button again to reset the timing time.
When the simulation starts and counting has not started, 0.000 seconds is displayed.
After starting counting, the time increases by 0.001s. After starting, press the button to pause the timing and display the current timing time. Press the button again to clear the timing.
It is close to 9.999. After exceeding 9.999, it is reset to 0 and the time is restarted.
3 Schematic diagram:
Drawn by AD.
The difference between Proteus simulation and physical works:
1. Running environment: Proteus simulation runs on the computer, while the real thing runs on the hardware circuit board.
2. Debugging method: In Proteus simulation, you can easily perform single-step debugging and observe changes in variable values, while in real objects, you need to debug through a debugger or serial port output.
Circuit connection method: In Proteus simulation, the circuit connection can be modified through software settings, but in the real thing, it needs to be modified through the hardware circuit board and connecting wires.
3. Running speed: Proteus simulation usually runs faster than the real thing, because the simulation is based on computer operation, while the real thing needs to consider factors such as the physical limitations of the circuit board and the response time of the device.
4. Function realization: In Proteus simulation, different functions can be realized through software settings, but in real objects, they need to be realized according to the circuit design and device performance.
Parts list
Comment | Description | Designator | Footprint | LibRef | Quantity |
---|---|---|---|---|---|
Cap Pol1 | capacitance | C1 | electrolytic capacitor | Cap Pol1 | 1 |
Cap | capacitance | C2, C3 | 0805_C | Cap | 2 |
104 | capacitance | C4 | 0805_c | CAP | 1 |
Four-digit digital tube | Digital Tube | DY1 | Four-digit digital tube | Four-digit digital tube | 1 |
CON2 | 2PIN pin header | J1, J2, J3, J4 | HDR1X2 | CON2 | 4 |
KEY | button | key1 | SWITCH | KEY | 1 |
PNP | triode | Q1, Q2, Q3, Q4 | TO-92A | PNP | 4 |
Res2 | resistance | R9 | 0805 | Res2 | 1 |
1 k | resistance | R10, R11, R12, R13, R14 | 0805 | RES | 5 |
510 | resistance | RES1 | SIP9 | exclusion | 1 |
AT89C52 | Microcontroller | U1 | STC89C52 | AT89C52 | 1 |
XTAL | crystal oscillator | Y1 | Crystal oscillator 12M | XTAL | 1 |
4 PCB:
Double-layer board design, partially using SMD components
5 procedures:
6 Information list && download link:
0. Frequently asked questions must read! ! ! !
\1. Program
\2. Simulation
\3. Schematic diagram and pcb
4. Project proposal report
5.Components list
6. Functional requirements
\7. Design report
8.Explanatory video
Altium Designer installation crack
filename.bat
KEIL+proteus microcontroller simulation design tutorial
KEIL installation crack
Proteus component search
Proteus installation
Proteus simple use tutorial
Microcontroller learning materials
directory listing.txt
Related data sheets
Defense skills
Common descriptions for design reports
Double-click the mouse to open and find more 51 STM32 Microcontroller Course Graduation Project.url