单片机知识点总结.pdf
《单片机知识点总结.pdf》由会员分享,可在线阅读,更多相关《单片机知识点总结.pdf(11页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、学习好资料欢迎下载第一部分硬件基础1、单片机的组成;2、单片机的并行 I/O 口在使用时,有哪些注意的地方?3、单片机的存储器;程序存储器和数据存储器的寻址范围,地址总线和数据总线的位数;数据存储器内存空间的分配;特殊功能寄存器区;4、时钟及机器周期;5、单片机的控制总线、地址总线及数据总线等。例:一、填空1 MCS-51 单片机有 4个存储空间,它们分别是:、。2、MCS-51单片机的一个机器周期包括个状态周期,个振荡周期。设外接 12MHz 晶振,则一个机器周期为s。3程序状态字 PSW 由位组成。4在 MCS-51单片机内部,其 RAM 高端 128 个字节的地址空间称为区,但其中仅有个
2、字节有实际意义。5.MCS-51 系列单片机为位单片机,其数据总线为位,地址总线为位,可扩展的地址范围为。6.MCS-51 单片机的 4 个并行 I/O 口若作为普通 I/O 口使用时,输入操作分为读引脚和读锁存器,需要先向端口写“1”的操作是。7.MCS-51 单片机的特殊功能寄存器分为可位寻址和不可位寻址两种,那么IE 为,TMOD 为。8通常 MCS-51单片机上电复位时 PC=H、SP=H、通用寄存器采用第组,这一组寄存器的地址范围是 H。9MCS-51单片机堆栈遵循的数据存储原则。10在 MCS-51单片机中,使用 P2、P0口传送信号,且使用 P0口来传送信号,这里采用的是技术。1
3、1MCS-51 单片机位地址区的起始字节地址为。学习好资料欢迎下载12对于并行口在读取端口引脚信号时,必须先对端口写。13PC的内容是。14、MCS-51 单片机运行出错后需要复位,复位的方法是在复位引脚上加一个持续时间超过个时钟周期的高电平。15、具有 4KBytes 储存容量之存储器,其至少需具有根地址线。二、问答1.简述 MCS-51 单片机的 P0、P1、P2 和 P3 口的功能。2MCS-51单片机的三总线是由哪些口线构成的。3MCS-51单片机的位寻址区的字节地址范围是多少?位地址范围是多少?4.MCS-51单片机存储器在结构上有什么特点?在物理上和逻辑上各有那几个地址空间?5简述
4、 MCS-51单片机 00H-7FH片内 RAM 的功能划分,写出它们的名称以及所占用的地址空间,并说明它们的控制方法和应用特性。6请写出 MCS-51单片机的五个中断源的入口地址。第二部分 C51 程序设计1、C51 的指令规则;C51 编程语句及规则;2、C51 表达式和运算符;3、顺序程序、分支程序及循环程序设计;4、C51 的函数;5、中断函数。例:1程序的基本结构有。2C51 的存储器模式有、。3C51 中 int 型变量的长度为,其值域为;unsigned char 型变量的长度为位,其值域为。4C51 中关键字 sfr 的作用,sbit 的作用。5函数定义由和两部分组成。6C51
5、 的表达式由组成。C51 表达式语句由表达式和组成。文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U
6、2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3
7、文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R
8、8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V
9、9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5
10、K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M
11、8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3学习好资料欢迎下载7若局部变量未初始化,其初值为。8C51 中“!”运算符的作用是;运算符”的作用是。9若函数无返回值,用关键字指定。10.在 C51 中,语句while(1)循环体语句 的含义是。11.C51
12、中,用于定义变量片内数据存储器类型的关键字是。二、程序设计题1、电路如图所示,要求编程实现一个流水灯。XTAL218XTAL119ALE30EA31PSEN29RST9P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427P1.01P1.12P1.23P1.34P1.45P1.56P1.67P1.78P3.0/RXD10P3.1/TXD
13、11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD17P3.6/WR16P3.5/T115U180C51X1CRYSTALC333pC433pC110uFR110kR21kD1D2D3D4D5D6D7D8R3100R4100R5100R6100R7100R8100R9100R101002、设全自动洗衣机控制面板上有8 个按键,8 个指示灯。按下一个按键,对应的指示灯点亮。文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7
14、 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2
15、 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文
16、档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8
17、H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9
18、U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K
19、3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8
20、R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3学习好资料欢迎下载第三部分中断系统1、中断的定义;2、中断源及其优先级;3、中断过程及中断应用编程。例:一、填空题1MCS-51 单片机有个中断源。上电复位时,同级中断的自然优先级从高至低依次为,若 IP=00010100B,优先级别最高者为、最低者为。2 外部中断请求有触发和触发两种触发方式。3MCS-51单片机 5 个中断源的中断入口地址为:。4中断向量是中断服务程序的。5.当定时器/计数器 1 申请中断时,TF1为,当中断响应后,TF1为。当串口完成
21、一帧字符接收时,RI 为,当中断响应后,RI 为,需要清零。6在 MCS-51 单片机的中断系统中,中断优先级共分为级。文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1
22、L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB
23、8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ1
24、0I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1
25、O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:CB8B2M8R8H7 HZ10I7C5V9U2 ZQ1O1L1W5K3文档编码:
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 知识点 总结
限制150内