📄 testmcu.lst
字号:
C51 COMPILER V7.06 TESTMCU 10/14/2005 18:12:32 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE TESTMCU
OBJECT MODULE PLACED IN testmcu.OBJ
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE testmcu.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 void SYSCLK_Init (void)
2 {
3 1 int i; // delay counter
4 1
5 1 OSCXCN = 0x67; // start external oscillator with
*** ERROR C202 IN LINE 5 OF TESTMCU.C: 'OSCXCN': undefined identifier
6 1 // 22.1184MHz crystal
7 1
8 1 for (i=0; i < 256; i++) ; // XTLVLD blanking interval (>1ms)
9 1
10 1 while (!(OSCXCN & 0x80)) ; // Wait for crystal osc. to settle
*** ERROR C202 IN LINE 10 OF TESTMCU.C: 'OSCXCN': undefined identifier
11 1
12 1 OSCICN = 0x88; // select external oscillator as SYSCLK
*** ERROR C202 IN LINE 12 OF TESTMCU.C: 'OSCICN': undefined identifier
13 1 // source and enable missing clock
14 1 // detector
15 1 }
16
17 WDTCN = 0x07; // Watchdog Timer Control Register
18 WDTCN = 0xDE; // Disable WDT
*** ERROR C279 IN LINE 18 OF TESTMCU.C: 'WDTCN': multiple initialization
19 WDTCN = 0xAD;
*** ERROR C279 IN LINE 19 OF TESTMCU.C: 'WDTCN': multiple initialization
20 XBR0 = 0x04; // XBAR0: Initial Reset Value
21 XBR1 = 0x2A; // XBAR1: Initial Reset Value
22 XBR2 = 0x44; // XBAR2: Initial Reset Value
23
24 P0MDOUT = 0x05; // Output configuration for P0
25 P1MDOUT = 0x00; // Output configuration for P1
26 P2MDOUT = 0x00; // Output configuration for P2
27 P3MDOUT = 0x00; // Output configuration for P3
28 P74OUT = 0x00; // Output configuration for P4-7
29
30 P1MDIN = 0xFF; // Input configuration for P1
31
32 // View port pinout
33
34 // The current Crossbar configuration results in the
35 // following port pinout assignment:
36 // Port 0
37 // P0.0 = UART TX0 (Push-Pull Output)
38 // P0.1 = UART RX0 (Open-Drain Output/Input)
39 // P0.2 = UART TX1 (Push-Pull Output)
40 // P0.3 = UART RX1 (Open-Drain Output/Input)
41 // P0.4 = T0 (Open-Drain Output/Input)
42 // P0.5 = T1 (Open-Drain Output/Input)
43 // P0.6 = T2 (Open-Drain Output/Input)
44 // P0.7 = GP I/O (Open-Drain Output/Input)
45
46
47
48 OSCXCN = 0x01; // EXTERNAL Oscillator Control Register
49
50 OSCICN = 0x04; // Internal Oscillator Control Register
C51 COMPILER V7.06 TESTMCU 10/14/2005 18:12:32 PAGE 2
C51 COMPILATION COMPLETE. 0 WARNING(S), 5 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -