Write to the person who wants to contact the microcontroller and just touch the microcontroller

Tag: MCU LED

This article refers to the address: http://

I am writing this article. I saw a lot of people in Baidu who want to contact the MCU or have already contacted the MCU. I don't know how to get started, or I don't know how to go. I also wrote my experience, this time only for the purpose of touching the MCU, just contacted the MCU, there will be several questions at the beginning. 1. What is the basis for learning a microcontroller? 2. How to get started 3. You don't need to buy a development board. There are mainly these questions. I am here to tell you that everyone is just communicating. The younger brother is here to offer ugly. If there is anything that is not thoughtful, or not comprehensive, please advise the experts. I am writing this purpose to give some help to those who want to learn microcontrollers and love electronic design. Gossip less, go to the topic.

Learning the microcontroller at first is considered to be reading through the book. It is very important to understand what it is, and what functions can be implemented, such as external interrupts, timers, etc.! These are theoretical things. When you understand that it is almost the same as the real gun test! The first thing to learn is the KEILC51 software, this is a programming software, software for writing C programs. For beginners, this is very important. If you can't even get this software, don't know how to create project files, how to generate .HEX files. It is the same as Baixue. There is also a program that burns the STC series of single-chip microcomputers. This can be downloaded from the official website. (I mainly focus on the STC series of microcontrollers). This is the first step in the need to step into the microcontroller. Some beginners, or myself, have made such mistakes. It is quite fun to read this book. I want to compare it and see that it is quite good to do this book. In the end, nothing has been done. People should do things in a down-to-earth manner. There is also a sense of accomplishment in cultivating oneself, so that it will slowly persist and is the best way to build confidence. It is also from the simplest, so give yourself a little confidence. Below I will introduce one of my own methods.

Learning the programming of a single-chip microcomputer is like building a brick. It is possible to write a large, complicated program without a break. Start with the simplest program, slowly add functions to the top, and optimize. I will introduce you to a method~! This is what I have summed up these days. I want to come out based on my own way. I hope that it will help you learn MCU in the future~!

The first step is to write a program that is lit by LEDs, and burn it into the MCU to see the effect. This purpose: 1. Familiar with how to write a program for the MCU 2. How to burn the program 3. Sensible understanding of the MCU is to control what. It is also the key first step to make yourself interested, because the textbook tells you what address of the single-chip computer, what is the actual thing at all, and it is difficult for everyone to think. I have encountered several people who say that the single-chip is difficult because the teacher I don't quite understand it. I learned all about assembly. I know what address is added or subtracted, or I transfer it from this address to this address. It is very boring and very boring. Anyone will feel no interest. When you write such a simple program, you will know that the MCU has such a function, so fun. Also understand that LED lights are so bright.

The second step is to write a light for 8 LED lights, or every two lights, this program is to add a delay program, let everyone know the inaccuracy delay. After you have this program, you can use the water light program that you think about writing different patterns. It is to practice familiar development environment and delay program and your own imagination.

The third step is to write a pipeline program with an external interrupt, which is to change the different patterns when there is an external interrupt. The program is similar to the second step but only adds an external interrupt, because I feel for external interrupts. It is really difficult for beginners to understand. I didn't want to understand it in the afternoon when I was studying. In the end, I used the development board to do experiments. I first knew how it happened. After a few applications, I could understand it~! So if you don't understand it at the beginning, you can follow the routine to burn the program into it, and then you should first understand it and learn it rationally. Slowly just fine~!

The fourth step is to write a precise delay streamer program, which requires the addition of a timer program. This purpose and method are the same as the third step. I won’t say much here.

The fifth step is to write a program that communicates with the computer and uses the computer to control the light. This method and the third step are to add the computer communication program.

The sixth step is to write a button program, add the button program, know how to write the button program, you can understand the button, if you have the ability to join the matrix keyboard program so better ~! Look at your own ability ah ~!

When you finish all these six steps, each program is written by yourself. If you add a lot of tricks to your own imagination, you will feel that you have a sense of accomplishment. It is very helpful for learning MCU in the future. Don't look at one. There are a lot of tricks in the running light program. If you can understand it, you have a preliminary understanding of the microcontroller, and also understand the minimum system~! For future programming, it is also very helpful. Technology, don't use anything new, and finally come back in a circle, it will be a water light program~! So if you look for C51, don't let two days say that AVR is good, then learn AVR, the last one If you don't learn well, it will be the simplest procedure. In fact, each type of microcontroller is just a little different from programming, and there are some differences in functions, but the principles are similar.

  • Tamper-Resistant: Spring-loaded shutters that close off the outlets to the receptacle. This allows only the metal prongs of a plug to open the shutters and create an electrical circuit. This is an important safety function to avoid children from inserting foreign objects in your outlet such as keys or a hairpin. 
  • Weather-Resistant: Use this outlet anywhere, especially outdoors.

TR&WR GFCI UL

TR&WR GFCI UL,GFI TR&WR Self Testing Receptacle,GFI TR&WR Protection Outlet,UL 20A Self Testing TR&WR

Hoojet Electric Appliance Co.,Ltd , https://www.hoojetgfci.com