?? io.lst
字號:
C166 COMPILER V6.04, IO 07/02/2007 15:03:31 PAGE 1
C166 COMPILER V6.04, COMPILATION OF MODULE IO
OBJECT MODULE PLACED IN IO.OBJ
COMPILER INVOKED BY: C:\Keil\C166\BIN\C166.EXE IO.C MODV2 BROWSE MODV2 DEBUG
stmt lvl source
1 //****************************************************************************
2 // @Module Parallel Ports
3 // @Filename IO.C
4 // @Project svm.dav
5 //----------------------------------------------------------------------------
6 // @Controller Infineon XC167CI-16F40
7 //
8 // @Compiler Keil
9 //
10 // @Codegenerator 2.1
11 //
12 // @Description This file contains functions that use the IO module.
13 //
14 //----------------------------------------------------------------------------
15 // @Date 19.12.2003 11:31:18
16 //
17 //****************************************************************************
18
19 // USER CODE BEGIN (IO_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 (IO_General,2)
32
33 // USER CODE END
34
35
36 //****************************************************************************
37 // @Macros
38 //****************************************************************************
39
40 // USER CODE BEGIN (IO_General,3)
41
42 // USER CODE END
43
44
45 //****************************************************************************
46 // @Defines
47 //****************************************************************************
48
49 // USER CODE BEGIN (IO_General,4)
50
51 // USER CODE END
52
53
54 //****************************************************************************
55 // @Typedefs
C166 COMPILER V6.04, IO 07/02/2007 15:03:31 PAGE 2
56 //****************************************************************************
57
58 // USER CODE BEGIN (IO_General,5)
59
60 // USER CODE END
61
62
63 //****************************************************************************
64 // @Imported Global Variables
65 //****************************************************************************
66
67 // USER CODE BEGIN (IO_General,6)
68
69 // USER CODE END
70
71
72 //****************************************************************************
73 // @Global Variables
74 //****************************************************************************
75
76 // USER CODE BEGIN (IO_General,7)
77
78 // USER CODE END
79
80
81 //****************************************************************************
82 // @External Prototypes
83 //****************************************************************************
84
85 // USER CODE BEGIN (IO_General,8)
86
87 // USER CODE END
88
89
90 //****************************************************************************
91 // @Prototypes Of Local Functions
92 //****************************************************************************
93
94 // USER CODE BEGIN (IO_General,9)
95
96 // USER CODE END
97
98
99 //****************************************************************************
100 // @Function void IO_vInit(void)
101 //
102 //----------------------------------------------------------------------------
103 // @Description This is the initialization function of the IO function
104 // library. It is assumed that the SFRs used by this library
105 // are in its reset state.
106 //
107 //----------------------------------------------------------------------------
108 // @Returnvalue None
109 //
110 //----------------------------------------------------------------------------
111 // @Parameters None
112 //
113 //----------------------------------------------------------------------------
114 // @Date 19.12.2003
115 //
116 //****************************************************************************
117
C166 COMPILER V6.04, IO 07/02/2007 15:03:31 PAGE 3
118 // USER CODE BEGIN (IO_Function,1)
119
120 // USER CODE END
121
122 void IO_vInit(void)
123 {
124 1 // USER CODE BEGIN (IO_Function,2)
125 1
126 1 // USER CODE END
127 1
128 1 /// -----------------------------------------------------------------------
129 1 /// General Port Settings:
130 1 /// -----------------------------------------------------------------------
131 1 PICON = 0x0000; // load input configuration register
132 1
133 1 /// -----------------------------------------------------------------------
134 1 /// Configuration of Port P0H:
135 1 /// -----------------------------------------------------------------------
136 1 /// - no pin of port P0H is used
137 1
138 1 P0H = 0x0000; // load data register
139 1 POCON0H = 0x0000; // load output control register
140 1 DP0H = 0x0000; // load direction register
141 1
142 1 /// -----------------------------------------------------------------------
143 1 /// Configuration of Port P0L:
144 1 /// -----------------------------------------------------------------------
145 1 /// - no pin of port P0L is used
146 1
147 1 P0L = 0x0000; // load data register
148 1 POCON0L = 0x0000; // load output control register
149 1 DP0L = 0x0000; // load direction register
150 1
151 1 /// -----------------------------------------------------------------------
152 1 /// Configuration of Port P1H:
153 1 /// -----------------------------------------------------------------------
154 1 /// P1H.7 is used as general input
155 1
156 1 /// P1H.0 - P1H.3 output driver characteristic: strong driver
157 1 /// P1H.4 - P1H.7 output driver characteristic: strong driver
158 1
159 1 /// P1H.0 - P1H.3 output edge characteristic: sharp edge mode
160 1 /// P1H.4 - P1H.7 output edge characteristic: sharp edge mode
161 1
162 1 P1H = 0x0000; // load data register
163 1 ALTSEL0P1H = 0x0000; // load alternate output function select
164 1 // register 0
165 1 POCON1H = 0x0000; // load output control register
166 1 DP1H = 0x0000; // load direction register
167 1
168 1 /// -----------------------------------------------------------------------
169 1 /// Configuration of Port P1L:
170 1 /// -----------------------------------------------------------------------
171 1 /// P1L.0 is used as alternate output for the CAPCOM6 output (CC60)
172 1 /// P1L.1 is used as alternate output for the CAPCOM6 output (COUT60)
173 1 /// P1L.2 is used as alternate output for the CAPCOM6 output (CC61)
174 1 /// P1L.3 is used as alternate output for the CAPCOM6 output (COUT61)
175 1 /// P1L.4 is used as alternate output for the CAPCOM6 output (CC62)
176 1 /// P1L.5 is used as alternate output for the CAPCOM6 output (COUT62)
177 1
178 1 /// P1L.0 - P1L.3 output driver characteristic: strong driver
179 1 /// P1L.4 - P1L.7 output driver characteristic: strong driver
C166 COMPILER V6.04, IO 07/02/2007 15:03:31 PAGE 4
180 1
181 1 /// P1L.0 - P1L.3 output edge characteristic: sharp edge mode
182 1 /// P1L.4 - P1L.7 output edge characteristic: sharp edge mode
183 1
184 1 P1L = 0x0000; // load data register
185 1 ALTSEL0P1L = 0x0000; // load alternate output function select
186 1 // register 0
187 1 POCON1L = 0x0000; // load output control register
188 1 DP1L = 0x0000; // load direction register
189 1
190 1 /// -----------------------------------------------------------------------
191 1 /// Configuration of Port P2:
192 1 /// -----------------------------------------------------------------------
193 1 /// P2.15 is used as alternate input for the Fast External Interrupt 7
194 1 /// Input (EX7IN)
195 1
196 1 /// P2.8 - P2.15 threshold type: TTL input
197 1
198 1 /// P2.8 - P2.11 output driver characteristic: strong driver
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -