deafguy 发表于 2011-12-21 08:43

51, AVR, ARM

<div align="center"><font size="4"><b>51 系列</b></font><br></div>The Intel MCS-51 is a Harvard architecture, single chip microcontroller (µC) series which was developed by Intel in 1980 for use in embedded systems.(ref: <a href="http://en.wikipedia.org/wiki/Intel_MCS-51" target="_blank">http://en.wikipedia.org/wiki/Intel_MCS-51</a> )<br><br>注意51系列单片机都是用的51内核,其他外设是不同厂家自己定义的。<br>51内核好比发动机。而这个发动机可以安在夏利、吉利上,也可以安在奥迪、法拉利上。<br><br>51内核的单片机有 atmel系列的51 52等 stc系列的 C8051系列的 华邦系列等等,都是基于51内核。<br><br>51是基础,电路简单,编程也比较容易,资料众多,芯片很便宜,也很容易买到,适合入门级,但一旦数据量很大,涉及复杂运动控制,视频等内容时,51就力不从心了.运算的速度和效率低也是51的一个缺点.<br><br><div align="center"><font size="4"><b>Atmel ARV</b></font><br></div>The AVR is a modified Harvard architecture 8-bit RISC single chip microcontroller which was developed by Atmel in 1996. The AVR was one of the first micro-controller families to use on-chip flash memory for program storage, as opposed to One-Time Programmable ROM, EPROM, or EEPROM used by other micro-controllers at the time. (ref: <a href="http://en.wikipedia.org/wiki/Atmel_AVR" target="_blank" target="_blank">http://en.wikipedia.org/wiki/Atmel_AVR</a>&nbsp; )<br><br>
AVR与51相比采用精简指令集(51是复杂指令集),可以在每个时钟周期内执行一条命令;
而51至少需要12个时钟周期,AVR的运算能力比51强很多。另外, 像ATmega8之类的单片机都自带AD转换器,应用起来很方便,
单片机本身成本也不高。<br><br>
<span style="font-weight: bold;">AVR较51的优势:</span>
<ol><li>首先,AVR使用精简指令集</li>
<li>其次,AVR内部的流水线结构使得它可以在一个时钟周期内完成取指和执行</li>
<li>再次,AVR内置硬件乘法器,在运算大量乘法运算时比51耗时少很多</li>
<li>最后,AVR外设极为丰富,例如:10位A/D、硬件PWM等等,虽然某些51也有,但绝对不是一个档次! </li>
</ol><br>AVR的编程一般需要gcc或者icc,有特定的环境,与51相比,稍微复杂一点,资料也没有51多,最好是先有51基础后再学,但它的运算能力很强,在实际生产中也用得很多,推荐给那些有51基础,愿意从事智能控制方面的朋友使用。<br><br><div align="center"><font size="4"><b>ARM</b></font><br></div>ARM7,9是32位MCU,(AVR\51是8位MCU,32位机可以运算非常复杂的指令),进行大量的数据计算,比如视频数据,能力较8位机强很多。运算速度也高好多倍.<br>缺点:ARM7,9要掌握有难度,现在很多大学所谓的嵌入式,仅仅是半只脚走路,只教一些简单的程序设计,遇到实际问题时的处理手法教授很少。而更要紧的是,ARM7,9系统还包括硬件电路,这里面涉及高速电路设计内容,不是初学者能轻易掌握的。<br><br><br><div align="center"><font size="4"><b>总结</b></font><br></div>简单的总结下就是AVR的指令系统比较精简,总线结构也与51不同,因此速度比51更快。其次,如果说性能的话,至少ARM更优。因为ARM是32位处理器,频率可达百兆赫兹,速度和处理能力远远优于AVR和51。 <br><br><br><br>Reference<br><a href="http://en.wikipedia.org/wiki/Atmel_AVR" target="_blank" target="_blank">http://en.wikipedia.org/wiki/Atmel_AVR</a><br><a href="http://zhidao.baidu.com/question/160273259.html" target="_blank" target="_blank">http://zhidao.baidu.com/question/160273259.html</a><br><a href="http://en.wikipedia.org/wiki/Intel_MCS-51" target="_blank">http://en.wikipedia.org/wiki/Intel_MCS-51</a><br>
页: [1]
查看完整版本: 51, AVR, ARM