文件名称:xianshi65565222
介绍说明--下载内容均来自于网络,请自行研究使用
这个程序的任务是键盘显示数字,也就是分别按倚天版的4个小键盘,右边的数码管轮流分别显示数字0,1,2,3,为了便于程序的讲解,我们把每一句分别编号, 实际输入程序时,就不用写后面的号码了。第1,2,3行是单片机的初始化,一般的程序都是这样开头的, 作用是跳开00-30h的地址单元,因为这些单元是分配给特殊寄存器使用的。第6行把p3送0ffh,作用是把这些端口p3.0-p3.7置高电平,
因为倚天版的键盘接在p3口,只有当端口为高电平时, 我们按下键盘,那么这个端口被短路到地,端口被强行变为0。根据这个大家自行分析第4句的意思。第5行clr p2.6,就是选中最右边的数码管。
板上一共有6个数码管,分别是p2.1,p2.2,p2.3p2.4p2.5p2.6.-this procedure is mandated keyboard figures show, respectively, according to The Chronicle edition of the four small keyboard, the right side of the digital control rotation showed the number 0, 1, 2, 3, in order to facilitate the process of talks We each were No. 1, the actual procedure, it was not behind the numbers. Clauses 1, 2, 3 is OK MCU initialization, the general procedures are the beginning of this. transcended the role of 00-30h address unit, which unit is assigned to the special use of the register. No. 6 line p3 sent 0ffh, is the role of these ports p3.0-margin p3.7 home, The Chronicle version because the keyboard Then in p3 mouth, only when the serial port to, we press the keyboard, Well, this port was to short-circuit, was forced into port 0. According to the analysis of all
因为倚天版的键盘接在p3口,只有当端口为高电平时, 我们按下键盘,那么这个端口被短路到地,端口被强行变为0。根据这个大家自行分析第4句的意思。第5行clr p2.6,就是选中最右边的数码管。
板上一共有6个数码管,分别是p2.1,p2.2,p2.3p2.4p2.5p2.6.-this procedure is mandated keyboard figures show, respectively, according to The Chronicle edition of the four small keyboard, the right side of the digital control rotation showed the number 0, 1, 2, 3, in order to facilitate the process of talks We each were No. 1, the actual procedure, it was not behind the numbers. Clauses 1, 2, 3 is OK MCU initialization, the general procedures are the beginning of this. transcended the role of 00-30h address unit, which unit is assigned to the special use of the register. No. 6 line p3 sent 0ffh, is the role of these ports p3.0-margin p3.7 home, The Chronicle version because the keyboard Then in p3 mouth, only when the serial port to, we press the keyboard, Well, this port was to short-circuit, was forced into port 0. According to the analysis of all
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 9927425xianshi65565222.rar 列表 xianshi.txt