Chinese character directory! Otherwise, there will be compilation errors. I used the Chinese character directory "My Documents" to compile the project file, and
an error occurred. I was puzzled and wasted a lot of time.
Second, I feel that it is more comfortable to use the GCC that comes with AVR STUDIO when learning AVR microcontrollers. First, it comes with AVR STUDIO (but
you still need to install WinAVR yourself); second, WinAVR is free software and does not need to be cracked; third, it is much more comfortable to use now than before
. In the past, you had to write makefiles yourself, but now you only need to set the crystal frequency of the microcontroller in the project configuration
, and the rest is left to the compiler; fourth, the GCC function library is relatively rich, so you can use it directly without writing code yourself.
3. The usage of PIC microcontrollers seems to be a little larger than that of AVR microcontrollers, but the structure of low-end PIC microcontrollers is not as reasonable as that of AVR microcontrollers
, especially in terms of interrupt and memory structure. When PIC generates an interrupt, there is only one interrupt entry. If the programmer wants to know where
the interrupt occurs, he has to write code to query the settings of each interrupt flag register. In addition, the memory of PIC is divided into several storage blocks, and
the program must be switched between several blocks. This problem does not exist in AVR microcontrollers.
4. AVR microcontrollers are very cheap from software development to hardware development. The software is free and powerful, the programming simulation circuit is simple
, it is cheap to buy online, and you can make it yourself. Compared with PIC microcontrollers, the software and hardware costs are higher. I started learning PIC
because the programmer of PIC microcontrollers was expensive, so I gave up halfway. In the end, because my friend couldn't learn PIC microcontrollers, he gave me his programmer
, so I was able to continue learning PIC.
5. Compared with assembly language, it is better to use: microcontroller C language http://www.51hei.com/mcuteach/150.html , which is easier to
write programs, has strong readability, and functional functions can be used.
6. Let's talk about the advantages of PIC microcontrollers: 1. The assembly commands of PIC microcontrollers are much less than those of AVR microcontrollers. If you want to implement
a simple function in assembly language, it is better to use PIC; 2. In the past, it seemed that the online source programs of PIC microcontrollers seemed to be
slightly more than those of AVR microcontrollers, but now it seems that there are also many source programs of AVR microcontrollers, and they have been summarized. 3. I don't know the specific data,
but it feels that the usage of PIC microcontrollers is very large.
7. Which microcontroller is better to learn? I don’t know. I personally think AVR is better, but I also think that PIC microcontrollers
are more popular.
The above is my learning experience. Of course, there are definitely some mistakes in my understanding. I hope you can correct me.
Previous article:Songhan MCU 1602
Next article:Chipsea microcontroller multiplication operation
- Popular Resources
- Popular amplifiers
- Learn ARM development(14)
- Learn ARM development(15)
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- The evaluation plan for the current probe and signal generator winners is open! The instruments have been distributed, and we look forward to the sharing of the 6 little ones
- Embedded Qt-Control Hardware: Slide bar controls RGB lights
- Technical Article: 24-bit Data Acquisition System for IEPE Sensors
- Hardware Verification Language - Introduction
- 【Recruitment】RF Engineer
- November 23 is Fibonacci Day
- I want to know what this module means
- There are endless packaging technologies, which one is the most suitable?
- [Domestic RISC-V Linux Board Fang·Starlight VisionFive Trial Report] Evaluation Summary
- Mastering LED lighting