Software and Hardware connection

Source: Internet
Author: User

Software and Hardware seem to have two sub-families, but they are closely related to each other. Here are some examples:

The inductance of the switching power supply must meet the Volt-second balance within a clock period. Physically, the energy absorbed by the inductor within the switching cycle should be equal to the released energy. Otherwise, the system will not be balanced and unstable. For software systems, especially complex large-scale systems, although there are rigorous theories to judge the stability of a software module. ButProgramDebugging is not a simple and easy process. We can learn from the concept of voluss balancing, a largeCodeAt the end of a State, in addition to some statistical variables, it should be returned to the initial state. The specific embodiment should be: memory release and application, and system output results should be consistent with the initial state. When the stack is not interrupted and returned to the initial position, it should also return to the initial position. Otherwise, the system will be unstable.

Initialization has never been valued by software engineers. Hardware engineers sometimes ignore this problem. Software initialization, from a macro perspective, module initialization, preparation for starting the operating system, task stack, and heap preparation. From a micro perspective, the initialization of variables, global constructor, and global variable initialization. For hardware, the power-on sequence; the power-on status of the chip pins. The initial logical status of the digital chip. The initial range of the analog signal. There are some speakers that will pop up when you start the system. This is the impact of current generated by power-on, which is difficult to suppress. It is difficult to complete the cancel circuit. Some advanced CPUs require power-on sequence. Some Reliable systems require power-on, power-down, and signals to be in a certain state. Hardware alone is sometimes difficult. Software and Hardware may need to be combined. Bootloader makes a lot of initialization work for the subsequent application code.

When software abstracts some objective things, you can refer to the hardware abstraction. For example, Ethernet is a low-speed device relative to the processor. To solve endless interruptions, DMA can greatly relieve the pressure on the processor. If the processor is abstracted into a class, and the Ethernet is abstracted into a class, the DMA can be considered as a communication Association class. The abstraction and in-depth analysis of its parameters have greatly promoted both software design and hardware design.

A chip is a library function provided by someone else. Complete various functions. During software development, you need to understand the execution behavior, parameter range, usage skills, and application scenarios of library functions. In fact, chip applications are the same. You need to understand the function definition, chip action, Application Scenario, power consumption, and other information of the pin. The finer the understanding, the more helpful the application is.

The combination of software and hardware is mainly to understand the solutions behind the scenes and to deal with practical engineering problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.