📄 ccu6.lst
字号:
C166 COMPILER V6.02, CCU6 08/11/2006 09:36:17 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 CCU6.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-8-3 13:41:47
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/11/2006 09:36:17 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-8-3
115 //
116 //****************************************************************************
117
C166 COMPILER V6.02, CCU6 08/11/2006 09:36:17 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 enabled
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 set
145 1 /// - single shot mode is disabled
146 1 /// - interrupt on period match is disabled
147 1 /// - interrupt on compare match is disabled
148 1
149 1 CCU6_T13PR = 0x0F9F; // load CCU6 T13 period register
150 1
151 1 CCU6_TCTR0 = 0x0080; // load CCU6 timer control register 0
152 1 CCU6_TCTR2 = 0x0020; // load CCU6 timer control register 2
153 1
154 1 /// -----------------------------------------------------------------------
155 1 /// Configuration of Multi Channel Mode:
156 1 /// -----------------------------------------------------------------------
157 1 /// - multi channel mode is disabled
158 1
159 1
160 1 /// -----------------------------------------------------------------------
161 1 /// Configuration of CCU6 Channel 0:
162 1 /// -----------------------------------------------------------------------
163 1 /// - compare mode 3 is selected
164 1 /// - T12 modulation for output CC60 is enabled
165 1 /// - T13 modulation for output CC60 is disabled
166 1 /// - the trap functionality of the pin CC60 is enabled
167 1 /// - the compare output CC60 drives passive level while CC60ST is '0'
168 1 /// - the passive level of the output CC60 is '0'
169 1 /// - T12 modulation for output COUT60 is enabled
170 1 /// - T13 modulation for output COUT60 is disabled
171 1 /// - the trap functionality of the pin COUT60 is enabled
172 1 /// - the compare output COUT60 drives passive level while CC60ST is '1'
173 1 /// - the passive level of the output COUT60 is '0'
174 1 /// - dead time generation is enabled
175 1
176 1 /// - generation interrupt on flag ICC60R is disabled
177 1 /// - generation interrupt on flag ICC60F is disabled
178 1
179 1 CCU6_CC60SR = 0x03E8; // load CCU6 capture/compare shadow register
C166 COMPILER V6.02, CCU6 08/11/2006 09:36:17 PAGE 4
180 1 // for channel 0
181 1
182 1 /// -----------------------------------------------------------------------
183 1 /// Configuration of CCU6 Channel 1:
184 1 /// -----------------------------------------------------------------------
185 1 /// - compare mode 3 is selected
186 1 /// - T12 modulation for output CC61 is enabled
187 1 /// - T13 modulation for output CC61 is disabled
188 1 /// - the trap functionality of the pin CC61 is enabled
189 1 /// - the compare output CC61 drives passive level while CC61ST is '0'
190 1 /// - the passive level of the output CC61 is '0'
191 1 /// - T12 modulation for output COUT61 is enabled
192 1 /// - T13 modulation for output COUT61 is disabled
193 1 /// - the trap functionality of the pin COUT61 is enabled
194 1 /// - the compare output COUT61 drives passive level while CC61ST is '1'
195 1 /// - the passive level of the output COUT61 is '0'
196 1 /// - dead time generation is enabled
197 1
198 1 /// - generation interrupt on flag ICC61R is disabled
199 1 /// - generation interrupt on flag ICC61F is disabled
200 1
201 1 CCU6_CC61SR = 0x03E8; // load CCU6 capture/compare shadow register
202 1 // for channel 1
203 1
204 1 /// -----------------------------------------------------------------------
205 1 /// Configuration of CCU6 Channel 2:
206 1 /// -----------------------------------------------------------------------
207 1 /// - compare mode 3 is selected
208 1 /// - T12 modulation for output CC62 is enabled
209 1 /// - T13 modulation for output CC62 is disabled
210 1 /// - the trap functionality of the pin CC62 is enabled
211 1 /// - the compare output CC62 drives passive level while CC62ST is '0'
212 1 /// - the passive level of the output CC62 is '0'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -