Specific implementation functions:
1. Press the emergency alarm button, the emergency alarm light flashes and the buzzer sounds;
2. Press the arm button, the arm indicator light starts to flash for about 30 seconds and stays on, entering the arm mode;
3. Press the Cancel Alarm/Arm button to cancel the arming and emergency alarm functions.
Introduction to MCU
The 51 single chip is a low-power, high-performance CMOS 8-bit microcontroller with 8K in-system programmable Flash memory. With a smart 8-bit CPU and in-system programmable Flash on a single chip, the STC89C51 provides a highly flexible and ultra-effective solution for many embedded control application systems. It has the following standard functions: 8k bytes of Flash, 512 bytes of RAM, 32-bit I/O port lines, watchdog timer, built-in 4KB EEPROM, MAX810 reset circuit, three 16-bit timers/counters, a 6-vector 2-level interrupt structure, and a full-duplex serial port. In addition, the STC89X51 can be reduced to 0Hz static logic operation and supports 2 software-selectable power saving modes. In idle mode, the CPU stops working, allowing RAM, timer/counter, serial port, and interrupt to continue working. In power-off protection mode, the RAM content is saved, the oscillator is frozen, and all microcontroller operations stop until the next interrupt or hardware reset. The maximum operating frequency is 35Mhz, and 6T/12T is optional.
Design ideas
Literature research method: collect and organize relevant research materials on the single-chip microcomputer smart bracelet system, read the literature carefully, and prepare for the research;
Investigation and research method: Through investigation, analysis, specific trials and other methods, the current situation, existing problems and solutions of the single-chip smart bracelet system are discovered;
Comparative analysis method: compare the specific principles of different single-chip smart bracelet systems, as well as the differences in the performance of the same type of sensors, and analyze the research status and development prospects of single-chip smart bracelet systems;
Software and hardware design method: Implement specific hardware through software and hardware design, and finally test whether each function meets the requirements.
program
This design uses KEIL5 software to implement program design, as shown in the figure. As the first programming language learned during undergraduate studies, C language is one of the most familiar programming languages. Of course, due to its powerful functions, C language is currently the most widely used and popular programming language in the world. In the design of single-chip microcomputers, C language has gradually completely replaced assembly language, because compared with assembly language, C language compilation, running, debugging is very convenient, and it has high portability, good readability, and is easy to burn and write hardware systems. Therefore, C language is widely used in single-chip microcomputer design. Keil software is compatible with single-chip microcomputer design, can achieve fast debugging, and generate burning files, and is widely used in C language writing and single-chip microcomputer design.
Simulation Implementation
This design uses protues8.7 software to implement simulation design, as shown in the figure.
Protues is also one of the commonly used design software in MCU simulation design. By designing the hardware circuit diagram and writing the driver, the circuit can be debugged without implementing the hardware. In addition, Protues can also realize PCB design, and can also be combined with KEIL in simulation to facilitate program debugging. It supports multiple platforms and is simple and convenient to use.
Previous article:30-Design of a Marquee Based on a Single Chip Microcomputer
Next article:28-Fully automatic washing machine simulation system based on single chip microcomputer
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- [Qinheng Trial] CH559EVT Trial 2: Development Environment
- Mid-Autumn Festival "State Banquet": Take a photo of the domestic components on the board and win a small gift
- Qiming Cloud Sharing: ESP32C3 Alibaba Cloud Connection Test Steps
- ASM330LHHX automotive-grade 6-axis inertial module related information and driver
- EEWORLD University Hall----Live Replay: AVNET uses MPLAB? Ecosystem and Curiosity Nano Development Board to create an innovative development workflow
- BleuNRG-1 one master and multiple slaves master module search interval setting
- N ways to program the development board
- Analysis of Rectification Circuit and Filter Circuit
- Learn more about logic analyzers
- What is the status of lithium battery?