📄 main.lst
字号:
C51 COMPILER V7.50 MAIN 11/23/2005 17:17:07 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE main.c BROWSE DEBUG OBJECTEXTEND
line level source
1 /*------------------------------------------
2 lcd12864液晶显示驱动实
3 ----------------------------------------------
4 /CS1----选择IC1,低有效 即 (左)64列
5 /CS2----选择IC2,低有效 即 (右)64列
6 -----------------------------------------------
7 RS: D/I=H,表示DB7~DB0为显示数据
8 D/I=L,表示DB7~DB0为显示指令数据
9 -----------------------------------------------
10 R/W: R/W=H,E=H数据被读到DB7~DB0
11 R/W=L,E信号下降沿,DDRAM数据被写到IR或DR
12 ----------------------------------------------------
13 E: R/W=L,E信号下降沿锁存DB7~DB0
14 R/W=H,E=H DDRAM数据读到DB7~DB0
15 ----------------------------------------------------
16
17 |DB0-----P1.0 | DB4-----P1.4 | CS1-------P3.2 |
18 |DB1-----P1.1 | DB5-----P1.5 | CS2-------P3.3 |
19 |DB2-----P1.2 | DB6-----P1.6 | RS-------P3.4 |
20 |DB3-----P1.3 | DB7-----P1.7 | RW-------P3.5 |
21 |17脚---A正电源 18脚----K地 | E-------P3.6 |
22 |VO-------0V |
23 ---------------------------------------------------*/
24 #include<regx51.h>
25 #include<stdio.h>
26 #include<intrins.h>
27 #include"zimo.h"
28
29 #define CS1 P3_2
30 #define CS2 P3_3
31 #define RS P3_4
32 #define RW P3_5
33 #define E P3_6
34 #define Data P1
35
36
37
38 void main(void)
39 {
40 1 do {
41 2 delay(); //延时子程序//
*** WARNING C206 IN LINE 41 OF MAIN.C: 'delay': missing function-prototype
42 2 lcdinitial(); //初始化程序//
*** WARNING C206 IN LINE 42 OF MAIN.C: 'lcdinitial': missing function-prototype
43 2 clrram(); //清屏子程序//
*** WARNING C206 IN LINE 43 OF MAIN.C: 'clrram': missing function-prototype
44 2 display(6,0,96,arrayadress3);
*** WARNING C206 IN LINE 44 OF MAIN.C: 'display': missing function-prototype
*** ERROR C267 IN LINE 44 OF MAIN.C: 'display': requires ANSI-style prototype
*** ERROR C202 IN LINE 44 OF MAIN.C: 'arrayadress3': undefined identifier
45 2 display(6,1,96,arrayadress3+16);
*** ERROR C202 IN LINE 45 OF MAIN.C: 'arrayadress3': undefined identifier
46 2
47 2 display(5,2,80,arrayadress4);
*** ERROR C202 IN LINE 47 OF MAIN.C: 'arrayadress4': undefined identifier
C51 COMPILER V7.50 MAIN 11/23/2005 17:17:07 PAGE 2
48 2 display(5,3,80,arrayadress4+16);
*** ERROR C202 IN LINE 48 OF MAIN.C: 'arrayadress4': undefined identifier
49 2 delay();
50 2 clrram();
51 2 display(6,0,96,arrayadress1);
*** ERROR C202 IN LINE 51 OF MAIN.C: 'arrayadress1': undefined identifier
52 2 display(6,1,96,arrayadress1+16);
*** ERROR C202 IN LINE 52 OF MAIN.C: 'arrayadress1': undefined identifier
53 2
54 2 display(7,2,114,arrayadress2);
*** ERROR C202 IN LINE 54 OF MAIN.C: 'arrayadress2': undefined identifier
55 2 display(7,3,114,arrayadress2+16);
*** ERROR C202 IN LINE 55 OF MAIN.C: 'arrayadress2': undefined identifier
56 2 delay();
57 2
58 2 }
59 1 while(1);
60 1 }
C51 COMPILATION COMPLETE. 4 WARNING(S), 9 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -