📄 io.lst
字号:
158 1 // register 0
159 1 POCON1H = 0x0000; // load output control register
160 1 DP1H = 0x0000; // load direction register
161 1
162 1 /// -----------------------------------------------------------------------
163 1 /// Configuration of Port P1L:
164 1 /// -----------------------------------------------------------------------
165 1 /// P1L.0 is used as general purpose output
166 1 /// - the pin status is low level
167 1 /// P1L.1 is used as general purpose output
168 1 /// - the pin status is low level
169 1 /// P1L.2 is used as general purpose output
170 1 /// - the pin status is low level
171 1 /// P1L.3 is used as general purpose output
172 1 /// - the pin status is low level
173 1 /// P1L.4 is used as general purpose output
174 1 /// - the pin status is low level
175 1 /// P1L.5 is used as general purpose output
176 1 /// - the pin status is low level
177 1 /// P1L.6 is used as general purpose output
178 1 /// - the pin status is low level
179 1 /// P1L.7 is used as general purpose output
C166 COMPILER V6.04, IO 09/08/2007 15:46:24 PAGE 4
180 1 /// - the pin status is low level
181 1
182 1 /// P1L.0 - P1L.3 output driver characteristic: strong driver
183 1 /// P1L.4 - P1L.7 output driver characteristic: strong driver
184 1
185 1 /// P1L.0 - P1L.3 output edge characteristic: sharp edge mode
186 1 /// P1L.4 - P1L.7 output edge characteristic: sharp edge mode
187 1
188 1 P1L = 0x0000; // load data register
189 1 ALTSEL0P1L = 0x0000; // load alternate output function select
190 1 // register 0
191 1 POCON1L = 0x0000; // load output control register
192 1 DP1L = 0x00FF; // load direction register
193 1
194 1 /// -----------------------------------------------------------------------
195 1 /// Configuration of Port P3:
196 1 /// -----------------------------------------------------------------------
197 1 /// P3.6 is used as general purpose output
198 1 /// - push/pull output is selected
199 1 /// - the pin status is low level
200 1 /// P3.8 is used as alternate input for the SSC0 Master Receive (SSC0_MRST)
201 1 /// P3.9 is used as alternate output for the SSC0 Master Transmit
202 1 /// (SSC0_MTSR)
203 1 /// - push/pull output is selected
204 1 /// P3.13 is used as alternate output for the SSC0 Shift Clock Output
205 1 /// (SSC0_SCLK)
206 1 /// - push/pull output is selected
207 1
208 1 /// P3.0 - P3.7 threshold type: TTL input
209 1 /// P3.8 - P3.15 threshold type: TTL input
210 1
211 1 /// P3.0 - P3.3 output driver characteristic: strong driver
212 1 /// P3.4 - P3.7 output driver characteristic: strong driver
213 1 /// P3.8 - P3.11 output driver characteristic: strong driver
214 1 /// P3.12 - P3.15 output driver characteristic: strong driver
215 1
216 1 /// P3.0 - P3.3 output edge characteristic: sharp edge mode
217 1 /// P3.4 - P3.7 output edge characteristic: sharp edge mode
218 1 /// P3.8 - P3.11 output edge characteristic: sharp edge mode
219 1 /// P3.12 - P3.15 output edge characteristic: sharp edge mode
220 1
221 1 ODP3 = 0x0000; // load open-drain register
222 1 P3 = 0x0000; // load data register
223 1 ALTSEL0P3 = 0x0000; // load alternate output function select
224 1 // register 0
225 1 ALTSEL1P3 = 0x0000; // load alternate output function select
226 1 // register 1
227 1 POCON3 = 0x0000; // load output control register
228 1 DP3 = 0x0040; // load direction register
229 1
230 1 /// -----------------------------------------------------------------------
231 1 /// Configuration of Port P4:
232 1 /// -----------------------------------------------------------------------
233 1 /// P4.0 is used as alternate input for the Port Pin (A16)
234 1 /// P4.1 is used as alternate input for the Port Pin (A17)
235 1 /// P4.2 is used as alternate input for the Chip select (CS1_n)
236 1 /// P4.3 is used as alternate input for the Chip select (CS0_n)
237 1
238 1 /// P4.0 - P4.7 threshold type: TTL input
239 1
240 1 /// P4.0 - P4.3 output driver characteristic: strong driver
241 1 /// P4.4 - P4.7 output driver characteristic: strong driver
C166 COMPILER V6.04, IO 09/08/2007 15:46:24 PAGE 5
242 1
243 1 /// P4.0 - P4.3 output edge characteristic: sharp edge mode
244 1 /// P4.4 - P4.7 output edge characteristic: sharp edge mode
245 1
246 1 ODP4 = 0x0000; // load open-drain register
247 1 P4 = 0x0000; // load data register
248 1 ALTSEL0P4 = 0x0000; // load alternate output function select
249 1 // register 0
250 1 ALTSEL1P4 = 0x0000; // load alternate output function select
251 1 // register 1
252 1 POCON4 = 0x0000; // load output control register
253 1 DP4 = 0x0000; // load direction register
254 1
255 1 /// -----------------------------------------------------------------------
256 1 /// Configuration of Port P5:
257 1 /// -----------------------------------------------------------------------
258 1 /// - no pin of port P5 is used
259 1
260 1 P5 = 0x0000; // load data register
261 1
262 1 /// -----------------------------------------------------------------------
263 1 /// Configuration of Port P9:
264 1 /// -----------------------------------------------------------------------
265 1 /// - no pin of port P9 is used
266 1
267 1 ODP9 = 0x0000; // load open-drain register
268 1 P9 = 0x0000; // load data register
269 1 ALTSEL0P9 = 0x0000; // load alternate output function select
270 1 // register 0
271 1 ALTSEL1P9 = 0x0000; // load alternate output function select
272 1 // register 1
273 1 POCON9 = 0x0000; // load output control register
274 1 DP9 = 0x0000; // load direction register
275 1
276 1 /// -----------------------------------------------------------------------
277 1 /// Configuration of Port P20:
278 1 /// -----------------------------------------------------------------------
279 1 /// - no pin of port P20 is used
280 1
281 1 P20 = 0x0000; // load data register
282 1 POCON20 = 0x0000; // load output control register
283 1 DP20 = 0x0000; // load direction register
284 1
285 1
286 1 // USER CODE BEGIN (IO_Function,3)
287 1
288 1 // USER CODE END
289 1
290 1 } // End of function IO_vInit
291
292
293
294
295 // USER CODE BEGIN (IO_General,10)
296
297 // USER CODE END
298
MODULE INFORMATION: INITIALIZED UNINITIALIZED
CODE SIZE = 170 --------
NEAR-CONST SIZE = -------- --------
C166 COMPILER V6.04, IO 09/08/2007 15:46:24 PAGE 6
FAR-CONST SIZE = -------- --------
HUGE-CONST SIZE = -------- --------
XHUGE-CONST SIZE = -------- --------
NEAR-DATA SIZE = -------- --------
FAR-DATA SIZE = -------- --------
XHUGE-DATA SIZE = -------- --------
IDATA-DATA SIZE = -------- --------
SDATA-DATA SIZE = -------- --------
BDATA-DATA SIZE = -------- --------
HUGE-DATA SIZE = -------- --------
BIT SIZE = -------- --------
INIT'L SIZE = -------- --------
END OF MODULE INFORMATION.
C166 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -