单片机——硬件基础知识

论坛 期权论坛     
匿名小用户   2019-10-20 18:20   173   0
<p align="center" style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:24px;"><span style="color:rgb(0,112,192);">单片机</span><span style="color:rgb(0,112,192);">——</span><span style="color:rgb(0,112,192);">硬件基础知识</span></span></strong></p>
<p align="center" style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:24px;"><span style="color:rgb(0,112,192);"><br></span></span></strong></p>
<p align="center" style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:24px;"><span style="color:rgb(0,112,192);">宗旨:技术的学习是有限的,分享的精神是无限的。<br></span></span></strong></p>
<p align="center" style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:24px;"><span style="color:rgb(0,112,192);"><br></span></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:18px;"><span style="color:rgb(0,112,192);">1</span><span style="color:rgb(0,112,192);">、单片机内部资源</span></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
STC89C52:8KFLASH、512字节RAM、32个IO口、3个定时器、1个UART、8个中断源</p>
<p style="font-family:Arial;font-size:14px;">
(1)Flash(硬盘)——程序存储空间 —— 擦写10万次,断电数据不丢失,读写速度慢</p>
<p style="font-family:Arial;font-size:14px;">
(2)RAM(内存)——数据存储空间 —— 断电数据丢失,读写速度快,无限次使用</p>
<p style="font-family:Arial;font-size:14px;">
(3)SFR —— 特殊功能寄存器</p>
<p style="font-family:Arial;font-size:14px;">
</p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:18px;"><span style="color:rgb(0,112,192);">2</span><span style="color:rgb(0,112,192);">、单片机最小系统</span></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="color:rgb(0,112,192);"><img alt="" src="https://201907.oss-cn-shanghai.aliyuncs.com/cs/5606289-8809df097e1892c51f19379e51a5379b" style="border:none;"><br></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
</p>
<p style="font-family:Arial;font-size:14px;">
最小系统:最少组件组成单片机可以工作的系统。</p>
<p style="font-family:Arial;font-size:14px;">
三要素:</p>
<p style="font-family:Arial;font-size:14px;">
(1)、 电源电路:5V</p>
<p style="font-family:Arial;font-size:14px;">
(2)、 晶振电路:11.0592MHZ、两个30PF</p>
<p style="font-family:Arial;font-size:14px;">
(3)、 复位电路:</p>
<p style="font-family:Arial;font-size:14px;">
P0:开漏输出,必须加上拉电阻</p>
<p style="font-family:Arial;font-size:14px;">
准双向口:</p>
<p style="font-family:Arial;font-size:14px;">
强推挽输出:电流驱动能力强</p>
<p style="font-family:Arial;font-size:14px;">
高阻态</p>
<p style="font-family:Arial;font-size:14px;">
上下拉电阻:上拉电路就是将不确定的信号通过一个电阻拉到高电平,同时限流作用。下拉电阻就是下拉到低电平。</p>
<p style="font-family:Arial;font-size:14px;">
上下拉电阻选取:从降低功耗方面考虑应该足够大,因为电阻越大,电流越小;驱动能力来看,小电阻</p>
<p style="font-family:Arial;font-size:14px;">
</p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:18px;"><span style="color:rgb(0,112,192);">3</span><span style="color:rgb(0,112,192);">、硬件基础知识</span></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
(1)、电磁干扰(EMI)——静电放电(ESD)、快速瞬间脉冲群(EFT)、浪涌(Surge)</p>
<p style="font-family:Arial;font-size:14px;">
(2)、去耦电容的使用</p>
<p style="font-family:Arial;font-size:14px;">
低频滤波电容,平常应用最多的事钽电容,电解电容,陶瓷电容,起到去除电源低频纹波,稳定电源的作用。</p>
<p style="font-family:Arial;font-size:14px;">
高频滤波电容,电容附近,通常用104电容来进行去除高频干扰。</p>
<p style="font-family:Arial;font-size:14px;">
(3)、三极管(PNP,NPN) b,c,e --- 电压驱动</p>
<p style="font-family:Arial;font-size:14px;">
  控制应用</p>
<p style="font-family:Arial;font-size:14px;">
  驱动应用</p>
<p style="font-family:Arial;font-size:14px;">
</p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="font-size:18px;"><span style="color:rgb(0,112,192);">4</span><span style="color:rgb(0,112,192);">、</span><span style="color:rgb(0,112,192);">LED</span><span style="color:rgb(0,112,192);">发光二极管</span><span style="color:rgb(0,112,192);">——</span><span style="color:rgb(0,112,192);">电流驱动</span></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
<strong><span style="color:rgb(0,112,192);"><img alt="" src="https://201907.oss-cn-shanghai.aliyuncs.com/cs/5606289-9f147bab70e28f15e5319e86e4c47319" style="border:none;"><br></span></strong></p>
<p style="font-family:Arial;font-size:14px;">
</p>
<p style="font-family:Arial;font-size:14px;">
通常红色贴片LED, 靠电流驱动,电压1.8V~2.2V,电流1~20mA,在1~5mA亮度有所变化,5mA以上亮度基本不变。</p>
<p style="fon
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:50
帖子:1079
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP