版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、目 录一实习目的- 3 -二、实习内容及要求- 3 -三、方案和工作原理说明- 3 -四、程序流程图- 5 -五、程序源代码及注释- 6 -六、电路的连接- 39 -七、调试中出现的问题、原因及排除方法- 39 -一实习目的 本课程的课程设计是自动化专业学生学习完微机原理及应用课程后,进行的一次以汇编语言为主,硬件设计为辅的综合训练。本课程设计的目的在于加深对微机原理基本知识的理解,掌握汇编语言程序设计的基本方法;掌握运用微机原理开发系统的基本方法。二实习内容及要求1实习内容 简易电子琴原理:(1) 蜂鸣器输入不同频率的方波,会发出不同的声音;(2) 通过按键,由单片机控制产生不同频率的方波,
2、从而发出不同的声音。(3) 通过8255的PA口,使G6区的17号键由低到高发出1-7的音阶。2设计要求 从课程设计的目的出发,通过设计工作的各个环节,达到以下要求:1) 掌握汇编语言程序设计的基本方法。2) 进一步理解各种接口电路的应用。例如8255并行接口。3) 掌握利用PC机扬声器发出不同频率声音的方法。4) 理解12864模块的应用。(此为创新添加部分)三、方案和工作原理说明1方案基于PC计算机的时钟晶振为1.1931816MHz,利用电脑里面的蜂鸣器发出声音。各音阶标称频率值:/*-*/音符:1234567 (低音)对应频率(Hz):1250135114281562166617851
3、923(中音)对应频率(Hz):2500270328573125333335713846 (高音)对应频率(Hz):5000540657146250666671427692/*-*/2工作原理8255可编程外围接口芯片共有3个数据端口,在本程序中采用PC.7输出特定频率的音调到蜂鸣器,此时蜂鸣器即可以发出指定的1,2,3,4,5,6,7。通过延时达到计算拍数,此时即可产生一首音乐。本程序将8255PA口与独立按键相连,通过键盘扫描判断是哪一个按下即执行相应的程序。12864分左右半屏,左半屏与右半屏工作方式相同。在写左半屏时,分字节写和字写,在读写数据时,需要指定位置,当然在最开始时,需要初始
4、化。此时即可在液晶屏上显示所需的汉字与符号。3 . 原理图(1).电子琴(2).12864液晶显示模块四、程序流程图1、程序流程图开始 有无按键否哪个键 是 K1按下K2K3K4K5 开机画面两只老虎卖报歌小星星调试界面开机音乐有无按键否是 K6 K7 K8选择界面屏保界面关机画面结束五、程序源代码及注释.MODELTINYC8255EQU0F003HPA8255EQU0F000HPC8255EQU0F002HPB8255EQU0F001HWR_COM_AD_LEQU0F004H;写左半屏指令地址WR_COM_AD_REQU0F000H;写右半屏指令地址WR_DATA_AD_LEQU0F006
5、H;写左半屏数据地址WR_DATA_AD_REQU0F002H;写右半屏数据地址RD_BUSY_ADEQU0F001H;查忙地址RD_DATA_ADEQU0F003H;读数据地址XEQU0B8H;起始显示行基址YEQU040H;起始显示列基址FirstLineEQU0C0H;起始显示行.STACK300.DATAMusic1DWM5,M5,M6,M5,M1,M7,M5,M5,M6,M5,M2,M1,M5,M5 DWM5,M3,M1,M7,M6Music2DWM1,M2,M3,M1,M1,M2,M3,M1,M3,M4,M5,M3,M4,M5 DWM5,M6,M5,M4,M3,M1,M5,M6,M
6、5,M4,M3,M1,M1,M5,M1,M1,M5,M1Music3DWM5,M5,M5,M5,M5,M5,M3,M5,M6,M5,M3,M2,M3,M5Music4DWM1,M1,M5,M5,M6,M6,M5,M4,M4,M3,M3,M2,M2,M1Music5DWM1,M1,M1,M5,M3,M3,M3,M1,M1,M2,M5,M5,M4,M3,M2Music6DWM5,M1,M6,M1,M5,M3,M5,M2,M3,M5Music7DWM3,M3,M3,M3,M3,M3,M3,M5,M1,M2,M3;- 文字: 微 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line
7、1_1 DB 010H,088H,0F7H,022H,05CH,050H,05FH,050H,05CH,020H,0F8H,017H,012H,0F0H,010H,000H DB 001H,000H,0FFH,040H,020H,01FH,001H,001H,0BFH,050H,021H,016H,008H,0F7H,040H,000H;- 文字: 机 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_2 DB 008H,008H,0C8H,0FFH,048H,088H,008H,000H,0FEH,002H,002H,002H,0FEH,000H,000H,000H
8、 DB 004H,003H,000H,0FFH,000H,041H,030H,00CH,003H,000H,000H,000H,03FH,040H,078H,000H;- 文字: 原 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_3 DB 000H,000H,0FEH,002H,002H,0F2H,052H,05EH,056H,052H,052H,0F2H,002H,002H,000H,000H DB 0C0H,030H,00FH,040H,020H,01BH,052H,082H,07EH,002H,00AH,013H,070H,020H,000H,000H;-
9、文字: 理 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_4 DB 044H,044H,0FCH,044H,044H,000H,0FEH,092H,092H,0FEH,092H,092H,092H,0FEH,000H,000H DB 010H,010H,00FH,008H,048H,040H,045H,044H,044H,07FH,044H,044H,044H,045H,040H,000H;- 文字: 课 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_5 DB 020H,021H,0EEH,004H,000H,000H,000H,07
10、EH,04AH,04AH,0FEH,04AH,04AH,07EH,000H,000H DB 000H,000H,03FH,010H,008H,021H,011H,009H,005H,003H,0FFH,005H,009H,031H,011H,000H;- 文字: 程 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_6DB 010H,012H,0D2H,0FEH,091H,011H,080H,0BFH,0A1H,0A1H,0A1H,0A1H,0BFH,080H,000H,000H DB 004H,003H,000H,0FFH,000H,041H,044H,044H,0
11、44H,07FH,044H,044H,044H,044H,040H,000H;- 文字: 设 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_7DB 040H,041H,0CEH,004H,000H,080H,040H,0BEH,082H,082H,082H,0BEH,0C0H,040H,040H,000H DB 000H,000H,07FH,020H,090H,080H,040H,043H,02CH,010H,010H,02CH,043H,0C0H,040H,000H;- 文字: 计 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line1_8
12、DB 020H,021H,02EH,0E4H,000H,000H,020H,020H,020H,020H,0FFH,020H,020H,020H,020H,000H DB 000H,000H,000H,07FH,020H,010H,008H,000H,000H,000H,0FFH,000H,000H,000H,000H,000H;- 文字: 简 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line2_1DB 010H,008H,0C7H,012H,026H,08AH,082H,0AAH,0A4H,0A3H,0A2H,026H,02AH,0E2H,002H,000H DB 0
13、00H,000H,0FFH,000H,000H,01FH,012H,012H,012H,012H,01FH,040H,080H,07FH,000H,000H;- 文字: 易 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line2_2DB000H,000H,000H,000H,0BEH,0EAH,0AAH,0AAH,0AAH,0AAH,0AAH,0BEH,080H,080H,000H,000H DB 000H,052H,052H,049H,028H,024H,012H,011H,008H,004H,003H,040H,080H,07FH,000H,000H;- 文字: 电 -
14、;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line2_3 DB 000H,000H,0F8H,048H,048H,048H,048H,0FFH,048H,048H,048H,048H,0F8H,000H,000H,000H DB 000H,000H,00FH,004H,004H,004H,004H,03FH,044H,044H,044H,044H,04FH,040H,070H,000H;- 文字: 子 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line2_4 DB 000H,000H,002H,002H,002H,002H,002H,0E2H,012H
15、,00AH,006H,002H,000H,080H,000H,000H DB 001H,001H,001H,001H,001H,041H,081H,07FH,001H,001H,001H,001H,001H,001H,001H,000H;- 文字: 琴 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line2_5DB000H,022H,02AH,02AH,03EH,02AH,0AAH,040H,0A2H,02AH,02AH,03EH,02AH,02AH,022H,000H DB 004H,004H,002H,002H,009H,009H,008H,00AH,04CH,029H
16、,019H,00AH,002H,006H,002H,000H;- 文字: 导 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line3_1DB000H,000H,000H,03EH,04AH,04AH,04AH,04AH,04AH,04AH,0CAH,04EH,040H,070H,000H,000H DB 002H,002H,002H,002H,006H,03AH,012H,002H,042H,082H,07FH,002H,002H,002H,002H,000H;- 文字: 师 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line3_2 DB 000H,0
17、FCH,000H,000H,0FFH,000H,0F2H,012H,012H,012H,0FEH,012H,012H,012H,0F2H,000H DB 040H,027H,010H,00EH,001H,000H,00FH,000H,000H,000H,0FFH,000H,004H,008H,007H,000H;- 文字: XX -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line3_3 DB 000H,001H,001H,0FDH,055H,055H,057H,055H,055H,055H,055H,0FDH,001H,001H,001H,000H DB 000H,080
18、H,0A0H,091H,04FH,055H,055H,025H,025H,055H,04DH,045H,080H,080H,080H,000H;- 文字: XX -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line3_4DB020H,0F8H,027H,0E4H,034H,0ECH,000H,07EH,04AH,04AH,04AH,0CAH,04AH,07EH,000H,000H DB 040H,04FH,049H,02FH,029H,02FH,000H,07FH,022H,012H,000H,03FH,044H,042H,072H,000H;- 文字: 学 -;- 宋体1
19、2; 此字体下对应的点阵为:宽x高=16x16 -Line4_1 DB 040H,030H,010H,012H,05CH,054H,050H,051H,05EH,0D4H,050H,018H,057H,032H,010H,000H DB 000H,002H,002H,002H,002H,002H,042H,082H,07FH,002H,002H,002H,002H,002H,002H,000H;- 文字: 生 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line4_2 DB 000H,080H,060H,01EH,010H,010H,010H,010H,0FFH,012H,
20、010H,010H,098H,010H,000H,000H DB 001H,040H,040H,041H,041H,041H,041H,041H,07FH,041H,041H,041H,041H,061H,040H,000H;- 文字: XX -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line4_3DB 008H,008H,0C8H,0FFH,048H,088H,00AH,042H,062H,0D2H,04AH,0C6H,042H,0C0H,000H,000H DB 004H,003H,000H,0FFH,000H,001H,008H,024H,013H,008H,006
21、H,041H,080H,07FH,000H,000H;- 文字: XX -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line4_4 DB 000H,000H,0FCH,004H,004H,004H,004H,005H,006H,004H,004H,004H,004H,004H,004H,000H DB 040H,030H,00FH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H;- 文字: XX -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -Line4_5DB020H,020
22、H,02AH,02AH,0AAH,06AH,03EH,02BH,0AAH,0AAH,0EAH,0AAH,02AH,022H,020H,000H DB 082H,082H,045H,045H,025H,015H,00DH,0FFH,004H,00CH,014H,024H,065H,0C2H,042H,000H;- 文字: 1 -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line1_1_1 DB 000H,010H,010H,0F8H,000H,000H,000H,000H,000H,020H,020H,03FH,020H,020H,000H,000H;- 文字: . -;- 宋
23、体12; 此字体下对应的点阵为:宽x高=8x16 -line1_2_1 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: 开 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_3_1DB 040H,042H,042H,042H,042H,0FEH,042H,042H,042H,042H,0FEH,042H,042H,042H,042H,000H DB 000H,040H,020H,010H,00CH,003H,000H,000H,000H,0
24、00H,07FH,000H,000H,000H,000H,000H;- 文字: 机 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_4_1DB 008H,008H,0C8H,0FFH,048H,088H,008H,000H,0FEH,002H,002H,002H,0FEH,000H,000H,000H DB 004H,003H,000H,0FFH,000H,041H,030H,00CH,003H,000H,000H,000H,03FH,040H,078H,000H;- 文字: 音 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_5_1DB
25、 040H,040H,044H,044H,04CH,074H,044H,045H,046H,064H,05CH,044H,044H,044H,040H,000H DB 000H,000H,000H,0FFH,049H,049H,049H,049H,049H,049H,049H,0FFH,000H,000H,000H,000H;- 文字: 乐 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_6_1DB 000H,000H,040H,0FCH,044H,044H,044H,046H,0FAH,042H,043H,043H,042H,040H,000H,000H DB 0
26、00H,020H,018H,00CH,007H,012H,020H,040H,03FH,000H,000H,002H,00CH,038H,010H,000H;- 文字: 2 -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line2_1_1 DB 000H,070H,008H,008H,008H,088H,070H,000H,000H,030H,028H,024H,022H,021H,030H,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line2_2_1 DB 000H,000H,000H,000H,000H,000H,000H,00
27、0H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: 两 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line2_3_1DB 002H,0F2H,012H,012H,012H,0FEH,092H,012H,012H,0FEH,012H,012H,012H,0FBH,012H,000H DB 000H,07FH,008H,004H,003H,000H,010H,009H,006H,001H,001H,026H,040H,03FH,000H,000H;- 文字: 只 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -li
28、ne2_4_1DB 000H,000H,000H,0FEH,082H,082H,082H,082H,082H,082H,082H,082H,0FEH,000H,000H,000H DB 000H,040H,020H,031H,018H,00EH,004H,000H,000H,000H,002H,004H,019H,070H,020H,000H;- 文字: 老 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line2_5_1DB 040H,044H,044H,044H,044H,044H,07FH,0C4H,0C4H,044H,064H,054H,04EH,044H,040H,
29、000H DB 008H,008H,004H,004H,002H,03EH,049H,048H,044H,044H,042H,042H,040H,070H,000H,000H;- 文字: 虎 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line2_6_1DB000H,000H,0F8H,008H,048H,048H,048H,0FFH,0AAH,0AAH,0AAH,08AH,0D8H,008H,000H,000H DB 080H,060H,01FH,080H,040H,03EH,002H,002H,002H,03EH,040H,040H,040H,078H,020H,000
30、H;- 文字: 3 -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line3_1_1 DB 000H,030H,008H,088H,088H,048H,030H,000H,000H,018H,020H,020H,020H,011H,00EH,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line3_2_1 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: 卖 -;- 宋体12; 此字体下对应的点阵为:宽x高=1
31、6x16 -line3_3_1DB 000H,020H,024H,024H,024H,064H,0A4H,024H,0FFH,024H,024H,0A4H,066H,064H,020H,000H DB 000H,004H,084H,085H,046H,024H,015H,00EH,005H,00CH,034H,0E4H,044H,004H,004H,000H;- 文字: 报 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line3_4_1DB 008H,008H,088H,0FFH,048H,028H,000H,0FFH,0C1H,041H,041H,049H,051H,0C
32、FH,000H,000H DB 001H,041H,080H,07FH,000H,000H,000H,0FFH,040H,023H,014H,01CH,033H,060H,020H,000H;- 文字: 歌 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line3_5_1DB080H,0BAH,0AAH,0AAH,0BAH,082H,0FEH,0A2H,090H,00CH,0EBH,008H,028H,018H,008H,000H DB 000H,01EH,012H,012H,05EH,080H,07FH,040H,020H,018H,007H,008H,030H,0E0H,
33、040H,000H;- 文字: 4 -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line4_1_1DB 000H,000H,0C0H,020H,010H,0F8H,000H,000H,000H,007H,004H,024H,024H,03FH,024H,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line4_2_1 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: 小 -;- 宋体12; 此字体下对应的点阵
34、为:宽x高=16x16 -line4_3_1DB 000H,000H,000H,0C0H,070H,020H,000H,0FFH,000H,010H,020H,0C0H,080H,000H,000H,000H DB 004H,002H,001H,000H,000H,040H,080H,07FH,000H,000H,000H,000H,001H,007H,002H,000H;- 文字: 星 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line4_4_1DB000H,000H,000H,0BEH,02AH,02AH,02AH,0EAH,02AH,02AH,02AH,02AH,0
35、3EH,000H,000H,000H DB 000H,048H,046H,041H,049H,049H,049H,07FH,049H,049H,049H,049H,049H,041H,040H,000H;- 文字: 星 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line4_5_1DB000H,000H,000H,0BEH,02AH,02AH,02AH,0EAH,02AH,02AH,02AH,02AH,03EH,000H,000H,000H DB 000H,048H,046H,041H,049H,049H,049H,07FH,049H,049H,049H,049H,049H
36、,041H,040H,000H;- 文字: 开 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_1_2DB 040H,042H,042H,042H,042H,0FEH,042H,042H,042H,042H,0FEH,042H,042H,042H,042H,000H DB 000H,040H,020H,010H,00CH,003H,000H,000H,000H,000H,07FH,000H,000H,000H,000H,000H;- 文字: 机 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_2_2DB 008H,008H,0C8H,0F
37、FH,048H,088H,008H,000H,0FEH,002H,002H,002H,0FEH,000H,000H,000H DB 004H,003H,000H,0FFH,000H,041H,030H,00CH,003H,000H,000H,000H,03FH,040H,078H,000H;- 文字: 中 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -line1_3_2DB 000H,000H,0FCH,008H,008H,008H,008H,0FFH,008H,008H,008H,008H,0FCH,008H,000H,000H DB 000H,000H,007H,002H
38、,002H,002H,002H,0FFH,002H,002H,002H,002H,007H,000H,000H,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line1_4_2 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line1_5_2 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,
39、000H,000H,000H,000H,000H;- 文字: . -;- 宋体12; 此字体下对应的点阵为:宽x高=8x16 -line1_6_2 DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,030H,030H,000H,000H,000H,000H,000H;- 文字: 关 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -LINE1_1_3DB 000H,010H,010H,010H,011H,01EH,014H,0F0H,010H,018H,017H,012H,018H,010H,000H,000H DB 001H,081
40、H,041H,021H,011H,009H,005H,003H,005H,009H,031H,061H,0C1H,041H,001H,000H;- 文字: 机 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -LINE1_2_3DB008H,008H,0C8H,0FFH,048H,088H,008H,000H,0FEH,002H,002H,002H,0FEH,000H,000H,000H DB 004H,003H,000H,0FFH,000H,041H,030H,00CH,003H,000H,000H,000H,03FH,040H,078H,000H;- 文字: , -;- 宋体
41、12; 此字体下对应的点阵为:宽x高=16x16 -LINE1_3_3DB 000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H DB 080H,0B0H,070H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H;- 文字: 再 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -LINE1_4_3DB 000H,001H,001H,0F9H,049H,049H,049H,0FFH,049H,04
42、9H,049H,0F9H,001H,001H,000H,000H DB 004H,004H,004H,0FFH,004H,004H,004H,007H,004H,044H,084H,07FH,004H,004H,004H,000H;- 文字: 见 -;- 宋体12; 此字体下对应的点阵为:宽x高=16x16 -LINE1_5_3DB 000H,000H,000H,0FFH,001H,001H,001H,0F9H,001H,001H,001H,0FFH,000H,000H,000H,000H DB 040H,040H,020H,021H,010H,00CH,003H,000H,03FH,040H
43、,040H,041H,040H,078H,020H,000H.CODESTART:CALLINIT8255 ;8255初始化 CALLDemo1 ;播放一段音乐 CALLCLOSE8255 MOVAX,DATA MOVDS,AX NOPSTART30:CALL LCD_INIT ;液晶初始化 CALL DelayTime CALL DISLINE1_2 CAL LDELAYTIME CALL CLOSE8255START1:CALLINIT8255 MOVDX,PA8255 ;按键查询 IN AL,DX ;读键值 CMP AL,0FFH JZ START1 ;无键 XOR AL,0FFH ;有
44、键 TESTAL,1 JZ START2 CALLDemo1 ;1号键,调1号键输出 CALLCLOSE8255 JMP START1START2:TEST AL,2 JZ START3 CALL Demo2 ;2号键 CALL CLOSE8255 JMP START1START3:TESTAL,4 JZ START4 CALLDemo3 ;3号键 CALLCLOSE8255 JMPSTART1START4:TESTAL,8 JZ START5 CALLDemo4 ;4号键 CALLCLOSE8255 MOVDI,08H JMP START1START5:TESTAL,10H JZ START
45、6 CALLCLOSE8255 CALLLCD_INIT ;液晶初始化 CALLDelayTime CALLDisLine1 ;第1行显示”微机原理课程设计” CALLDelayTime CALLDisLine2 ;第2行显示”简易电子琴” CALLDelayTime CALLDisLine3 ;第3行显示”导师夏鲲” CALLDelayTime CALLDisLine4 ;第4行显示“ 学生杨广秦” CALLDelayTime JMP START1START7:TESTAL,40H JZ START1 CALLCLOSE8255 CALLLCD_INIT ;液晶初始化 CALLDelayTi
46、me CALLDISLINE1_3 CALLDELAYTIME ;JMP START30 JMP START1START8:TESTAL,80HJZSTART1CALLCLOSE8255CALLDISLINE1_4JMPSTART1START6:TESTAL,20H JZ START7 CALLLCD_INIT ;液晶初始化 CALLCLOSE8255 CALLDelayTime CALLDisLine1_1 CALLDelayTime CALLDisLine2_1 CALLDelayTime CALLDisLine3_1 CALLDelayTime CALLDisLine4_1 CALLDe
47、layTime JMPSTART1 Demo1PROCNEARLEA BX,Music1CALLBX ;播放该音调声音CALLT1SCALLT2SINC BXINC BXCALLBXCALL T1SCALL T2SINC BXINC BXCALLBXCALLT2SINC BXINC BXCALLBXCALLT2SINC BXINC BXCALL BXCALLT2SINC BXINC BXCALLBXCALLT2SCALLT2SINC BXINC BXCALLBXCALLT1SINC BXINC BXCALLBXCALLT1SINC BXINC BXCALLBXCALLT2SINC BXINC BXCA
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 暖场活动2024年度摄影摄像服务合同
- 二零二四年度金融咨询服务合同2篇
- 工程设计咨询合同范本2篇
- 门窗合作简单版合同范本
- 2024版工程项目合作开发合同2篇
- 人教版九年级化学第四单元复习课件
- 人教版九年级化学第十一单元酸、碱、盐专题复习(一)酸、碱、盐化学性质归纳分层作业课件
- 建筑工程文明施工协议书
- 2024年度化工厂车间改造与安全设备采购合同2篇
- 收费站新员工培训
- 《西汉海昏侯大墓》课件
- 生产计划试题B及答案
- 儿科对桡动脉采血失败原因分析品管圈鱼骨图柏拉图
- 初中校长培训总结
- 管理能力评估表(10项能力,等级区分)
- 吊装施工记录
- 事故车辆查勘与定损习题答案-交通事故责任认定
- 科学的转折四部曲:薛定谔的猫巴甫洛夫的狗斐波那契的兔子宇航
- DTⅡ型固定式带式输送机(托辊)
- 圆形抗滑桩在滑坡治理中的应用研究
- 唐诗中国文化应用文专题高考英语作文复习专项
评论
0/150
提交评论