Four steps to learn microcontroller

There are a lot of friends want to learn microcontroller, but do not know how to get started, today came to my feelings and learn some methods microcontroller. As the device is a hands-on technical requirements, it is recommended to determine to learn microcontroller model, and then choose a development board, according to the development board to learn the steps. Some of my friends, I hope to recommend books. I do not suggest that you look at the so-called "instant" books in learning the microcontroller, not useful, but very much the same, would not achieve very good guide. If you must read, see data sheet microcontroller, each contains a single official website will have the appropriate datasheet, this is the best single-chip learning materials.

Four steps to learn microcontroller
Cultivate interest microcontroller to start with children

MCU Data Sheet dozens of pages of hundreds of pages, single-chip abroad are in English, looking at the big head. How to see? Do not like watching fiction, from start to finish, there must be selective focus look. With part where, which part of the content targeted to see.

1 first of all to familiar with the microcontroller the GPIO
the GPIO SCM is the most basic resources, GPIO controller and peripheral circuit is electrically connected to build bridges. Having to be familiar with the microcontroller which GPIO input and output forms, how to set the output configuration register process is how, how to use the multiplex function. After a certain concept GPIO, we must learn to write programs lighting an LED, buzzer driver, relay driver, detecting the key input light.

This has been the first step in understanding the microcontroller.

Four steps to learn microcontroller
To learn microcontroller hands

2 to be familiar with the microcontroller clock configuration
regardless of external crystal, or internal clock, it is inseparable from the microcontroller to work on the clock, including initialization GPIO also have to enable clock. But the clock is not just here to make it as simple as can be. Because many different kinds microcontroller clock, the system clock, a clock and other peripherals, the source or from an external crystal, either from the internal oscillator. We want to see the map microcontroller clock, the clock source confirmed affiliated different peripherals, the clock frequency configuration.

3 to be familiar with the on-chip microcontroller / peripheral resources
if you have the GPIO, clocks are clear, and then the next you have to learn peripherals. When I first started learning, serial, SPI I never heard of these communications. Peripheral learning, learning is a large part of their protocol, such as the baud rate., SPI of 4 lines. It is recommended to understand the basis of these communications protocol, and then go to the routine, Yihuhuhuapiao, practice a few times on the familiar, learning peripheral functions can be said to me when the entry of the most rewarding. Recommended friends just getting started to master a few basic peripherals on it, such as serial UART, SPI, ADC, Timer and IIC and so on.

Four steps to learn microcontroller
More hands-circuit debugging

4 to be familiar with the microcontroller interrupt
interrupt can be said to be a difficult entry microcontroller is the focus. Because the interruption involves the peripherals and interrupt controller, so not learn peripherals, like Topsy immediately interrupted, it is very difficult, futile. Because interrupts and peripherals is often bound together. When I was learning to interruption as a peripheral process, in fact, it is to initialize some parameters. I was learning microcontroller interrupt, read a lot of information, to see a lot of routine, only a little get to know the meaning of the interruption, usage, configuration method.

These are the steps to learn when I started. After familiar with a microcontroller, at work and exposure to other types of microcontrollers, ARM, etc., there will be no school side by side so difficult. To complete mastery of course, to learn to stand on the shoulders of giants, and put into practice, so you go to learn another SCM is easy.

Original articles published 0 · won praise 21 · views 30000 +

Guess you like

Origin blog.csdn.net/wusuowei1010/article/details/105364290