?? 1602.lst
字號:
C51 COMPILER V6.12 1602 09/05/2008 15:51:18 PAGE 1
C51 COMPILER V6.12, COMPILATION OF MODULE 1602
OBJECT MODULE PLACED IN .\1602.OBJ
COMPILER INVOKED BY: D:\keil c51\C51\BIN\C51.EXE .\1602.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include<absacc.h>
2 #include <AT89X51.h>
3 #include <intrins.h>
4
5 #define uchar unsigned char
6 #define uint unsigned int
7 uchar code lcd1[]={"close!"};
8 uchar code lcd5[]={"open! "};
9 uchar code lcd6[]={"flash!"};
10 uchar code lcd2[]={"^-^ count: "};
11 uchar code lcd3[]={"0123456789abcdef"};
12 uchar code lcd4[]={"error!"};
13 uchar d=0x00,e=0x00,i,j=0x00;
14 sbit RS=P2^0;
15 sbit RW=P2^1;
16 sbit EN=P2^2;
17 void Delay1ms( int ms)
18 {
19 1 int i;
20 1 while(ms--)
21 1 {
22 2 for(i = 0; i< 250; i++)
23 2 {
24 3 _nop_();
25 3 _nop_();
26 3 _nop_();
27 3 _nop_();
28 3 }
29 2 }
30 1 }
31 bit check()
32 {
33 1 bit busy;
34 1 RS=0;
35 1 RW=1;
36 1 EN=1;
37 1 _nop_();
38 1 _nop_();
39 1 _nop_();
40 1 _nop_();
41 1 EN=0;
42 1 return busy;
43 1 }
44 wzhilin(uchar zhi)
45 {
46 1 while(check());
47 1 RS=0;
48 1 RW=0;
49 1 EN=0;
50 1 _nop_();
51 1 _nop_();
52 1 P0=zhi;
53 1 _nop_();
54 1 _nop_();
55 1 _nop_();
C51 COMPILER V6.12 1602 09/05/2008 15:51:18 PAGE 2
56 1 _nop_();
57 1 EN=1;
58 1 _nop_();
59 1 _nop_();
60 1 _nop_();
61 1 _nop_();
62 1 EN=0;
63 1 }
64 wshuju(uchar shu)
65 {
66 1 while(check());
67 1 RS=1;
68 1 RW=0;
69 1 EN=0;
70 1 _nop_();
71 1 _nop_();
72 1 P0=shu;
73 1 _nop_();
74 1 _nop_();
75 1 _nop_();
76 1 _nop_();
77 1 EN=1;
78 1 _nop_();
79 1 _nop_();
80 1 _nop_();
81 1 _nop_();
82 1 EN=0;
83 1 }
84 chushihua()
85 {
86 1 wzhilin(0x38);
87 1 Delay1ms(1);
88 1 wzhilin(0x0c);
89 1 Delay1ms(1);
90 1 wzhilin(0x06);
91 1 Delay1ms(1);
92 1 wzhilin(0x01);
93 1 Delay1ms(1);
94 1 }
95 /*jishu(uchar k)
96 {
97 wzhilin(0xc0|k);
98 wshuju(lcd3[j]);
99 j++;
100 Delay1ms(100);
101 } */
102 jishu(uchar k)
103 {
104 1 uchar i;
105 1 for(i=0;i<k+1;i++)
106 1 {
107 2 wzhilin(0xc0|i);
108 2 wshuju(lcd3[i]);
109 2 Delay1ms(100);
110 2 }
111 1 }
112
113
114
115
116
117
C51 COMPILER V6.12 1602 09/05/2008 15:51:18 PAGE 3
118
119
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 195 ----
CONSTANT SIZE = 60 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 4 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- 1
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -