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