Learning experience of AVR and PIC microcontrollers

Publisher:technology1Latest update time:2015-07-06 Source: 51heiKeywords:AVR  PIC  MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
      The key to successfully compiling two types of MCU project files is that the project file name and storage directory must be in English letters and must not be

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.

Keywords:AVR  PIC  MCU Reference address:Learning experience of AVR and PIC microcontrollers

Previous article:Songhan MCU 1602
Next article:Chipsea microcontroller multiplication operation

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号