📄 单片机坐标8255扫描键盘、显示实验.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0038)http://www.mcuzb.com/XXLR1.ASP?ID=5287 -->
<!--显示文章具体内容时加在最前面--><HTML><HEAD><TITLE>单片机坐标8255扫描键盘、显示实验</TITLE>
<META
content="本站用,卓越网站快车,建设,www.zydn.net<FONT face=黑体> </FONT><A name=一.实验要求>一<F"
name=keywords>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId><LINK
href="单片机坐标8255扫描键盘、显示实验.files/index1.css" type=text/css rel=STYLESHEET>
<SCRIPT language=javascript>
function newie()
{
var newWindow;
newWindow=window.open('','content','toolbar=no,location=no,directories=NO,status=NO,menubar=NO,scrollbars=yes,resizable=yes,top=10,left=10,width=770,height=450');
newWindow.focus();
}
</SCRIPT>
</HEAD>
<BODY vLink=#000000 link=#000000 bgColor=#ffffff leftMargin=0 topMargin=0
rightMargin=100 gcolor="#FFFFFF">
<DIV align=center>
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD style="BACKGROUND-POSITION: right top; BACKGROUND-REPEAT: repeat-y"
width="50%" background=单片机坐标8255扫描键盘、显示实验.files/bg_1.jpg></TD>
<TD align=middle><!---以上的是边框--->
<TABLE id=table1 cellSpacing=0 cellPadding=0 width=766 border=0>
<TBODY>
<TR>
<TD width=70><IMG height=60 src="单片机坐标8255扫描键盘、显示实验.files/logo2.gif"
width=180 border=0></TD>
<TD align=middle><IMG height=87
src="单片机坐标8255扫描键盘、显示实验.files/bit.gif" width=514 border=0></TD>
<TD width=95><MAP name=FPMap0><AREA shape=RECT coords=9,20,60,31
href="http://www.mcuzb.com/system/user/userlist1.asp"><AREA
shape=RECT coords=9,46,61,58
href="http://www.mcuzb.com/system/user/myly.asp"><AREA shape=RECT
coords=12,72,60,84 href="http://www.mcuzb.com/dh.asp"></MAP><IMG
height=96 src="单片机坐标8255扫描键盘、显示实验.files/mb_4.jpg" width=70
useMap=#FPMap0 border=0></TD></TR></TBODY></TABLE>
<TABLE id=table2 cellSpacing=0 cellPadding=0 width=766 border=0>
<TBODY>
<TR>
<TD background=单片机坐标8255扫描键盘、显示实验.files/dh.jpg height=28>
<TABLE height=56 cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD vAlign=bottom align=middle height=27><FONT
style="FONT-SIZE: 9pt" color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/INDEX.ASP"><FONT
style="FONT-SIZE: 9pt">首页</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle height=27><FONT
style="FONT-SIZE: 9pt" color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=358"><FONT
style="FONT-WEIGHT: 700; FONT-SIZE: 9pt"><FONT
color=#ff00ff>单</FONT><FONT color=#808000>片</FONT><FONT
color=#00ff00>机</FONT><FONT color=#ff0000>论</FONT><FONT
color=#008000>坛</FONT></FONT></A><FONT style="FONT-SIZE: 9pt"
color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle height=27><FONT
style="FONT-SIZE: 9pt" color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=356"><FONT
style="FONT-SIZE: 9pt">C51源代码(本站原创)</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle height=27><FONT
style="FONT-SIZE: 9pt" color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=363"><FONT
style="FONT-SIZE: 9pt">单片机源代码与算法</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle height=27><FONT
style="FONT-SIZE: 9pt" color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=357"><FONT
style="FONT-SIZE: 9pt">哈工大实验</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle height=27> </TD>
<TD vAlign=bottom align=middle height=27> </TD></TR>
<TR>
<TD vAlign=bottom align=middle> </TD>
<TD vAlign=bottom align=middle> </TD>
<TD vAlign=bottom align=middle><FONT style="FONT-SIZE: 9pt"
color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=366"><FONT
style="FONT-SIZE: 9pt">单片机毕业设计论文</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle><FONT style="FONT-SIZE: 9pt"
color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=365"><FONT
style="FONT-SIZE: 9pt">CPLD专区</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle><FONT style="FONT-SIZE: 9pt"
color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=367"><FONT
style="FONT-SIZE: 9pt">单片机简单实例</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle><FONT style="FONT-SIZE: 9pt"
color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=359"><FONT
style="FONT-SIZE: 9pt">AVR单片机专栏</FONT></A><FONT
style="FONT-SIZE: 9pt" color=#ff0000>←</FONT></TD>
<TD vAlign=bottom align=middle><FONT style="FONT-SIZE: 9pt"
color=#ff0000>→</FONT><A
href="http://www.mcuzb.com/flmen.asp?menuid=361"><FONT
style="FONT-SIZE: 9pt">电子电路设计</FONT></A><FONT
style="FONT-SIZE: 9pt"
color=#ff0000>←</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE id=table3 cellSpacing=0 cellPadding=0 width=766 border=0>
<TBODY>
<TR>
<TD background=单片机坐标8255扫描键盘、显示实验.files/images_7-1.jpg height=21>
<MARQUEE
scrollDelay=150><!--显示栏目的公告--></MARQUEE></TD></TR></TBODY></TABLE><!--以上是头部, 下面开始是文章内容-->
<TABLE id=AutoNumber6 style="BORDER-COLLAPSE: collapse"
borderColor=#c0c0c0 cellSpacing=0 cellPadding=0 width=766 bgColor=#f9f9f9
border=1>
<TBODY>
<TR>
<TD vAlign=top borderColor=#c0c0c0 align=middle>
<TABLE cellSpacing=0 cellPadding=0 width=748 border=0>
<TBODY>
<TR>
<TD>当前栏目:<A
href="http://www.mcuzb.com/FLMEN.ASP?MENULB=069哈工大实验&MENUJB=2">哈工大实验</A>></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD></TD>
<TD align=right><FONT color=#888888>2004年12月8日 来自:<A
href="单片机坐标8255扫描键盘、显示实验.files/mcuzb.htm"
target=_blank>单片机坐标</A> 作者:鞠春阳 [<A
href="http://www.mcuzb.com/xxlr.asp?menulb=069哈工大实验&menujb=2">返回</A>]
</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
cellSpacing=0 cellPadding=0 width=748 border=0>
<TBODY>
<TR>
<TD width=247></TD>
<TD
style="BORDER-TOP: 0px solid; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
width=766></TD></TR></TBODY></TABLE>
<TABLE height=400 cellSpacing=0 cellPadding=0 width="98%"
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD vAlign=top background=单片机坐标8255扫描键盘、显示实验.files/mcuzb.htm>
<TABLE height=24 cellSpacing=0 cellPadding=0 width="100%"
background="">
<TBODY>
<TR>
<TD align=middle><FONT style="FONT-SIZE: 11pt"
color=#000000>8255扫描键盘、显示实验</FONT></TD></TR></TBODY></TABLE><BR><FONT
face=黑体> </FONT><A name=一.实验要求>一<FONT lang=ZH-CN
face=System,黑体>.</FONT><FONT lang=ZH-CN
face=黑体>实验要求</A></FONT>
<P><FONT
face=宋体>利用8255可编程并行口做一个扫描键盘实验,把按键输入的键码,显示在由8279控制的七段数码管上。8255PA口做键盘输入线,PB口作扫描线。<BR><BR></FONT><A
name=二.实验目的><FONT lang=ZH-CN face=黑体>二</FONT><FONT lang=ZH-CN
face=System,黑体>.</FONT><FONT lang=ZH-CN
face=黑体>实验目的</FONT></A><FONT
face=宋体><BR><BR>1.掌握8255编程方法。<BR><BR>2.掌握扫描键盘和显示的编程方法。<BR><BR></FONT><A
name=三.实验电路及连线><FONT lang=ZH-CN face=黑体>三</FONT><FONT
lang=ZH-CN face=System,黑体>.</FONT><FONT lang=ZH-CN
face=黑体>实验电路及连线</FONT></A><FONT face=宋体><BR><IMG
src="单片机坐标8255扫描键盘、显示实验.files/200412868291999.jpg"></FONT></P>
<P> </P>
<P><A name=四.实验说明><FONT lang=ZH-CN face=黑体>四</FONT><FONT
lang=ZH-CN face=System,黑体>.</FONT><FONT lang=ZH-CN
face=黑体>实验说明</FONT></A><FONT
face=宋体><BR><BR>在PA口与PB口组成的64点阵列上,把按键接在不同的点上,将得到不同的键码,本实验采用8×2的阵列,共可按16个键。显示部分由8279控制,由7407驱动8位数码管显示。<BR><BR></FONT><A
name=五.实验程序框图><FONT lang=ZH-CN face=黑体>五</FONT><FONT
lang=ZH-CN face=System,黑体>.</FONT><FONT lang=ZH-CN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -