📄 uart.lst
字号:
C51 COMPILER V7.50 UART 03/20/2007 17:06:06 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN .\uart.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\NTP\bottom\uart.c BROWSE INCDIR(D:\tiger\tiger_project(Ver0.4)\tiger_
-project\var\) DEBUG OBJECTEXTEND PRINT(.\uart.lst) OBJECT(.\uart.obj)
line level source
1 #include "define.h"
*** WARNING C318 IN LINE 1 OF ..\..\NTP\bottom\uart.c: can't open file 'define.h'
2 #include "ExZebraReg.h"
*** WARNING C318 IN LINE 2 OF ..\..\NTP\bottom\uart.c: can't open file 'ExZebraReg.h'
3 //#include "uart.h"
4
5 extern unsigned char Bottom_State;
6 extern unsigned char xdata Udata[256];
7 extern unsigned char Utime;
8 extern unsigned char Ulen;
9 extern unsigned char xdata * Upoint;
10 extern unsigned long ECount;
11
12 void Interrupt_Uart0 (void) interrupt 4 using 2
13 {
14 1 // P2OUT ^= BIT3;
15 1 if(SCON & BIT0)
*** ERROR C202 IN LINE 15 OF ..\..\NTP\BOTTOM\UART.C: 'SCON': undefined identifier
16 1 {
17 2 SCON &= ~BIT0;
*** ERROR C202 IN LINE 17 OF ..\..\NTP\BOTTOM\UART.C: 'SCON': undefined identifier
18 2 }
19 1 if(SCON & BIT1)
*** ERROR C202 IN LINE 19 OF ..\..\NTP\BOTTOM\UART.C: 'SCON': undefined identifier
20 1 {
21 2 SCON &= ~0x02;
*** ERROR C202 IN LINE 21 OF ..\..\NTP\BOTTOM\UART.C: 'SCON': undefined identifier
22 2 SBUF = 0xaa;
*** ERROR C202 IN LINE 22 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF': undefined identifier
23 2 }
24 1 }
25
26 void Interrupt_Uart1 (void) interrupt 7 using 2
27 {
28 1 if(SCON1 & 0x01)//数据接受
*** ERROR C202 IN LINE 28 OF ..\..\NTP\BOTTOM\UART.C: 'SCON1': undefined identifier
29 1 {
30 2 SCON1 &= ~0x01;
*** ERROR C202 IN LINE 30 OF ..\..\NTP\BOTTOM\UART.C: 'SCON1': undefined identifier
31 2 // if(Ulen > 256)
32 2 // return;
33 2 // Utime = 60;
34 2 // Ulen ++;
35 2 // ACC = SBUF1;
36 2 // if(P)
37 2 // *(Upoint ++) = SBUF1;
38 2 // else
39 2 // return;
40 2 }
41 1 if(SCON1 & 0x02)//数据发送
*** ERROR C202 IN LINE 41 OF ..\..\NTP\BOTTOM\UART.C: 'SCON1': undefined identifier
42 1 {
43 2 SCON1 &= ~0x02;
*** ERROR C202 IN LINE 43 OF ..\..\NTP\BOTTOM\UART.C: 'SCON1': undefined identifier
C51 COMPILER V7.50 UART 03/20/2007 17:06:06 PAGE 2
44 2 SBUF1 = 0x11;
*** ERROR C202 IN LINE 44 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF1': undefined identifier
45 2 /* Ulen--;
46 2 while(Ulen > 0)
47 2 {
48 2 ACC = *Upoint;
49 2 if(P)
50 2 SCON1 |= BIT3;
51 2 else
52 2 SCON1 &= ~BIT3;
53 2 SBUF1 = *(Upoint ++);
54 2 return;
55 2 }
56 2 P3OUT &= ~BIT5;
57 2 Bottom_State |= BIT1;*/
58 2 }
59 1 }
60
61 void Interrupt_Uart2 (void) interrupt 10 using 2
62 {
63 1 EXIF &= ~BIT6;
*** ERROR C202 IN LINE 63 OF ..\..\NTP\BOTTOM\UART.C: 'EXIF': undefined identifier
64 1 if(INT4IFG & BIT0)
*** ERROR C202 IN LINE 64 OF ..\..\NTP\BOTTOM\UART.C: 'INT4IFG': undefined identifier
65 1 {
66 2 INT4IFG &= ~BIT0;//
*** ERROR C202 IN LINE 66 OF ..\..\NTP\BOTTOM\UART.C: 'INT4IFG': undefined identifier
67 2 SCON2 &= ~BIT0;
*** ERROR C202 IN LINE 67 OF ..\..\NTP\BOTTOM\UART.C: 'SCON2': undefined identifier
68 2 if(SBUF2 != 0x5a)
*** ERROR C202 IN LINE 68 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF2': undefined identifier
69 2 {
70 3 ECount++;
71 3 }
72 2 }
73 1 if(INT4IFG & BIT1)
*** ERROR C202 IN LINE 73 OF ..\..\NTP\BOTTOM\UART.C: 'INT4IFG': undefined identifier
74 1 {
75 2 INT4IFG &= ~BIT1;//
*** ERROR C202 IN LINE 75 OF ..\..\NTP\BOTTOM\UART.C: 'INT4IFG': undefined identifier
76 2 SCON2 &= ~BIT1;
*** ERROR C202 IN LINE 76 OF ..\..\NTP\BOTTOM\UART.C: 'SCON2': undefined identifier
77 2 SBUF2 = 0x5a;
*** ERROR C202 IN LINE 77 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF2': undefined identifier
78 2 }
79 1 }
80
81 void Interrupt_Uart35 (void) interrupt 11 using 2
82 {
83 1 EXIF &= ~BIT7;
*** ERROR C202 IN LINE 83 OF ..\..\NTP\BOTTOM\UART.C: 'EXIF': undefined identifier
84 1 if(INT5IFG & BIT0)
*** ERROR C202 IN LINE 84 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
85 1 {
86 2 INT5IFG &= ~BIT0;//
*** ERROR C202 IN LINE 86 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
87 2 SCON3 &= ~BIT0;
*** ERROR C202 IN LINE 87 OF ..\..\NTP\BOTTOM\UART.C: 'SCON3': undefined identifier
88 2 }
89 1 if(INT5IFG & BIT1)
*** ERROR C202 IN LINE 89 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
90 1 {
C51 COMPILER V7.50 UART 03/20/2007 17:06:06 PAGE 3
91 2 INT5IFG &= ~BIT1;//
*** ERROR C202 IN LINE 91 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
92 2 SCON3 &= ~BIT1;
*** ERROR C202 IN LINE 92 OF ..\..\NTP\BOTTOM\UART.C: 'SCON3': undefined identifier
93 2 SBUF3 = 0x33;
*** ERROR C202 IN LINE 93 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF3': undefined identifier
94 2 }
95 1 if(INT5IFG & BIT2)
*** ERROR C202 IN LINE 95 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
96 1 {
97 2 INT5IFG &= ~BIT2;//
*** ERROR C202 IN LINE 97 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
98 2 SCON5 &= ~BIT0;
*** ERROR C202 IN LINE 98 OF ..\..\NTP\BOTTOM\UART.C: 'SCON5': undefined identifier
99 2 }
100 1 if(INT5IFG & BIT3)
*** ERROR C202 IN LINE 100 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
101 1 {
102 2 INT5IFG &= ~BIT3;//
*** ERROR C202 IN LINE 102 OF ..\..\NTP\BOTTOM\UART.C: 'INT5IFG': undefined identifier
103 2 SCON5 &= ~BIT1;
*** ERROR C202 IN LINE 103 OF ..\..\NTP\BOTTOM\UART.C: 'SCON5': undefined identifier
104 2 SBUF5 = 0x55;
*** ERROR C202 IN LINE 104 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF5': undefined identifier
105 2 }
106 1 }
107
108 void Int_Uart4(void) //interrupt function of uart4
109 {
110 1 // P3OUT ^= BIT4;
111 1 if(WDTIFG & 0x01)//数据接受
*** ERROR C202 IN LINE 111 OF ..\..\NTP\BOTTOM\UART.C: 'WDTIFG': undefined identifier
112 1 {
113 2 WDTIFG &= ~0x01;
*** ERROR C202 IN LINE 113 OF ..\..\NTP\BOTTOM\UART.C: 'WDTIFG': undefined identifier
114 2 SCON4 &= ~0x01;
*** ERROR C202 IN LINE 114 OF ..\..\NTP\BOTTOM\UART.C: 'SCON4': undefined identifier
115 2 // if(Ulen > 256)
116 2 // return;
117 2 // Utime = 6;
118 2 // Ulen ++;
119 2 // *(Upoint ++) = SBUF4;
120 2 }
121 1 if(WDTIFG & 0x02)//数据发送
*** ERROR C202 IN LINE 121 OF ..\..\NTP\BOTTOM\UART.C: 'WDTIFG': undefined identifier
122 1 {
123 2 WDTIFG &= ~0x02;
*** ERROR C202 IN LINE 123 OF ..\..\NTP\BOTTOM\UART.C: 'WDTIFG': undefined identifier
124 2 SCON4 &= ~0x02;
*** ERROR C202 IN LINE 124 OF ..\..\NTP\BOTTOM\UART.C: 'SCON4': undefined identifier
125 2 SBUF4 = 0x44;
*** ERROR C202 IN LINE 125 OF ..\..\NTP\BOTTOM\UART.C: 'SBUF4': undefined identifier
126 2 // for(; Ulen >= 0; Ulen--)
127 2 // {
128 2 // SBUF4 = *(Upoint ++);
129 2 // }
130 2 }
131 1 }
132
133 void Init_Uart0(void) //init uart0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -