📄 snow.lst
字号:
C51 COMPILER V8.05a SNOW 05/21/2008 20:06:10 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE SNOW
OBJECT MODULE PLACED IN snow.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE snow.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include<reg52.h>
2 unsigned char code dispbitcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
3 unsigned char dispbuf[4];
4 unsigned int i;
5 unsigned int j;
6 unsigned char getdata;
7 unsigned int temp;
8 unsigned int temp1;
9 unsigned char count;
10 unsigned char d;
11 sbit ST=P3^0;
12 sbit OE=P3^1;
13 sbit EOC=P3^2;
14 sbit CLK=P3^3;
15 sbit P34=P3^4;
16 sbit P35=P3^5;
17 sbit P36=P3^6;
18 sbit P20=P2^0;
19 sbit P21=P2^1;
20 sbit P22=P2^2;
21 sbit P23=P2^3;
22 sbit P17=P1^7;
23 void TimeInitial();
24 void Delay(unsigned int i);
25
26 void TimeInitial()
27 { TMOD=0x10;
28 1 TH1=(65536-200)/256;
29 1 TL1=(65536-200)%256;
30 1 EA=1;
31 1 ET1=1;
32 1 TR1=1;
33 1 }
34 void Delay(unsigned int i)
35 {
36 1 unsigned int j;
37 1 for(;i>0;i--)
38 1 {
39 2 for(j=0;j<125;j++)
40 2 {;}
41 2 }
42 1 }
43
44 void Display()
45
46 {
47 1 P1=dispbitcode[dispbuf[3]];
48 1 P20=0;
49 1 P21=1;
50 1 P22=1;
51 1 P23=1;
52 1 Delay(10);
53 1 P1=0x00;
54 1 P1=dispbitcode[dispbuf[2]];
55 1 P17=1;
C51 COMPILER V8.05a SNOW 05/21/2008 20:06:10 PAGE 2
56 1 P20=1;
57 1 P21=0;
58 1 P22=1;
59 1 P23=1;
60 1 Delay(10);
61 1 P1=0x00;
62 1 P1=dispbitcode[dispbuf[1]];
63 1 P20=1;
64 1 P21=1;
65 1 P22=0;
66 1 P23=1;
67 1 Delay(10);
68 1 P1=0x00;
69 1 P1=dispbitcode[dispbuf[0]];
70 1 P20=1;
71 1 P21=1;
72 1 P22=1;
73 1 P23=0;
74 1 Delay(10);
75 1 P1=0x00;
76 1 }
77 void main()
78 {
79 1 TimeInitial();
80 1 while(1)
81 1 {
82 2 ST=0;
83 2 OE=0;
84 2 ST=1;
85 2 ST=0;
86 2 P34=0;
87 2 P35=0;
88 2 P36=0;
89 2 while(EOC==0);
90 2 OE=1;
91 2 getdata=P0;
92 2 OE=0;
93 2 temp=getdata*1.0/255*500;
94 2 dispbuf[0]=temp%10;
95 2 dispbuf[1]=temp/10%10;
96 2 dispbuf[2]=temp/100%10;
97 2 dispbuf[3]=temp/1000;
98 2 Display();
99 2
100 2 }
101 1 }
102
103 void t1(void) interrupt 3 using 0
104 {
105 1 TH1=(65536-200)/256;
106 1 TL1=(65536-200)%256;
107 1 CLK=~CLK;
108 1 }
109
110
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 263 ----
CONSTANT SIZE = 10 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
C51 COMPILER V8.05a SNOW 05/21/2008 20:06:10 PAGE 3
DATA SIZE = 15 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -