Introduction to the method of single-chip microcomputer programming

Source: Internet
Author: User

Recently found a lot of graduates just into the job of the students to write a single-chip microcomputer program is very confused, do not know where to start, how to achieve the desired function. Although in school to learn the relevant courses, may be the curriculum design or graduation design is to do a single-chip microcomputer design, but from the circuit board to the basic procedures have been done, the students only need to move to assemble, compile, download completed, the process is only familiar with the environment, and the actual work needs to brain, Obviously this kind of transformation needs to adapt, how to adapt it? The school has already played the foundation, needs the confidence and the correct method step.

Start very realistic, is to copy, whether from the Internet or the predecessor to get the code to run on a single-chip computer, download to the target board to run, understand the function of the code parts, do not understand the place on the next breakpoint single-step debugging. Familiar with the composition of the code and the parts of the execution process and function, a little to remove unnecessary, join and realize their own functions, encounter difficult to understand and touch the problem of the brain to find Niang, combined with experimental debugging basic can find a solution, start will encounter a lot of small problems, maybe a small problem will torment a week helpless, This time must persist, a problem to think about solving, when you solve a few problems will find yourself already started.

In fact, the focus is only one sentence: diligent use of breakpoint debugging and degrees Niang.

Low-speed, digital single-chip circuit not much difficult design, pattern or software, a clear, concise, functional structure of the design must be stable, reliable, easy to maintain, strong expansion, and a lump of chaotic code heap together inevitably mistakes, difficult to upgrade maintenance. SCM Software also need architecture, embedded engineers tend to focus on the hardware, in the face of strange elements, it is easy to get lost, focus on the details of the design and neglect of the overall structure, and this habit brought to the software design, making the software structure is unclear, the details of the branch complex. Training software thinking, in-depth understanding of the modular and object-oriented design ideas are required for each embedded engineer advanced.

Introduction to the method of single-chip microcomputer programming

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.