07-05
2021
With the development of computer technology, the application fields of embedded systems are constantly expanding, ranging from automatic navigation systems of space shuttles to mobile phones and smart home appliances. Embedded system is a typical hybrid system of software and hardware, and current products generally include embedded microprocessor and corresponding control software.1. Introduction to the collaborative development of embedded systems and hardware and softwareEarly microprocessors were both 4-bit and 8-bit. With the continuous development of manufacturing technology, integrated 8-bit microcontrollers began to appear, and 16-bit microprocessors began to be used in more complex embedded systems, 32-bit structured devices and highly integrated microcontrollers gradually occupied market for high-end applications. Still, more powerful microprocessors did not replace earlier microprocessors, but simply gave embedded system designers a wider range of choices in choosing the right microprocessor based on functionality, features, availability, and price. processor products.In the early days, due to the single function of the system, the embedded software part was composed of codes independently designed by the manufacturer, so it was very simple. However, with the expansion of applications, the system becomes more and more complex, especially for high-end embedded microprocessor systems, multi-task models are widely used in software development, and many manufacturers also choose third-party commercial embedded real-time operating system products ( RTOS). The hardware resource environment in embedded systems is generally harsh, and the memory is generally not large. To complete complex functions under such tight resources, it is required that the software part of the embedded system must be as compact, stable and efficient as possible.2.The general method of software and hardware joint designThe software-hardware joint design method is proposed in the design process of the software-hardware hybrid digital system, aiming at the defect that the traditional design method separates the software and hardware development process. It means that the software and hardware use a unified design method and adopt a consistent Design tools for synthesis, verification, and simulation of design methods.The main steps of the software-hardware joint design are as follows: (1) System-level modeling description: build a complete system description to verify the behavior of the system without considering the implementation details, driving functional verification and hardware-software partition; (2) Combined hardware and software synthesis: including software and hardware partitioning and scheduling, constrained code generation, hardware and interface synthesis. (3) Software-hardware joint simulation, debugging and verification: Model the behavior of the system on the basis of the known behavior of software and hardware components, and verify the function of the system and evaluate the performance of the system.3. The application and development of software and hardware joint design methodAs mentioned earlier, an embedded system is a typical mixed system of hardware and software. At the beginning of the design, the designer needs to divide the system into hardware and software. The software and hardware here can be not only separate components, but also different abstraction levels of the same physical component. In both cases, the interdependencies between hardware and software lead to compromises in their respective implementation methods. At the same time, due to the great changes in the application requirements of embedded systems and the strong requirements for performance, real-time and flexibility, the initial design and division have a great impact on the design quality of the entire system; and due to the complexity of high-end products, many problems in the It will be exposed during the software and hardware integration process. All of these put forward the demand for joint synthesis and joint simulation. Therefore, it is necessary and urgent to introduce the method of joint design of software and hardware in the design of embedded systems.From the perspective of methodology, the joint design of software and hardware of embedded systems follows the above general methods and rules. With the development of microelectronics technology and embedded system itself, its design method will show some new characteristics.1. Software and hardware divisionLike the design of other mixed hardware and software systems, hardware and software partitioning is a very critical step in embedded system design. How to improve the efficiency of the partition algorithm and reduce the time complexity is the focus of research. Existing research results have improved the effectiveness of partitioning from many aspects. In addition to the most basic simulated annealing algorithm, methods based on compiler guidance, graph-based minimum cost algorithm, software and hardware pipeline, and interactive partitioning have also been proposed.2. The impact of standardization and high integration of commercial components on software and hardware designWith the development of microelectronics technology, more standard commercial components are put on the market, while highly integrated devices reduce the number of chips. Many designers are now more than happy to use microprocessors and microcontrollers that incorporate more functionality. Correspondingly, the design of the software has also changed. The workload of software development has increased dramatically, often reaching 70% to 80% of all work. In order to shorten the development cycle, along with the trend of hardware standardization, the software content has also shifted from self-designed to using products with intellectual property rights as much as possible. Utilizing portable code and standard real-time operating system has become the direction of designing embedded system application software. Of course, for embedded system developers, decisions involving the integration of standard components and the selection of intellectual property are also complex decisions that must be faced now and in the future.From the above changes, it can be seen that with the increasing abundance of standardized software and hardware components, the granularity of software and hardware division in embedded system design increases, so that the system description is relatively clear, the software and hardware design work is significantly simplified, and more emphasis is placed on interface design. And overall performance, design space flexibility and diversity are greatly increased. These changes have put forward new requirements for existing design methods and related technologies, such as how to refine the partition algorithm so that it does not need to consider unnecessary details, and further improve the abstraction level of joint simulation and verification, shorten the development cycle, etc. question.3. "United" and "decentralized" in embedded system designIn the traditional design method, the software design often lags behind the hardware, and the joint simulation technology and virtual prototype technology adopted in the software-hardware joint design method are just to make up for this gap. Therefore, software and hardware design engineers work together to become A trend of development. Through co-design, and specifically co-verification techniques, software engineers are able to test on real hardware as early as possible, and hardware engineers are able to verify their designs early in the prototyping cycle. To achieve this goal, an integrated development environment must be provided, in which software and hardware modeling, joint simulation and evaluation can be completed. Some solutions exist, such as instruction set emulators and standard low-cost commercial evaluation boards. In addition, low-cost master-target computer connection technology has been widely used.Another feature of the development of embedded systems is that more and more developers are needed. In order to effectively manage the development team, some proprietary technologies must be encapsulated so that they can be used by non-specialists in a safe, reliable and straightforward manner. Therefore, object-oriented thinking should also be introduced in the design of embedded systems. In many large companies, the software development team is not simply growing, but is being dispersed, with members working in different regions or countries. This situation has led to the emergence of "Technology Centers" where the use of "Software Parts" is becoming more and more realistic.4. Brief introduction of software and hardware collaboration in SOPC embedded systemWith the rapid development of semiconductor technology, the scale of integrated circuits continues to increase, and the emergence of large-scale programmable logic devices makes it possible to integrate the entire system on a single chip and realize in-system programming. This is the on-chip programmable system SOPC (System on a Programmable Chip). It supports parallel SOPC technology with flexible design methods: it can be cut, expanded, and upgraded, and it has in-system programmable functions of software and hardware.FPGA (Field-Programmable Gate Array, Field Programmable Gate Array)-based SOPC design has shown rapid growth in the semiconductor field in recent years and has become the first choice for system-level designers. However, as the system scale continues to The increase makes the design of the whole system very difficult, and the system development cycle is getting longer and longer, and today's embedded electronic products are very sensitive to the system development cycle, so a fast and efficient design method is worth exploring and research question. For these problems in embedded system design, the researchers proposed a new method of software-hardware co-design.SOPC system is a complex of software and hardware. Many functional modules in the system can be completed by hardware or software. Hardware implementation is characterized by high performance and speed, but high cost and poor flexibility; while software implementation is characterized by good flexibility and low cost, but poor performance. Therefore, how to take into account the system's function and performance (such as power consumption, cost, area, etc.) requirements in the design and implementation process so that they can achieve an optimal combination is the main problem to be solved by the software-hardware co-design method.5. Traditional electronic design methodsAt present, domestic and foreign enterprises generally adopt the traditional embedded system design method. The steps of this method are to first define the requirements description of the system, and then divide the software and hardware of the system. After the division is completed, the hardware and software design will be carried out separately. If errors are found in the hardware and software design, it will directly return to the software and hardware. division.The disadvantages of this approach are as follows:1) The parallelism between software design and hardware design of the system is low, and the design cycle is long. This design flow uses the hardware design first, followed by the software design. That is, after the hardware is designed, the software is designed on the basis of the hardware. In this serialized design method, when the hardware design is completed and the software is debugged, if an error is found in the hardware design, it will cost a lot of manpower and material resources to correct the error. The software and hardware of the system cannot be co-verified, which leads to a substantial increase in the number of repetitive design tasks and increases the design cost.2) The level of system design is low. System-level design relies on manual work. The large-scale design exceeds the ability of designers. The development process of system software and hardware lacks communication and coordination, resulting in a decrease in design efficiency.3) It does not support customized embedded processors, which are fixed modules and do not support design reusability.6. Characteristics of software and hardware co-design methodBecause of these shortcomings of traditional embedded system design methods, people began to explore new design methods to adapt to the high-speed development of embedded systems, this method is the software-hardware co-design method. As early as 1993, it has become a research direction and hotspot in the field of system-level design in embedded systems.The characteristics of the software-hardware co-design method are as follows:1) The software-hardware collaborative design technology adopts the idea of parallel design and collaborative design, which shortens the design and development cycle and greatly improves the design efficiency.2) Software-hardware collaborative design adopts a unified tool and representation method, reasonably divides software and hardware, allocates system functions reasonably, weighs cost, performance, power consumption and other aspects, and obtains the most optimized design as much as possible.3) Software-hardware co-design adopts the method of software-hardware co-simulation to conduct global design verification on the whole system.Software-hardware co-design has greatly improved the abstraction level of the design, and broadened the coverage of the design. It can make the design of embedded systems more efficient and faster. Software-hardware co-design is a new design method and idea. It is not just a design technology, it is to link the design of software and hardware, so as to avoid the premature independence of these two parts of design. Software-hardware co-design technology is now in the development stage, and many theories are not yet mature. However, this technology has greatly improved the design efficiency of embedded systems, and has great research value and social significance.7. The development process of software and hardware co-designThe main tasks of embedded system design include: system task description, system modeling, used to realize the functional requirements of the system; appropriate software and hardware division of the system to meet performance requirements, reduce cost and power consumption; system synergy And simulate the system implementation and specification. The purpose of software-hardware co-design is to make the various influencing factors of the system coordinate with each other to complete the system function.1. System task descriptionTo design an SOPC system, the first step is to clarify the requirements of the system, that is, the performance of the system and the functions to be realized, and then to model the system. The models of SOPC system mainly include finite state machine model, data flow graph model, task flow graph model, discrete event model, Petri net model and so on. Establish a common system function description method for software and hardware to solve the problem of unified description of the system. At present, the method of system description language is usually used. In this way, after the software and hardware are divided, it can be compiled and mapped into a hardware description language and a software implementation language, which provides a strong guarantee for the system's software and hardware to work together.2. System hardware and software divisionIn the traditional embedded design method, the development process of software and hardware is separated, and there is a lack of communication between them. This makes the design efficiency of the system very low. Aiming at this shortcoming, a method of software-hardware co-design is proposed. In this method, the division of software-hardware system is one of the key steps in software-hardware co-design. The hardware implementation part of the system has a decisive effect on the performance of the system. Usually, the hardware implementation part is faster, but cost control also plays a decisive role in this part. The software implementation part of the system usually has great flexibility, which determines the flexibility of the system configuration, but it takes a certain amount of FPGA logic units and takes a certain amount of time. As shown in Table 1. Table 1 points out whether the system is implemented by hardware or software, which affects the chip area, power consumption, performance, and manpower and time resource requirements. A reasonable software-hardware co-design scheme plays an important role in the design of embedded systems. Reasonable division of software and hardware, on the basis of satisfying system functions, can give full play to the characteristics of fast hardware processing and flexible software control.Influence factors of software and hardware design on the systemThe result of the software and hardware division is to improve the system speed, reduce the area, reduce the cost and reduce the power consumption. However, software and hardware partitioning is usually a traditional problem. Since the partitioning problem itself is very difficult, and SOPC has a huge search space, the situation is even more severe. Today's automatic partitioning algorithms still cannot replace experienced designers. The method of division basically starts from two aspects: one is software-oriented, and the requirements of timing are met from software to hardware; the other is hardware-oriented, and costs are reduced from hardware to software. When dividing, it is necessary to consider various factors such as the architecture, granularity, and cost of hardware and software implementation of the entire target system. After the division is completed, the divided interface of the software and hardware system is generated, which is provided to the software and hardware for communication, verification and testing. Commonly used software and hardware cooperative partition algorithms include simulated annealing algorithm and genetic algorithm. The genetic algorithm and the simulated annealing algorithm are relatively complementary. The genetic annealing algorithm formed by combining the two algorithms will inherit the advantages of the two, and the performance in the division of software and hardware is very good. Now this intelligent algorithm is a software It is a research hotspot in the field of hardware partitioning algorithm.3. Software and hardware synergy synthesis stepsAfter the software and hardware division is completed, the design and implementation of the software system and hardware system are carried out respectively. The stage of designing the partitioned system is called synthesis. The main task of this step is to convert the description of the partitioned system into a synthesizable hardware description and a compilable software program. Build a design translation process that includes implementation structure descriptions for software and hardware. For example, the divided description can be translated into Verilog HDL (hardware module) and C (software module). Software-hardware co-synthesis consists of the following three steps:1) Allocation of processing units, which determines which processors, DSPs, and special hardware and other architecture-level units of the embedded system are composed;2) Task assignment, which determines which functions in the system are implemented by the hardware processing unit, and which functions are implemented by the processor using software;3) Task scheduling, which determines the start time and execution sequence of tasks assigned to each processing unit.4. Software and hardware co-simulationSoftware-hardware co-simulation verification is an evaluation stage for the correctness of the entire system design and the determination of performance indicators. In each stage of embedded system design, simulation verification can be divided into system-level simulation, behavior-level simulation, register transfer level (RTL level) simulation and gate-level simulation. System-level simulation is generally used to evaluate the overall function of the system and verify the correctness of the algorithm; behavior-level simulation can simulate the designed logic, but does not consider the characteristics of the target device, such as capacity, delay, etc., behavior Level simulation can use advanced statements, such as error statements, file read and write statements, floating point format, etc., but these statements are usually not implemented in the target device; register transfer level simulation checks whether the logic functions of each module are correct, and then , integrate the simulated modules together, and perform functional simulation of the entire system. The simulation at this stage does not include the time information of the hardware circuit, so the design can only be verified from the logic function; the gate-level simulation will use Synthesize the gate-level netlist generated after software synthesis or the gate-level model generated after implementation for simulation, without adding the simulation of the delay file.Typical hardware-software co-simulation is usually run under Quartus II under the development environment of CPLD or FPGA. If some resources such as the IP core used by the system have been independently verified, the simulation verification of its gate level or RTL level can be omitted.8.Embedded system hardware and software collaborative design summaryThe software-hardware collaborative design method based on SOPC can grasp the complex system macroscopically, overcome the shortcomings of traditional design methods, fully tap the synergy between software and hardware, correctly divide the software and hardware of the system, and select the appropriate IP, establish a system design platform and verification platform, promote parallel development of software and hardware, reduce design risk, shorten the development cycle, and play an important role in the design of embedded systems. With the support of logic design and EDA tools, SOPC-based software-hardware co-design technology plays an increasingly important role in the design of embedded application systems, and will be the core technology in the field of IP-SOPC design in the future.Embedded system has strong vitality, broad market and far-reaching application prospect make its development change with each passing day. In order to develop various embedded applications more quickly and effectively, it is of great academic and commercial value to study software-hardware co-design methods. Technologies such as system modeling, software and hardware division, and virtual prototypes are still key issues in embedded system design, and are constantly supplemented and developed with the development of microelectronics technology and computing technology.The above is the joint design method of software and hardware for embedded systems introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad, including MCU, voice IC, Bluetooth IC and modules, wifi modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS solutions, the development of Bluetooth audio, the development of children's toys, and the development of electronic education products.
07-04
2021
Electronic products have penetrated into people's lives and become an irreplaceable and important life tool. Based on the needs of the times, the requirements for electronic products are getting higher and higher. How to speed up the improvement of the practicability of electronic products and how to improve their core in the market Competitiveness has become an important issue that practitioners in the electronic product industry need to solve urgently. But at the same time, the practicability of electronic products is closely related to its hardware design. Therefore, the exploration of the practicability of electronic products requires an in-depth analysis from the hardware design of electronic products.1. Analysis of hardware design of electronic productsFor the market and users of electronic products, the competitive conditions can be roughly divided into hardware design content and external design image. Based on a certain premise, hardware design conditions often directly determine the practical value of electronic products, and when users choose electronic products, they also choose products with higher cost performance among different hardware designs based on personal needs. This shows that hardware design is very important for electronic products. Product development has played a crucial role.In our country, the hardware design of electronic products can often be directly linked to the production cost of the enterprise. The impact of changes in market competition. Taking mobile phones as an example, when two mobile phones are comparable in external conditions, users will often make purchase decisions based on the performance of the mobile phone, and high-quality performance is the guarantee of high sales, and high-quality performance can also promote other manufacturers. Improve your own design to strive for more market share, thus forming a healthy competitive environment.2. The process of hardware designCombined with the above analysis of the importance of hardware design for electronic products, some other questions we need to understand are, what is the specific process of hardware design? What factors make up hardware design that make it such an important part? In view of the above problems, this article will conduct an in-depth analysis by introducing three aspects: preparatory work, schematic diagram drawing, PCB diagram drawing and related component installation.1. Preparatory work on hardware designIf the quality of hardware design is the key to the formation of core competitiveness of electronic products in the market, then the preparatory work for hardware design of electronic products is an important basis for the development of work for hardware design. The preparatory work of the hardware design is mainly related to project planning and corresponding preparatory work, that is, the project is divided into several areas according to different categories, and different areas are set up according to modules. It is worth noting that the components or other devices selected in the module erection should be based on the drawings, and the mainstream components with a longer service life and longer service life should be used as much as possible. After the erection is completed according to the drawings, the test should be carried out to ensure normal operation, and relevant Record the work for future review or return receipt. The importance of preparatory work in the early stage is not only reflected in its basicity, but also in that it needs to serve the follow-up work well. The preparatory work in the early stage directly determines whether the later work can be carried out normally, so it is extremely important.2. About the drawing work of the schematic diagramThe packaging of components is based on the drawing of the schematic diagram, and the drawing of the schematic diagram needs to rely on the preparatory work in the early stage, which is interlocking. When drawing the schematic diagram, first draw the schematic diagram of the functional block according to the different circuits and components in different areas, then mark it, and start packaging after confirming that it is correct. The drawing of the schematic diagram is the core work of the hardware design of electronic products, and it also plays a role as a link between the past and the future. Based on the drawing of the schematic diagram, it is possible to analyze the entire design, find problems and mistakes in time and modify them. It can be said that the drawing of the schematic diagram It directly reflects whether the functionality of the hardware design of electronic products is good or not, and needs to be highly valued.3. About drawing PCB diagramThe drawing of the PCB diagram is the last step in the hardware design process, and it is also the final step based on the improvement of the previous work. After completing the drawing of the schematic diagram, the component package in the schematic diagram is imported into the PCB diagram, and then the components are placed.In this process, special attention should be paid to the placement order of components, the connection between components, and the actual related layout. After ensuring that the drawing size and position are accurate, the hardware design work is completed. It is worth mentioning that it is necessary to try to avoid overlapping in the connection relationship, which will directly affect the design requirements of the hardware design. Different electronic products have different requirements, and as the last step, it should be checked as a whole to avoid omissions.3. Application of electronic product hardware designMobile phones, computers, cameras and other electronic products have become an inseparable part of people's lives. The application and practicality of electronic product hardware design can bring users the most intuitive feeling. It is not difficult to infer that the sales of the product itself will also Therefore, how to improve the practicability of products based on the application of hardware design has become a key issue.1. Miniature electronic devicesRegarding the discussion of microelectronic devices, the author takes integrated circuits as an example. Integrated circuits are relatively small in size, light in weight, low in cost, and simple in structure. They meet the low energy consumption and high reliability requirements of current electronic products, and are one of the development directions of electronic products based on the development of the times. As far as integrated circuits are concerned, they can be seen not only in civilian electronic products, such as computers, televisions, etc., but also in military and communication fields. Due to the advantages and distribution density of integrated circuits, the equipment's Stability has come a long way, so it stands out both in terms of advancing electronic components and increasing the usability of products.2. Application of memory devicesThe application of the memory device actually refers to the application of the memory. The memory is an important part of the computer. The data can be stored and extracted through the memory, and then the data can be used. Memory is not only used in computers. Based on the development needs of the current era, almost all electronic products will use memory. So far, memory devices are roughly divided into two categories. One is ROM-based memory, which is for the system The program performs storage functions, and the other type is data-based storage.4. Design for improving the practicability of electronic productsAfter a brief introduction to the application of hardware design in electronic products, it is necessary to explore how to improve the practicability of the product. Taking mobile phones as an example, during the use of mobile phones, the practicability of mobile phones is directly related to the hardware design of mobile phones. Such as: product wear and tear, that is, the service life and fluency problems in the service life, and functional wear and tear, that is, to ensure its timely maintenance performance when there is a problem with the product components during use. Based on these two points, the continuous improvement of the practicality of electronic products can be fully guaranteed.1. Component wear and fluencyDuring the use of electronic products, it is inevitable that due to the age of use, frequency of use, use environment or other factors, the components of electronic products will be worn out. The wear and tear of components may directly damage the smoothness of use of electronic products or increase their failure. probability, thereby reducing product practicability. Therefore, in the hardware design of electronic products, the first thing to consider based on practicability is the wear and tear of the hardware design of electronic products, and evaluate the wear and tear of the current components through the existing loss values, and carry out the overall mechanism design on this basis Adjust and design components that can replace existing components and reduce loss values, and bring good experience to users on the basis of improving practicability.Taking mobile phones as an example, after one to two years of use, there will be problems such as slow start-up of clicking software, slow switching of screens, or unsmooth operation processes. As a result, the replacement speed of mobile phones is accelerated. In the process of being eliminated too quickly, the ultimate loss is the enterprise itself. Only a good user experience can retain users for a long time, and wear and tear are inevitable. Reduce the loss value so that wear and tear will appear later or parts can be used. Replacement is the key. Only by fundamentally satisfying the practical needs of users for products can enterprises win market reputation and achieve long-term development.2. Repairability of components based on wear and tearTo put it simply, maintainability means that when the components in electronic products are worn out, they can be repaired and replaced in time to continue the use of electronic products and improve the practicability of the products. When enterprises design the hardware of electronic products, they must take this into consideration. For hardware design components, choose a combination of components that are portable or can be integrated as much as possible, and improve the convenience of electronic product functions under hardware design. After the hardware design, appearance and fluency of electronic products reach a certain standard, we provide maintenance services for component wear and tear caused by long-term use of electronic products.Taking a computer as an example, during the use of the computer year after year, it is inevitable that hardware components will be worn out. When the problem occurs, the user cannot replace or use other computers based on the importance of the files in the computer memory. The computer is repaired so that the computer can continue to provide services, and the component loss is generally caused by the aging of the components. During the maintenance process, attention should be paid to selecting the appropriate electronic components that can be replaced, which must conform to the design of the original electronic product hardware design The concept must also meet the needs of the continuous use of current electronic products, and avoid problems that may occur after replacing electronic components, such as long-term overheating of the fuselage and serious decline in product fluency.5. Summary of hardware development technology for electronic productsNo matter how convenient and rapid the development of technology is, the practicability of electronic products is always the core competitiveness of electronic products. Only by improving the practicability of products and meeting the needs of users in many ways can we occupy a place in the electronic product market. As an enterprise, we should not only see the petty profits in front of us, we must start to provide after-sales protection of the practicability of electronic products in terms of component wear and maintenance, and at the same time, fully consider all aspects in the original electronic product hardware design. Factors, fundamentally improve its practicality. It is hoped that the relevant workers can continue to explore in depth on this basis, and put forward more constructive suggestions and opinions for improving the practicability of electronic products.The above are the details of hardware design technology of electronic products introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad, including MCU, voice IC, Bluetooth IC and modules, wifi modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS solutions, the development of Bluetooth audio, the development of children's toys, and the development of electronic education products.
07-03
2021
Intel Embedded Platform Hardware Design Process GuideWith the rapid development of technology, how to quickly provide complete solutions is becoming the main challenge for modern high-tech enterprises. This requires the development team to conduct detailed research and deeply understand the actual needs, and conduct demand analysis, such as product performance indicators, product function requirements, testing and certification requirements, project cost objectives, etc., to further clarify the design tasks. Intel's product line is relatively extensive. According to design tasks and requirements, learn platform materials for evaluation. When designing a reliable, reasonable, and economically feasible solution, special attention must be paid to the compliance of various functional parameters of the Intel platform with actual needs. For details, please refer to Intel product documentation.1. Intel Platform Documentation Terminology1.1 External Design Specification EDS (External Design Specification)This design document contains information on the use and implementation of the platform support reference design to help customers design products using Intel. Also includes performance metrics or design information for system designs using specific Intel components, as well as Intel processor cores, graphics, memory controllers, bus signal descriptions, system memory matching, number of bus interfaces, electrical characteristics, packaging information, clock distribution , the voltage requirements of the chip, and specific information such as power-on sequence and input/output interface.1.2 Platform Design Guide PDG (P1atformDeSignGuide)Design Guides contain information to support the use and implementation of reference designs to assist customers designing with Intel products. Also includes design information and design recommendations for PCB board layout and board-level system design using specific Intel components, specific to the wiring and routing recommendations for each interface of the CPU and chip, such as DDR topology, DMI, DDI, DSI , SATA, PCIe, USB, etc.; the Design Guide will also include design guidelines for power distribution and power-on sequence in the platform, as well as detailed specifications and requirements for PCB stacking, wiring, interfaces, equal lengths, and vias.1.3 Customer Reference Design Schematic CRB (Customer Reference Board Schematic)The customer reference board schematic diagram describes the characteristics of a complete Intel product, including the schematic design of a specific product customer reference board, which will connect the various bus interfaces of the Intel corresponding platform, and the system functions can be realized through debugging, including the system frame diagram , power supply scheme, clock, platform power-on sequence, power management, detailed schematic diagram implementation to specific component connections, etc.1.4 Customer Reference Design Layout Document (Customer Reference Board fi1e)The customer reference board layout file is a layout file designed for the target system. In one-to-one correspondence with the customer reference design schematic, use the reference customer reference board user guide, customer reference test plan, and customer reference system design.1.5 Platform layout checklist (Layout check 1ist)The layout checklist is an important part of reviewing the design guide and implementing a system layout design. It is used together with the relevant platform design guide from the overall situation to the details. Each specific bus interface has detailed requirements and instructions, such as high-speed bus Wiring, number of vias, clock distribution, characteristic impedance, length limit, etc. Check possible problem points to enhance the stability of the motherboard.1.6 Schematic design check listThe schematic diagram checklist is a list and list of items that need to be reviewed in the product design schematic diagram, the recommended design and guidance of the schematic diagram, and the wiring differences and problems between the self-examination and the CRB schematic diagram. Check the connection of the peripheral signals of the chip, the connection of the high-speed signal, the power supply status, the clock distribution, and the shielding precautions of the unused bus interface. It is often used in conjunction with the external design specification EDS in the schematic design.2. Intel project design process2.1 Intel project design preliminary preparationIn the early stage of actual project design, it is necessary to conduct demand analysis and clarify development tasks. Designers need to contact Intel's technical support engineers in time to understand the product roadmap, and discuss the chip solution of the platform based on the actual needs of the project; the types of debugging tools and use documents in the development and debugging phase, and clarify the project development plan and timetable; apply for Intel CRB simultaneously The reference design board is debugged and evaluated in advance to shorten the production and development cycle and obtain Intel's technical support and design resources in advance. Of course, in the process of referring to the characteristic indicators of EDS and other documents, it is also necessary to conduct preliminary product software implementation feasibility studies, such as discussing SW development and design with BIOS/OSV manufacturers, MCU implementation and system cooperation, and OS and driver function implementation. , the choice of system cooling scheme, etc. Combined with the project requirements, start to prepare design documents and design schemes. It is necessary to design the system architecture first, draw a system block diagram and discuss the implementation with relevant design departments, sort out the conceptual block diagram of power distribution, clock, power-on sequence, reset, interrupt, debugging, etc. , combined with the Intel platform customer reference design schematic diagram CRB, from device selection and unit scheme realization to the formulation of the overall scheme. It is necessary to refer to documents such as PDG, EDS, and CRB, and pay special attention to the operating voltage, operating frequency, system timing, and overall power consumption of the chip to meet the system design requirements.2.2 Intel hardware schematic diagram drawing stageIn the schematic diagram drawing stage, first refer to the Intel chip library file to ensure that the layout of the schematic diagram is clear and reasonable, and the layout is evenly arranged. Learn the descriptions of each group of signals in the EDS document: system memory, bus interface, electrical characteristics, and power-on sequence (this is the platform The important foundation of power-on design), consult relevant information from EDS, and refer to CRB to define the power-on sequence of the project platform according to the timing requirements of the main functional modules of the platform; secondly, combined with project functional requirements, refer to intel CRB Schematic design, pay special attention to power distribution, clock arrangement, high-speed signal connection, etc. After the first draft of the schematic is drawn, it needs to be carefully combined with Intel's schematic design check list to check for error-prone places, especially DDR, PCIe , USB, DDI and other high-speed signals; then, hardware developers need to discuss and prepare the BIOS/Boot loader program with SW colleagues in time, so as to make full preparations for the first version of proofing and trial production. Of course, selecting and drawing other components is also an important part, and it is necessary to fully consider the convenience of post-processing and production process and the substitution of components. You can apply for Intel technical support personnel to review the project schematic diagram at the same time. Combined with the inspection results, convene a schematic design team for final discussion and modification, and meet customer functional requirements such as function, performance, and redundancy design. Specs and standards and indicators of the Intel platform Conformity, and the manufacturability, debuggability, testability of the factory, etc., the final modification is determined.2.3 Intel PCB layout design stageIn the layout and PCB design stage, it is necessary to cooperate with the organization/ID/EMI/RF/Power/thermal team in time to discuss the placement of the main chips to meet the design requirements of the overall project plan. First, combined with the PCB stack structure, calculate whether the width of the PCB traces of each group of high-speed signals can be smooth, discuss the position of the power supply device and the placement of sensitive components, and generate a formal design document: pay attention to the I/0 interface, temperature, and clock elements. The focus of the discussion on device location and height-limited area is second. When drawing the PCB layout, it is necessary to choose a reasonable stack-up design, arrange the main components evenly, and make the high-speed signal wiring smooth; special attention should be paid to the shielding of interference sources and sensitive signals. The power supply of functional modules should be relatively isolated; pay attention to the wiring distribution of high-speed signals and power supplies to avoid mutual interference; reasonably plan the layout of power supply modules and power supply distribution paths, and increase the width of power supply lines as much as possible according to the current size of the printed circuit board. reduce loop resistance. The length of high-speed signal traces must comply with the Intel specification, and the actual length on the PCB needs to be filled in to check the trace length in the equal length table. Reasonably plan the reference plane and power plane of high-speed signals, pay special attention to the wiring of high-speed signals such as DDR, DMI, DDI, DSI, SATA, PCIE, USB, etc., to avoid signal interference and interference effects; increase the gap between high-speed signals and analog signals Distance, increasing the distance between signal lines as much as possible can effectively reduce capacitive crosstalk; the loop area should be minimized to reduce inductive crosstalk. In the design of the ground wire, pay attention to the noise interference of the digital ground to the analog ground, the digital ground and the analog ground can be separated, the ground wire should be as thick as possible, and the ground wire of the digital circuit system forms a closed loop, which can improve the anti-noise ability. Pay attention to the signal impedance matching of signal integrity, uniform line width, and reasonable line spacing; avoid impedance discontinuity of transmission lines, reduce the use of stub lines, etc. Sensitive signal traces such as analog signals, clock signals, and temperature signals should be kept as short as possible and kept away from interference sources such as power supplies. The number and distribution of vias are reasonable, especially the number of vias for high-speed signals does not exceed the requirements, you can refer to CRB layout file, layout check list and PDG. Comply with the Intel reference design document PDG, so that the power distribution is reasonable, the clock routing is appropriate, and the high-speed signals such as DDR are not affected or affected; in the later stage, carefully check one by one with the layout checklist, especially high-speed signals, etc. Length, power supply, EMI countermeasures and other parts. When approaching the early stage of board release, Intel professional engineers can be invited to conduct simultaneous inspections. After receiving feedback results, a layout inspection meeting will be held in a timely manner. After discussions and revisions, formal design documents will be produced for release and production.2.4 Intel PCB production stageDuring PCB production, it is necessary to check the bill of materials synchronously, coordinate the trial production schedule, prepare the first article test plan, debug tool software, and debug equipment. When the first PCB is received, first conduct the power-related open-short circuit test, and then conduct the power-on test after confirming that it is correct, focusing on checking the power supply timing, clock, reset and other signals, and comparing the power-on timing requirements in the Intel platform EDS, software and hardware development The personnel timely adjust and solve the design that does not meet the requirements of the spec. After the power on is completed, the functional test report and signal integrity test report need to be completed, and then the system power consumption and power quality test, the compatibility of the main components and the system stability are performed. Testing; generate formal test reports and change documents for subsequent traceability of related issues. If necessary, you can seek help from Intel platform application engineers in debugging and verifying the motherboard.2.5 Intel hardware platform debugging stageAccording to the test results after the first trial production, modify the schematic diagram and layout design, further check the accuracy of the upper part of the material, simultaneously solve the problems related to factory production and functional testing, and form a design document: after the second trial production, further verify the system Functional stability, such as high and low temperature, aging, running for a long time and switching on and off multiple times, etc.; solve the concentration problems found by the relevant testing department in a timely manner. After the third boarding, the number of units and the number of times to verify the stability of the system are multiple times, and it is also necessary to improve the production yield before the final mass production of the product, such as simplifying the design, using the arrangement to reduce the number of parts, etc. During the testing and testing process, the concentration problems encountered were resolved until mass production and shipment began.SummarizeThe purpose of Intel's embedded platform design is to make the system equipment achieve the expected functions, and the system can run more stably. This article focuses on the functions and connotations of Intel's main design documents, and solves the problem of X86 development engineers in the process of designing embedded platforms. All kinds of confusion encountered and guidance schemes are given, which can be used in most of the system hardware design process to achieve better project results, which can shorten the time to market and development resources. Of course, in the modern fast-paced product development cycle, the requirements of various projects are also very different. We can choose the key development direction in a targeted manner based on the actual situation.The above is the guidance of the Intel embedded platform hardware design process introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
07-02
2021
The research object of this paper is mainly the circuit board, and the specific maintenance measures can be known through the detailed diagnosis of the common problems of the circuit board. Different fault problems should adopt different maintenance strategies accordingly. In fact, through a comprehensive analysis of electronic equipment circuit board failures, we can clearly understand that timely operation and maintenance of equipment is very necessary. With the help of the following measures, the quality of circuit board work can be effectively improved, and its safety and reliability can also be steadily improved. First, the diagnosis methods in the case of circuit board failure are summarized, including measurement method, elimination method and replacement method. Secondly, the specific maintenance strategies are summarized and summarized, including cleaning and rust removal measures, detecting fuses, detecting components, and finding corrosion points, etc.The innovation of electronic equipment is inseparable from the development of advanced science and technology. With the support of technology, there are various forms of electronic equipment circuit boards, not only in the form of double-sided boards but also in the form of multi-layer boards. In fact, the scientific integration of electrical equipment layout and the mass production of fixed circuits will be affected by its different forms, which have very special practical value. Today's circuit system construction is becoming more and more diversified and intelligent, and it is conceivable that the problem of circuit board failure will gradually increase. In order to ensure that related equipment can serve enterprises or individuals more efficiently, it is necessary to strengthen the operation and maintenance efficiency of vehicles in a timely manner, and solve existing failure problems in a timely manner.1. Overview of common circuit board fault diagnosis methodsWhether it is to replace the circuit board of electronic equipment or perform professional maintenance on it, before taking specific measures, it is first necessary to judge the integrity of the structure in time and accurately judge the fault factors related to the equipment. Therefore, this article summarizes three common and efficient methods of diagnosing faults, and presents their working principles in time.1. About the working principle of the measurement methodWhen carrying out the measurement method, it is first necessary to use a multimeter device to measure the output voltage parameters of the relevant device. On this basis, its failure can be evaluated and determined. Of course, fault diagnosis workers must have a very deep understanding of machinery and equipment, be able to master the corresponding basic knowledge, especially have a very clear understanding of the value range of the device output voltage parameters. After summarizing the practical experience, we can know two different value methods: first, the value range is clarified according to the detailed data provided by the manufacturer. The second is to perform accurate measurements when using the board for the first time, and then use it as baseline data.2. About the working principle of the exclusion methodThe basic principle of the elimination method is now summarized as follows: relevant workers can further determine the main cause of the fault phenomenon based on the operating principle of the circuit board device, and then can adopt simple to complex working principles to eliminate the fault problems one by one. Often times, board failures are found in the last components tested. In fact, the specific fault diagnosis method is based on the path from the mechanical failure of the circuit board connection to the mechanical failure of the circuit board accessory device. Practice has proved that this method of troubleshooting has a very efficient effect. In comparison, the exclusion method has many advantages, such as strong controllability and operability.3. About the working principle of the substitution methodThe so-called replacement method is to replace the circuit board in the same state, so as to compare and detect the fault. In order to achieve a certain economic effect, the common diagnostic work is as follows: Assume that when the mechanical equipment of the same model is running, if it is necessary to diagnose the problem of the circuit board of a certain mechanical equipment, it is necessary to distinguish the circuit board from the normal operation. Replacement of mechanical equipment. Under this operation, assuming that the failure problem still exists after the replacement operation is implemented, it can be concluded that the circuit board has a failure problem at this time.2. Important measures for efficiently repairing circuit board failures1. Timely implement the work content of cleaning and derustingIn fact, it is unavoidable that some substances or adsorptive impurities appear in the circuit board device. However, when these adsorptive substances appear in the circuit board device, it will limit the heat dissipation of related components, and even make the circuit The board is paralyzed. If the circuit board is severely damaged, it will be difficult for the device to continue to operate. Especially when the adhesive dust appears at the corner of the chip, it will make the quality of the chip components not high, and even cause the problem of short circuit on the circuit board. It can be seen that it is very necessary to carry out cleaning and derusting maintenance on the circuit board in time to reduce the interference of adhesive dust on the equipment in time.2. Scientific detection of fuse deviceFor safety reasons, fuse parts are installed in the circuit board assembly. In this way, even when the circuit board passes through high current, it can still protect the components and prevent the components from being damaged. That is to say, during detection, it is also necessary to detect the fuses in the circuit board device in time to grasp the damage status of the fuses. When there is a problem that the fuse is damaged, it must be replaced in time, that is, the fuse of the same type should be used.3. Research on the problem of component damageBefore performing circuit board repair work, the different components must be carefully observed and evaluated based on the observations. Usually there are three types of failures: the first is the crack problem, that is, the circuit board component capacitance becomes larger, and cracks and other phenomena exist at the same time; the second is that the triode is burned, showing a penetrating state. The third is that the resistance element is blown, which cannot achieve timely protection. In response to this phenomenon, it is necessary to replace the device of the same model in time to solve the problem of circuit board failure.4. Detect corrosion spots and virtual welding problemsDue to the existence of manufacturing process factors, it will have a great impact on the internal circuit board device of some mechanical equipment. After a period of operation, there will be a certain degree of virtual welding at the corners of some components. In addition, the circuit board assembly also suffers from corrosion problems under the influence of a humid environment. In fact, the humid environment is not conducive to the normal operation of the circuit board device of electronic equipment, so the operating efficiency of some of its components will be greatly affected. In view of the above problems, it is necessary to implement false welding measures at the location of the fault. At the same time, the maintenance method of secondary connection can also be adopted according to the actual conditions.Nowadays, the level of science and technology in our country has been significantly improved, and there are more and more talents with advanced skills. It can be seen that the speed of my country's modernization development will have a very gratifying improvement. Since the operation effect of the power system is closely related to people's daily life, relevant departments need to strengthen the control of electronic equipment in a timely manner, give full play to the skills and rationale of advanced talents, and improve the effect of circuit board maintenance.The above is the diagnosis and maintenance technology of the circuit board introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad, including MCU, voice IC, Bluetooth IC and modules, wifi modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS solutions, the development of Bluetooth audio, the development of children's toys, and the development of electronic education products.
07-01
2021
Circuit-level simulation analyzes the performance of circuits composed of electronic components, including logic simulation of digital circuits, AC and DC analysis, time domain and frequency domain analysis of analog circuits, etc. The circuit-level simulation must have the support of the component model library containing PSPICE parameters, and the simulation signal and output data replace the signal source and oscilloscope in the actual circuit debugging. Circuit simulation is mainly to test the correctness of the design scheme in terms of function. Circuit simulation technology makes it possible for engineers to fully understand the various characteristics of circuits before the actual electronic system is produced. Now circuit simulation is also widely used in the teaching of electronics in various schools.There are many types of commercialized circuit simulation software, with different software performance characteristics and application convenience. Choosing the appropriate circuit simulation software according to the needs of engineering and teaching can greatly improve work efficiency and teaching effect.1. Functional characteristics of circuit simulation technologyCircuit simulation has been widely practiced and proved to be a very effective analysis technique, which is adopted by more and more electronic designers. Circuit simulation technology can play a role in the following aspects.1. Verify the electronic circuit designUse circuit simulation technology to quickly simulate and analyze different circuit design schemes to ensure that the design ideas are correct. After the circuit form is determined, sensitivity analysis and tolerance analysis are performed on the circuit component parameters to optimize the circuit parameters and ensure the design quality. Circuit design adopts simulation technology, which can greatly reduce manual labor, shorten design cycle and reduce design cost. For example, there are a large number of complex analyzes in filter design. It will take a lot of time to manually calculate all the data. Using circuit simulation software, results can be obtained within minutes, and the error can be kept within the scope of engineering specifications.Compared with the traditional circuit measurement method, computer simulation can predict the change process and final result of a specific circuit parameter, so that people can have a deep understanding of the change law of circuit performance. For example, how much impact will the error of component parameters have on product performance? Which component error will have the greatest impact on circuit performance? Using Monte Carlo analysis in circuit simulation technology can quickly draw conclusions. Using worst-case analysis, designers can easily test various extreme conditions and observe the response of the circuit under extreme conditions. Sensitivity analysis enables users to determine the proportion of change in circuit performance parameters such as period, gain, or rise time due to design or component parameter changes.Circuit simulation technology is especially advantageous in experimental studies where routine measurements are difficult, especially in destructive experiments in real systems. For example, some electronic designs involve high voltage and high current, incorrect design parameters may cause damage to electronic components and hinder the design process. Circuit simulation used in digital circuits also has the characteristics of high efficiency and high precision. Using simulation technology before building the circuit can avoid all kinds of fatal damage and increase the success rate.As a simulation technique, simulation cannot completely replace the actual measurement of real circuits. However, various parameters produced by simulation have decisive significance in design, and also provide a data basis for physical experiments.2. Auxiliary teaching for electronics majorsElectronics is a highly experimental subject. It is best to study the principles of electronics simultaneously with experiments to deepen perceptual knowledge. Experiments require measuring instruments and electronic components. When limited by objective conditions, it is an effective method to verify the conclusion of theoretical analysis with circuit simulation. Circuit simulation can record all the data in the analysis, and can easily reproduce various electrical processes, especially some fleeting phenomena. For example, the start-up process of an oscillating circuit is generally only about 1 millisecond. This process cannot be observed on an oscilloscope without a memory function. Using simulation can record the whole process of circuit start-up; for example, circuit simulation software can be used to build various operational circuits and verify the circuit theory of operational amplifiers at any time, which is easier and faster than building experimental circuits. The drawn circuit diagram and the generated simulation curve can be copied to the document, making your experiment report look more convincing.To study electronic circuits, one must not only master the basic principles and calculation methods, but also pay attention to the cultivation of circuit design, analysis and research and development capabilities. It is usually impossible for laboratories to provide the latest devices from various manufacturers in the world. The circuit simulation can be simulated and analyzed using the model of the new device. The application of circuit simulation technology can also design different forms of training such as verification, testing, design and innovation, so as to cultivate students' various abilities.3. Learn electronic engineering measurement technologyMeasurement is one of the fundamental skills in electronics. There are two requirements for electronic measurement: mastering the operation method of electronic instruments and data collection and analysis.In electronic measurement, a variety of signal generators are used: such as high-frequency signal generators, low-frequency signal generators, and function generators. The signals generated by these instruments can be realized in the circuit simulation software: for example, the transient source can generate various signals of the function generator, and the nonlinear controlled source can generate amplitude modulation waves, etc. By setting the signal parameters of the simulation source, the electrical meaning of various waveforms can be deeply understood.In the graphics interface of the simulation software, according to the expectation of the measurement results, the display parameters of the waveform are selected, which is equivalent to adjusting each knob of the electronic instrument. The waveform graph produced by circuit simulation has a larger format and more precise coordinates than the oscilloscope screen. The graph measurement tool of the software can perform various measurements on the signal curve, such as the amplitude, frequency, period, phase of the periodic signal and the rise time of the pulse signal, the overshoot amplitude of the signal, etc. The measurement tool is fully graphical, highly interactive, and can automatically calculate various parameters.Waveform calculators perform mathematical calculations on waveforms. The waveform calculator uses various mathematical symbols and functions to calculate signal data such as average value, differential integral and so on. In most software, using the waveform calculator, complex function expressions can be constructed interactively to generate new waveforms. The measurement results of some simulation software can be marked directly in the chart.Using virtual instruments in some software (such as Multisim) is very helpful to master the performance and operation of real instruments.2. Basic performance of circuit simulation softwareWith the development of microcomputer technology, the level of EDA software based on Windows has been continuously improved. Now there are many different software companies producing circuit simulation products for PC. These products have different technical grades and application positioning. Some software with printed circuit board design as the main application also has embedded simulation components, such as ORCAD's PSPICE, Protel's Simulate, etc. There are many brands dedicated to circuit simulation products, such as Multisim, TINA, ICAP/4, Circuitmaker, and Micro-CAP. Usually these softwares are based on the circuit simulation language PSPICE.The interfaces and functions of various circuit simulation software have their own characteristics, and the display and processing methods of data are also different. The practical value of circuit simulation software can be evaluated from the following four aspects.1. Quantity and performance of simulation projectsThe number of simulation items is the main index of circuit simulation software. The basic analysis functions of various circuit simulation software include static operating point analysis, transient analysis, DC sweep and AC small signal analysis. Other possible analysis functions include: Fourier analysis, parameter analysis, temperature analysis, Monte Carlo analysis, noise analysis, transfer function analysis, DC and AC sensitivity analysis, distortion analysis, pole and zero analysis, etc. Software with fewer simulation functions such as SIMextrix has only 6 items, while TINA has as many as 20 items. There are about 10 simulation functions of Protel, Orcad, P-CAD and other software. Professional circuit simulation software has more simulation functions, and considers the various needs of electronic design and teaching more thoughtfully. For example, the symbolic analysis of TINA, the component parameter variable and optimization analysis of Pspice and ICAP/4, the network analysis and digital circuit simulation of Multisim, and the error setting of CircuitMaker are all quite distinctive functions.The PSPICE language is good at analyzing analog circuits, and the processing of digital circuits is not ideal. Various software solutions are not the same: For example, Protel uses Digital SimCode to describe digital components, and uses XSPICE of Georgia University to process digital simulation. Multisim uses collaborative models of analog and digital devices described in VHDL, Verilog, or C code. For the analysis and simulation of pure digital circuits, it is best to use simulation software based on hardware description languages such as VHDL, such as Altera's programmable logic device development software MAX+plus II.2. Quantity and accuracy of simulation componentsThe quantity and precision of the simulation components in the software component library determine the applicability and accuracy of the simulation. The component library of circuit simulation software has thousands to 10,000 or 20,000 simulation components, but the component models contained in the software always lag behind the development and application of devices. Therefore, in addition to the component library of the software itself, the website of the component manufacturer is an important source of component models. Designers can customize component models according to the external parameters of the latest devices and build their own component libraries. For teaching workers, the component model library of the software can fully meet the needs of conventional teaching.There are two ways to classify components in circuit simulation software: by component types such as power supplies, diodes, and 74 series, into several categories; or by component manufacturers. Most simulation software has previews of circuit graphic symbols for easy access. Each circuit simulation software has simplified the PSPICE model of the components. For example, the resistance model of PSPICE has three temperature coefficients such as first-order, second-order and exponential. Most software only defines the first two temperature parameters, only TINA defines the three temperature parameters of the resistance, and the resistance of Protel does not define the temperature coefficient; for example, the bipolar transistor has 40 PSPICE model parameters, and Multisim specifies all the parameters , TINA also has 32, and Protel has only 22. Therefore, designs that require high simulation accuracy should use high-precision component models, or modify model parameters based on actual components. The method of viewing and modifying component models varies from software to software. Some component model parameters can be modified in the component attribute box, while others need to open a special model parameter file or interface to modify.3. Data display and processing capabilitiesAfter running the simulation, a large amount of circuit data will be obtained. There are two ways to display simulation data: list and graph. For example, after calculating the DC static operating point, Protel displays the node voltage, branch current, component consumption function and equivalent resistance of the power supply in a list; Pspice and MicroCAP can mark the voltage, current and power in the circuit diagram. Transient analysis, DC sweep, and AC small-signal analysis generally display the results as graphs. The graph can be printed or saved as a file in a specific format; some software can save the waveform as a common PWL (expressed in time-electrical quantity pair) format file, or export it to Excel. You can also copy the graph line, paste it into the "Drawing" of Windows, and save it as a picture file after processing; or directly paste the graph line into the document of Word, PowerPoint, Authorware and other software.Each circuit simulation software has different processing capabilities for waveform graph lines. But generally there are the following data processing functions:(1) Waveform measurement: displayed as different types of coordinate scales (linear, logarithmic, amplitude, decibel, etc.); measure the effective value, root mean square value, peak-to-peak value, average value, maximum value, minimum value, cycle, etc. of the graph .(2) Graph line calculation: Add, subtract, multiply, divide, differentiate, integrate and other operations on the graph line. Or use the graph variable as the independent variable of the mathematical function to obtain a new mathematical variable.(3) Modification of graph lines: Make graph lines more beautiful and easier to understand. You can change the thickness, color, style and mark of the graph line; add measurement data point marks and data labels; change the background color of the graph line, the style and color of the coordinates, etc. Some software allows the input of descriptive text in the graph line screen, even Chinese text.4. Virtual instrument and educational functionVisualized virtual instruments are a feature of circuit simulation software. The most typical example is Multisim, the virtual instrument of this software has reached the highest level of similar software no matter the appearance of the interface or the internal function. Other software with virtual instruments include TINA and EDISON.Virtual instruments can help learners understand the functions of electronic instruments, and deeply understand the methods and technical essentials of electronic measurement. Master various operation methods of electronic instruments, especially the functions of various control buttons and knobs. The functions of Multisim and TINA virtual instruments have actually surpassed PSPICE itself, and the typical ones are network analyzers and logic analyzers. Network analyzer is a special instrument for analyzing RF components and RF network parameters; while Multisim's logic analyzer has real digital circuit analysis capabilities and meets the technical requirements of actual digital system analysis. Some software also has virtual electromechanical components, such as light bulbs, buttons, relays, contactors and other electrical components, which can be used to construct electromechanical control circuits. Mathematical and analog control devices in the software component library can be used to analyze automatic control principles.In order to meet the needs of educational units for the teaching of circuit principles, some software has an educational function. It mainly allows users to set some hidden errors on components, so as to improve the ability of training students to analyze and solve problems. For example, Mulisim and TINA can set three parameters of open circuit, short circuit and leakage resistance for components; while CircuitMaker, another circuit simulation product of Altium Company, can do more teaching settings for components and circuits, and can add passwords to prevent users from Modify component properties.3. How to choose circuit simulation software?In the production design of electronic engineering or the professional teaching of electronics, there may be different requirements for circuit simulation software, which should be considered from two aspects: software function characteristics and actual work needs.1. Consider the needs of production and teaching for circuit simulation software.First of all, the actual production capacity of the software must be considered. What kind of work can be done with this software? Can the model library of the software meet the design needs; what circuit simulation functions does the software have; what output formats the circuit diagram has, whether it is compatible with the company's existing PCB design software; the price of the software and what after-sales services are provided, etc. If the unit's products are more complicated, it is necessary to consider a comprehensive solution from circuit design, analysis, optimization, system simulation, and even electromechanical system design.2. Evaluate the performance of circuit simulation softwareThe software products of various companies have different sales orientations, and the functions, scalability and prices of circuit simulation software vary greatly.There are different versions of the same software to suit different business needs with different functions and prices. Ordinary teaching units only need to learn the relevant principles of circuit simulation, and do not have to insist on high performance of the software. Using the student version or educational version of the software can fully meet the needs of daily teaching. As an electronic manufacturer, it is necessary to use the enterprise version or enhanced version of the software, and also consider a series of issues such as product design, production and management, and also have certain requirements for software maintenance and technical support. Therefore, products from large companies should be used as much as possible. Such as ICAP/4, Orcad, etc.; if you have higher comprehensive requirements for circuit design and simulation, you can consider Saber from American Synopsys. Saber is applicable to a wide range of fields, including electronics, power electronics, electrical engineering, mechanical engineering, electro-optics, optics, control systems, and data sampling systems, etc.3. Select the applicable software according to the teaching needsIn teaching, circuit simulation software is required to clearly display circuit diagrams, signal diagrams and various circuit data. Among all circuit simulation software, Multisim has the most complete simulation components, simulation analysis types and virtual instruments, and is an ideal simulation tool for circuit teaching in schools at all levels. The disadvantage of Multisim is that the circuit diagram screen can only be enlarged to 200%, and the circuit lines are relatively thin, which is not very clear when projected on a large screen. The circuit simulation software that is more suitable for vocational technical schools is TINA 6.0 Simplified Chinese version. Not only the menus and dialog boxes of this software are in Simplified Chinese, but all the help is also written in Chinese, which is easier for students to understand and accept. The display quality of Altium's circuit diagram and simulation diagram interface is relatively good, which is suitable for teachers to use in teaching slide presentations and making illustrations in various documents. Altium is also well suited for teaching printed circuit board design. The advantage of ICAP/4 is that the simulated circuit waveform can be inserted into the circuit diagram, that is, the waveform at any point in the circuit can be displayed. Orcad's Pspice displays the simulated node voltage, branch current, and component power consumption data in the circuit, which is very intuitive; MicroCAP has the most powerful parameter scanning function, and can set up to 20 parameters for scanning analysis. If you are a beginner in electronics, you can use the circuit simulation software Edison with a 3D interface. The software interface is vivid and intuitive, which is quite close to the real image, which is helpful for understanding and understanding the circuit.4. Dedicated circuit simulation softwareIn addition to the usual circuit simulation software, there are also some software specially designed for a certain type of design application, such as: Intusoft's power supply simulation design software PowerSupply Designer and magnetic components (design analysis transformers and inductors) design software MagneticsDesigner; Finland APLAC company The software APLAC for RF circuit design and simulation; and the series products of American Ansoft Company, etc. Many semiconductor device manufacturers have also developed special circuit design and simulation software in order to promote their products. Such as Altera's programmable logic device design software Max+PlusI I; TI's switching power supply special design software SWIFT Designer; Linear's circuit simulation and switching power supply design software SwicherCAD, etc.SummarizeFinally, it should be noted that the development direction of circuit simulation software is no longer limited to the scope of electronics. While enhancing the simulation ability of digital-analog mixed signals, circuit simulation technology is expanding to the fields of power electronics, electro-optics, and even electrical engineering, electromechanical engineering, etc., bringing more convenience to engineering practice and teaching. Circuit simulation technology has a powerful circuit analysis function, basically including all items of electronic test analysis. The number of electronic simulation components, circuit analysis functions and data processing capabilities provided by circuit simulation software from different manufacturers are quite different. The appropriate circuit simulation software should be selected according to the needs of engineering design and professional teaching.The above are the characteristics and selection suggestions of the circuit simulation software introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad, including MCU, voice IC, Bluetooth IC and modules, wifi modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS solutions, the development of Bluetooth audio, the development of children's toys, and the development of electronic education products.
03-31
2021
Design of Alcohol Detection System Based on Single Chip MicrocomputerThere are a large number of railway employees. Before each new employee enters the job, relevant departments will provide relevant entry training for them. During the training, it is clearly pointed out that the staff are not allowed to drink alcohol before work to prevent various accidents. Article 390 of the "Railway Technical Regulations" stipulates that relevant railway operators must take full rest before taking over shifts. Drinking alcohol is strictly prohibited. If there is any violation, the tasks they undertake will be stopped immediately. In the "Road Traffic Safety", the punishment for drinking has been stipulated accordingly. In order to protect the life safety of employees and prevent the occurrence of drunken work, an alcohol detector based on STC89C52 single-chip microcomputer is designed, which can detect the alcohol concentration of employees before they work.The alcohol concentration detector is based on the minimum system of single-chip microcomputer and alcohol sensor. It has sound and light alarm function and LCD display function, and uses assembly language to realize its software function. A variety of different workplaces. At the same time, the alcohol concentration detector also has the advantages of simple structure, reliable performance, convenient portability, and low power consumption, which can attract more market attention.1. The overall structure design of the alcohol detection systemThe alcohol detection system is mainly composed of the minimum system of single chip microcomputer, liquid crystal display module, power module, buzzer alarm module, indicator light module, key module, alcohol gas sensor module and analog-to-digital conversion module. The alcohol sensor is connected to the channel 1 port of the analog-to-digital conversion chip by means of resistive voltage division. When the alcohol sensor detects the alcohol concentration in the air, the alcohol concentration can be displayed on the liquid crystal display through the operation and processing of the single-chip microcomputer. The alarm threshold of the alcohol concentration can be set by pressing the button. When the alcohol concentration in the air is detected to exceed the standard, the buzzer will sound an alarm and the indicator light will start to flash.2.The design of the main hardware circuit of the alcohol detection system2.1 Design of the minimum system of single chip microcomputerThe minimum single-chip microcomputer system plays an overall role in the entire alcohol detection system. It needs to detect various parameters such as the keyboard and temperature sensor, and at the same time drive the LCD to display related parameters. This article selects STC89C52 single-chip microcomputer as the main control chip of the system to design the minimum system of single-chip microcomputer. It is mainly composed of STC89C52 microcontroller, reset circuit and clock circuit.2.2 Design of A/D Analog-to-Digital ConverterMost of the sensors transmit continuously changing analog quantities. After the analog quantities are converted into electrical signals by the sensor, they need A/D conversion to convert them into digital signals before they can be input into the digital system for processing and control. What this article chooses is the ADC0832 analog-to-digital converter, which has the advantages of small size, strong compatibility, and high cost performance.2.3 Design of the sensorThere are two general types of gas sensors: semiconductor gas sensors and electrochemical gas sensors. Semiconductor sensors have the advantages of simple structure, high sensitivity, and good dynamic performance. Moreover, semiconductors are sensitive materials, and it is easy to realize sensor intelligence and integration. Therefore, the MQ-3 semiconductor alcohol gas sensor is selected in this design.2.4 Design of liquid crystal display moduleThere are usually two types of liquid crystal displays commonly used in single-chip microcomputers, one is LCD12864 liquid crystal display, and the other is LCD1602 liquid crystal display. LCD1602 is a character liquid crystal display, and its main control chip is HD44780 or other compatible chips. LCD12864 liquid crystal display is a graphic dot matrix display, in addition to ordinary characters, it can also display images and Chinese characters. This article is mainly used to display the concentration of alcohol, and the LCD1602 display can fully meet the requirements of use.2.5 Design of sound and light alarm circuitThe alarm circuit of the alcohol detection system is driven by a PNP S8550 triode. When the output of the single-chip microcomputer is low level, the triode is turned on, the buzzer sends out an alarm, and the indicator light flashes; when the output of the single-chip microcomputer is high level, the triode is cut off, the buzzer stops alarming, and the indicator light goes out.3. Alcohol detection system program flow design and simulation analysis3.1 Program flow designThe program flow for designing the alcohol detection system is as follows: program initialization is performed first, and after the program initialization is completed, the sensor is preheated. The sensor must be preheated first, because the MQ-3 semiconductor resistive alcohol sensor has not been powered on for a period of time, and when the power is turned on again, the sensor cannot immediately collect alcohol concentration information normally, and it takes a period of time to warm up. Then the system will enter the monitoring state to detect the alcohol concentration in the air. After the alcohol concentration information is converted and processed by ADC0832, it is analyzed and processed by the single-chip microcomputer, and the current alcohol concentration is displayed on the LCD1602 liquid crystal screen, and the alarm is activated when the alcohol concentration exceeds the set value.3.2 Simulation AnalysisNext, start to simulate and analyze the alcohol detection system. When the concentration range is 10-1000ppm, the MQ-3 alcohol sensor can convert the detected alcohol concentration value into a voltage signal, which is processed by the STC89C52 microcontroller and the concentration is displayed on the LCD1602. In the process of simulating the alcohol monitoring system, the comparison between the input value and the set threshold can be changed through the sliding rheostat circuit. If the detected value is greater than the set value, the alarm circuit will send out an alarm.The simulation results are shown in Figure 1. In this simulation, the threshold is set to 10%, and the detected alcohol concentration is 14%, the system sounds an alarm, and the D2 light starts to flash.Through the simulation analysis of the alcohol detection system, it can be seen that the alcohol detection system designed in this paper can realize its alarm function in theory, and basically meets the design requirements.4. Experimental verification of alcohol detection systemNext, the designed alcohol detection system is experimentally verified to observe that it can meet the requirements of normal use.Purchase the required components and weld the alcohol detector shown in Figure 2. Set the alcohol concentration alarm threshold to 10%, then open a bottle of wine, put the bottle close to the alcohol detector, the alcohol detector detects that the alcohol concentration in the air is 14%, greater than 10%, the buzzer starts to alarm, and the indicator light starts blinking.It can be seen from experiments that when the alcohol concentration in the air exceeds the set threshold, the alcohol detector will give an audible and visual alarm; when the alcohol in the air slowly volatilizes below 10%, the alarm ends. It shows that the alcohol detection system designed in this paper can meet the requirements of use.Summarize(1) By analyzing the working principle of the alcohol detection system, its overall structure and internal circuit are designed in detail, and an alcohol detector that can meet the requirements of use is designed. (2) Programming and simulating the alcohol detection system, it is found that when the detected alcohol concentration exceeds the set threshold, an alarm will occur, which verifies the theoretical correctness of the alcohol detection system designed in this paper. (3) Carry out experimental tests on the designed alcohol detector. When the alcohol concentration in the air exceeds the standard, the alcohol detector will send out a sound and light alarm, which shows that the alcohol detector designed in this paper has practical value and can be used for railway workers to go to work Alcohol concentration test before.The above is the design method of the single-chip alcohol detection system introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-30
2021
1. Single-chip application system design process1.1 Requirements for design of single-chip microcomputer application systemWhen designing a single-chip application system, first select components with high reliability to avoid damage to the reliable operation of the system, and at the same time eliminate unstable factors in the circuit. Secondly, in the design process, the structure of the system should be modularized and standardized, and the control switches should not be too complicated or too many, so that it is easy to find and eliminate faults. Finally, it is necessary to optimize the system design, simplify the peripheral hardware circuit, and make the operation sequence of the system simple and clear. When necessary, consider whether the software should be equipped with an encryption function, so that the user program solidified in the microcontroller will not be illegally copied.1.2 SCM application system compositionHardware and software constitute the two basic components of the microcontroller application system. CPU, storage area, several I/O interfaces and peripheral equipment etc. constitute the hardware part. Among them, the single-chip microcomputer is the core component of the whole system, which can run programs and process data. The memory is used to store the program and data of the one-chip computer, and the I/O interface is the information exchange channel between the one-chip computer and the external controlled object. The specific circuit diagram is shown below. Real-time software and development software constitute the software of the single-chip microcomputer system. The software written for different single-chip control system functions is real-time software, and the software used in the development and debugging of the control system is called development software, such as assembly software, compilation software, simulation and debugging software, programming download software, etc.1.3 SCM application system designThe development of single-chip microcomputer application system can generally be divided into five stages. The task of the first stage is to determine the overall design plan. It is necessary to complete the user demand analysis and plan research. The purpose is to clarify the design target of the application system through the understanding of the market and users. technical indicators. Conduct feasibility analysis based on demand analysis and program research. The purpose of feasibility analysis is to make a clear judgment on the necessity and feasibility of system development and decide whether to continue the development work. Then design and supervise a logic model for the whole system, including necessary theoretical analysis and calculation, selection of models, division of system software and hardware functions, rational matching of software and hardware proportions, and determination of the division of system software function modules and each function module The program implementation method, and draw a flow chart. The main task of the second stage is the detailed design and production of the system, mainly including hardware design and software design. The task of hardware design is to design the hardware circuit schematic diagram of the system and preliminarily design the printed circuit board according to the overall design requirements. The hardware structure should be considered in conjunction with the software, replace the hardware with software as much as possible, simplify the hardware structure, and properly consider the bus drive capability of the CPU, pay attention to reliability and anti-interference design.The task of software design is to determine the program structure on the basis of overall design and hardware design, allocate internal structure memory resources, divide functional modules, design the main program and each module program, and finally complete the control program of the entire system. The third stage is simulation debugging, which is divided into three processes: hardware debugging, software debugging and system joint debugging. Hardware debugging is to use the basic test instruments (multimeter, oscilloscope, etc.) of the development system to check the faults existing in the user system hardware by executing relevant commands or test programs of the development system. During software debugging, the process of assembling, linking, and executing the user program is to find out the grammatical errors and logical errors in the program and eliminate and correct them. System joint debugging refers to allowing the software of the user system to actually run on its hardware, and to perform software and hardware joint debugging. The task of the fourth stage is to solidify the program and run independently. The task of the fifth stage is the document preparation stage, and the document should include task description; design guiding ideology and design scheme demonstration; performance measurement and on-site trial report and description; trial guide; software information (flow chart, subroutine instruction, address assignment , program list); hardware information (circuit schematic diagram, component layout and wiring diagram, connector pin diagram, printed circuit board diagram, precautions, etc.).2. Selection of MCU2.1 Performance indicators of single-chip microcomputerThe current single-chip microcomputer has several types such as 4-bit machine, 8-bit machine, 16-bit machine and 32-bit machine. The number of bits of a microcontroller is determined by the number of bits of its core CPU. The more bits, the stronger the ability of the microcontroller to process data. The operating speed of the microcontroller depends on the frequency of the external crystal oscillator or external clock signal. For example, the external clock frequency of 89C51 can reach 24MHz. The higher the running speed of the single-chip microcomputer, the higher the speed block will be executed, but the power consumption will increase accordingly. The program memory structure types of single-chip microcomputer mainly include ROM and RAM. General single-chip microcomputers all have data storage RAM, but their capacity is not large. When a large amount of data needs to be stored, an external user RAM should be considered. The single-chip microcomputer has a strong interrupt processing capability, and the 51 single-chip microcomputer generally has five interrupt sources, which are external interrupt 0, external interrupt 1, timer counter 0, timer counter 1 and serial port interrupt. In some automatic monitoring instruments and battery-powered products, low power consumption is the main technical index. Usually, the single-chip microcomputer using HC-MOS technology works at low voltage. The size of the board, the processing method, the purchase method and the cost are considered comprehensively.2.2 Selection principles of MCUThere are generally three principles for the selection of single-chip microcomputers. One is the system adaptability of the single-chip microcomputer, which refers to whether the single-chip microcomputer can be used to complete the control tasks of the application system. The main factors to be considered are: whether there is suitable computing and processing capability? whether there are required peripheral port components? whether there are required interrupt sources and timers? whether there are required I/O ports? Developability, the use of development tools is a necessary means for the development of single-chip microcomputer application systems, and is an important basis for selecting single-chip microcomputers. The main considerations are: development environment, debugging tools, online BBS service and application support. The third is the history of the manufacturer and the availability of the product. It is necessary to consider whether the price/performance ratio of the product is reliable? Is it discontinued?3. Anti-interference technology of single chip microcomputer3.1 Sources of InterferenceThe noise outside the signal or the change part that causes adverse effects is collectively called interference. In the process of developing single-chip microcomputer application products, we often encounter a very difficult problem, that is, the system runs normally in the laboratory environment, but after small batch production and installation on the work site, some irregularities and irregularities appear. Very normal phenomenon. The main reason is that the anti-interference design of the system is not comprehensive, which leads to the unreliable operation of the application system. There are three main reasons for the interference of the single-chip microcomputer control system, namely, the interference of the power supply system, the interference of the process channel, and the interference of space electromagnetic waves. The on and off of the power switch, the start and stop of the motor and large electrical equipment will cause fluctuations in the power grid. Affected by these factors, there are often hundreds of volts or even thousands of volts of spike interference on the grid. In the application system of the one-chip computer, the channel of switch quantity input, output and analog quantity input and output is indispensable. These channels will inevitably make all kinds of interference directly into the microcontroller system. Space interference mainly comes from electromagnetic waves radiated by the sun and other celestial bodies, electromagnetic waves emitted by radio stations or communication transmitters, and electromagnetic interference emitted by various surrounding electrical equipment. Therefore, in response to the above problems, we must take effective measures to improve the anti-interference ability of the single-chip application system3.2 Hardware anti-jamming technologyCommonly used hardware anti-jamming technologies mainly include isolation technology, grounding technology, decoupling technology, filtering technology and shielding technology. In the single-chip microcomputer system, in order to improve the quality of the power supply system and prevent human interference, it is recommended to separate the single-chip microcomputer input power supply from the power supply of strong electric equipment, use an isolated power transformer with electrostatic shielding and anti-electromagnetic interference, and use independent function blocks for separate power supply , and achieve two-stage voltage regulation with an integrated voltage regulator block. Increase the power supply voltage of the interface device as much as possible to improve the anti-interference ability of the interface. The process channel is the path for information transmission between system input, output and single-chip microcomputer. Because the connection line between the input and output objects and the microcontroller is long, it is easy to scurry into the interference and must be suppressed. Generally, twisted pair transmission is used to reduce electromagnetic induction and suppress noise interference, and filter circuits, monostable circuits, trigger circuits and Schmidt circuits are used to suppress the vibration of mechanical electric shocks, thereby suppressing noise interference. In the single-chip microcomputer system, the quality of the printed circuit board design has a great influence on the anti-interference ability. Printed circuit boards are important components used to support circuit components and provide electrical connections between circuit components and devices. In order to reduce interference, a printed circuit board with a moderate size and a reasonable layout is often used, and the decoupling capacitor is reasonably configured, and the power line and bottom line are correctly designed.3.3 Software anti-jamming technologyThe anti-jamming performance of the single-chip microcomputer application system cannot be completely solved by hardware, and the software anti-jamming design is also an important way to prevent and eliminate application system failures. Once the single-chip microcomputer causes the program counter PC to deviate from the original value due to interference, the program will deviate from the normal running track, and the operand value will change or the operand will be regarded as the "running away" phenomenon of the operation code. At this point, software traps and "watchdog" techniques can be used to restore the program to a normal state. The so-called software trap refers to a series of instructions that can restore a chaotic program to normal operation or restore a "runaway" program to its initial state. Such as NOP instruction, LIMP instruction, etc. The program running monitoring system is also called "watchdog". "Watchdog" is a swordsman tracking timer, the application of "watchdog" technology can make the single chip microcomputer return to normal state from the infinite loop. "Watchdog" can be realized by hardware circuit, or by internal timer/counter by software technology. At present, most single-chip microcomputers are integrated with a program running monitoring system.The above is the development process of the single-chip microcomputer application system introduced by Shenzhen Zuichuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation.We are the agent of Songix single-chip microcomputer and Yingguang single-chip microcomputer agent, selling and developing the MCU and voice IC solutions of Songix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-29
2021
Design of intelligent humidifier system based on 51 single-chip microcomputerSmart home is a hot spot in today's society. Smart humidifiers can automatically adjust indoor humidity and remove static electricity. The climate in the north is dry, especially in winter, and humidifiers can improve the humidity, thereby creating a healthy living environment for people. After investigation, it is found that most humidifiers still need to be manually operated. Manually controlling the switch to realize the work and stop of the indoor humidifier not only cannot detect the humidity value of the indoor environment in real time, but also the price is relatively high, and the functions that can be realized are also relatively large. Single, the use of this humidifier has considerable safety hazards, such as excessive humidification or dry burning. Therefore, it is particularly important to develop and design a humidifier that can flexibly set the upper and lower limits of the humidity value of the humidifier according to the actual situation and needs of the user, integrate practicability and safety, low price, and good quality.1. Overall Design of Intelligent Humidifier SystemThe system is mainly composed of the following modules: humidity signal acquisition circuit, button control and reset circuit, digital tube display circuit, atomization module humidification circuit, etc. The specific structure is shown in Figure 1. The air humidity signal measured by the temperature and humidity sensor is an analog signal, which needs to be converted by AD before being sent to the microcontroller for processing. After the single-chip microcomputer analyzes and processes the received signal, it outputs a control signal to the P3 pin to control the closed state of the relay, and the atomization module starts to work, thus realizing the system function of on-demand humidification.As shown in Figure 1, when the air humidity value is lower than the system preset humidity value (40%RH), the sensor will detect the humidity signal and send it to the microcontroller. At this time, the digital tube display circuit will display the current indoor humidity value. The indicator light of the indicating circuit will emit light, and at the same time, the atomization control circuit will start and be in a working state to humidify the room. When the indoor air humidity reaches the upper limit humidity value set by the system (60%RH), the atomization control circuit will stop working, and the indicator light of the LED indicator circuit will go out.2. Hardware circuit design of intelligent humidifier systemThe design of this system is simple, and the processor can use 51 single-chip microcomputer to complete the function, so the STC89C52 single-chip microcomputer is selected to meet the design requirements of software and hardware.2.1 Crystal oscillator circuit design of single chip microcomputerInside the STC89C52 single-chip microcomputer chip, there is an oscillator with XTAL2 and XTAL1 as output and input terminals. At the same time, timing devices are connected to the XTAL1 and XTAL2 pins. The internal oscillation circuit can realize self-oscillation. The timing device is generally a parallel resonant circuit composed of a quartz crystal and a capacitor. The crystal oscillator used in the system is 12MHz, and the capacitance value of capacitors C2 and C3 is 20 pF.2.2 Reset circuit design of single chip microcomputerThe button reset circuit used in this design, the system can not only power on and reset, but also need to press the S1 button when it is running, and the power supply Vcc will generate a reset high level at the RST terminal. Similarly, as long as it is ensured that the RST terminal maintains a high voltage for longer than two machine cycles, the system can automatically reset normally.2.3 Design of analog-to-digital conversion circuitThe intelligent humidifier system needs to transmit the humidity signal of the temperature and humidity sensor to the CPU, and must first convert the analog signal into a digital signal through the A/D converter. This system selects 8-bit resolution A/D conversion chip ADC0832, which is widely used because of its small size, strong compatibility and high cost performance. The multiplexing of its internal power supply input and reference voltage makes the analog voltage input of the chip between 0 and 5 V.The 4 data lines of ADC0832 and the one-chip computer interface are CS, CLK, DO, DI respectively. When designing the circuit, connect DO and DI in parallel on one data line, because DO and DI are not valid at the same time during communication, and the interface between ADC0832 and microcontroller is bidirectional.2.4 Nixie tube display circuitThe display circuit of this design uses a digital tube instead of an LED, because the digital tube display will be clearer under strong light conditions such as daytime. Although the liquid crystal display is extremely power-saving, it is not clear when the external light is very bright and the temperature range is limited. In addition, the price of LED digital tubes is relatively low compared with that of liquid crystal displays, so this design uses LED digital tubes.The design selects the nixie tube display module, which has a built-in byte library and does not have a storage function. It adopts a parallel connection mode and is relatively convenient to use. It is used to display soil moisture information and the system's preset humidity threshold. A total of four independent buttons are selected, including a reset button, a setting button, a "plus" button, and a "minus" button. After power on, the digital tube displays the current humidity value of the air, press the setting button, the digital tube displays the upper limit of the system preset humidity, and then press the "plus" or "minus" button to change the preset humidity upper limit of the humidifier; press the first Press the setting button twice, the digital tube will display the lower limit of the system preset humidity, and then press the "plus" or "minus" button to change the preset humidity lower limit of the humidifier; press the third setting button, the digital tube will display the current indoor humidity value , so far the setting is complete.2.5 Atomization module control circuitIn the humidification control circuit of the atomization module, the collector of the triode is connected to one end of the relay, the emitter is connected to the +5 V power supply V CC, the pin P3.5 of the microcontroller is connected to the base of the triode Q5 through R6; the resistor R7 is the same as The light-emitting diode constitutes a humidifier working state indicating circuit. If the relay is energized and closed, the LED will light up, so that the operating state of the relay can be detected, indicating whether the atomization module is in working state, and whether the humidifier needs to humidify the room .3. Intelligent humidifier system software designThis design uses C language to write programs, and the entire system program adopts modular design, mainly including data acquisition module, key control module, reset module, digital tube display module, and atomization control module.Through the analysis of the circuit principle and function, the overall design of the intelligent humidifier system has been fully understood. After the program is written in C language, the single-chip microcomputer is compiled and debugged with Keil software. Until the program meets the design requirements and there are no running and compiling errors, burn it into the 51 single-chip microcomputer for software and hardware debugging, so as to realize the system function.SummarizeThis system uses 51 single-chip microcomputer to complete the design of a simple intelligent humidifier control system. It has low cost and high cost performance. Compared with many similar products on the market, it has certain advantages, but this paper still has some shortcomings, such as the system Design integration needs to be improved.The above is the design technology of intelligent humidifier system based on 51 single-chip microcomputer introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-28
2021
Application and Research of Single Chip Microcomputer in Automatic Control SystemThe single-chip microcomputer belongs to an integrated circuit chip. The single-chip microcomputer is a microcomputer system. The single-chip microcomputer can connect integrated circuit technology and random access memory, read-only memory and central processing unit in series, and then use the method to engrave it on the silicon chip. to complete information processing tasks. The single-chip microcomputer has experienced a rapid development process from the initial development to the subsequent application. The single-chip microcomputer used to be 4-bit and 8-bit, but now it can reach 300M high speed. Single-chip microcomputer has a wide range of applications. As a part of embedded software, its role cannot be ignored and its impact is far-reaching. The development effect of the control system can be improved and the research and development cost can be reduced by using the single-chip microcomputer.1. Application status of automation control systemThe application fields of the automation control system are very extensive, and the automation control system involves many fields, such as elevators, smart grids, and fire alarms.1.1 Elevator automatic control systemThe pace of urbanization in my country is getting faster and faster. Many large factories, high-rise buildings, and some large and medium-sized supermarkets, shopping malls and other buildings are rising. Elevators are the most convenient means of transporting passengers up and down the stairs. There are many kinds of elevator components, including: elevator switch door, elevator passenger compartment, as well as cables, display screens and buttons, etc. There are so many devices, and only when they are all integrated together can they provide feasible conditions for the overall stable operation of the elevator. The elevator automatic control system can truly exert its most essential and powerful functions. The composition of the elevator automatic control system must be mixed with other contents such as single-chip microcomputer, integrated circuit, etc., so that the elevator can run normally without accidents, and the elevator can safely go up and down, open and close the door of the elevator passenger compartment, voice broadcast, etc. Only in this way can the automatic operation state of the elevator be realized.1.2 Fire alarm control systemSingle-chip microcomputer is used in fire alarm control system, and it implies a wide range of content. The control system can also set the fire extinguishing equipment and communication equipment on the computer, and then form a very powerful fire alarm automatic control system. This system guarantees the safety of the working environment and living environment. The single-chip microcomputer is used in the fire alarm control system. Once a fire occurs and the working status of the control system changes immediately, it will automatically alarm and take fire-fighting measures after the alarm. Good personnel safety evacuation work and other content, a very complete fire alarm control system has rich and complete functions, a certain instrument in the fire alarm control system can monitor indoor and outdoor smoke, fog, high temperature There are also fires, etc., which will be converted into electrical signals to allow the fire alarm control system to play its actual role.1.3 Electric power automatic control systemThe single-chip microcomputer included in the electric power automatic control system is mainly to let the smart grid equipment run information with the help of some kind of instrument, and then let the single-chip microcomputer work, and it is responsible for transmitting these information to the monitoring system of the power grid. The power automatic control system is an indispensable content in industrial production, and has higher requirements on the speed of real-time response. The power automatic control system can also do some information calculation work on the basis of completing information collection. The power automatic control system can complete various types of operation control through setting programs, and can also improve adaptability. The power automatic control system includes rich content. Through various contents, a power equipment control system that meets the development requirements of people's life is finally formed, and the monitoring of the operation status of power equipment is done well, so as to ensure that the relevant control signals complete the information transmission and response work.2.Single-chip technology analysisThe single-chip microcomputer has many advantages in the design of the automatic control system, such as: anti-interference of other objects, very flexible, etc. The single-chip microcomputer inside the automatic control system contains various functional components. Simplify the single-chip microcomputer structure to a certain extent. After the automatic control system is inserted into the single-chip microcomputer components, the application will control the entire operating system through the single-chip microcomputer. The single-chip microcomputer must be accurately placed in the correct position in the automatic control system. Only when the position is correct can the single-chip microcomputer play its full role. The single-chip microcomputer has For the specific usage description, only in strict accordance with the requirements of the automatic control system and a good understanding of the description, can we truly execute various operating instructions according to the requirements. This kind of operation explanation is mainly to enable the microcontroller to prevent various errors that occur in the automatic control system. The invention and application of single-chip microcomputers can be said to have changed the development path of society in a big way, and can be said to have changed the design status of the automatic control system in a small way. The automatic control system presents a more convenient and simplified state, allowing the automatic control system to have a more streamlined operation. This also indirectly shows the important position of the single-chip microcomputer in the design of the automatic control system. By rationally designing the single-chip microcomputer in the automatic control system, the advantages of the single-chip microcomputer can be maximized.Single-chip microcomputers have obvious advantages in automatic control systems, such as: effectively saving computer programming development time, convenient and flexible use methods, high economic and social benefits, and can also improve the automation level of society. The single-chip microcomputer is a microcomputer, and the connection equipment of the single-chip microcomputer is more flexible and expandable. The development and control system of the single-chip microcomputer does not have the complicated operation of dismantling the wiring of the junction box, and the design process is relatively simple and can be shared. The user interface of the single-chip microcomputer has good interactivity, saves equipment resources, and can reduce capital costs. The single-chip microcomputer is small in size, and the internal structure is a modular design structure, which can realize automatic collection of the operating status of electrified equipment, control the system, and have high efficiency in real-time modification, upgrade and maintenance of equipment.3. Application of single-chip microcomputer in automatic control system and its design3.1 Application of single chip microcomputer in automatic control systemThe automotive field and the coal mine field are two typical fields where single-chip microcomputers are used in automatic control systems. In the automotive field, its production and design links have relatively strict measurement requirements, and part data of parts are emphasized in production. Pay attention to each part of the data in the design. On this basis, the installation speed can be guaranteed. In the field of coal mines, single-chip microcomputers are mainly used in leakage protection, substation operation control, and underground safety monitoring.3.2 The application of single chip microcomputer in the design of automatic control system(1) Structural design of the single-chip microcomputer: The structural design of the single-chip microcomputer will directly affect the practical application of the automation control system. From the perspective of the software structure of the single-chip microcomputer, what practical designs does it have in the automation control system? Inside the automation control system, the single-chip microcomputer has various work requirements. Through the work requirements, the operating parameters of the single-chip microcomputer are configured to allocate various tasks and make good time arrangements. Only in this way can the automatic control system maintain a balanced working state. The operating system used in the single-chip software structure will divide the single-chip microcomputer into two parts: the main program and the interrupt program: the main program is mainly used to collect the information of the single-chip computer in the automatic control system under normal operation Various data; the interrupt program is mainly responsible for early warning and diagnosis of faults. The man-machine exchange mode under the automation control system provides you with the operating parameters of the motor automation control system, such as: speed, working conditions, etc., and adjusts the actual operation of the automation control system through manual operation to ensure the stability and reliability of the automation control system .(2) Control design of single-chip microcomputer: The main content of the control design of single-chip microcomputer in the automation control system is the dialogue mode of human-machine interaction. This dialogue mode of human-machine interaction involves various equipment in the control system. Not only that, it It can also promote the intelligent development of the system. People discuss the control design of the single-chip microcomputer by studying the single-chip microcomputer in the motor automation control system. There are many control modules in the single-chip microcomputer. There are two parts of the control module, one is the LED, and the other is the keyboard part. The keyboard part of the single-chip microcomputer inputs certain data, and then scans in all directions, and these data will be input to the The interior of the automatic control system ensures the safe and stable operation of the motor, and can also prevent safety accidents. The single-chip microcomputer is connected to the general-purpose keyboard through the interface device to display various operating data in the motor automation control system, so as to ensure the controllability of the automation control system in the motor structure.(3) Program design of the single-chip microcomputer: The program design of the single-chip microcomputer is based on the operation requirements of the automatic control system. After the program design is done, the motor is controlled to work. The important role of program design in single-chip microcomputer is equivalent to the role of the heart in the human body. The single-chip microcomputer realizes the operation effect of preventing the motor from deviating from the automatic control system by recording the specific operating parameters and the operating speed of the motor. During the program design, the single-chip microcomputer can interrupt the opening part of the motor, realize the function conversion of the automatic control system, and ensure that the motor can enter the automatic operation mode by itself. This programming method can better reflect the intelligent development of technology.(4) Computer PC design: PC refers to the computer terminal, and the PC terminal part plays an obvious role in the design of the single-chip automatic control system. The PC end is integrated into the design of the single-chip microcomputer, which can provide man-machine dialogue operation for the overall design of the automation control system. This kind of system works according to human instructions, and finally comes to the overall control. The PC part of the single-chip microcomputer needs to use the circuit to carry out the work of transmitting instructions. These instructions can be stored in the software, so that there will be no conflicts in the control instructions in the automation control system, and then they can be stored and executed. When the instructions conflict , the PC end will be automatically interrupted and no longer run, achieving the purpose of protecting the automation control system. The single-chip microcomputer perfects the communication process of the automatic control system by creating a new communication mode.4.The development trend of single-chip microcomputer in automatic control system4.1 Reduction or even miniaturizationThe size of the single-chip microcomputer will become smaller and smaller, just like when the computer was first invented. It occupies the whole room, but now the computer is getting smaller and thinner, and the same is true for the single-chip microcomputer. It will be reduced or even miniaturized in the future. The single-chip microcomputer in the automatic control system can be miniaturized after many improvement attempts . The advantage of this development trend lies in reducing the weight of the single-chip microcomputer and reducing the volume of the single-chip microcomputer, but this development trend cannot be shortened and optimized. The anti-interference ability and green design should also be paid attention to at the same time, and at the same time, attention should be paid to reducing noise. For the development of miniaturization, the single-chip microcomputer must meet the system requirements of the automatic control system, and we must pay attention to improving the structure of the single-chip microcomputer according to the needs of the automatic control system, reflecting the practical benefits of the miniaturized single-chip microcomputer.4.2 IntelligenceWith the development and changes of the times, the automatic control system has new development requirements in the process of operation, that is, the development of intelligence. This directly promotes the intelligent development level of the single-chip microcomputer. Although the application of the automatic control system to the single-chip microcomputer in the development of the motor in our country has made progress, it is still in the preliminary stage. In order to ensure that the single-chip microcomputer is better used in the automatic control system, the requirements for the use of the single-chip microcomputer must have intelligent requirements. Only by actively improving the operation status of the single-chip microcomputer, and designing the intelligent operation of the single-chip microcomputer on the basis of the original automation, can the development of the single-chip microcomputer be more intelligent. Only in this way can the manpower be reduced slowly, the pressure of the staff can be relieved, and the unmanned automatic control motor operation can be realized.4.3 MarketizationThe market is the "invisible hand" that regulates the economy, and going to the market is an inevitable requirement and inevitable result of a long-term development and continuous rise. The single-chip microcomputer of the automatic control system must adapt to the needs of the market and be prepared for market challenges. In order to promote the development of all walks of life.The single-chip microcomputer selected in the automatic control system has 8 digits, etc. The single-chip microcomputer also puts forward market-oriented development requirements in the future development scenario. This broadens the market for single-chip microcomputers. The market-oriented development of single-chip microcomputer can make the automatic control system suitable for various motors. my country can fully learn from foreign advanced technology in the research of single-chip microcomputer, design around the automatic control system, and increase the number of single-chip microcomputers used in the automatic control system.epilogueWhile my country's economy continues to develop, various fields are also developing and expanding. These fields are inseparable from the application of single-chip microcomputers. By applying highly intelligent single-chip microcomputers to all walks of life to improve the automation control system and integrate intelligent equipment Together, to build a powerful and advanced control operating system, so that the operating system can do a variety of tasks, so that the accuracy and reliability of industrial production and life can be greatly improved, and human resources, financial resources, Material resources are filled in the most suitable way, environmental management content is done well, the economic benefits of the industry are improved, and the environmental situation is really improved fundamentally.The above is the application and technology of single-chip microcomputer in the automation control system introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Songix single-chip microcomputer and Yingguang single-chip microcomputer agent, selling and developing the MCU and voice IC solutions of Songix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-27
2021
Intelligent Temperature and Humidity Control System Based on SCM TechnologyIn the field of measurement object, temperature and humidity are very important. Whether it is human survival or living environment, industrial and agricultural production, military, meteorological observation, temperature measurement and control, and humidity measurement and control are all very important links. With the advancement of computer technology, communication technology, electronic technology, sensor and sensor material technology, both temperature and humidity detection have achieved leapfrog development. It is also very meaningful to measure and monitor temperature and humidity.Through the research on the characteristics of the intelligent temperature and humidity sensor, a reasonable hardware circuit is designed, and efficient processor software is written to display the temperature and humidity information, and then control the heating and ventilation device according to the temperature and humidity information. The temperature and humidity information is obtained by the sensitive element of the sensor, and its output is amplified, linearized, and interfered with by the signal conditioning circuit to obtain an analog signal compatible with the A/D converter, which is converted into a micro Processor accepts digital signals. The software and hardware processing circuit with the single-chip microcomputer as the core processes the collected signals and outputs them to the display module to reflect the temperature and humidity values in real time. The SHT11 produced by Swiss Sensiri-on company is a single-chip fully calibrated digital new relative temperature and humidity sensor with a two-wire serial interface. It integrates sensor technology with CMOS chip technology, and can be used to measure parameters such as zero point, relative temperature, and relative humidity. It has the characteristics of digital output, calibration-free, peripheral circuit-free, debugging-free, and full interchangeability. , High reliability, high integration temperature and humidity measurement and control system provides a solution.1. Hardware design of intelligent temperature and humidity control system1.1 Overall hardware designThis design takes the AT89C52 single-chip microcomputer system as the core. Firstly, the temperature and humidity data of the scene are collected through the SHT11 temperature and humidity sensor, and then converted into digital codes through the A/D converter of the SHT11 temperature and humidity sensor itself; Set the upper and lower limits at the same time for the temperature and humidity value; when the current temperature and humidity exceed the preset upper limit, the alarm will be activated and the light will be on, and the heating and ventilation device will be activated at the same time; gas unit works. Different limit values can be set according to different requirements so that its wide temperature and humidity measurement range can be widely used in temperature and humidity monitoring.1.2 Temperature and humidity collection(1) Introduction to SHT11: SHT11 launched by Swiss company Scnsirion is a digital temperature and humidity sensor chip integrating temperature sensor and humidity sensor. Therefore, the SHT11 sensor is used in the real-time temperature and humidity monitoring system, which has the characteristics of low cost, small size, high precision, and simple interface. Moreover, the anti-interference ability of the SHT11 chip is also higher than that of similar chips, because the chip integrates a 14-bit A/D converter and uses digital signal output.(2) Interface circuit between SHT11 and MCU: MCU (MCU) and SHT11 sensor communicate using serial two-wire interface DATA and SCK, where DATA is the data line and SCK is the clock line. However, the I2C protocol and the second-line serial communication protocol are Incompatible. At the beginning of the program, the MCU needs to use a set of "start transfer" timing to indicate the start of data transfer. As shown in Figure 2-3, when the SCK clock is high, DATA flips to low; then SCK becomes low, and then becomes high again; when the SCK clock is high, DATA again flipped high.As shown in Figure 2-4, it is the interface circuit between the SHT11 sensor and the microcontroller. SHT11 has only two pins, one digital serial pin is connected to the P1.0 port of the microcontroller, and the SCK pin is connected to the P1.1 port of the microcontroller. A 4K resistor R2 should be connected between the power supply and the digital serial pin. R2 is a pull-up resistor, because the P1 port drive capability of the microcontroller is limited, the purpose is to make the data received by the sensor reliable.2. Software design of intelligent temperature and humidity control system2.1 Overall software designSoftware design is carried out on the basis of hardware design, and good software design is an important part of realizing system functions. Whether the system can run normally, in addition to the reasonable design of the hardware, largely depends on the software design with perfect functions and advanced algorithms. This system uses AT89C52 as the core of the hardware design system. The system software mainly includes data acquisition module, data display module, and alarm module. The data acquisition module includes temperature and humidity acquisition, data processing A/D conversion, and the alarm module includes alarm indication. and alarm handling. The data acquisition module collects the received analog signal from the sensor to the single chip microcomputer. The data processing module performs real-time processing and conversion on the received sampling signal, and finally realizes data communication, drive display, etc. The software system block diagram is shown in the figure below: These programs are independent of each other and are called sequentially in the main program. The single-chip microcomputer processes the digital signal, and the digital signal can be obtained by collecting the received data; the data processing module is realized by the single-chip microcomputer, which performs real-time control, data communication, drive display, drive operation, etc. of the sampling signal; the display part mainly uses LCD display, The LCD is driven by a microcontroller.2.2 Flow chart of software design program(1) Main program flow chart: The main program is the main body of the design and is composed of subroutines with different functions. The operation of the main program of this system is as follows: serial port initialization. After the initialization operation is completed, the keyboard is scanned in a circular manner. If the setting range is exceeded, an alarm will be given, and the alarm indicator light will be on, the buzzer will alarm, and the heating and ventilation circuit will be started at the same time.(2) Alarm circuit program flow chart: The alarm module has two functions, namely alarm light and sound alarm. The sound alarm alerts the user audibly, while the alarm light alerts the user visually. When the read temperature value exceeds the upper and lower limits, the red light is on and an alarm is given; when the humidity value exceeds the upper and lower limits, the yellow light is on and an alarm is given.(3) SHT11 reads the temperature and humidity program flow chart: the communication between the MCU and SHT11 uses a two-wire serial digital interface, and the I/0 port of the MCU needs to be used to simulate the communication sequence, because this communication protocol is different from the general I2C bus protocol. Compatible. For the control of SHT11, the MCU is realized through five six-digit command codes. The meanings of the command codes are: 00101: measure humidity; 00011: measure temperature; 00110: write internal status register; 00111: read internal status register; 11110: Reset command to restore the default value of the internal status register; others to set the resolution.At the beginning of the program, first initialize the temperature and humidity sensor SHT11 to check whether it is working normally, then the MCU sends an instruction to connect with SHT11 to measure the temperature and humidity, then the temperature and humidity sensor SHT11 performs temperature and humidity calculation and A/D conversion, and then sends it to the host, and calls it repeatedly Reset, write and read data subroutines, and then through data conversion, displayed by the digital tube, continuous cycle.The program first initializes the LCD1602 to check whether it is busy, if not, the host sends a mode setting command or a display command to write into the LCD1602, then specifies the actual address of the character display, writes the data into the LCD1602, and displays the temperature and humidity.3. Simulation debugging of intelligent temperature and humidity control systemThe hardware simulation of this design is realized by Protues software, the software debugging is realized by KeilC51 software, and the simulation of the overall design is realized through the combination of software and hardware.SummarizeSince the core of the system is a high-efficiency single-chip microcomputer, the main acquisition and measurement system is SHT11, which integrates temperature sensors and humidity sensors, and has its own A/D converter, so the temperature and humidity controller has small size, low cost, and high precision High, simple interface and good anti-interference ability, coupled with the optimization program, this system has high practicability in a certain sense.The above is the design process of the intelligent temperature and humidity control system based on single-chip technology introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-26
2021
Design of intelligent watering system based on single chip computerNowadays, the concept of high-quality life has penetrated into all aspects of life, so whether it is at home or in work and study places, you will see some potted plants, which can not only improve air quality, but also improve the taste of life. However, due to the busy work in life, the flowers and plants will dry up and die if they are not watered in time, which will bring economic losses and spiritual unhappiness.Existing intelligent flower watering products have high cost, poor practicability and low sales volume. This work starts from the perspective of smart home, based on the AT89C51 chip, using some simple components such as triodes, relays, and humidity sensors, to design this smart watering system. It is simple and reasonable, low in cost, high in practicability, and low in power consumption. It can work for a long time and has a good application prospect.1. The composition and working principle of the intelligent watering systemThe intelligent watering system for detecting soil moisture mainly includes a main control module, a sensing module, a power supply module, an input module, a pumping action module and a display module.The main control module takes the AT89C51 chip as the core, and cooperates with the reset circuit and the clock circuit to form the minimum single-chip system; the sensing module is mainly composed of a soil moisture sensor, which can monitor the soil moisture in real time and has high accuracy; the power module is through The 5V power supply interface realizes the power supply to the system; the display module displays the soil humidity and the current mode through the LCD1602 liquid crystal screen, and the input module uses key input to realize the selection of automatic watering and manual watering modes and the setting of the upper and lower thresholds of humidity; the action module is controlled by pumping water Composed of motor and active buzzer. The system can detect soil humidity in real time, and has two modes to choose from—manual mode and automatic mode. In manual mode, artificial watering can be realized through buttons; When the water pumping motor does not operate, the buzzer will not alarm. When it is lower than the set lower limit, the buzzer will alarm. At the same time, the pumping motor will pump water for irrigation until the humidity reaches the set upper limit. The system will automatically stop the irrigation function, and at the same time The buzzer alarm is released.2. Hardware design of intelligent watering system(1) Single-chip microcomputer control module: AT89C51 is a low-voltage, high-performance CMOS 8-bit single-chip microcomputer produced by Atmel. At the same time, AT89C51 has a cheap price, and it has good compatibility with MCS-51 series. Therefore, AT89C51 is used as the control chip in this system. The main performance parameters of AT89S51 are completely compatible with MCS-51 series.(2) Soil moisture sensor module: This work uses the YL-69 humidity sensor module. YL-69 is a simple soil moisture sensor. Its principle is a humidity-sensitive capacitor. When the humidity of the environment changes, the medium in the environment where the humidity-sensitive capacitor exists will change, resulting in a change in the capacitance value in the humidity-sensitive capacitor. , the capacitance value is proportional to the humidity value. Since the humidity sensitive capacitor has the characteristics of high sensitivity, fast response, and small hysteresis, the humidity sensitive capacitor is easy to miniaturize and integrate. In the system, the collection of soil moisture data is completed by YL-69.(3) Key input module: S1 bit reset key, S2 bit set humidity value key, S3 humidity value adjustment plus key, S4 humidity value adjustment minus key.(4) Liquid crystal LCD1620 display module: The display of liquid crystal display LCD1602 is realized through the principle of the physical characteristics of liquid crystal, and the use of voltage can control the display area. When there is electricity, the liquid crystal can display images.3. Software Design of Intelligent Watering SystemThe software part is mainly based on the system design idea, clarifying the operation logic, and using keil for programming. The system software design includes soil moisture detection program, program for analog-to-digital conversion of collected data, program for setting upper and lower limits of humidity, display program, buzzer program, etc.The idea of the whole program of the soil moisture detection device is: the soil moisture sensor collects the signal, performs analog-to-digital conversion, the single-chip microcomputer reads the value of the humidity, after processing, and then sends the humidity value to the liquid crystal display for display, when the value is less than the minimum value When the value is greater than the minimum value, the pump is turned on and the water pump is turned off.On the basis of this system, functions such as temperature control, light control, remote control watering, and wireless control can also be added to further maintain plants, which can be used for subsequent expansion research.4. Test of intelligent flower watering system(1) Test conditions:Under indoor room temperature conditions, power on the system, set the appropriate upper and lower thresholds for soil moisture, and place the soil moisture sensor in the soil of potted plants. At this time, observe the current value of soil moisture on the LCD display. The setting mode is manual mode, press the button, the motor pumps water, after pumping for a period of time, press the button to stop pumping, and realize the manual start and stop function. The setting mode is automatic mode, three situations. If the current soil humidity is within the set upper and lower limits, the pumping motor and buzzer will not act; if it is lower than the set lower limit, the buzzer will alarm, and the pumping motor will pump water until the soil humidity reaches the set upper limit; if the current If the soil humidity is higher than the set upper limit, the buzzer will alarm.(2) Test results:Set the upper limit threshold to 60% and the lower limit threshold to 30% to test the response of the system under different soil moisture conditions.After multiple tests in manual mode and automatic mode, the system has zero error in action, which proves that the system can work normally, and has high reliability and strong practicability.The above is the design technology of the intelligent watering system based on the single-chip microcomputer introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-25
2021
Application of C language in the development of single-chip microcomputerWith the continuous development of today's computer application technology, under the role of single-chip microcomputer, today's society has gradually entered the era of intelligent development. The research and development of single-chip microcomputer has been highly valued by all fields of society, and has become an important symbol for judging the degree of social modernization in the new era. . In the past, the development of single-chip microcomputers was mostly carried out with the help of simple and convenient assembly language, but in the face of the urgent needs of various functions of single-chip microcomputers in various fields of society, single-chip microcomputers urgently need to realize the optimization of structure and function under the influence of multiple languages. As a result, C language has appeared in the development of single-chip microcomputers by virtue of its strong portability and high-level language features, which has greatly promoted the future development of single-chip microcomputers. It can be said that the application of C language in the development of single-chip microcomputer has become a general trend, which is of great significance to the long-term development of single-chip microcomputer development. For this reason, as an ordinary single-chip microcomputer researcher, it is necessary for us to conduct an in-depth analysis and discussion on the application of C language in the development of single-chip microcomputers in combination with the analysis of the current social and technological development forms, so as to promote the development of C language in all aspects. The full play of the advantages can provide more reference opinions and suggestions for the development of high-quality and multi-functional single-chip microcomputers.1. Analysis of concepts related to C language and single-chip microcomputer1.1 Introduction to C languageC language is a commonly used computer programming language, which is mainly used for the underlying software development of the network base end and system background, so it shows a good function in dealing with low-level software development problems. The main goal of the C language at the beginning of its development was to effectively improve the effectiveness of computer programming work, to effectively deal with low-level memory programming problems with the simplest compilation method, and to endow the C language with good performance while reducing the generation of machine codes as much as possible. The cross-platform adaptability makes it easy to run freely even in the absence of operating environment support. The difference between the C language and the common C++, Java and other languages is that its programming tasks are mainly process-oriented rather than objects. The basic features of C language mainly include: First, C language has advanced language attributes. It perfectly combines the basic structural features of high-level languages and the practical features of low-level languages; secondly, C language is a structural language. Provide users with recyclable and easy-to-call program statements in the form of functions, so as to separate data from code, ensure a clear program structure and make each part have good program independence; finally, the C language code level can be Realize cross-platform operation. C language can run freely in Windows, UNIX, DOS and other operating systems, and it has lower requirements on the hardware environment for language operation. Therefore, compared with other languages, C language is more flexible and convenient to use.1.2 Introduction to MCUSingle-chip microcomputer is also called single-chip controller, and its function is not to solve a single logic problem, but to include various functions of the entire computer system. In particular, the single-chip microcomputer can integrate CPU, RAM, ROM, A/D converter, interrupt system, pulse width modulation circuit, etc., into a small silicon chip under the action of VLSI technology to form a fully functional microcomputer system. Therefore, we can regard the integrated circuit chip as a single-chip microcomputer as a special microcomputer. Compared with a real computer, although it lacks I/O equipment, it has unique advantages in terms of price, quality, and volume. Advantages, which provide great convenience for the development of its various functions and applications in multiple fields. Today, with the continuous development of computer technology in our country and the deepening of the research on single-chip microcomputers, the current single-chip microcomputers perform well in various fields of society, and have a very wide range of application markets, as small as navigation systems, household appliances, and communications in our daily life. Equipment, smart IC cards, smart toys, as large as the implementation of industrial control, smart meters, data transmission, robot research and development, medical equipment, etc. are all under the role of single-chip microcomputers to realize the intelligent upgrade of products in the new era.2. The advantages of C language in the development of single-chip microcomputer2.1 Contribute to the improvement of developer work efficiencyIn the development of single-chip microcomputer, although assembly language has many advantages in terms of program execution efficiency and resource occupation, it still has a large gap with C language in terms of program language portability. This is also an important reason why C language is gradually replacing assembly language and is widely used in the development of single-chip microcomputers. With good program portability and environmental adaptability, the C language can be read by programmers under any circumstances and used to solve various programming problems, which greatly saves the work efficiency of programmers and reduces Complexity due to multiple language variations. At the same time, the C language also has good advantages in the integrity of the program structure, etc., and performs well in terms of compilation efficiency and operation speed, which makes programmers do not have to worry about trivial problems in program design. , which greatly improves the work efficiency of program developers.2.2 Contribute to the improvement of the development quality of single-chip microcomputerWith the development of intelligence in today's society, from the research and development of high-tech products to all kinds of electrical appliances and electronic products in people's daily life, it is necessary to use the single-chip microcomputer to give these products unique functions, and then to meet people's desire for convenience. , Intelligent life needs. However, in the face of the rapidly changing computer information technology, people have higher and higher expectations for intelligent life while learning more about computer information technology knowledge, which requires us to always keep the development of single-chip Constantly innovating, in order to make certain improvements in terms of function and quality according to social needs. Due to the advantages of both high-level and low-level languages, the C language can directly access various hardware during the application process, and it also supports programming design from the top down, which provides the possibility for the innovation of single-chip functions. Contribute to the improvement of the development quality of single-chip microcomputer.2.3 Contribute to the optimization of MCU development programWe have also mentioned in the overview of the article that one of the important features of the C language is that it has the characteristics of a structured language, that is, the programs are separated from each other in terms of data and code, and they communicate with each other except for information exchange. Independent and hierarchical. Applying C language to the development of single-chip microcomputer can promote the modular evolution of each program of single-chip microcomputer under the function of this feature of C language, and then realize segmented problem solving in the stages of use, debugging, maintenance, etc. The processing is clearer and more efficient, and promotes the optimization of the single-chip microcomputer development program.3. The specific application steps of C language in the development of single chip microcomputer3.1 Development tool downloadThe download of C language development tools is the primary link for the smooth application of C language in the development of single-chip microcomputers. For this reason, we can download the C language development tools we need from various software download websites. For example, TC2.0, VC++6.0, visualstudio, codeblock, VisualStudioCode, etc. These tools are different in function and difficulty, and we can choose reasonably according to the specific single-chip design. After the download task is completed, it is necessary to decompress and install the installation package, and enter the correct serial number while accepting the genuine inquiry, and then complete the installation step by step under the guidance of the software installation prompt.3.2 Create C source fileFirst, we need to create a new project in the downloaded tool, and then create a new file in the created project or add the content of the previous program file to the project. After that, it is necessary to create a new language program file, and use the basic language structure of C language such as void, signed, intint, void, restrict, return, continue to write the required single-chip program step by step in the text editing window, and write After the task is completed, save the file to generate the final C language file.3.3 Debugging and compiling the programDebugging and compiling programs is an important intermediate link in the application of C language in the development of single-chip microcomputers. It serves the purpose of checking and improving the written programs. Under the function of debugging, errors in the source files can be effectively found and corrected in time. For this reason, at this stage, the designer is first required to adjust the software to the debugging mode, and then carry out the debugging task at the level of the source program with the help of an emulator. In this process, the designer must check whether the content of the source file is correct or not Carry out careful observation, and complete compilation of the source program, and generate the target module under the action of the editor. After debugging, it is necessary to link the compiled target modules to generate a complete file.3.4 Generate HEX fileAfter the C language program is compiled, it can be acquired and executed by the microcontroller by generating the format file HEX with the help of various compilers. Therefore, the generation of the HEX format file can be regarded as the last link in the application of the C language in the design of the microcontroller. Whether the HEX format file generation task can be executed smoothly or not will have extremely important practical significance for the development level, efficiency, performance, and power of the single-chip microcomputer. To do this, first of all, we need to align the task object with the task file, and make full use of its function of programming the chip by generating a HEX file. At the same time, it is necessary to write the single-chip microcomputer HEX format file into the memory under the function of the editor, and debug the performance of the designed single-chip microcomputer under the function of the emulator.4. Precautions for the application of C language in the development of single-chip microcomputer4.1 Focus on the improvement of programming code efficiencyUnder the background of continuous expansion of MCU research work, C language has become an extremely important programming language in MCU design, and has played an extremely important role in the innovation of MCU functions and performance enhancement. But we must also realize that the C language has been used in single-chip microcomputers for a short time, so various problems will inevitably arise in the process of programming, which will delay the development of single-chip microcomputers. Therefore, when using C language in the development of single-chip microcomputers, one of the important issues we need to pay attention to first is the improvement of the efficiency of C language programming codes. For this reason, before writing the C language MCU program, it is necessary for us to have a full understanding of the various C language editors we use and come into contact with, so as to make a reasonable choice of the editor used in combination with the actual work. . At the same time, it is also necessary to summarize the C language programs that appear frequently in the programming of single-chip microcomputers, and summarize the number of assembly language lines corresponding to them, so as to make a clear understanding of the compilation efficiency of each language. understanding. Furthermore, in the future work, the compilation and execution efficiency of C language programming codes will be effectively improved through the flexible use of compilers and the accurate selection of high-efficiency compilation languages.4.2 The definition of variable type should be clearAffected by programming habits, some programmers are used to directly defining new variables at the initial position of the program without considering the inside and outside of the function. Although this practice does not constitute a programming error in principle, it does This practice is likely to have a certain impact on the subsequent execution of the program, so it is not advisable. For this reason, we must pay attention to the clarity of the variable type definition, and make a reasonable choice of the variable placement position according to the different compiler versions. For example, generally speaking, in the C90 version of the compiler, global variables belong outside the function and can only be placed before the reference, while in the latest C99 version, local variables can be flexibly placed at any location.SummarizeIn short, through the above research and discussion, we have a clearer understanding of the advantages and functions of C language in the application of single-chip microcomputers, and we have also seen the important social development trend of C language in the design of single-chip microcomputers. In order to effectively enhance the advantages of C language in the design of single-chip microcomputers, we will continue to increase the research work on single-chip microcomputers and C language in the future work, and strive to explore the bright points of design. development efforts.The above are the details of the application of C language in the development of single-chip microcomputer introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Songix single-chip microcomputer and Yingguang single-chip microcomputer agent, selling and developing the MCU and voice IC solutions of Songix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.