?? clock.lst
字號:
C51 COMPILER V7.00 CLOCK 11/29/2008 22:57:59 PAGE 1
C51 COMPILER V7.00, COMPILATION OF MODULE CLOCK
OBJECT MODULE PLACED IN clock.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE clock.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include<reg51.h>
2 #define uchar unsigned char
3 #define uint unsigned int
4 uint miao,fen;
5 uchar code table[]={
6 0x0C0,0x0F9 ,0x0A4,0x0B0,0x99,0x92,0x82,0x0F8,0x80,0x90,0x88,0x83,0x0C6,0x0A1,0x86,0x08E};
7 void delay(uint z);
8 void uniti()
9 {
10 1 TMOD=0X01;
11 1 TH0=(65536-1000)/256;
12 1 TL0=(65536-1000)%256;
13 1 EA=1;
14 1 ET0=1;
15 1 TR0=1;
16 1 };
*** ERROR C141 IN LINE 16 OF CLOCK.C: syntax error near ';'
17 void timer0()void interrupt 1 using 1
*** ERROR C141 IN LINE 17 OF CLOCK.C: syntax error near 'interrupt'
18 {
19 if(miao==59)
*** ERROR C141 IN LINE 19 OF CLOCK.C: syntax error near '==', expected ')'
20 miao=0;
*** ERROR C231 IN LINE 20 OF CLOCK.C: 'miao': redefinition
21 else
*** ERROR C141 IN LINE 21 OF CLOCK.C: syntax error near 'else'
22 miao+=miao;
*** ERROR C129 IN LINE 22 OF CLOCK.C: missing ';' before '+='
23 TH0=(65536-1000)/256;
24 TL0=(65536-1000)%256;
25 }
26 void main()
27 {
28 uniti()
29 uint i;
30 i=0;
31 while(1)
32 {
33 if(miao==16)
34 i=0;
35 P0=table[miao];
36 delay(1000);
37 P1=0xff;
38
39 }
40 }
41
42
43 void delay(uint z)
44 {
45 uint t1,y;
46 for(t1=z;t1>0;t1--)
47 for(y=110;y>0;y--);
48 }
C51 COMPILATION COMPLETE. 0 WARNING(S), 6 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -