Beginners will enter - prawn talk about single-chip learning process

SCM lovers often ask us how to learn microcontroller? What steps is learning the microcontroller?
We summed up a little early, single-chip learning process is basically divided into four stages:
    the first stage is to browse textbooks piece of hardware, ranging from hardware to understand the structure of SCM. Such as ROM, RAM, an address, I / O port and the like, as well as look at some manufacturers MCU data (Data Sheet), to strengthen the MCU resources provided by the impression.
    The second stage is to understand the contents of binary digits, hexadecimal digits and software. Although there are many high-level language for programming the microcontroller, but I think beginner or in assembly language as well, and more conducive to combine hardware, hardware control structure. Knowing compilation concept language, machine language instructions, procedures, etc., starting from the MOV instruction, and learn assembly language programming, such as the MCU 51 in this system 111 of assembly language instructions, simple to understand how good they are and hardware connection, more conducive to learning general microcontroller integration and application instructions. So the method can first understand a few basic MOV instruction and its machine language, roughly establish the concept of single-chip hardware and software, to know microcontroller hardware is controlled by the instruction command.
    The third stage in accordance with the manual programming environment, using familiar programming environment. Now programming environment are generally connected to the computer, as long as people have basic computer knowledge can quickly master the steps.
    The fourth stage is to rely on experimental board, learning to master assembly language instruction set and simple programming microcontrollers. 
At the same time hardware and knowledge learned earlier in conjunction with the assembly, play a primary school software, hardware consolidation of dual role. 
Others using a simple program compiled at the beginning of the experiment to verify the board, analysis, mainly familiar with the learning method, used primarily for single-chip I / O of interface, such as A / D, D / A, PWM output applications applications, LCD and the VFD control, and other protocols how to regulate the output serial inlet, its various components must first analyze the driving capability of the control, such as current and voltage problems.
    After assembly language familiar, it is recommended to learn C programming language as soon as possible, after all, feature-rich C language library functions, fast speed, high coding efficiency, good portability, and can realize the control of the system hardware. C language is a structured programming language, it is supported by the top-down structured programming current programming technique is widely used. In addition, C language program has a sound module program structure, so as to provide a strong guarantee for the modular programming method of software development. Therefore, the use of C language programming has become a mainstream software development. Using C language to write the target system software, will greatly shorten the development cycle, and significantly increase the readability of the software, to facilitate improved and expanded, thus developed a larger, more complete performance system.

Guess you like

Origin blog.51cto.com/14355585/2414122