?? main.lst
字號:
C166 COMPILER V6.04, MAIN 08/30/2007 14:28:44 PAGE 1
C166 COMPILER V6.04, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN MAIN.OBJ
COMPILER INVOKED BY: C:\Keil C166\C166\BIN\C166.EXE MAIN.C MODV2 BROWSE MODV2 DEBUG
stmt lvl source
1 //****************************************************************************
2 // @Module Project Settings
3 // @Filename MAIN.C
4 // @Project SWITCH.dav
5 //----------------------------------------------------------------------------
6 // @Controller Infineon XC164CS-16F
7 //
8 // @Compiler Keil
9 //
10 // @Codegenerator 2.8
11 //
12 // @Description This file contains the project initialization function.
13 //
14 //----------------------------------------------------------------------------
15 // @Date 2007-5-25 16:09:04
16 //
17 //****************************************************************************
18
19 // USER CODE BEGIN (MAIN_General,1)
20
21 // USER CODE END
22
23
24
25 //****************************************************************************
26 // @Project Includes
27 //****************************************************************************
28
29 #include "MAIN.H"
30
31 // USER CODE BEGIN (MAIN_General,2)
32
33 // USER CODE END
34
35
36 //****************************************************************************
37 // @Macros
38 //****************************************************************************
39
40 // USER CODE BEGIN (MAIN_General,3)
41
42 // USER CODE END
43
44
45 //****************************************************************************
46 // @Defines
47 //****************************************************************************
48
49 // USER CODE BEGIN (MAIN_General,4)
50
51 // USER CODE END
52
53
54 //****************************************************************************
55 // @Typedefs
C166 COMPILER V6.04, MAIN 08/30/2007 14:28:44 PAGE 2
56 //****************************************************************************
57
58 // USER CODE BEGIN (MAIN_General,5)
59
60 // USER CODE END
61
62
63 //****************************************************************************
64 // @Imported Global Variables
65 //****************************************************************************
66
67 // USER CODE BEGIN (MAIN_General,6)
68
69 // USER CODE END
70
71
72 //****************************************************************************
73 // @Global Variables
74 //****************************************************************************
75
76 // USER CODE BEGIN (MAIN_General,7)
77
78 // USER CODE END
79
80
81 //****************************************************************************
82 // @External Prototypes
83 //****************************************************************************
84
85 // USER CODE BEGIN (MAIN_General,8)
86
87 // USER CODE END
88
89
90 //****************************************************************************
91 // @Prototypes Of Local Functions
92 //****************************************************************************
93
94 // USER CODE BEGIN (MAIN_General,9)
95
96 // USER CODE END
97
98
99 //****************************************************************************
100 // @Function void MAIN_vInit(void)
101 //
102 //----------------------------------------------------------------------------
103 // @Description This function initializes the microcontroller.
104 //
105 //----------------------------------------------------------------------------
106 // @Returnvalue None
107 //
108 //----------------------------------------------------------------------------
109 // @Parameters None
110 //
111 //----------------------------------------------------------------------------
112 // @Date 2007-5-25
113 //
114 //****************************************************************************
115
116 // USER CODE BEGIN (Init,1)
117
C166 COMPILER V6.04, MAIN 08/30/2007 14:28:44 PAGE 3
118 // USER CODE END
119
120 void MAIN_vInit(void)
121 {
122 1 // USER CODE BEGIN (Init,2)
123 1
124 1 // USER CODE END
125 1
126 1 /// -----------------------------------------------------------------------
127 1 /// Configuration of the System Clock:
128 1 /// -----------------------------------------------------------------------
129 1 /// - VCO clock used, input clock is connected
130 1 /// - input frequency is 8 MHz
131 1 /// - VCO output frequency 100 .. 150 MHz
132 1 /// - system clock is 20 MHz
133 1
134 1 MAIN_vUnlockProtecReg(); // unlock write security
135 1 PLLCON = 0x7814; // load PLL control register
136 1
137 1
138 1 //// -----------------------------------------------------------------------
139 1 //// Begin of Important Settings for the Start-Up File
140 1 //// -----------------------------------------------------------------------
141 1 /// All following settings must be set in the start-up file. You can use
142 1 /// DAvE's project file (*.dpt) to include this register values into your
143 1 /// compiler EDE.
144 1
145 1 /// ---------------------------------------------------------------------
146 1 /// Initialization of the CPUCON1 Register:
147 1 /// ---------------------------------------------------------------------
148 1 /// - space between two vectors is 2 words
149 1 /// - DISWDT executable until End of Init
150 1 /// - segmentation is enabled
151 1 /// - switch context is interruptible
152 1 /// - branch prediction is enabled
153 1 /// - zero cycle jump function is enabled
154 1
155 1 //// this register must be set in the start-up file
156 1 //// CPUCON1 = 0x0007
157 1
158 1 /// ---------------------------------------------------------------------
159 1 /// Initialization of the VECSEG Register:
160 1 /// ---------------------------------------------------------------------
161 1 /// - start from internal program memory
162 1
163 1 //// this register must be set in the start-up file
164 1 //// VECSEG = 0x00C0
165 1
166 1 /// ---------------------------------------------------------------------
167 1 /// Initialization of the SYSCON0 Register:
168 1 /// ---------------------------------------------------------------------
169 1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -