?? ccu6.lst
字號:
C166 COMPILER V6.02, CCU6 08/08/2006 15:48:05 PAGE 1
C166 COMPILER V6.02, COMPILATION OF MODULE CCU6
OBJECT MODULE PLACED IN CCU6.OBJ
COMPILER INVOKED BY: C:\Keil\C166\BIN\C166.EXE CCU6.C MODV2 BROWSE MODV2 DEBUG
stmt lvl source
1 //****************************************************************************
2 // @Module Capture / Compare Unit 6 (CCU6)
3 // @Filename CCU6.C
4 // @Project T12_T13_AD_PEC.dav
5 //----------------------------------------------------------------------------
6 // @Controller Infineon XC164CM-8F40
7 //
8 // @Compiler Keil
9 //
10 // @Codegenerator 0.2
11 //
12 // @Description This file contains functions that use the CCU6 module.
13 //
14 //----------------------------------------------------------------------------
15 // @Date 2006-7-8 23:19:34
16 //
17 //****************************************************************************
18
19 // USER CODE BEGIN (CCU6_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 (CCU6_General,2)
32
33 // USER CODE END
34
35
36 //****************************************************************************
37 // @Macros
38 //****************************************************************************
39
40 // USER CODE BEGIN (CCU6_General,3)
41
42 // USER CODE END
43
44
45 //****************************************************************************
46 // @Defines
47 //****************************************************************************
48
49 // USER CODE BEGIN (CCU6_General,4)
50
51 // USER CODE END
52
53
54 //****************************************************************************
55 // @Typedefs
C166 COMPILER V6.02, CCU6 08/08/2006 15:48:05 PAGE 2
56 //****************************************************************************
57
58 // USER CODE BEGIN (CCU6_General,5)
59
60 // USER CODE END
61
62
63 //****************************************************************************
64 // @Imported Global Variables
65 //****************************************************************************
66
67 // USER CODE BEGIN (CCU6_General,6)
68
69 // USER CODE END
70
71
72 //****************************************************************************
73 // @Global Variables
74 //****************************************************************************
75
76 // USER CODE BEGIN (CCU6_General,7)
77
78 // USER CODE END
79
80
81 //****************************************************************************
82 // @External Prototypes
83 //****************************************************************************
84
85 // USER CODE BEGIN (CCU6_General,8)
86
87 // USER CODE END
88
89
90 //****************************************************************************
91 // @Prototypes Of Local Functions
92 //****************************************************************************
93
94 // USER CODE BEGIN (CCU6_General,9)
95
96 // USER CODE END
97
98
99 //****************************************************************************
100 // @Function void CCU6_vInit(void)
101 //
102 //----------------------------------------------------------------------------
103 // @Description This is the initialization function of the CCU6 function
104 // library. It is assumed that the SFRs used by this library
105 // are in reset state.
106 //
107 //----------------------------------------------------------------------------
108 // @Returnvalue None
109 //
110 //----------------------------------------------------------------------------
111 // @Parameters None
112 //
113 //----------------------------------------------------------------------------
114 // @Date 2006-7-8
115 //
116 //****************************************************************************
117
C166 COMPILER V6.02, CCU6 08/08/2006 15:48:05 PAGE 3
118 // USER CODE BEGIN (Init,1)
119
120 // USER CODE END
121
122 void CCU6_vInit(void)
123 {
124 1 // USER CODE BEGIN (Init,2)
125 1
126 1 // USER CODE END
127 1
128 1 /// -----------------------------------------------------------------------
129 1 /// Configuration of CCU6 Timer 12:
130 1 /// -----------------------------------------------------------------------
131 1 /// - prescaler factor is 1
132 1 /// - timer 12 run bit is set
133 1 /// - single shot mode is disabled
134 1 /// - timer 12 works in center aligned mode
135 1 /// - interrupt on period match is enabled
136 1 /// - interrupt on one match is disabled
137 1
138 1 CCU6_T12PR = 0x07CF; // load CCU6 T12 period register
139 1
140 1 /// -----------------------------------------------------------------------
141 1 /// Configuration of CCU6 Timer 13:
142 1 /// -----------------------------------------------------------------------
143 1 /// - prescaler factor is 1
144 1 /// - timer 13 run bit is reset
145 1 /// - T13 is started on a T12 compare event on channel 0, independent on
146 1 /// the count direction of T12
147 1 /// - single shot mode is enabled
148 1 /// - interrupt on period match is enabled
149 1 /// - interrupt on compare match is disabled
150 1
151 1 CCU6_T13PR = 0x0027; // load CCU6 T13 period register
152 1
153 1 CCU6_TCTR0 = 0x0080; // load CCU6 timer control register 0
154 1 CCU6_TCTR2 = 0x0066; // load CCU6 timer control register 2
155 1
156 1 /// -----------------------------------------------------------------------
157 1 /// Configuration of Multi Channel Mode:
158 1 /// -----------------------------------------------------------------------
159 1 /// - multi channel mode is disabled
160 1
161 1
162 1 /// -----------------------------------------------------------------------
163 1 /// Configuration of CCU6 Channel 0:
164 1 /// -----------------------------------------------------------------------
165 1 /// - compare mode 3 is selected
166 1 /// - T12 modulation for output CC60 is enabled
167 1 /// - T13 modulation for output CC60 is disabled
168 1 /// - the trap functionality of the pin CC60 is disabled
169 1 /// - the compare output CC60 drives passive level while CC60ST is '0'
170 1 /// - the passive level of the output CC60 is '0'
171 1 /// - T12 modulation for output COUT60 is enabled
172 1 /// - T13 modulation for output COUT60 is disabled
173 1 /// - the trap functionality of the pin COUT60 is disabled
174 1 /// - the compare output COUT60 drives passive level while CC60ST is '1'
175 1 /// - the passive level of the output COUT60 is '0'
176 1 /// - dead time generation is enabled
177 1
178 1 /// - generation interrupt on flag ICC60R is disabled
179 1 /// - generation interrupt on flag ICC60F is disabled
C166 COMPILER V6.02, CCU6 08/08/2006 15:48:05 PAGE 4
180 1
181 1 CCU6_CC60SR = 0x03E8; // load CCU6 capture/compare shadow register
182 1 // for channel 0
183 1
184 1 /// -----------------------------------------------------------------------
185 1 /// Configuration of CCU6 Channel 1:
186 1 /// -----------------------------------------------------------------------
187 1 /// - compare mode 3 is selected
188 1 /// - T12 modulation for output CC61 is enabled
189 1 /// - T13 modulation for output CC61 is disabled
190 1 /// - the trap functionality of the pin CC61 is disabled
191 1 /// - the compare output CC61 drives passive level while CC61ST is '0'
192 1 /// - the passive level of the output CC61 is '0'
193 1 /// - T12 modulation for output COUT61 is enabled
194 1 /// - T13 modulation for output COUT61 is disabled
195 1 /// - the trap functionality of the pin COUT61 is disabled
196 1 /// - the compare output COUT61 drives passive level while CC61ST is '1'
197 1 /// - the passive level of the output COUT61 is '0'
198 1 /// - dead time generation is enabled
199 1
200 1 /// - generation interrupt on flag ICC61R is disabled
201 1 /// - generation interrupt on flag ICC61F is disabled
202 1
203 1 CCU6_CC61SR = 0x03E8; // load CCU6 capture/compare shadow register
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -