Let's talk about the advantages of AVR microcontrollers first. Compared with the classic 51 series, the outstanding advantages are mainly the following:
1. Fast speed. AVR is a reduced instruction set microcontroller, and its speed can reach 1MIPS/second, which is theoretically 12 times that of the traditional 51, and in fact about 10 times.
2. Rich on-chip resources. The MEGA series has JTAG simulation and download functions on the chip. The chip contains watchdog circuit, on-chip program Flash, on-chip data RAM, synchronous serial interface SPI, asynchronous serial port UART, embedded AD converter, EEPROM, analog comparator, PWM timer counter, TWI (IIC) bus interface, hardware multiplier, independent oscillator real-time counter RTC, on-chip calibrated RC oscillator and other on-chip peripherals, which can meet various development needs.
3. Strong driving ability. The I/O port can directly drive digital tubes, LEDs, relays and other devices, saving a lot of peripheral circuits, which saves development difficulty and reduces costs.
4. Low power consumption. Although the low power consumption is not as good as the 430 microcontroller, it is also a leader among microcontrollers.
5. There are many types of models to choose from. Various models can meet different needs, giving you a lot of choices for your project.
6. High cost performance. Under the premise of high performance, the price of the chip has not increased. The price can be compared with 51, but the function is incomparable to 51.
Combining the above advantages and future trends, it is necessary to learn AVR microcontrollers.
Here is my personal experience on how to learn AVR microcontrollers faster! ! Many people who want to learn AVR asked me how to learn it well? Here I will tell you how I learned AVR microcontrollers, how to get started, and how to become proficient in this process.
The learning of any microcontroller should be a process closely combined with practice, and it cannot stay in books for a long time. However, learning microcontrollers is also learning knowledge, so you must first read books, because you need to have a general understanding of what a microcontroller is from the book? What can it do? How to control it to achieve our goals, etc.? You may not understand it for the first time or the second time, but it doesn’t matter, because you still lack practical sensory knowledge. You can treat it as a novel, as long as you understand it roughly. I recommend a book called "AVR Series Microcontroller C Language Programming and Application Examples", which is published by Tsinghua University Press. It is very important to have a general understanding of the content in the book and then practice it, because you cannot learn the microcontroller without practice.
There are two ways you can choose for practice. One way is to spend money to buy a microcontroller learning board. The one with fewer functions costs less and is useless after getting started. Although the one with more functions is more expensive, you can learn more. A good learning board can be used as a development board. Many people think that the learning board and the development board are the same thing. In fact, the learning board can only be used for simple learning. What about the development board? The things above are very professional, and the sub-functions in the program are very independent. When you develop, many things can be used directly, which is very convenient. So I personally recommend buying a better learning board that can be used as a development board. Flowing lights, digital tubes, independent keyboards, matrix keyboards, AD or DA (the principle is the same), LCDs, buzzers and other very basic experiments. If you can apply them proficiently, it can be said that you have already gotten started with the hardware of the microcontroller. The rest is to practice designing circuits by yourself and constantly accumulate experience. As long as you pass the first level of entry, the rest of the road will be much easier.
Method 2: If there is an expert in single-chip microcomputer around you, ask him for help and let him help you build a simple minimum system board. For experts, it only takes a few minutes to make a minimum system board for single-chip microcomputer, but it is much more difficult for beginners, because only when you understand the hardware can you use it skillfully, and you haven't gotten started yet. If you don't have such an expert around you and can't find someone to help you, then I advise you to buy one yourself. After all, it is much more convenient to have one yourself. You can use it when doing single-chip microcomputer experiments in the future, saving time and trouble. For the sake of learning, it is still worth investing a little, because the value it creates for you in the future is incomparable. Buy one less piece of clothing, eat two less meals in restaurants, go to Internet cafes less, save some money to learn some useful things, this is what young people should do.
After you have a single-chip microcomputer learning board, you should practice more. It is best to have your own computer, study more programs, play fewer games, and watch fewer movies. First, learn to use development software, how to edit and compile source programs? How to simulate programs? At present, 90% of people use C language to develop AVR, and most beginners use ICCAVR (AVR's C language environment) as the software for editing and compiling source programs, and use AVR Studio for simulation (if you need these two software, you can contact the author of this article on QQ: 475661158). Then start with the simplest running light experiment. When you can make the eight running lights flow freely according to your wishes, you have already entered the door. You will find how interesting the microcontroller is. It is so interesting (when the program you write is realized according to your wishes, you will feel very comfortable, and slowly you will fall in love with the electronics industry). Then make the digital tube light up. After these two items, you have been immersed in it. This is how to practice. When writing a program, you will definitely encounter many problems. At this time, you will look for it in a book or ask others. When you get the answer, you will be deeply impressed and remember it firmly. In this way, you will soon be familiar with the AVR microcontroller. When
the program practice is almost done, you will start to make hardware, find relevant information, and make circuits by yourself. After a few months, you will become a master. Let me briefly talk about C language and assembly language. You can use C language or assembly language to program a single-chip computer, but I suggest that C language is better. If you have a foundation in C language, it will be easier to learn. If not, you can also learn C language while learning single-chip computers. C language is also very simple. It is just a tool. I advise you to learn it. It will definitely be useful in the future. Otherwise, you will have to learn it in the future. It doesn’t matter if you don’t know any assembly language, but you will suffer in the future if you don’t know any C language. Assembly language is efficient in writing program codes. It is often used in occasions with strict timing requirements, but it is relatively difficult to develop and very troublesome. Especially when encountering problems with slightly complex algorithms, it is easy to mess yourself up when writing code in assembly language. The main frequency of AVR single-chip microcomputers can be as high as 20MHz, which is equivalent to the 51 single-chip microcomputer with a frequency of more than 200MHz. With such a high-frequency clock, we can use C language to write code without any problem. The capacity of the program memory (ROM, FLASH) of the microcontroller is also constantly improving, which is enough to hold any code you write in C language. The C language has rich information and is very portable. It can be transplanted with just a slight modification, so I advise everyone to use C language.
In general, as long as you have confidence, can stick to what you do, and have the spirit of not giving up until you succeed, it is very easy to learn AVR microcontrollers, whether you have learned microcontrollers or not. Let
me briefly introduce the steps:
1. Find a book to get a general understanding of the structure and functions of AVR microcontrollers. Just have a general understanding, no need to read it in detail. (Five days) 2. Find
a learning board to practice writing programs. Learning microcontrollers is mainly about practicing writing programs. If you encounter something you don’t know, ask others or look up books. (Forty days)
3. If you are learning the MEGA series AVR microcontroller, you also need to learn how to set the fuse position to make it work more efficiently and conveniently for you. (One day)
4. Find some small circuit materials on the Internet to practice designing peripheral circuits. After soldering, debug by yourself and get familiar with the process. (Ten days)
5. Design circuits and products with your own style independently, ... you are already an expert.
Calculate the time, you will be able to operate the AVR microcontroller proficiently in about two months. As for how long it will take to become an expert, it depends on your efforts.
Previous article:Automatic voltage regulation system of DC power supply screen silicon chain based on ATMAGE16 single chip microcomputer
Next article:Design of remote multi-object control system based on myDAQ
Recommended ReadingLatest update time:2024-11-16 15:04
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to select the conversion method in J1939 fault code DTC?
- 【MicroPython Internet of Things】Electronic Edition
- Verilog implementation of TEA encryption algorithm
- Thank you for having you + all the forum masters
- Live: EEWorld & Lenovo Industrial Intelligent Development Board Lee SBC Technology Salon (Shenzhen, today 13:00-16:00)
- What are isolated digital inputs?
- Design of impedance matching network for broadband antenna
- How to use Hall sensor
- Use of hardware multiplier in MSP430 library
- UPD78F0888A Renesas MCU peripheral settings