Rev Author Line No. Line
1045 jacho 1 C L "main" 0 19 1 "FUNCTION"
2 C L "main" 0 19 1 "FUNCTION"
3 D G "__PCM__" 0 50 ""4.106""
4 D G "__DEVICE__" 0 50 "887"
5 D G "__DATE__" 0 50 ""25-3-13""
6 D G "__TIME__" 0 50 ""12:36:11"" "Standard Header file for the PIC16F887 device ////////////////"
7 d G "PIN_A0" 2 20 "40"
8 d G "PIN_A1" 2 21 "41"
9 d G "PIN_A2" 2 22 "42"
10 d G "PIN_A3" 2 23 "43"
11 d G "PIN_A4" 2 24 "44"
12 d G "PIN_A5" 2 25 "45"
13 d G "PIN_A6" 2 26 "46"
14 d G "PIN_A7" 2 27 "47"
15 d G "PIN_B0" 2 29 "48"
16 d G "PIN_B1" 2 30 "49"
17 d G "PIN_B2" 2 31 "50"
18 d G "PIN_B3" 2 32 "51"
19 d G "PIN_B4" 2 33 "52"
20 d G "PIN_B5" 2 34 "53"
21 d G "PIN_B6" 2 35 "54"
22 d G "PIN_B7" 2 36 "55"
23 d G "PIN_C0" 2 38 "56"
24 d G "PIN_C1" 2 39 "57"
25 d G "PIN_C2" 2 40 "58"
26 d G "PIN_C3" 2 41 "59"
27 d G "PIN_C4" 2 42 "60"
28 d G "PIN_C5" 2 43 "61"
29 d G "PIN_C6" 2 44 "62"
30 d G "PIN_C7" 2 45 "63"
31 d G "PIN_D0" 2 47 "64"
32 d G "PIN_D1" 2 48 "65"
33 d G "PIN_D2" 2 49 "66"
34 d G "PIN_D3" 2 50 "67"
35 d G "PIN_D4" 2 51 "68"
36 d G "PIN_D5" 2 52 "69"
37 d G "PIN_D6" 2 53 "70"
38 d G "PIN_D7" 2 54 "71"
39 d G "PIN_E0" 2 56 "72"
40 d G "PIN_E1" 2 57 "73"
41 d G "PIN_E2" 2 58 "74"
42 d G "PIN_E3" 2 59 "75"
43 d G "FALSE" 2 62 "0"
44 d G "TRUE" 2 63 "1"
45 d G "BYTE" 2 65 "int8"
46 d G "BOOLEAN" 2 66 "int1"
47 d G "getc" 2 68 "getch"
48 d G "fgetc" 2 69 "getch"
49 d G "getchar" 2 70 "getch"
50 d G "putc" 2 71 "putchar"
51 d G "fputc" 2 72 "putchar"
52 d G "fgets" 2 73 "gets"
53 d G "fputs" 2 74 "puts"
54 d G "WDT_FROM_SLEEP" 2 79 "3"
55 d G "WDT_TIMEOUT" 2 80 "11"
56 d G "MCLR_FROM_SLEEP" 2 81 "19"
57 d G "MCLR_FROM_RUN" 2 82 "27"
58 d G "NORMAL_POWER_UP" 2 83 "25"
59 d G "BROWNOUT_RESTART" 2 84 "26"
60 d G "T0_INTERNAL" 2 91 "0"
61 d G "T0_EXT_L_TO_H" 2 92 "32"
62 d G "T0_EXT_H_TO_L" 2 93 "48"
63 d G "T0_DIV_1" 2 95 "8"
64 d G "T0_DIV_2" 2 96 "0"
65 d G "T0_DIV_4" 2 97 "1"
66 d G "T0_DIV_8" 2 98 "2"
67 d G "T0_DIV_16" 2 99 "3"
68 d G "T0_DIV_32" 2 100 "4"
69 d G "T0_DIV_64" 2 101 "5"
70 d G "T0_DIV_128" 2 102 "6"
71 d G "T0_DIV_256" 2 103 "7"
72 d G "T0_8_BIT" 2 106 "0"
73 d G "RTCC_INTERNAL" 2 108 "0" "The following are provided for compatibility"
74 d G "RTCC_EXT_L_TO_H" 2 109 "32" "with older compiler versions"
75 d G "RTCC_EXT_H_TO_L" 2 110 "48"
76 d G "RTCC_DIV_1" 2 111 "8"
77 d G "RTCC_DIV_2" 2 112 "0"
78 d G "RTCC_DIV_4" 2 113 "1"
79 d G "RTCC_DIV_8" 2 114 "2"
80 d G "RTCC_DIV_16" 2 115 "3"
81 d G "RTCC_DIV_32" 2 116 "4"
82 d G "RTCC_DIV_64" 2 117 "5"
83 d G "RTCC_DIV_128" 2 118 "6"
84 d G "RTCC_DIV_256" 2 119 "7"
85 d G "RTCC_8_BIT" 2 120 "0"
86 d G "WDT_18MS" 2 132 "8"
87 d G "WDT_36MS" 2 133 "9"
88 d G "WDT_72MS" 2 134 "10"
89 d G "WDT_144MS" 2 135 "11"
90 d G "WDT_288MS" 2 136 "12"
91 d G "WDT_576MS" 2 137 "13"
92 d G "WDT_1152MS" 2 138 "14"
93 d G "WDT_2304MS" 2 139 "15"
94 d G "WDT_ON" 2 143 "0x4100"
95 d G "WDT_OFF" 2 144 "0"
96 d G "WDT_DIV_16" 2 145 "0x100"
97 d G "WDT_DIV_8" 2 146 "0x300"
98 d G "WDT_DIV_4" 2 147 "0x500"
99 d G "WDT_DIV_2" 2 148 "0x700"
100 d G "WDT_TIMES_1" 2 149 "0x900" "Default"
101 d G "WDT_TIMES_2" 2 150 "0xB00"
102 d G "WDT_TIMES_4" 2 151 "0xD00"
103 d G "WDT_TIMES_8" 2 152 "0xF00"
104 d G "WDT_TIMES_16" 2 153 "0x1100"
105 d G "WDT_TIMES_32" 2 154 "0x1300"
106 d G "WDT_TIMES_64" 2 155 "0x1500"
107 d G "WDT_TIMES_128" 2 156 "0x1700"
108 d G "T1_DISABLED" 2 162 "0"
109 d G "T1_INTERNAL" 2 163 "5"
110 d G "T1_EXTERNAL" 2 164 "7"
111 d G "T1_EXTERNAL_SYNC" 2 165 "3"
112 d G "T1_CLK_OUT" 2 167 "8"
113 d G "T1_DIV_BY_1" 2 169 "0"
114 d G "T1_DIV_BY_2" 2 170 "0x10"
115 d G "T1_DIV_BY_4" 2 171 "0x20"
116 d G "T1_DIV_BY_8" 2 172 "0x30"
117 d G "T1_GATE" 2 174 "0x40"
118 d G "T1_GATE_INVERTED" 2 175 "0xC0"
119 d G "T2_DISABLED" 2 180 "0"
120 d G "T2_DIV_BY_1" 2 181 "4"
121 d G "T2_DIV_BY_4" 2 182 "5"
122 d G "T2_DIV_BY_16" 2 183 "6"
123 d G "CCP_OFF" 2 189 "0"
124 d G "CCP_CAPTURE_FE" 2 190 "4"
125 d G "CCP_CAPTURE_RE" 2 191 "5"
126 d G "CCP_CAPTURE_DIV_4" 2 192 "6"
127 d G "CCP_CAPTURE_DIV_16" 2 193 "7"
128 d G "CCP_COMPARE_SET_ON_MATCH" 2 194 "8"
129 d G "CCP_COMPARE_CLR_ON_MATCH" 2 195 "9"
130 d G "CCP_COMPARE_INT" 2 196 "0xA"
131 d G "CCP_COMPARE_RESET_TIMER" 2 197 "0xB"
132 d G "CCP_PWM" 2 198 "0xC"
133 d G "CCP_PWM_PLUS_1" 2 199 "0x1c"
134 d G "CCP_PWM_PLUS_2" 2 200 "0x2c"
135 d G "CCP_PWM_PLUS_3" 2 201 "0x3c"
136 d G "CCP_PWM_H_H" 2 206 "0x0c"
137 d G "CCP_PWM_H_L" 2 207 "0x0d"
138 d G "CCP_PWM_L_H" 2 208 "0x0e"
139 d G "CCP_PWM_L_L" 2 209 "0x0f"
140 d G "CCP_PWM_FULL_BRIDGE" 2 211 "0x40"
141 d G "CCP_PWM_FULL_BRIDGE_REV" 2 212 "0xC0"
142 d G "CCP_PWM_HALF_BRIDGE" 2 213 "0x80"
143 d G "CCP_SHUTDOWN_ON_COMP1" 2 215 "0x100000"
144 d G "CCP_SHUTDOWN_ON_COMP2" 2 216 "0x200000"
145 d G "CCP_SHUTDOWN_ON_COMP" 2 217 "0x300000"
146 d G "CCP_SHUTDOWN_ON_INT0" 2 218 "0x400000"
147 d G "CCP_SHUTDOWN_ON_COMP1_INT0" 2 219 "0x500000"
148 d G "CCP_SHUTDOWN_ON_COMP2_INT0" 2 220 "0x600000"
149 d G "CCP_SHUTDOWN_ON_COMP_INT0" 2 221 "0x700000"
150 d G "CCP_SHUTDOWN_AC_L" 2 223 "0x000000"
151 d G "CCP_SHUTDOWN_AC_H" 2 224 "0x040000"
152 d G "CCP_SHUTDOWN_AC_F" 2 225 "0x080000"
153 d G "CCP_SHUTDOWN_BD_L" 2 227 "0x000000"
154 d G "CCP_SHUTDOWN_BD_H" 2 228 "0x010000"
155 d G "CCP_SHUTDOWN_BD_F" 2 229 "0x020000"
156 d G "CCP_SHUTDOWN_RESTART" 2 231 "0x80000000"
157 d G "CCP_PULSE_STEERING_A" 2 233 "0x01000000"
158 d G "CCP_PULSE_STEERING_B" 2 234 "0x02000000"
159 d G "CCP_PULSE_STEERING_C" 2 235 "0x04000000"
160 d G "CCP_PULSE_STEERING_D" 2 236 "0x08000000"
161 d G "CCP_PULSE_STEERING_SYNC" 2 237 "0x10000000"
162 d G "SPI_MASTER" 2 245 "0x20"
163 d G "SPI_SLAVE" 2 246 "0x24"
164 d G "SPI_L_TO_H" 2 247 "0"
165 d G "SPI_H_TO_L" 2 248 "0x10"
166 d G "SPI_CLK_DIV_4" 2 249 "0"
167 d G "SPI_CLK_DIV_16" 2 250 "1"
168 d G "SPI_CLK_DIV_64" 2 251 "2"
169 d G "SPI_CLK_T2" 2 252 "3"
170 d G "SPI_SS_DISABLED" 2 253 "1"
171 d G "SPI_SAMPLE_AT_END" 2 255 "0x8000"
172 d G "SPI_XMIT_L_TO_H" 2 256 "0x4000"
173 d G "UART_ADDRESS" 2 262 "2"
174 d G "UART_DATA" 2 263 "4"
175 d G "UART_AUTODETECT" 2 264 "8"
176 d G "UART_AUTODETECT_NOWAIT" 2 265 "9"
177 d G "UART_WAKEUP_ON_RDA" 2 266 "10"
178 d G "UART_SEND_BREAK" 2 267 "13"
179 d G "NC_NC_NC_NC" 2 273 "0x00"
180 d G "NC_NC" 2 274 "0x00"
181 d G "CP1_A0_A3" 2 277 "0x00090080"
182 d G "CP1_A1_A3" 2 278 "0x000A0081"
183 d G "CP1_B3_A3" 2 279 "0x00880082"
184 d G "CP1_B1_A3" 2 280 "0x00280083"
185 d G "CP1_A0_VREF" 2 281 "0x00010084"
186 d G "CP1_A1_VREF" 2 282 "0x00020085"
187 d G "CP1_B3_VREF" 2 283 "0x00800086"
188 d G "CP1_B1_VREF" 2 284 "0x00200087"
189 d G "CP1_OUT_ON_A4" 2 286 "0x00000020"
190 d G "CP1_INVERT" 2 287 "0x00000010"
191 d G "CP1_ABSOLUTE_VREF" 2 288 "0x20000000"
192 d G "CP2_A0_A2" 2 291 "0x00058000"
193 d G "CP2_A1_A2" 2 292 "0x00068100"
194 d G "CP2_B3_A2" 2 293 "0x00848200"
195 d G "CP2_B1_A2" 2 294 "0x00248300"
196 d G "CP2_A0_VREF" 2 295 "0x00018400"
197 d G "CP2_A1_VREF" 2 296 "0x00028500"
198 d G "CP2_B3_VREF" 2 297 "0x00808600"
199 d G "CP2_B1_VREF" 2 298 "0x00208700"
200 d G "CP2_OUT_ON_A5" 2 300 "0x00002000"
201 d G "CP2_INVERT" 2 301 "0x00001000"
202 d G "CP2_ABSOLUTE_VREF" 2 302 "0x10000000"
203 d G "CP2_T1_SYNC" 2 305 "0x01000000"
204 d G "CP2_T1_GATE" 2 306 "0x02000000"
205 d G "VREF_LOW" 2 315 "0xa0"
206 d G "VREF_HIGH" 2 316 "0x80"
207 d G "OSC_31KHZ" 2 322 "1"
208 d G "OSC_125KHZ" 2 323 "0x11"
209 d G "OSC_250KHZ" 2 324 "0x21"
210 d G "OSC_500KHZ" 2 325 "0x31"
211 d G "OSC_1MHZ" 2 326 "0x41"
212 d G "OSC_2MHZ" 2 327 "0x51"
213 d G "OSC_4MHZ" 2 328 "0x61"
214 d G "OSC_8MHZ" 2 329 "0x71"
215 d G "OSC_INTRC" 2 330 "1"
216 d G "OSC_NORMAL" 2 331 "0"
217 d G "OSC_STATE_STABLE" 2 333 "4"
218 d G "OSC_31KHZ_STABLE" 2 334 "2"
219 d G "ADC_OFF" 2 342 "0" "ADC Off"
220 d G "ADC_CLOCK_DIV_2" 2 343 "0x100"
221 d G "ADC_CLOCK_DIV_8" 2 344 "0x40"
222 d G "ADC_CLOCK_DIV_32" 2 345 "0x80"
223 d G "ADC_CLOCK_INTERNAL" 2 346 "0xc0" "Internal 2-6us"
224 d G "sAN0" 2 350 "1" "| A0"
225 d G "sAN1" 2 351 "2" "| A1"
226 d G "sAN2" 2 352 "4" "| A2"
227 d G "sAN3" 2 353 "8" "| A3"
228 d G "sAN4" 2 354 "16" "| A5"
229 d G "sAN5" 2 355 "32" "| E0"
230 d G "sAN6" 2 356 "64" "| E1"
231 d G "sAN7" 2 357 "128" "| E2"
232 d G "sAN8" 2 358 "0x10000" "| B2"
233 d G "sAN9" 2 359 "0x20000" "| B3"
234 d G "sAN10" 2 360 "0x40000" "| B1"
235 d G "sAN11" 2 361 "0x80000" "| B4"
236 d G "sAN12" 2 362 "0x100000" "| B0"
237 d G "sAN13" 2 363 "0x200000" "| B5"
238 d G "NO_ANALOGS" 2 364 "0" "None"
239 d G "ALL_ANALOG" 2 365 "0x1F00FF" "A0 A1 A2 A3 A5 E0 E1 E2 B0 B1 B2 B3 B4 B5"
240 d G "VSS_VDD" 2 368 "0x0000" "| Range 0-Vdd"
241 d G "VSS_VREF" 2 369 "0x1000" "| Range 0-Vref"
242 d G "VREF_VREF" 2 370 "0x3000" "| Range Vref-Vref"
243 d G "VREF_VDD" 2 371 "0x2000" "| Range Vref-Vdd"
244 d G "ADC_START_AND_READ" 2 375 "7" "This is the default if nothing is specified"
245 d G "ADC_START_ONLY" 2 376 "1"
246 d G "ADC_READ_ONLY" 2 377 "6"
247 d G "L_TO_H" 2 389 "0x40"
248 d G "H_TO_L" 2 390 "0"
249 d G "GLOBAL" 2 392 "0x0BC0"
250 d G "INT_RTCC" 2 393 "0x000B20"
251 d G "INT_RB" 2 394 "0x01FF0B08"
252 d G "INT_EXT_L2H" 2 395 "0x50000B10"
253 d G "INT_EXT_H2L" 2 396 "0x60000B10"
254 d G "INT_EXT" 2 397 "0x000B10"
255 d G "INT_AD" 2 398 "0x008C40"
256 d G "INT_TBE" 2 399 "0x008C10"
257 d G "INT_RDA" 2 400 "0x008C20"
258 d G "INT_TIMER1" 2 401 "0x008C01"
259 d G "INT_TIMER2" 2 402 "0x008C02"
260 d G "INT_CCP1" 2 403 "0x008C04"
261 d G "INT_CCP2" 2 404 "0x008D01"
262 d G "INT_SSP" 2 405 "0x008C08"
263 d G "INT_BUSCOL" 2 406 "0x008D08"
264 d G "INT_EEPROM" 2 407 "0x008D10"
265 d G "INT_TIMER0" 2 408 "0x000B20"
266 d G "INT_OSC_FAIL" 2 409 "0x008D80"
267 d G "INT_COMP" 2 410 "0x008D20"
268 d G "INT_COMP2" 2 411 "0x008D40"
269 d G "INT_ULPWU" 2 412 "0x008D04"
270 d G "INT_RB0" 2 413 "0x0010B08"
271 d G "INT_RB1" 2 414 "0x0020B08"
272 d G "INT_RB2" 2 415 "0x0040B08"
273 d G "INT_RB3" 2 416 "0x0080B08"
274 d G "INT_RB4" 2 417 "0x0100B08"
275 d G "INT_RB5" 2 418 "0x0200B08"
276 d G "INT_RB6" 2 419 "0x0400B08"
277 d G "INT_RB7" 2 420 "0x0800B08"
278 F G "main" 0 6 "void(*int8 s1,*int8 s2,int8 n)"
279 C L "main" 0 16 2 "FUNCTION"
280 F B "reset_cpu" 0 0
281 F B "abs" 1 0
282 F B "sleep_ulpwu" 1 0
283 F B "sleep" 0 0
284 F B "delay_cycles" 1 0
285 F B "read_bank" 2 0
286 F B "write_bank" 3 0
287 F B "shift_left" 2 2
288 F B "shift_right" 2 2
289 F B "rotate_left" 2 0
290 F B "rotate_right" 2 0
291 F B "_mul" 2 0
292 F B "memset" 3 0
293 F B "isamoung" 2 0
294 F B "isamong" 2 0
295 F B "bit_set" 2 0
296 F B "bit_clear" 2 0
297 F B "bit_test" 2 0
298 F B "toupper" 1 0
299 F B "tolower" 1 0
300 F B "swap" 1 0
301 F B "printf" 1 255
302 F B "fprintf" 1 255
303 F B "sprintf" 1 255
304 F B "make8" 2 0
305 F B "make16" 2 0
306 F B "make32" 1 255
307 F B "label_address" 1 1
308 F B "goto_address" 1 0
309 F B "_va_arg" 1 0
310 F B "offsetofbit" 2 2
311 F B "enable_interrupts" 1 0
312 F B "disable_interrupts" 1 0
313 F B "interrupt_active" 1 0
314 F B "clear_interrupt" 1 0
315 F B "jump_to_isr" 1 0
316 F B "ext_int_edge" 1 2
317 F B "read_eeprom" 1 0
318 F B "write_eeprom" 2 0
319 F B "read_program_eeprom" 1 0
320 F B "write_program_eeprom" 2 0
321 F B "write_program_memory" 4 0
322 F B "write_program_memory8" 4 0
323 F B "read_program_memory" 4 0
324 F B "read_program_memory8" 4 0
325 F B "erase_program_eeprom" 1 0
326 F B "strcpy" 2 0
327 F B "memcpy" 3 0
328 F B "strstr100" 2 0
329 F B "output_high" 1 0
330 F B "output_low" 1 0
331 F B "input" 1 0
332 F B "input_state" 1 0
333 F B "output_float" 1 0
334 F B "output_drive" 1 0
335 F B "output_bit" 1 1
336 F B "output_toggle" 1 0
337 F B "output_a" 1 0
338 F B "output_b" 1 0
339 F B "output_c" 1 0
340 F B "output_d" 1 0
341 F B "output_e" 1 0
342 F B "input_a" 0 0
343 F B "input_b" 0 0
344 F B "input_c" 0 0
345 F B "input_d" 0 0
346 F B "input_e" 0 0
347 F B "set_tris_a" 1 0
348 F B "set_tris_b" 1 0
349 F B "set_tris_c" 1 0
350 F B "set_tris_d" 1 0
351 F B "set_tris_e" 1 0
352 F B "get_tris_a" 0 0
353 F B "get_tris_b" 0 0
354 F B "get_tris_c" 0 0
355 F B "get_tris_d" 0 0
356 F B "get_tris_e" 0 0
357 F B "input_change_a" 0 0
358 F B "input_change_b" 0 0
359 F B "input_change_c" 0 0
360 F B "input_change_d" 0 0
361 F B "input_change_e" 0 0
362 F B "port_b_pullups" 1 0
363 F B "setup_counters" 2 0
364 F B "setup_wdt" 1 0
365 F B "restart_cause" 0 0
366 F B "restart_wdt" 0 0
367 F B "get_rtcc" 0 0
368 F B "set_rtcc" 1 0
369 F B "get_timer0" 0 0
370 F B "set_timer0" 1 0
371 F B "setup_comparator" 1 0
372 F B "setup_port_a" 1 0
373 F B "setup_adc_ports" 1 0
374 F B "setup_adc" 1 0
375 F B "set_adc_channel" 1 0
376 F B "read_adc" 0 1
377 F B "adc_done" 0 0
378 F B "setup_timer_0" 1 0
379 F B "setup_vref" 1 0
380 F B "setup_timer_1" 1 0
381 F B "get_timer1" 0 0
382 F B "set_timer1" 1 0
383 F B "setup_timer_2" 3 0
384 F B "get_timer2" 0 0
385 F B "set_timer2" 1 0
386 F B "setup_ccp1" 1 2
387 F B "set_pwm1_duty" 1 0
388 F B "setup_ccp2" 1 0
389 F B "set_pwm2_duty" 1 0
390 F B "setup_oscillator" 1 2
391 F B "setup_spi" 1 0
392 F B "spi_read" 0 1
393 F B "spi_write" 1 0
394 F B "spi_data_is_in" 0 0
395 F B "setup_spi2" 1 0
396 F B "spi_read2" 0 1
397 F B "spi_write2" 1 0
398 F B "spi_data_is_in2" 0 0
399 F B "brownout_enable" 1 0
400 F B "delay_ms" 1 0
401 F B "delay_us" 1 0
402 F B "putchar" 1 2
403 F B "puts" 1 2
404 F B "getch" 0 1
405 F B "gets" 1 3
406 F B "kbhit" 0 1