📄 test.lst
字号:
C51 COMPILER V7.00 TEST 09/27/2002 16:12:59 PAGE 1
C51 COMPILER V7.00, COMPILATION OF MODULE TEST
OBJECT MODULE PLACED IN .\Test.obj
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE ..\C51\ISD51\Examples\Generic_8052\Test.c BROWSE DEBUG OBJECTEXTEND PRINT(.
-\Test.lst) OBJECT(.\Test.obj)
stmt level source
1 /*------------------------------------------------------------------------------
2 TEST.C: ISD51 Demo for classic 8051 devices like Philips 89C51RD2/89C66x
3
4 Copyright 2002 Keil Software, Inc.
5 ------------------------------------------------------------------------------*/
6
7 #include <REG51F.H>
*** ERROR C318 IN LINE 7 OF ..\C51\ISD51\Examples\Generic_8052\Test.c: can't open file 'REG51F.H'
8 #include <intrins.h>
9 #include <absacc.h>
10 #include "ISD51.h"
11
12 unsigned char j;
13
14 #define Port_D XBYTE [0xFFA0] // bit 0: switch S1
15 // bit 1: switch S2
16 // bit 4: LED D1
17 // bit 5: LED D2
18
19 unsigned char code testarray[] = "Some Text";
20
21
22 #if 0 // uncomment this function to verify serial communication
/*
* Test Function: verify serial communication with HyperTerminal
*/
void TestSerial (void) {
char c = 'A';
TI = 1;
while (1) {
if (RI) {
c = SBUF;
RI = 0;
}
while (!TI);
TI = 0;
SBUF = c;
}
}
#endif
43
44 void delay(void) {
45 1 long i;
46 1
47 1 i = 0x800;
48 1 while(i--);
49 1 }
50
51 void main (void) {
52 1 unsigned int i;
53 1
C51 COMPILER V7.00 TEST 09/27/2002 16:12:59 PAGE 2
54 1
55 1 T2CON = 0x34; /* Use Timer 2 as baudrate generator */
*** ERROR C202 IN LINE 55 OF ..\C51\ISD51\EXAMPLES\GENERIC_8052\TEST.C: 'T2CON': undefined identifier
56 1
57 1 #if 0
RCAP2H = 0xFF;
RCAP2L = 0xBF; /* 19230 baud @ 20MHz */
#endif
61 1
62 1 RCAP2H = 0xFF;
*** ERROR C202 IN LINE 62 OF ..\C51\ISD51\EXAMPLES\GENERIC_8052\TEST.C: 'RCAP2H': undefined identifier
63 1 RCAP2L = 0xD9; /* 19230 baud @ 12MHz */
*** ERROR C202 IN LINE 63 OF ..\C51\ISD51\EXAMPLES\GENERIC_8052\TEST.C: 'RCAP2L': undefined identifier
64 1 /* 38460 baud @ 24MHz */
65 1
66 1 SCON = 0x50; /* enable serial uart & receiver */
*** ERROR C202 IN LINE 66 OF ..\C51\ISD51\EXAMPLES\GENERIC_8052\TEST.C: 'SCON': undefined identifier
67 1 EA = 1; /* Enable global interrupt flag */
*** ERROR C202 IN LINE 67 OF ..\C51\ISD51\EXAMPLES\GENERIC_8052\TEST.C: 'EA': undefined identifier
68 1
69 1 //TestSerial (); // uncomment this function to verify serial communication
70 1
71 1 #if 0 // init ISD51 and start user program until the uVision2 Debugger connects
ISDinit (); // initialize uVision2 Debugger and continue program run
#endif
74 1
75 1 #if 0 // init ISD51 and wait until the uVision2 Debugger connects
ISDwait (); // wait for connection to uVision2 Debugger
#endif
78 1
79 1 for (i = 0; i < sizeof (testarray); i++) {
80 2 j = testarray[i];
81 2 }
82 1
83 1 while (1) {
84 2 #if 1 // init ISD51 only when the uVision2 Debugger tries to connect
85 2 ISDcheck(); // initialize uVision2 Debugger and continue program run
86 2 #endif
87 2 _nop_();
88 2 _nop_();
89 2 _nop_();
90 2 _nop_();
91 2 _nop_();
92 2 _nop_();
93 2 _nop_();
94 2 _nop_();
95 2 Port_D = (Port_D) ^ 0x30;
96 2 P1 ^= 0x10;
97 2 _nop_();
98 2 _nop_();
99 2 _nop_();
100 2 #if 0 // you may use ISDbreak when ISD51 is started with ISDcheck or ISDwait
ISDbreak (); // hard coded stop (breakpoint)
#endif
103 2 delay();
104 2 _nop_();
105 2 _nop_();
106 2 _nop_();
107 2 }
108 1 }
109
110
C51 COMPILER V7.00 TEST 09/27/2002 16:12:59 PAGE 3
C51 COMPILATION COMPLETE. 0 WARNING(S), 6 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -