1045 |
jacho |
1 |
CCS PCM C Compiler, Version 4.106, 47914 22-4-13 21:26 |
|
|
2 |
|
|
|
3 |
Filename: c:\users\honza\documents\pic\i2c_baterka\main.lst |
|
|
4 |
|
|
|
5 |
ROM used: 2363 words (29%) |
|
|
6 |
Largest free fragment is 2048 |
|
|
7 |
RAM used: 8 (2%) at main() level |
|
|
8 |
40 (11%) worst case |
|
|
9 |
Stack: 2 locations |
|
|
10 |
|
|
|
11 |
* |
|
|
12 |
0000: MOVLW 08 |
|
|
13 |
0001: MOVWF 0A |
|
|
14 |
0002: GOTO 000 |
|
|
15 |
0003: NOP |
|
|
16 |
.................... #include "C:\Users\Honza\Documents\pic\I2C_magnetometr\main.h" |
|
|
17 |
.................... #include <16F887.h> |
|
|
18 |
.................... //////// Standard Header file for the PIC16F887 device //////////////// |
|
|
19 |
.................... #device PIC16F887 |
|
|
20 |
.................... #list |
|
|
21 |
.................... |
|
|
22 |
.................... #device adc=8 |
|
|
23 |
.................... |
|
|
24 |
.................... #FUSES NOWDT //No Watch Dog Timer |
|
|
25 |
.................... #FUSES INTRC //Internal RC Osc |
|
|
26 |
.................... #FUSES NOPUT //No Power Up Timer |
|
|
27 |
.................... #FUSES MCLR //Master Clear pin enabled |
|
|
28 |
.................... #FUSES NOPROTECT //Code not protected from reading |
|
|
29 |
.................... #FUSES NOCPD //No EE protection |
|
|
30 |
.................... #FUSES NOBROWNOUT //No brownout reset |
|
|
31 |
.................... #FUSES IESO //Internal External Switch Over mode enabled |
|
|
32 |
.................... #FUSES FCMEN //Fail-safe clock monitor enabled |
|
|
33 |
.................... #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
|
|
34 |
.................... #FUSES NODEBUG //No Debug mode for ICD |
|
|
35 |
.................... #FUSES NOWRT //Program memory not write protected |
|
|
36 |
.................... #FUSES BORV40 //Brownout reset at 4.0V |
|
|
37 |
.................... |
|
|
38 |
.................... #use delay(clock=8000000) |
|
|
39 |
* |
|
|
40 |
024B: MOVLW 3A |
|
|
41 |
024C: MOVWF 04 |
|
|
42 |
024D: BCF 03.7 |
|
|
43 |
024E: MOVF 00,W |
|
|
44 |
024F: BTFSC 03.2 |
|
|
45 |
0250: GOTO 25E |
|
|
46 |
0251: MOVLW 02 |
|
|
47 |
0252: MOVWF 78 |
|
|
48 |
0253: CLRF 77 |
|
|
49 |
0254: DECFSZ 77,F |
|
|
50 |
0255: GOTO 254 |
|
|
51 |
0256: DECFSZ 78,F |
|
|
52 |
0257: GOTO 253 |
|
|
53 |
0258: MOVLW 97 |
|
|
54 |
0259: MOVWF 77 |
|
|
55 |
025A: DECFSZ 77,F |
|
|
56 |
025B: GOTO 25A |
|
|
57 |
025C: DECFSZ 00,F |
|
|
58 |
025D: GOTO 251 |
|
|
59 |
025E: BSF 0A.3 |
|
|
60 |
025F: BCF 0A.4 |
|
|
61 |
0260: GOTO 6D5 (RETURN) |
|
|
62 |
.................... |
|
|
63 |
.................... |
|
|
64 |
.................... #define EEPROM_SDA PIN_C4 |
|
|
65 |
.................... #define EEPROM_SCL PIN_C3 |
|
|
66 |
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
|
|
67 |
* |
|
|
68 |
00C6: MOVLW 08 |
|
|
69 |
00C7: MOVWF 78 |
|
|
70 |
00C8: NOP |
|
|
71 |
00C9: BCF 07.3 |
|
|
72 |
00CA: BCF 20.3 |
|
|
73 |
00CB: MOVF 20,W |
|
|
74 |
00CC: BSF 03.5 |
|
|
75 |
00CD: MOVWF 07 |
|
|
76 |
00CE: NOP |
|
|
77 |
00CF: BCF 03.5 |
|
|
78 |
00D0: RLF 39,F |
|
|
79 |
00D1: BCF 07.4 |
|
|
80 |
00D2: BTFSS 03.0 |
|
|
81 |
00D3: GOTO 0DA |
|
|
82 |
00D4: BSF 20.4 |
|
|
83 |
00D5: MOVF 20,W |
|
|
84 |
00D6: BSF 03.5 |
|
|
85 |
00D7: MOVWF 07 |
|
|
86 |
00D8: GOTO 0DE |
|
|
87 |
00D9: BCF 03.5 |
|
|
88 |
00DA: BCF 20.4 |
|
|
89 |
00DB: MOVF 20,W |
|
|
90 |
00DC: BSF 03.5 |
|
|
91 |
00DD: MOVWF 07 |
|
|
92 |
00DE: NOP |
|
|
93 |
00DF: BCF 03.5 |
|
|
94 |
00E0: BSF 20.3 |
|
|
95 |
00E1: MOVF 20,W |
|
|
96 |
00E2: BSF 03.5 |
|
|
97 |
00E3: MOVWF 07 |
|
|
98 |
00E4: BCF 03.5 |
|
|
99 |
00E5: BTFSS 07.3 |
|
|
100 |
00E6: GOTO 0E5 |
|
|
101 |
00E7: DECFSZ 78,F |
|
|
102 |
00E8: GOTO 0C8 |
|
|
103 |
00E9: NOP |
|
|
104 |
00EA: BCF 07.3 |
|
|
105 |
00EB: BCF 20.3 |
|
|
106 |
00EC: MOVF 20,W |
|
|
107 |
00ED: BSF 03.5 |
|
|
108 |
00EE: MOVWF 07 |
|
|
109 |
00EF: NOP |
|
|
110 |
00F0: BCF 03.5 |
|
|
111 |
00F1: BSF 20.4 |
|
|
112 |
00F2: MOVF 20,W |
|
|
113 |
00F3: BSF 03.5 |
|
|
114 |
00F4: MOVWF 07 |
|
|
115 |
00F5: NOP |
|
|
116 |
00F6: NOP |
|
|
117 |
00F7: BCF 03.5 |
|
|
118 |
00F8: BSF 20.3 |
|
|
119 |
00F9: MOVF 20,W |
|
|
120 |
00FA: BSF 03.5 |
|
|
121 |
00FB: MOVWF 07 |
|
|
122 |
00FC: BCF 03.5 |
|
|
123 |
00FD: BTFSS 07.3 |
|
|
124 |
00FE: GOTO 0FD |
|
|
125 |
00FF: CLRF 78 |
|
|
126 |
0100: NOP |
|
|
127 |
0101: BTFSC 07.4 |
|
|
128 |
0102: BSF 78.0 |
|
|
129 |
0103: BCF 07.3 |
|
|
130 |
0104: BCF 20.3 |
|
|
131 |
0105: MOVF 20,W |
|
|
132 |
0106: BSF 03.5 |
|
|
133 |
0107: MOVWF 07 |
|
|
134 |
0108: BCF 03.5 |
|
|
135 |
0109: BCF 07.4 |
|
|
136 |
010A: BCF 20.4 |
|
|
137 |
010B: MOVF 20,W |
|
|
138 |
010C: BSF 03.5 |
|
|
139 |
010D: MOVWF 07 |
|
|
140 |
010E: BCF 03.5 |
|
|
141 |
010F: RETURN |
|
|
142 |
0110: MOVLW 08 |
|
|
143 |
0111: MOVWF 3A |
|
|
144 |
0112: MOVF 77,W |
|
|
145 |
0113: MOVWF 3B |
|
|
146 |
0114: BSF 20.4 |
|
|
147 |
0115: MOVF 20,W |
|
|
148 |
0116: BSF 03.5 |
|
|
149 |
0117: MOVWF 07 |
|
|
150 |
0118: NOP |
|
|
151 |
0119: BCF 03.5 |
|
|
152 |
011A: BSF 20.3 |
|
|
153 |
011B: MOVF 20,W |
|
|
154 |
011C: BSF 03.5 |
|
|
155 |
011D: MOVWF 07 |
|
|
156 |
011E: BCF 03.5 |
|
|
157 |
011F: BTFSS 07.3 |
|
|
158 |
0120: GOTO 11F |
|
|
159 |
0121: BTFSC 07.4 |
|
|
160 |
0122: BSF 03.0 |
|
|
161 |
0123: BTFSS 07.4 |
|
|
162 |
0124: BCF 03.0 |
|
|
163 |
0125: RLF 78,F |
|
|
164 |
0126: NOP |
|
|
165 |
0127: BCF 20.3 |
|
|
166 |
0128: MOVF 20,W |
|
|
167 |
0129: BSF 03.5 |
|
|
168 |
012A: MOVWF 07 |
|
|
169 |
012B: BCF 03.5 |
|
|
170 |
012C: BCF 07.3 |
|
|
171 |
012D: DECFSZ 3A,F |
|
|
172 |
012E: GOTO 114 |
|
|
173 |
012F: BSF 20.4 |
|
|
174 |
0130: MOVF 20,W |
|
|
175 |
0131: BSF 03.5 |
|
|
176 |
0132: MOVWF 07 |
|
|
177 |
0133: NOP |
|
|
178 |
0134: BCF 03.5 |
|
|
179 |
0135: BCF 07.4 |
|
|
180 |
0136: MOVF 3B,W |
|
|
181 |
0137: BTFSC 03.2 |
|
|
182 |
0138: GOTO 13E |
|
|
183 |
0139: BCF 20.4 |
|
|
184 |
013A: MOVF 20,W |
|
|
185 |
013B: BSF 03.5 |
|
|
186 |
013C: MOVWF 07 |
|
|
187 |
013D: BCF 03.5 |
|
|
188 |
013E: NOP |
|
|
189 |
013F: BSF 20.3 |
|
|
190 |
0140: MOVF 20,W |
|
|
191 |
0141: BSF 03.5 |
|
|
192 |
0142: MOVWF 07 |
|
|
193 |
0143: BCF 03.5 |
|
|
194 |
0144: BTFSS 07.3 |
|
|
195 |
0145: GOTO 144 |
|
|
196 |
0146: NOP |
|
|
197 |
0147: BCF 07.3 |
|
|
198 |
0148: BCF 20.3 |
|
|
199 |
0149: MOVF 20,W |
|
|
200 |
014A: BSF 03.5 |
|
|
201 |
014B: MOVWF 07 |
|
|
202 |
014C: NOP |
|
|
203 |
014D: BCF 03.5 |
|
|
204 |
014E: BCF 07.4 |
|
|
205 |
014F: BCF 20.4 |
|
|
206 |
0150: MOVF 20,W |
|
|
207 |
0151: BSF 03.5 |
|
|
208 |
0152: MOVWF 07 |
|
|
209 |
0153: BCF 03.5 |
|
|
210 |
0154: RETURN |
|
|
211 |
.................... #use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD |
|
|
212 |
* |
|
|
213 |
005A: BCF 20.7 |
|
|
214 |
005B: MOVF 20,W |
|
|
215 |
005C: BSF 03.5 |
|
|
216 |
005D: MOVWF 07 |
|
|
217 |
005E: BCF 03.5 |
|
|
218 |
005F: BCF 07.7 |
|
|
219 |
0060: MOVLW 08 |
|
|
220 |
0061: MOVWF 78 |
|
|
221 |
0062: GOTO 063 |
|
|
222 |
0063: NOP |
|
|
223 |
0064: BSF 78.7 |
|
|
224 |
0065: GOTO 074 |
|
|
225 |
0066: BCF 78.7 |
|
|
226 |
0067: RRF 42,F |
|
|
227 |
0068: BTFSC 03.0 |
|
|
228 |
0069: BSF 07.7 |
|
|
229 |
006A: BTFSS 03.0 |
|
|
230 |
006B: BCF 07.7 |
|
|
231 |
006C: BSF 78.6 |
|
|
232 |
006D: GOTO 074 |
|
|
233 |
006E: BCF 78.6 |
|
|
234 |
006F: DECFSZ 78,F |
|
|
235 |
0070: GOTO 067 |
|
|
236 |
0071: GOTO 072 |
|
|
237 |
0072: NOP |
|
|
238 |
0073: BSF 07.7 |
|
|
239 |
0074: MOVLW 3F |
|
|
240 |
0075: MOVWF 04 |
|
|
241 |
0076: DECFSZ 04,F |
|
|
242 |
0077: GOTO 076 |
|
|
243 |
0078: NOP |
|
|
244 |
0079: BTFSC 78.7 |
|
|
245 |
007A: GOTO 066 |
|
|
246 |
007B: BTFSC 78.6 |
|
|
247 |
007C: GOTO 06E |
|
|
248 |
007D: RETURN |
|
|
249 |
.................... |
|
|
250 |
.................... |
|
|
251 |
.................... void main() |
|
|
252 |
.................... { |
|
|
253 |
* |
|
|
254 |
0059: DATA 00,00 |
|
|
255 |
* |
|
|
256 |
0800: CLRF 04 |
|
|
257 |
0801: BCF 03.7 |
|
|
258 |
0802: MOVLW 1F |
|
|
259 |
0803: ANDWF 03,F |
|
|
260 |
0804: MOVLW 71 |
|
|
261 |
0805: BSF 03.5 |
|
|
262 |
0806: MOVWF 0F |
|
|
263 |
0807: MOVF 0F,W |
|
|
264 |
0808: BCF 03.5 |
|
|
265 |
0809: BCF 20.7 |
|
|
266 |
080A: MOVF 20,W |
|
|
267 |
080B: BSF 03.5 |
|
|
268 |
080C: MOVWF 07 |
|
|
269 |
080D: BCF 03.5 |
|
|
270 |
080E: BSF 07.7 |
|
|
271 |
080F: BSF 03.5 |
|
|
272 |
0810: BSF 03.6 |
|
|
273 |
0811: MOVF 09,W |
|
|
274 |
0812: ANDLW C0 |
|
|
275 |
0813: MOVWF 09 |
|
|
276 |
0814: BCF 03.6 |
|
|
277 |
0815: BCF 1F.4 |
|
|
278 |
0816: BCF 1F.5 |
|
|
279 |
0817: MOVLW 00 |
|
|
280 |
0818: BSF 03.6 |
|
|
281 |
0819: MOVWF 08 |
|
|
282 |
081A: BCF 03.5 |
|
|
283 |
081B: CLRF 07 |
|
|
284 |
081C: CLRF 08 |
|
|
285 |
081D: CLRF 09 |
|
|
286 |
.................... |
|
|
287 |
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD); |
|
|
288 |
* |
|
|
289 |
0821: BSF 03.5 |
|
|
290 |
0822: BSF 03.6 |
|
|
291 |
0823: MOVF 09,W |
|
|
292 |
0824: ANDLW C0 |
|
|
293 |
0825: MOVWF 09 |
|
|
294 |
0826: BCF 03.6 |
|
|
295 |
0827: BCF 1F.4 |
|
|
296 |
0828: BCF 1F.5 |
|
|
297 |
0829: MOVLW 00 |
|
|
298 |
082A: BSF 03.6 |
|
|
299 |
082B: MOVWF 08 |
|
|
300 |
.................... setup_adc(ADC_CLOCK_DIV_2); |
|
|
301 |
082C: BCF 03.5 |
|
|
302 |
082D: BCF 03.6 |
|
|
303 |
082E: BCF 1F.6 |
|
|
304 |
082F: BCF 1F.7 |
|
|
305 |
0830: BSF 03.5 |
|
|
306 |
0831: BCF 1F.7 |
|
|
307 |
0832: BCF 03.5 |
|
|
308 |
0833: BSF 1F.0 |
|
|
309 |
.................... setup_spi(SPI_SS_DISABLED); |
|
|
310 |
0834: BCF 14.5 |
|
|
311 |
0835: BCF 20.5 |
|
|
312 |
0836: MOVF 20,W |
|
|
313 |
0837: BSF 03.5 |
|
|
314 |
0838: MOVWF 07 |
|
|
315 |
0839: BCF 03.5 |
|
|
316 |
083A: BSF 20.4 |
|
|
317 |
083B: MOVF 20,W |
|
|
318 |
083C: BSF 03.5 |
|
|
319 |
083D: MOVWF 07 |
|
|
320 |
083E: BCF 03.5 |
|
|
321 |
083F: BCF 20.3 |
|
|
322 |
0840: MOVF 20,W |
|
|
323 |
0841: BSF 03.5 |
|
|
324 |
0842: MOVWF 07 |
|
|
325 |
0843: MOVLW 01 |
|
|
326 |
0844: BCF 03.5 |
|
|
327 |
0845: MOVWF 14 |
|
|
328 |
0846: MOVLW 00 |
|
|
329 |
0847: BSF 03.5 |
|
|
330 |
0848: MOVWF 14 |
|
|
331 |
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
|
|
332 |
0849: MOVF 01,W |
|
|
333 |
084A: ANDLW C7 |
|
|
334 |
084B: IORLW 08 |
|
|
335 |
084C: MOVWF 01 |
|
|
336 |
.................... setup_timer_1(T1_DISABLED); |
|
|
337 |
084D: BCF 03.5 |
|
|
338 |
084E: CLRF 10 |
|
|
339 |
.................... setup_timer_2(T2_DISABLED,0,1); |
|
|
340 |
084F: MOVLW 00 |
|
|
341 |
0850: MOVWF 78 |
|
|
342 |
0851: MOVWF 12 |
|
|
343 |
0852: MOVLW 00 |
|
|
344 |
0853: BSF 03.5 |
|
|
345 |
0854: MOVWF 12 |
|
|
346 |
.................... setup_ccp1(CCP_OFF); |
|
|
347 |
0855: BCF 03.5 |
|
|
348 |
0856: BSF 20.2 |
|
|
349 |
0857: MOVF 20,W |
|
|
350 |
0858: BSF 03.5 |
|
|
351 |
0859: MOVWF 07 |
|
|
352 |
085A: BCF 03.5 |
|
|
353 |
085B: CLRF 17 |
|
|
354 |
085C: BSF 03.5 |
|
|
355 |
085D: CLRF 1B |
|
|
356 |
085E: CLRF 1C |
|
|
357 |
085F: MOVLW 01 |
|
|
358 |
0860: MOVWF 1D |
|
|
359 |
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard |
|
|
360 |
0861: BCF 03.5 |
|
|
361 |
0862: BSF 03.6 |
|
|
362 |
0863: CLRF 07 |
|
|
363 |
0864: CLRF 08 |
|
|
364 |
0865: CLRF 09 |
|
|
365 |
.................... |
|
|
366 |
.................... printf("Simple Thermomether \r\n",); |
|
|
367 |
0866: MOVLW 04 |
|
|
368 |
0867: MOVWF 0D |
|
|
369 |
0868: MOVLW 00 |
|
|
370 |
0869: MOVWF 0F |
|
|
371 |
086A: BCF 0A.3 |
|
|
372 |
086B: BCF 03.6 |
|
|
373 |
086C: GOTO 07E |
|
|
374 |
086D: BSF 0A.3 |
|
|
375 |
.................... unsigned int8 INTEP,INTEP1, NAP,NAP1, PROUD,PROUD1,KAPZ,KAPZ1,KAPC,KAPC1, STAV,STAV1; |
|
|
376 |
.................... |
|
|
377 |
.................... |
|
|
378 |
.................... |
|
|
379 |
.................... int16 data4; |
|
|
380 |
.................... int16 data5; |
|
|
381 |
.................... int16 data6; |
|
|
382 |
.................... int16 data7; |
|
|
383 |
.................... int16 data8; |
|
|
384 |
.................... int16 data9; |
|
|
385 |
.................... |
|
|
386 |
.................... while(TRUE) |
|
|
387 |
.................... { |
|
|
388 |
.................... |
|
|
389 |
.................... |
|
|
390 |
.................... |
|
|
391 |
.................... i2c_start(); |
|
|
392 |
086E: BSF 20.4 |
|
|
393 |
086F: MOVF 20,W |
|
|
394 |
0870: BSF 03.5 |
|
|
395 |
0871: MOVWF 07 |
|
|
396 |
0872: NOP |
|
|
397 |
0873: BCF 03.5 |
|
|
398 |
0874: BSF 20.3 |
|
|
399 |
0875: MOVF 20,W |
|
|
400 |
0876: BSF 03.5 |
|
|
401 |
0877: MOVWF 07 |
|
|
402 |
0878: NOP |
|
|
403 |
0879: BCF 03.5 |
|
|
404 |
087A: BCF 07.4 |
|
|
405 |
087B: BCF 20.4 |
|
|
406 |
087C: MOVF 20,W |
|
|
407 |
087D: BSF 03.5 |
|
|
408 |
087E: MOVWF 07 |
|
|
409 |
087F: NOP |
|
|
410 |
0880: BCF 03.5 |
|
|
411 |
0881: BCF 07.3 |
|
|
412 |
0882: BCF 20.3 |
|
|
413 |
0883: MOVF 20,W |
|
|
414 |
0884: BSF 03.5 |
|
|
415 |
0885: MOVWF 07 |
|
|
416 |
.................... I2C_Write(0xAA); |
|
|
417 |
0886: MOVLW AA |
|
|
418 |
0887: BCF 03.5 |
|
|
419 |
0888: MOVWF 39 |
|
|
420 |
0889: BCF 0A.3 |
|
|
421 |
088A: CALL 0C6 |
|
|
422 |
088B: BSF 0A.3 |
|
|
423 |
.................... I2C_write(0x0c); |
|
|
424 |
088C: MOVLW 0C |
|
|
425 |
088D: MOVWF 39 |
|
|
426 |
088E: BCF 0A.3 |
|
|
427 |
088F: CALL 0C6 |
|
|
428 |
0890: BSF 0A.3 |
|
|
429 |
.................... |
|
|
430 |
.................... i2c_start(); |
|
|
431 |
0891: BSF 20.4 |
|
|
432 |
0892: MOVF 20,W |
|
|
433 |
0893: BSF 03.5 |
|
|
434 |
0894: MOVWF 07 |
|
|
435 |
0895: NOP |
|
|
436 |
0896: BCF 03.5 |
|
|
437 |
0897: BSF 20.3 |
|
|
438 |
0898: MOVF 20,W |
|
|
439 |
0899: BSF 03.5 |
|
|
440 |
089A: MOVWF 07 |
|
|
441 |
089B: NOP |
|
|
442 |
089C: BCF 03.5 |
|
|
443 |
089D: BTFSS 07.3 |
|
|
444 |
089E: GOTO 09D |
|
|
445 |
089F: BCF 07.4 |
|
|
446 |
08A0: BCF 20.4 |
|
|
447 |
08A1: MOVF 20,W |
|
|
448 |
08A2: BSF 03.5 |
|
|
449 |
08A3: MOVWF 07 |
|
|
450 |
08A4: NOP |
|
|
451 |
08A5: BCF 03.5 |
|
|
452 |
08A6: BCF 07.3 |
|
|
453 |
08A7: BCF 20.3 |
|
|
454 |
08A8: MOVF 20,W |
|
|
455 |
08A9: BSF 03.5 |
|
|
456 |
08AA: MOVWF 07 |
|
|
457 |
.................... I2C_Write(0xAB); |
|
|
458 |
08AB: MOVLW AB |
|
|
459 |
08AC: BCF 03.5 |
|
|
460 |
08AD: MOVWF 39 |
|
|
461 |
08AE: BCF 0A.3 |
|
|
462 |
08AF: CALL 0C6 |
|
|
463 |
08B0: BSF 0A.3 |
|
|
464 |
.................... INTEP=i2c_read(0); |
|
|
465 |
08B1: CLRF 77 |
|
|
466 |
08B2: BCF 0A.3 |
|
|
467 |
08B3: CALL 110 |
|
|
468 |
08B4: BSF 0A.3 |
|
|
469 |
08B5: MOVF 78,W |
|
|
470 |
08B6: MOVWF 21 |
|
|
471 |
.................... i2c_stop(); |
|
|
472 |
08B7: BCF 20.4 |
|
|
473 |
08B8: MOVF 20,W |
|
|
474 |
08B9: BSF 03.5 |
|
|
475 |
08BA: MOVWF 07 |
|
|
476 |
08BB: NOP |
|
|
477 |
08BC: BCF 03.5 |
|
|
478 |
08BD: BSF 20.3 |
|
|
479 |
08BE: MOVF 20,W |
|
|
480 |
08BF: BSF 03.5 |
|
|
481 |
08C0: MOVWF 07 |
|
|
482 |
08C1: BCF 03.5 |
|
|
483 |
08C2: BTFSS 07.3 |
|
|
484 |
08C3: GOTO 0C2 |
|
|
485 |
08C4: NOP |
|
|
486 |
08C5: GOTO 0C6 |
|
|
487 |
08C6: NOP |
|
|
488 |
08C7: BSF 20.4 |
|
|
489 |
08C8: MOVF 20,W |
|
|
490 |
08C9: BSF 03.5 |
|
|
491 |
08CA: MOVWF 07 |
|
|
492 |
08CB: NOP |
|
|
493 |
.................... |
|
|
494 |
.................... i2c_start(); |
|
|
495 |
08CC: BCF 03.5 |
|
|
496 |
08CD: BSF 20.4 |
|
|
497 |
08CE: MOVF 20,W |
|
|
498 |
08CF: BSF 03.5 |
|
|
499 |
08D0: MOVWF 07 |
|
|
500 |
08D1: NOP |
|
|
501 |
08D2: BCF 03.5 |
|
|
502 |
08D3: BSF 20.3 |
|
|
503 |
08D4: MOVF 20,W |
|
|
504 |
08D5: BSF 03.5 |
|
|
505 |
08D6: MOVWF 07 |
|
|
506 |
08D7: NOP |
|
|
507 |
08D8: BCF 03.5 |
|
|
508 |
08D9: BCF 07.4 |
|
|
509 |
08DA: BCF 20.4 |
|
|
510 |
08DB: MOVF 20,W |
|
|
511 |
08DC: BSF 03.5 |
|
|
512 |
08DD: MOVWF 07 |
|
|
513 |
08DE: NOP |
|
|
514 |
08DF: BCF 03.5 |
|
|
515 |
08E0: BCF 07.3 |
|
|
516 |
08E1: BCF 20.3 |
|
|
517 |
08E2: MOVF 20,W |
|
|
518 |
08E3: BSF 03.5 |
|
|
519 |
08E4: MOVWF 07 |
|
|
520 |
.................... I2C_Write(0xAA); |
|
|
521 |
08E5: MOVLW AA |
|
|
522 |
08E6: BCF 03.5 |
|
|
523 |
08E7: MOVWF 39 |
|
|
524 |
08E8: BCF 0A.3 |
|
|
525 |
08E9: CALL 0C6 |
|
|
526 |
08EA: BSF 0A.3 |
|
|
527 |
.................... I2C_write(0x0d); |
|
|
528 |
08EB: MOVLW 0D |
|
|
529 |
08EC: MOVWF 39 |
|
|
530 |
08ED: BCF 0A.3 |
|
|
531 |
08EE: CALL 0C6 |
|
|
532 |
08EF: BSF 0A.3 |
|
|
533 |
.................... i2c_start(); |
|
|
534 |
08F0: BSF 20.4 |
|
|
535 |
08F1: MOVF 20,W |
|
|
536 |
08F2: BSF 03.5 |
|
|
537 |
08F3: MOVWF 07 |
|
|
538 |
08F4: NOP |
|
|
539 |
08F5: BCF 03.5 |
|
|
540 |
08F6: BSF 20.3 |
|
|
541 |
08F7: MOVF 20,W |
|
|
542 |
08F8: BSF 03.5 |
|
|
543 |
08F9: MOVWF 07 |
|
|
544 |
08FA: NOP |
|
|
545 |
08FB: BCF 03.5 |
|
|
546 |
08FC: BTFSS 07.3 |
|
|
547 |
08FD: GOTO 0FC |
|
|
548 |
08FE: BCF 07.4 |
|
|
549 |
08FF: BCF 20.4 |
|
|
550 |
0900: MOVF 20,W |
|
|
551 |
0901: BSF 03.5 |
|
|
552 |
0902: MOVWF 07 |
|
|
553 |
0903: NOP |
|
|
554 |
0904: BCF 03.5 |
|
|
555 |
0905: BCF 07.3 |
|
|
556 |
0906: BCF 20.3 |
|
|
557 |
0907: MOVF 20,W |
|
|
558 |
0908: BSF 03.5 |
|
|
559 |
0909: MOVWF 07 |
|
|
560 |
.................... I2C_Write(0xAB); |
|
|
561 |
090A: MOVLW AB |
|
|
562 |
090B: BCF 03.5 |
|
|
563 |
090C: MOVWF 39 |
|
|
564 |
090D: BCF 0A.3 |
|
|
565 |
090E: CALL 0C6 |
|
|
566 |
090F: BSF 0A.3 |
|
|
567 |
.................... INTEP1=i2c_read(0); |
|
|
568 |
0910: CLRF 77 |
|
|
569 |
0911: BCF 0A.3 |
|
|
570 |
0912: CALL 110 |
|
|
571 |
0913: BSF 0A.3 |
|
|
572 |
0914: MOVF 78,W |
|
|
573 |
0915: MOVWF 22 |
|
|
574 |
.................... i2c_stop(); |
|
|
575 |
0916: BCF 20.4 |
|
|
576 |
0917: MOVF 20,W |
|
|
577 |
0918: BSF 03.5 |
|
|
578 |
0919: MOVWF 07 |
|
|
579 |
091A: NOP |
|
|
580 |
091B: BCF 03.5 |
|
|
581 |
091C: BSF 20.3 |
|
|
582 |
091D: MOVF 20,W |
|
|
583 |
091E: BSF 03.5 |
|
|
584 |
091F: MOVWF 07 |
|
|
585 |
0920: BCF 03.5 |
|
|
586 |
0921: BTFSS 07.3 |
|
|
587 |
0922: GOTO 121 |
|
|
588 |
0923: NOP |
|
|
589 |
0924: GOTO 125 |
|
|
590 |
0925: NOP |
|
|
591 |
0926: BSF 20.4 |
|
|
592 |
0927: MOVF 20,W |
|
|
593 |
0928: BSF 03.5 |
|
|
594 |
0929: MOVWF 07 |
|
|
595 |
092A: NOP |
|
|
596 |
.................... |
|
|
597 |
.................... i2c_start(); |
|
|
598 |
092B: BCF 03.5 |
|
|
599 |
092C: BSF 20.4 |
|
|
600 |
092D: MOVF 20,W |
|
|
601 |
092E: BSF 03.5 |
|
|
602 |
092F: MOVWF 07 |
|
|
603 |
0930: NOP |
|
|
604 |
0931: BCF 03.5 |
|
|
605 |
0932: BSF 20.3 |
|
|
606 |
0933: MOVF 20,W |
|
|
607 |
0934: BSF 03.5 |
|
|
608 |
0935: MOVWF 07 |
|
|
609 |
0936: NOP |
|
|
610 |
0937: BCF 03.5 |
|
|
611 |
0938: BCF 07.4 |
|
|
612 |
0939: BCF 20.4 |
|
|
613 |
093A: MOVF 20,W |
|
|
614 |
093B: BSF 03.5 |
|
|
615 |
093C: MOVWF 07 |
|
|
616 |
093D: NOP |
|
|
617 |
093E: BCF 03.5 |
|
|
618 |
093F: BCF 07.3 |
|
|
619 |
0940: BCF 20.3 |
|
|
620 |
0941: MOVF 20,W |
|
|
621 |
0942: BSF 03.5 |
|
|
622 |
0943: MOVWF 07 |
|
|
623 |
.................... I2C_Write(0xAA); |
|
|
624 |
0944: MOVLW AA |
|
|
625 |
0945: BCF 03.5 |
|
|
626 |
0946: MOVWF 39 |
|
|
627 |
0947: BCF 0A.3 |
|
|
628 |
0948: CALL 0C6 |
|
|
629 |
0949: BSF 0A.3 |
|
|
630 |
.................... I2C_write(0x08); |
|
|
631 |
094A: MOVLW 08 |
|
|
632 |
094B: MOVWF 39 |
|
|
633 |
094C: BCF 0A.3 |
|
|
634 |
094D: CALL 0C6 |
|
|
635 |
094E: BSF 0A.3 |
|
|
636 |
.................... i2c_stop(); |
|
|
637 |
094F: BCF 20.4 |
|
|
638 |
0950: MOVF 20,W |
|
|
639 |
0951: BSF 03.5 |
|
|
640 |
0952: MOVWF 07 |
|
|
641 |
0953: NOP |
|
|
642 |
0954: BCF 03.5 |
|
|
643 |
0955: BSF 20.3 |
|
|
644 |
0956: MOVF 20,W |
|
|
645 |
0957: BSF 03.5 |
|
|
646 |
0958: MOVWF 07 |
|
|
647 |
0959: BCF 03.5 |
|
|
648 |
095A: BTFSS 07.3 |
|
|
649 |
095B: GOTO 15A |
|
|
650 |
095C: NOP |
|
|
651 |
095D: GOTO 15E |
|
|
652 |
095E: NOP |
|
|
653 |
095F: BSF 20.4 |
|
|
654 |
0960: MOVF 20,W |
|
|
655 |
0961: BSF 03.5 |
|
|
656 |
0962: MOVWF 07 |
|
|
657 |
0963: NOP |
|
|
658 |
.................... i2c_start(); |
|
|
659 |
0964: BCF 03.5 |
|
|
660 |
0965: BSF 20.4 |
|
|
661 |
0966: MOVF 20,W |
|
|
662 |
0967: BSF 03.5 |
|
|
663 |
0968: MOVWF 07 |
|
|
664 |
0969: NOP |
|
|
665 |
096A: BCF 03.5 |
|
|
666 |
096B: BSF 20.3 |
|
|
667 |
096C: MOVF 20,W |
|
|
668 |
096D: BSF 03.5 |
|
|
669 |
096E: MOVWF 07 |
|
|
670 |
096F: NOP |
|
|
671 |
0970: BCF 03.5 |
|
|
672 |
0971: BCF 07.4 |
|
|
673 |
0972: BCF 20.4 |
|
|
674 |
0973: MOVF 20,W |
|
|
675 |
0974: BSF 03.5 |
|
|
676 |
0975: MOVWF 07 |
|
|
677 |
0976: NOP |
|
|
678 |
0977: BCF 03.5 |
|
|
679 |
0978: BCF 07.3 |
|
|
680 |
0979: BCF 20.3 |
|
|
681 |
097A: MOVF 20,W |
|
|
682 |
097B: BSF 03.5 |
|
|
683 |
097C: MOVWF 07 |
|
|
684 |
.................... I2C_Write(0xAB); |
|
|
685 |
097D: MOVLW AB |
|
|
686 |
097E: BCF 03.5 |
|
|
687 |
097F: MOVWF 39 |
|
|
688 |
0980: BCF 0A.3 |
|
|
689 |
0981: CALL 0C6 |
|
|
690 |
0982: BSF 0A.3 |
|
|
691 |
.................... NAP=i2c_read(0); |
|
|
692 |
0983: CLRF 77 |
|
|
693 |
0984: BCF 0A.3 |
|
|
694 |
0985: CALL 110 |
|
|
695 |
0986: BSF 0A.3 |
|
|
696 |
0987: MOVF 78,W |
|
|
697 |
0988: MOVWF 23 |
|
|
698 |
.................... i2c_stop(); |
|
|
699 |
0989: BCF 20.4 |
|
|
700 |
098A: MOVF 20,W |
|
|
701 |
098B: BSF 03.5 |
|
|
702 |
098C: MOVWF 07 |
|
|
703 |
098D: NOP |
|
|
704 |
098E: BCF 03.5 |
|
|
705 |
098F: BSF 20.3 |
|
|
706 |
0990: MOVF 20,W |
|
|
707 |
0991: BSF 03.5 |
|
|
708 |
0992: MOVWF 07 |
|
|
709 |
0993: BCF 03.5 |
|
|
710 |
0994: BTFSS 07.3 |
|
|
711 |
0995: GOTO 194 |
|
|
712 |
0996: NOP |
|
|
713 |
0997: GOTO 198 |
|
|
714 |
0998: NOP |
|
|
715 |
0999: BSF 20.4 |
|
|
716 |
099A: MOVF 20,W |
|
|
717 |
099B: BSF 03.5 |
|
|
718 |
099C: MOVWF 07 |
|
|
719 |
099D: NOP |
|
|
720 |
.................... |
|
|
721 |
.................... i2c_start(); |
|
|
722 |
099E: BCF 03.5 |
|
|
723 |
099F: BSF 20.4 |
|
|
724 |
09A0: MOVF 20,W |
|
|
725 |
09A1: BSF 03.5 |
|
|
726 |
09A2: MOVWF 07 |
|
|
727 |
09A3: NOP |
|
|
728 |
09A4: BCF 03.5 |
|
|
729 |
09A5: BSF 20.3 |
|
|
730 |
09A6: MOVF 20,W |
|
|
731 |
09A7: BSF 03.5 |
|
|
732 |
09A8: MOVWF 07 |
|
|
733 |
09A9: NOP |
|
|
734 |
09AA: BCF 03.5 |
|
|
735 |
09AB: BCF 07.4 |
|
|
736 |
09AC: BCF 20.4 |
|
|
737 |
09AD: MOVF 20,W |
|
|
738 |
09AE: BSF 03.5 |
|
|
739 |
09AF: MOVWF 07 |
|
|
740 |
09B0: NOP |
|
|
741 |
09B1: BCF 03.5 |
|
|
742 |
09B2: BCF 07.3 |
|
|
743 |
09B3: BCF 20.3 |
|
|
744 |
09B4: MOVF 20,W |
|
|
745 |
09B5: BSF 03.5 |
|
|
746 |
09B6: MOVWF 07 |
|
|
747 |
.................... I2C_Write(0xAA); |
|
|
748 |
09B7: MOVLW AA |
|
|
749 |
09B8: BCF 03.5 |
|
|
750 |
09B9: MOVWF 39 |
|
|
751 |
09BA: BCF 0A.3 |
|
|
752 |
09BB: CALL 0C6 |
|
|
753 |
09BC: BSF 0A.3 |
|
|
754 |
.................... I2C_write(0x09); |
|
|
755 |
09BD: MOVLW 09 |
|
|
756 |
09BE: MOVWF 39 |
|
|
757 |
09BF: BCF 0A.3 |
|
|
758 |
09C0: CALL 0C6 |
|
|
759 |
09C1: BSF 0A.3 |
|
|
760 |
.................... i2c_stop(); |
|
|
761 |
09C2: BCF 20.4 |
|
|
762 |
09C3: MOVF 20,W |
|
|
763 |
09C4: BSF 03.5 |
|
|
764 |
09C5: MOVWF 07 |
|
|
765 |
09C6: NOP |
|
|
766 |
09C7: BCF 03.5 |
|
|
767 |
09C8: BSF 20.3 |
|
|
768 |
09C9: MOVF 20,W |
|
|
769 |
09CA: BSF 03.5 |
|
|
770 |
09CB: MOVWF 07 |
|
|
771 |
09CC: BCF 03.5 |
|
|
772 |
09CD: BTFSS 07.3 |
|
|
773 |
09CE: GOTO 1CD |
|
|
774 |
09CF: NOP |
|
|
775 |
09D0: GOTO 1D1 |
|
|
776 |
09D1: NOP |
|
|
777 |
09D2: BSF 20.4 |
|
|
778 |
09D3: MOVF 20,W |
|
|
779 |
09D4: BSF 03.5 |
|
|
780 |
09D5: MOVWF 07 |
|
|
781 |
09D6: NOP |
|
|
782 |
.................... i2c_start(); |
|
|
783 |
09D7: BCF 03.5 |
|
|
784 |
09D8: BSF 20.4 |
|
|
785 |
09D9: MOVF 20,W |
|
|
786 |
09DA: BSF 03.5 |
|
|
787 |
09DB: MOVWF 07 |
|
|
788 |
09DC: NOP |
|
|
789 |
09DD: BCF 03.5 |
|
|
790 |
09DE: BSF 20.3 |
|
|
791 |
09DF: MOVF 20,W |
|
|
792 |
09E0: BSF 03.5 |
|
|
793 |
09E1: MOVWF 07 |
|
|
794 |
09E2: NOP |
|
|
795 |
09E3: BCF 03.5 |
|
|
796 |
09E4: BCF 07.4 |
|
|
797 |
09E5: BCF 20.4 |
|
|
798 |
09E6: MOVF 20,W |
|
|
799 |
09E7: BSF 03.5 |
|
|
800 |
09E8: MOVWF 07 |
|
|
801 |
09E9: NOP |
|
|
802 |
09EA: BCF 03.5 |
|
|
803 |
09EB: BCF 07.3 |
|
|
804 |
09EC: BCF 20.3 |
|
|
805 |
09ED: MOVF 20,W |
|
|
806 |
09EE: BSF 03.5 |
|
|
807 |
09EF: MOVWF 07 |
|
|
808 |
.................... I2C_Write(0xAB); |
|
|
809 |
09F0: MOVLW AB |
|
|
810 |
09F1: BCF 03.5 |
|
|
811 |
09F2: MOVWF 39 |
|
|
812 |
09F3: BCF 0A.3 |
|
|
813 |
09F4: CALL 0C6 |
|
|
814 |
09F5: BSF 0A.3 |
|
|
815 |
.................... NAP1=i2c_read(0); |
|
|
816 |
09F6: CLRF 77 |
|
|
817 |
09F7: BCF 0A.3 |
|
|
818 |
09F8: CALL 110 |
|
|
819 |
09F9: BSF 0A.3 |
|
|
820 |
09FA: MOVF 78,W |
|
|
821 |
09FB: MOVWF 24 |
|
|
822 |
.................... i2c_stop(); |
|
|
823 |
09FC: BCF 20.4 |
|
|
824 |
09FD: MOVF 20,W |
|
|
825 |
09FE: BSF 03.5 |
|
|
826 |
09FF: MOVWF 07 |
|
|
827 |
0A00: NOP |
|
|
828 |
0A01: BCF 03.5 |
|
|
829 |
0A02: BSF 20.3 |
|
|
830 |
0A03: MOVF 20,W |
|
|
831 |
0A04: BSF 03.5 |
|
|
832 |
0A05: MOVWF 07 |
|
|
833 |
0A06: BCF 03.5 |
|
|
834 |
0A07: BTFSS 07.3 |
|
|
835 |
0A08: GOTO 207 |
|
|
836 |
0A09: NOP |
|
|
837 |
0A0A: GOTO 20B |
|
|
838 |
0A0B: NOP |
|
|
839 |
0A0C: BSF 20.4 |
|
|
840 |
0A0D: MOVF 20,W |
|
|
841 |
0A0E: BSF 03.5 |
|
|
842 |
0A0F: MOVWF 07 |
|
|
843 |
0A10: NOP |
|
|
844 |
.................... |
|
|
845 |
.................... i2c_start(); |
|
|
846 |
0A11: BCF 03.5 |
|
|
847 |
0A12: BSF 20.4 |
|
|
848 |
0A13: MOVF 20,W |
|
|
849 |
0A14: BSF 03.5 |
|
|
850 |
0A15: MOVWF 07 |
|
|
851 |
0A16: NOP |
|
|
852 |
0A17: BCF 03.5 |
|
|
853 |
0A18: BSF 20.3 |
|
|
854 |
0A19: MOVF 20,W |
|
|
855 |
0A1A: BSF 03.5 |
|
|
856 |
0A1B: MOVWF 07 |
|
|
857 |
0A1C: NOP |
|
|
858 |
0A1D: BCF 03.5 |
|
|
859 |
0A1E: BCF 07.4 |
|
|
860 |
0A1F: BCF 20.4 |
|
|
861 |
0A20: MOVF 20,W |
|
|
862 |
0A21: BSF 03.5 |
|
|
863 |
0A22: MOVWF 07 |
|
|
864 |
0A23: NOP |
|
|
865 |
0A24: BCF 03.5 |
|
|
866 |
0A25: BCF 07.3 |
|
|
867 |
0A26: BCF 20.3 |
|
|
868 |
0A27: MOVF 20,W |
|
|
869 |
0A28: BSF 03.5 |
|
|
870 |
0A29: MOVWF 07 |
|
|
871 |
.................... I2C_Write(0xAA); |
|
|
872 |
0A2A: MOVLW AA |
|
|
873 |
0A2B: BCF 03.5 |
|
|
874 |
0A2C: MOVWF 39 |
|
|
875 |
0A2D: BCF 0A.3 |
|
|
876 |
0A2E: CALL 0C6 |
|
|
877 |
0A2F: BSF 0A.3 |
|
|
878 |
.................... I2C_write(0x0a); |
|
|
879 |
0A30: MOVLW 0A |
|
|
880 |
0A31: MOVWF 39 |
|
|
881 |
0A32: BCF 0A.3 |
|
|
882 |
0A33: CALL 0C6 |
|
|
883 |
0A34: BSF 0A.3 |
|
|
884 |
.................... i2c_stop(); |
|
|
885 |
0A35: BCF 20.4 |
|
|
886 |
0A36: MOVF 20,W |
|
|
887 |
0A37: BSF 03.5 |
|
|
888 |
0A38: MOVWF 07 |
|
|
889 |
0A39: NOP |
|
|
890 |
0A3A: BCF 03.5 |
|
|
891 |
0A3B: BSF 20.3 |
|
|
892 |
0A3C: MOVF 20,W |
|
|
893 |
0A3D: BSF 03.5 |
|
|
894 |
0A3E: MOVWF 07 |
|
|
895 |
0A3F: BCF 03.5 |
|
|
896 |
0A40: BTFSS 07.3 |
|
|
897 |
0A41: GOTO 240 |
|
|
898 |
0A42: NOP |
|
|
899 |
0A43: GOTO 244 |
|
|
900 |
0A44: NOP |
|
|
901 |
0A45: BSF 20.4 |
|
|
902 |
0A46: MOVF 20,W |
|
|
903 |
0A47: BSF 03.5 |
|
|
904 |
0A48: MOVWF 07 |
|
|
905 |
0A49: NOP |
|
|
906 |
.................... i2c_start(); |
|
|
907 |
0A4A: BCF 03.5 |
|
|
908 |
0A4B: BSF 20.4 |
|
|
909 |
0A4C: MOVF 20,W |
|
|
910 |
0A4D: BSF 03.5 |
|
|
911 |
0A4E: MOVWF 07 |
|
|
912 |
0A4F: NOP |
|
|
913 |
0A50: BCF 03.5 |
|
|
914 |
0A51: BSF 20.3 |
|
|
915 |
0A52: MOVF 20,W |
|
|
916 |
0A53: BSF 03.5 |
|
|
917 |
0A54: MOVWF 07 |
|
|
918 |
0A55: NOP |
|
|
919 |
0A56: BCF 03.5 |
|
|
920 |
0A57: BCF 07.4 |
|
|
921 |
0A58: BCF 20.4 |
|
|
922 |
0A59: MOVF 20,W |
|
|
923 |
0A5A: BSF 03.5 |
|
|
924 |
0A5B: MOVWF 07 |
|
|
925 |
0A5C: NOP |
|
|
926 |
0A5D: BCF 03.5 |
|
|
927 |
0A5E: BCF 07.3 |
|
|
928 |
0A5F: BCF 20.3 |
|
|
929 |
0A60: MOVF 20,W |
|
|
930 |
0A61: BSF 03.5 |
|
|
931 |
0A62: MOVWF 07 |
|
|
932 |
.................... I2C_Write(0xAB); |
|
|
933 |
0A63: MOVLW AB |
|
|
934 |
0A64: BCF 03.5 |
|
|
935 |
0A65: MOVWF 39 |
|
|
936 |
0A66: BCF 0A.3 |
|
|
937 |
0A67: CALL 0C6 |
|
|
938 |
0A68: BSF 0A.3 |
|
|
939 |
.................... PROUD=i2c_read(0); |
|
|
940 |
0A69: CLRF 77 |
|
|
941 |
0A6A: BCF 0A.3 |
|
|
942 |
0A6B: CALL 110 |
|
|
943 |
0A6C: BSF 0A.3 |
|
|
944 |
0A6D: MOVF 78,W |
|
|
945 |
0A6E: MOVWF 25 |
|
|
946 |
.................... i2c_stop(); |
|
|
947 |
0A6F: BCF 20.4 |
|
|
948 |
0A70: MOVF 20,W |
|
|
949 |
0A71: BSF 03.5 |
|
|
950 |
0A72: MOVWF 07 |
|
|
951 |
0A73: NOP |
|
|
952 |
0A74: BCF 03.5 |
|
|
953 |
0A75: BSF 20.3 |
|
|
954 |
0A76: MOVF 20,W |
|
|
955 |
0A77: BSF 03.5 |
|
|
956 |
0A78: MOVWF 07 |
|
|
957 |
0A79: BCF 03.5 |
|
|
958 |
0A7A: BTFSS 07.3 |
|
|
959 |
0A7B: GOTO 27A |
|
|
960 |
0A7C: NOP |
|
|
961 |
0A7D: GOTO 27E |
|
|
962 |
0A7E: NOP |
|
|
963 |
0A7F: BSF 20.4 |
|
|
964 |
0A80: MOVF 20,W |
|
|
965 |
0A81: BSF 03.5 |
|
|
966 |
0A82: MOVWF 07 |
|
|
967 |
0A83: NOP |
|
|
968 |
.................... |
|
|
969 |
.................... i2c_start(); |
|
|
970 |
0A84: BCF 03.5 |
|
|
971 |
0A85: BSF 20.4 |
|
|
972 |
0A86: MOVF 20,W |
|
|
973 |
0A87: BSF 03.5 |
|
|
974 |
0A88: MOVWF 07 |
|
|
975 |
0A89: NOP |
|
|
976 |
0A8A: BCF 03.5 |
|
|
977 |
0A8B: BSF 20.3 |
|
|
978 |
0A8C: MOVF 20,W |
|
|
979 |
0A8D: BSF 03.5 |
|
|
980 |
0A8E: MOVWF 07 |
|
|
981 |
0A8F: NOP |
|
|
982 |
0A90: BCF 03.5 |
|
|
983 |
0A91: BCF 07.4 |
|
|
984 |
0A92: BCF 20.4 |
|
|
985 |
0A93: MOVF 20,W |
|
|
986 |
0A94: BSF 03.5 |
|
|
987 |
0A95: MOVWF 07 |
|
|
988 |
0A96: NOP |
|
|
989 |
0A97: BCF 03.5 |
|
|
990 |
0A98: BCF 07.3 |
|
|
991 |
0A99: BCF 20.3 |
|
|
992 |
0A9A: MOVF 20,W |
|
|
993 |
0A9B: BSF 03.5 |
|
|
994 |
0A9C: MOVWF 07 |
|
|
995 |
.................... I2C_Write(0xAA); |
|
|
996 |
0A9D: MOVLW AA |
|
|
997 |
0A9E: BCF 03.5 |
|
|
998 |
0A9F: MOVWF 39 |
|
|
999 |
0AA0: BCF 0A.3 |
|
|
1000 |
0AA1: CALL 0C6 |
|
|
1001 |
0AA2: BSF 0A.3 |
|
|
1002 |
.................... I2C_write(0x0b); |
|
|
1003 |
0AA3: MOVLW 0B |
|
|
1004 |
0AA4: MOVWF 39 |
|
|
1005 |
0AA5: BCF 0A.3 |
|
|
1006 |
0AA6: CALL 0C6 |
|
|
1007 |
0AA7: BSF 0A.3 |
|
|
1008 |
.................... i2c_stop(); |
|
|
1009 |
0AA8: BCF 20.4 |
|
|
1010 |
0AA9: MOVF 20,W |
|
|
1011 |
0AAA: BSF 03.5 |
|
|
1012 |
0AAB: MOVWF 07 |
|
|
1013 |
0AAC: NOP |
|
|
1014 |
0AAD: BCF 03.5 |
|
|
1015 |
0AAE: BSF 20.3 |
|
|
1016 |
0AAF: MOVF 20,W |
|
|
1017 |
0AB0: BSF 03.5 |
|
|
1018 |
0AB1: MOVWF 07 |
|
|
1019 |
0AB2: BCF 03.5 |
|
|
1020 |
0AB3: BTFSS 07.3 |
|
|
1021 |
0AB4: GOTO 2B3 |
|
|
1022 |
0AB5: NOP |
|
|
1023 |
0AB6: GOTO 2B7 |
|
|
1024 |
0AB7: NOP |
|
|
1025 |
0AB8: BSF 20.4 |
|
|
1026 |
0AB9: MOVF 20,W |
|
|
1027 |
0ABA: BSF 03.5 |
|
|
1028 |
0ABB: MOVWF 07 |
|
|
1029 |
0ABC: NOP |
|
|
1030 |
.................... i2c_start(); |
|
|
1031 |
0ABD: BCF 03.5 |
|
|
1032 |
0ABE: BSF 20.4 |
|
|
1033 |
0ABF: MOVF 20,W |
|
|
1034 |
0AC0: BSF 03.5 |
|
|
1035 |
0AC1: MOVWF 07 |
|
|
1036 |
0AC2: NOP |
|
|
1037 |
0AC3: BCF 03.5 |
|
|
1038 |
0AC4: BSF 20.3 |
|
|
1039 |
0AC5: MOVF 20,W |
|
|
1040 |
0AC6: BSF 03.5 |
|
|
1041 |
0AC7: MOVWF 07 |
|
|
1042 |
0AC8: NOP |
|
|
1043 |
0AC9: BCF 03.5 |
|
|
1044 |
0ACA: BCF 07.4 |
|
|
1045 |
0ACB: BCF 20.4 |
|
|
1046 |
0ACC: MOVF 20,W |
|
|
1047 |
0ACD: BSF 03.5 |
|
|
1048 |
0ACE: MOVWF 07 |
|
|
1049 |
0ACF: NOP |
|
|
1050 |
0AD0: BCF 03.5 |
|
|
1051 |
0AD1: BCF 07.3 |
|
|
1052 |
0AD2: BCF 20.3 |
|
|
1053 |
0AD3: MOVF 20,W |
|
|
1054 |
0AD4: BSF 03.5 |
|
|
1055 |
0AD5: MOVWF 07 |
|
|
1056 |
.................... I2C_Write(0xAB); |
|
|
1057 |
0AD6: MOVLW AB |
|
|
1058 |
0AD7: BCF 03.5 |
|
|
1059 |
0AD8: MOVWF 39 |
|
|
1060 |
0AD9: BCF 0A.3 |
|
|
1061 |
0ADA: CALL 0C6 |
|
|
1062 |
0ADB: BSF 0A.3 |
|
|
1063 |
.................... PROUD1=i2c_read(0); |
|
|
1064 |
0ADC: CLRF 77 |
|
|
1065 |
0ADD: BCF 0A.3 |
|
|
1066 |
0ADE: CALL 110 |
|
|
1067 |
0ADF: BSF 0A.3 |
|
|
1068 |
0AE0: MOVF 78,W |
|
|
1069 |
0AE1: MOVWF 26 |
|
|
1070 |
.................... i2c_stop(); |
|
|
1071 |
0AE2: BCF 20.4 |
|
|
1072 |
0AE3: MOVF 20,W |
|
|
1073 |
0AE4: BSF 03.5 |
|
|
1074 |
0AE5: MOVWF 07 |
|
|
1075 |
0AE6: NOP |
|
|
1076 |
0AE7: BCF 03.5 |
|
|
1077 |
0AE8: BSF 20.3 |
|
|
1078 |
0AE9: MOVF 20,W |
|
|
1079 |
0AEA: BSF 03.5 |
|
|
1080 |
0AEB: MOVWF 07 |
|
|
1081 |
0AEC: BCF 03.5 |
|
|
1082 |
0AED: BTFSS 07.3 |
|
|
1083 |
0AEE: GOTO 2ED |
|
|
1084 |
0AEF: NOP |
|
|
1085 |
0AF0: GOTO 2F1 |
|
|
1086 |
0AF1: NOP |
|
|
1087 |
0AF2: BSF 20.4 |
|
|
1088 |
0AF3: MOVF 20,W |
|
|
1089 |
0AF4: BSF 03.5 |
|
|
1090 |
0AF5: MOVWF 07 |
|
|
1091 |
0AF6: NOP |
|
|
1092 |
.................... |
|
|
1093 |
.................... |
|
|
1094 |
.................... i2c_start(); |
|
|
1095 |
0AF7: BCF 03.5 |
|
|
1096 |
0AF8: BSF 20.4 |
|
|
1097 |
0AF9: MOVF 20,W |
|
|
1098 |
0AFA: BSF 03.5 |
|
|
1099 |
0AFB: MOVWF 07 |
|
|
1100 |
0AFC: NOP |
|
|
1101 |
0AFD: BCF 03.5 |
|
|
1102 |
0AFE: BSF 20.3 |
|
|
1103 |
0AFF: MOVF 20,W |
|
|
1104 |
0B00: BSF 03.5 |
|
|
1105 |
0B01: MOVWF 07 |
|
|
1106 |
0B02: NOP |
|
|
1107 |
0B03: BCF 03.5 |
|
|
1108 |
0B04: BCF 07.4 |
|
|
1109 |
0B05: BCF 20.4 |
|
|
1110 |
0B06: MOVF 20,W |
|
|
1111 |
0B07: BSF 03.5 |
|
|
1112 |
0B08: MOVWF 07 |
|
|
1113 |
0B09: NOP |
|
|
1114 |
0B0A: BCF 03.5 |
|
|
1115 |
0B0B: BCF 07.3 |
|
|
1116 |
0B0C: BCF 20.3 |
|
|
1117 |
0B0D: MOVF 20,W |
|
|
1118 |
0B0E: BSF 03.5 |
|
|
1119 |
0B0F: MOVWF 07 |
|
|
1120 |
.................... I2C_Write(0xAA); |
|
|
1121 |
0B10: MOVLW AA |
|
|
1122 |
0B11: BCF 03.5 |
|
|
1123 |
0B12: MOVWF 39 |
|
|
1124 |
0B13: BCF 0A.3 |
|
|
1125 |
0B14: CALL 0C6 |
|
|
1126 |
0B15: BSF 0A.3 |
|
|
1127 |
.................... I2C_write(0x04); |
|
|
1128 |
0B16: MOVLW 04 |
|
|
1129 |
0B17: MOVWF 39 |
|
|
1130 |
0B18: BCF 0A.3 |
|
|
1131 |
0B19: CALL 0C6 |
|
|
1132 |
0B1A: BSF 0A.3 |
|
|
1133 |
.................... i2c_stop(); |
|
|
1134 |
0B1B: BCF 20.4 |
|
|
1135 |
0B1C: MOVF 20,W |
|
|
1136 |
0B1D: BSF 03.5 |
|
|
1137 |
0B1E: MOVWF 07 |
|
|
1138 |
0B1F: NOP |
|
|
1139 |
0B20: BCF 03.5 |
|
|
1140 |
0B21: BSF 20.3 |
|
|
1141 |
0B22: MOVF 20,W |
|
|
1142 |
0B23: BSF 03.5 |
|
|
1143 |
0B24: MOVWF 07 |
|
|
1144 |
0B25: BCF 03.5 |
|
|
1145 |
0B26: BTFSS 07.3 |
|
|
1146 |
0B27: GOTO 326 |
|
|
1147 |
0B28: NOP |
|
|
1148 |
0B29: GOTO 32A |
|
|
1149 |
0B2A: NOP |
|
|
1150 |
0B2B: BSF 20.4 |
|
|
1151 |
0B2C: MOVF 20,W |
|
|
1152 |
0B2D: BSF 03.5 |
|
|
1153 |
0B2E: MOVWF 07 |
|
|
1154 |
0B2F: NOP |
|
|
1155 |
.................... i2c_start(); |
|
|
1156 |
0B30: BCF 03.5 |
|
|
1157 |
0B31: BSF 20.4 |
|
|
1158 |
0B32: MOVF 20,W |
|
|
1159 |
0B33: BSF 03.5 |
|
|
1160 |
0B34: MOVWF 07 |
|
|
1161 |
0B35: NOP |
|
|
1162 |
0B36: BCF 03.5 |
|
|
1163 |
0B37: BSF 20.3 |
|
|
1164 |
0B38: MOVF 20,W |
|
|
1165 |
0B39: BSF 03.5 |
|
|
1166 |
0B3A: MOVWF 07 |
|
|
1167 |
0B3B: NOP |
|
|
1168 |
0B3C: BCF 03.5 |
|
|
1169 |
0B3D: BCF 07.4 |
|
|
1170 |
0B3E: BCF 20.4 |
|
|
1171 |
0B3F: MOVF 20,W |
|
|
1172 |
0B40: BSF 03.5 |
|
|
1173 |
0B41: MOVWF 07 |
|
|
1174 |
0B42: NOP |
|
|
1175 |
0B43: BCF 03.5 |
|
|
1176 |
0B44: BCF 07.3 |
|
|
1177 |
0B45: BCF 20.3 |
|
|
1178 |
0B46: MOVF 20,W |
|
|
1179 |
0B47: BSF 03.5 |
|
|
1180 |
0B48: MOVWF 07 |
|
|
1181 |
.................... I2C_Write(0xAB); |
|
|
1182 |
0B49: MOVLW AB |
|
|
1183 |
0B4A: BCF 03.5 |
|
|
1184 |
0B4B: MOVWF 39 |
|
|
1185 |
0B4C: BCF 0A.3 |
|
|
1186 |
0B4D: CALL 0C6 |
|
|
1187 |
0B4E: BSF 0A.3 |
|
|
1188 |
.................... KAPZ=i2c_read(0); |
|
|
1189 |
0B4F: CLRF 77 |
|
|
1190 |
0B50: BCF 0A.3 |
|
|
1191 |
0B51: CALL 110 |
|
|
1192 |
0B52: BSF 0A.3 |
|
|
1193 |
0B53: MOVF 78,W |
|
|
1194 |
0B54: MOVWF 27 |
|
|
1195 |
.................... i2c_stop(); |
|
|
1196 |
0B55: BCF 20.4 |
|
|
1197 |
0B56: MOVF 20,W |
|
|
1198 |
0B57: BSF 03.5 |
|
|
1199 |
0B58: MOVWF 07 |
|
|
1200 |
0B59: NOP |
|
|
1201 |
0B5A: BCF 03.5 |
|
|
1202 |
0B5B: BSF 20.3 |
|
|
1203 |
0B5C: MOVF 20,W |
|
|
1204 |
0B5D: BSF 03.5 |
|
|
1205 |
0B5E: MOVWF 07 |
|
|
1206 |
0B5F: BCF 03.5 |
|
|
1207 |
0B60: BTFSS 07.3 |
|
|
1208 |
0B61: GOTO 360 |
|
|
1209 |
0B62: NOP |
|
|
1210 |
0B63: GOTO 364 |
|
|
1211 |
0B64: NOP |
|
|
1212 |
0B65: BSF 20.4 |
|
|
1213 |
0B66: MOVF 20,W |
|
|
1214 |
0B67: BSF 03.5 |
|
|
1215 |
0B68: MOVWF 07 |
|
|
1216 |
0B69: NOP |
|
|
1217 |
.................... |
|
|
1218 |
.................... i2c_start(); |
|
|
1219 |
0B6A: BCF 03.5 |
|
|
1220 |
0B6B: BSF 20.4 |
|
|
1221 |
0B6C: MOVF 20,W |
|
|
1222 |
0B6D: BSF 03.5 |
|
|
1223 |
0B6E: MOVWF 07 |
|
|
1224 |
0B6F: NOP |
|
|
1225 |
0B70: BCF 03.5 |
|
|
1226 |
0B71: BSF 20.3 |
|
|
1227 |
0B72: MOVF 20,W |
|
|
1228 |
0B73: BSF 03.5 |
|
|
1229 |
0B74: MOVWF 07 |
|
|
1230 |
0B75: NOP |
|
|
1231 |
0B76: BCF 03.5 |
|
|
1232 |
0B77: BCF 07.4 |
|
|
1233 |
0B78: BCF 20.4 |
|
|
1234 |
0B79: MOVF 20,W |
|
|
1235 |
0B7A: BSF 03.5 |
|
|
1236 |
0B7B: MOVWF 07 |
|
|
1237 |
0B7C: NOP |
|
|
1238 |
0B7D: BCF 03.5 |
|
|
1239 |
0B7E: BCF 07.3 |
|
|
1240 |
0B7F: BCF 20.3 |
|
|
1241 |
0B80: MOVF 20,W |
|
|
1242 |
0B81: BSF 03.5 |
|
|
1243 |
0B82: MOVWF 07 |
|
|
1244 |
.................... I2C_Write(0xAA); |
|
|
1245 |
0B83: MOVLW AA |
|
|
1246 |
0B84: BCF 03.5 |
|
|
1247 |
0B85: MOVWF 39 |
|
|
1248 |
0B86: BCF 0A.3 |
|
|
1249 |
0B87: CALL 0C6 |
|
|
1250 |
0B88: BSF 0A.3 |
|
|
1251 |
.................... I2C_write(0x05); |
|
|
1252 |
0B89: MOVLW 05 |
|
|
1253 |
0B8A: MOVWF 39 |
|
|
1254 |
0B8B: BCF 0A.3 |
|
|
1255 |
0B8C: CALL 0C6 |
|
|
1256 |
0B8D: BSF 0A.3 |
|
|
1257 |
.................... i2c_stop(); |
|
|
1258 |
0B8E: BCF 20.4 |
|
|
1259 |
0B8F: MOVF 20,W |
|
|
1260 |
0B90: BSF 03.5 |
|
|
1261 |
0B91: MOVWF 07 |
|
|
1262 |
0B92: NOP |
|
|
1263 |
0B93: BCF 03.5 |
|
|
1264 |
0B94: BSF 20.3 |
|
|
1265 |
0B95: MOVF 20,W |
|
|
1266 |
0B96: BSF 03.5 |
|
|
1267 |
0B97: MOVWF 07 |
|
|
1268 |
0B98: BCF 03.5 |
|
|
1269 |
0B99: BTFSS 07.3 |
|
|
1270 |
0B9A: GOTO 399 |
|
|
1271 |
0B9B: NOP |
|
|
1272 |
0B9C: GOTO 39D |
|
|
1273 |
0B9D: NOP |
|
|
1274 |
0B9E: BSF 20.4 |
|
|
1275 |
0B9F: MOVF 20,W |
|
|
1276 |
0BA0: BSF 03.5 |
|
|
1277 |
0BA1: MOVWF 07 |
|
|
1278 |
0BA2: NOP |
|
|
1279 |
.................... i2c_start(); |
|
|
1280 |
0BA3: BCF 03.5 |
|
|
1281 |
0BA4: BSF 20.4 |
|
|
1282 |
0BA5: MOVF 20,W |
|
|
1283 |
0BA6: BSF 03.5 |
|
|
1284 |
0BA7: MOVWF 07 |
|
|
1285 |
0BA8: NOP |
|
|
1286 |
0BA9: BCF 03.5 |
|
|
1287 |
0BAA: BSF 20.3 |
|
|
1288 |
0BAB: MOVF 20,W |
|
|
1289 |
0BAC: BSF 03.5 |
|
|
1290 |
0BAD: MOVWF 07 |
|
|
1291 |
0BAE: NOP |
|
|
1292 |
0BAF: BCF 03.5 |
|
|
1293 |
0BB0: BCF 07.4 |
|
|
1294 |
0BB1: BCF 20.4 |
|
|
1295 |
0BB2: MOVF 20,W |
|
|
1296 |
0BB3: BSF 03.5 |
|
|
1297 |
0BB4: MOVWF 07 |
|
|
1298 |
0BB5: NOP |
|
|
1299 |
0BB6: BCF 03.5 |
|
|
1300 |
0BB7: BCF 07.3 |
|
|
1301 |
0BB8: BCF 20.3 |
|
|
1302 |
0BB9: MOVF 20,W |
|
|
1303 |
0BBA: BSF 03.5 |
|
|
1304 |
0BBB: MOVWF 07 |
|
|
1305 |
.................... I2C_Write(0xAB); |
|
|
1306 |
0BBC: MOVLW AB |
|
|
1307 |
0BBD: BCF 03.5 |
|
|
1308 |
0BBE: MOVWF 39 |
|
|
1309 |
0BBF: BCF 0A.3 |
|
|
1310 |
0BC0: CALL 0C6 |
|
|
1311 |
0BC1: BSF 0A.3 |
|
|
1312 |
.................... KAPZ1=i2c_read(0); |
|
|
1313 |
0BC2: CLRF 77 |
|
|
1314 |
0BC3: BCF 0A.3 |
|
|
1315 |
0BC4: CALL 110 |
|
|
1316 |
0BC5: BSF 0A.3 |
|
|
1317 |
0BC6: MOVF 78,W |
|
|
1318 |
0BC7: MOVWF 28 |
|
|
1319 |
.................... i2c_stop(); |
|
|
1320 |
0BC8: BCF 20.4 |
|
|
1321 |
0BC9: MOVF 20,W |
|
|
1322 |
0BCA: BSF 03.5 |
|
|
1323 |
0BCB: MOVWF 07 |
|
|
1324 |
0BCC: NOP |
|
|
1325 |
0BCD: BCF 03.5 |
|
|
1326 |
0BCE: BSF 20.3 |
|
|
1327 |
0BCF: MOVF 20,W |
|
|
1328 |
0BD0: BSF 03.5 |
|
|
1329 |
0BD1: MOVWF 07 |
|
|
1330 |
0BD2: BCF 03.5 |
|
|
1331 |
0BD3: BTFSS 07.3 |
|
|
1332 |
0BD4: GOTO 3D3 |
|
|
1333 |
0BD5: NOP |
|
|
1334 |
0BD6: GOTO 3D7 |
|
|
1335 |
0BD7: NOP |
|
|
1336 |
0BD8: BSF 20.4 |
|
|
1337 |
0BD9: MOVF 20,W |
|
|
1338 |
0BDA: BSF 03.5 |
|
|
1339 |
0BDB: MOVWF 07 |
|
|
1340 |
0BDC: NOP |
|
|
1341 |
.................... |
|
|
1342 |
.................... |
|
|
1343 |
.................... i2c_start(); |
|
|
1344 |
0BDD: BCF 03.5 |
|
|
1345 |
0BDE: BSF 20.4 |
|
|
1346 |
0BDF: MOVF 20,W |
|
|
1347 |
0BE0: BSF 03.5 |
|
|
1348 |
0BE1: MOVWF 07 |
|
|
1349 |
0BE2: NOP |
|
|
1350 |
0BE3: BCF 03.5 |
|
|
1351 |
0BE4: BSF 20.3 |
|
|
1352 |
0BE5: MOVF 20,W |
|
|
1353 |
0BE6: BSF 03.5 |
|
|
1354 |
0BE7: MOVWF 07 |
|
|
1355 |
0BE8: NOP |
|
|
1356 |
0BE9: BCF 03.5 |
|
|
1357 |
0BEA: BCF 07.4 |
|
|
1358 |
0BEB: BCF 20.4 |
|
|
1359 |
0BEC: MOVF 20,W |
|
|
1360 |
0BED: BSF 03.5 |
|
|
1361 |
0BEE: MOVWF 07 |
|
|
1362 |
0BEF: NOP |
|
|
1363 |
0BF0: BCF 03.5 |
|
|
1364 |
0BF1: BCF 07.3 |
|
|
1365 |
0BF2: BCF 20.3 |
|
|
1366 |
0BF3: MOVF 20,W |
|
|
1367 |
0BF4: BSF 03.5 |
|
|
1368 |
0BF5: MOVWF 07 |
|
|
1369 |
.................... I2C_Write(0xAA); |
|
|
1370 |
0BF6: MOVLW AA |
|
|
1371 |
0BF7: BCF 03.5 |
|
|
1372 |
0BF8: MOVWF 39 |
|
|
1373 |
0BF9: BCF 0A.3 |
|
|
1374 |
0BFA: CALL 0C6 |
|
|
1375 |
0BFB: BSF 0A.3 |
|
|
1376 |
.................... I2C_write(0x06); |
|
|
1377 |
0BFC: MOVLW 06 |
|
|
1378 |
0BFD: MOVWF 39 |
|
|
1379 |
0BFE: BCF 0A.3 |
|
|
1380 |
0BFF: CALL 0C6 |
|
|
1381 |
0C00: BSF 0A.3 |
|
|
1382 |
.................... i2c_stop(); |
|
|
1383 |
0C01: BCF 20.4 |
|
|
1384 |
0C02: MOVF 20,W |
|
|
1385 |
0C03: BSF 03.5 |
|
|
1386 |
0C04: MOVWF 07 |
|
|
1387 |
0C05: NOP |
|
|
1388 |
0C06: BCF 03.5 |
|
|
1389 |
0C07: BSF 20.3 |
|
|
1390 |
0C08: MOVF 20,W |
|
|
1391 |
0C09: BSF 03.5 |
|
|
1392 |
0C0A: MOVWF 07 |
|
|
1393 |
0C0B: BCF 03.5 |
|
|
1394 |
0C0C: BTFSS 07.3 |
|
|
1395 |
0C0D: GOTO 40C |
|
|
1396 |
0C0E: NOP |
|
|
1397 |
0C0F: GOTO 410 |
|
|
1398 |
0C10: NOP |
|
|
1399 |
0C11: BSF 20.4 |
|
|
1400 |
0C12: MOVF 20,W |
|
|
1401 |
0C13: BSF 03.5 |
|
|
1402 |
0C14: MOVWF 07 |
|
|
1403 |
0C15: NOP |
|
|
1404 |
.................... i2c_start(); |
|
|
1405 |
0C16: BCF 03.5 |
|
|
1406 |
0C17: BSF 20.4 |
|
|
1407 |
0C18: MOVF 20,W |
|
|
1408 |
0C19: BSF 03.5 |
|
|
1409 |
0C1A: MOVWF 07 |
|
|
1410 |
0C1B: NOP |
|
|
1411 |
0C1C: BCF 03.5 |
|
|
1412 |
0C1D: BSF 20.3 |
|
|
1413 |
0C1E: MOVF 20,W |
|
|
1414 |
0C1F: BSF 03.5 |
|
|
1415 |
0C20: MOVWF 07 |
|
|
1416 |
0C21: NOP |
|
|
1417 |
0C22: BCF 03.5 |
|
|
1418 |
0C23: BCF 07.4 |
|
|
1419 |
0C24: BCF 20.4 |
|
|
1420 |
0C25: MOVF 20,W |
|
|
1421 |
0C26: BSF 03.5 |
|
|
1422 |
0C27: MOVWF 07 |
|
|
1423 |
0C28: NOP |
|
|
1424 |
0C29: BCF 03.5 |
|
|
1425 |
0C2A: BCF 07.3 |
|
|
1426 |
0C2B: BCF 20.3 |
|
|
1427 |
0C2C: MOVF 20,W |
|
|
1428 |
0C2D: BSF 03.5 |
|
|
1429 |
0C2E: MOVWF 07 |
|
|
1430 |
.................... I2C_Write(0xAB); |
|
|
1431 |
0C2F: MOVLW AB |
|
|
1432 |
0C30: BCF 03.5 |
|
|
1433 |
0C31: MOVWF 39 |
|
|
1434 |
0C32: BCF 0A.3 |
|
|
1435 |
0C33: CALL 0C6 |
|
|
1436 |
0C34: BSF 0A.3 |
|
|
1437 |
.................... KAPC=i2c_read(0); |
|
|
1438 |
0C35: CLRF 77 |
|
|
1439 |
0C36: BCF 0A.3 |
|
|
1440 |
0C37: CALL 110 |
|
|
1441 |
0C38: BSF 0A.3 |
|
|
1442 |
0C39: MOVF 78,W |
|
|
1443 |
0C3A: MOVWF 29 |
|
|
1444 |
.................... i2c_stop(); |
|
|
1445 |
0C3B: BCF 20.4 |
|
|
1446 |
0C3C: MOVF 20,W |
|
|
1447 |
0C3D: BSF 03.5 |
|
|
1448 |
0C3E: MOVWF 07 |
|
|
1449 |
0C3F: NOP |
|
|
1450 |
0C40: BCF 03.5 |
|
|
1451 |
0C41: BSF 20.3 |
|
|
1452 |
0C42: MOVF 20,W |
|
|
1453 |
0C43: BSF 03.5 |
|
|
1454 |
0C44: MOVWF 07 |
|
|
1455 |
0C45: BCF 03.5 |
|
|
1456 |
0C46: BTFSS 07.3 |
|
|
1457 |
0C47: GOTO 446 |
|
|
1458 |
0C48: NOP |
|
|
1459 |
0C49: GOTO 44A |
|
|
1460 |
0C4A: NOP |
|
|
1461 |
0C4B: BSF 20.4 |
|
|
1462 |
0C4C: MOVF 20,W |
|
|
1463 |
0C4D: BSF 03.5 |
|
|
1464 |
0C4E: MOVWF 07 |
|
|
1465 |
0C4F: NOP |
|
|
1466 |
.................... |
|
|
1467 |
.................... i2c_start(); |
|
|
1468 |
0C50: BCF 03.5 |
|
|
1469 |
0C51: BSF 20.4 |
|
|
1470 |
0C52: MOVF 20,W |
|
|
1471 |
0C53: BSF 03.5 |
|
|
1472 |
0C54: MOVWF 07 |
|
|
1473 |
0C55: NOP |
|
|
1474 |
0C56: BCF 03.5 |
|
|
1475 |
0C57: BSF 20.3 |
|
|
1476 |
0C58: MOVF 20,W |
|
|
1477 |
0C59: BSF 03.5 |
|
|
1478 |
0C5A: MOVWF 07 |
|
|
1479 |
0C5B: NOP |
|
|
1480 |
0C5C: BCF 03.5 |
|
|
1481 |
0C5D: BCF 07.4 |
|
|
1482 |
0C5E: BCF 20.4 |
|
|
1483 |
0C5F: MOVF 20,W |
|
|
1484 |
0C60: BSF 03.5 |
|
|
1485 |
0C61: MOVWF 07 |
|
|
1486 |
0C62: NOP |
|
|
1487 |
0C63: BCF 03.5 |
|
|
1488 |
0C64: BCF 07.3 |
|
|
1489 |
0C65: BCF 20.3 |
|
|
1490 |
0C66: MOVF 20,W |
|
|
1491 |
0C67: BSF 03.5 |
|
|
1492 |
0C68: MOVWF 07 |
|
|
1493 |
.................... I2C_Write(0xAA); |
|
|
1494 |
0C69: MOVLW AA |
|
|
1495 |
0C6A: BCF 03.5 |
|
|
1496 |
0C6B: MOVWF 39 |
|
|
1497 |
0C6C: BCF 0A.3 |
|
|
1498 |
0C6D: CALL 0C6 |
|
|
1499 |
0C6E: BSF 0A.3 |
|
|
1500 |
.................... I2C_write(0x07); |
|
|
1501 |
0C6F: MOVLW 07 |
|
|
1502 |
0C70: MOVWF 39 |
|
|
1503 |
0C71: BCF 0A.3 |
|
|
1504 |
0C72: CALL 0C6 |
|
|
1505 |
0C73: BSF 0A.3 |
|
|
1506 |
.................... i2c_stop(); |
|
|
1507 |
0C74: BCF 20.4 |
|
|
1508 |
0C75: MOVF 20,W |
|
|
1509 |
0C76: BSF 03.5 |
|
|
1510 |
0C77: MOVWF 07 |
|
|
1511 |
0C78: NOP |
|
|
1512 |
0C79: BCF 03.5 |
|
|
1513 |
0C7A: BSF 20.3 |
|
|
1514 |
0C7B: MOVF 20,W |
|
|
1515 |
0C7C: BSF 03.5 |
|
|
1516 |
0C7D: MOVWF 07 |
|
|
1517 |
0C7E: BCF 03.5 |
|
|
1518 |
0C7F: BTFSS 07.3 |
|
|
1519 |
0C80: GOTO 47F |
|
|
1520 |
0C81: NOP |
|
|
1521 |
0C82: GOTO 483 |
|
|
1522 |
0C83: NOP |
|
|
1523 |
0C84: BSF 20.4 |
|
|
1524 |
0C85: MOVF 20,W |
|
|
1525 |
0C86: BSF 03.5 |
|
|
1526 |
0C87: MOVWF 07 |
|
|
1527 |
0C88: NOP |
|
|
1528 |
.................... i2c_start(); |
|
|
1529 |
0C89: BCF 03.5 |
|
|
1530 |
0C8A: BSF 20.4 |
|
|
1531 |
0C8B: MOVF 20,W |
|
|
1532 |
0C8C: BSF 03.5 |
|
|
1533 |
0C8D: MOVWF 07 |
|
|
1534 |
0C8E: NOP |
|
|
1535 |
0C8F: BCF 03.5 |
|
|
1536 |
0C90: BSF 20.3 |
|
|
1537 |
0C91: MOVF 20,W |
|
|
1538 |
0C92: BSF 03.5 |
|
|
1539 |
0C93: MOVWF 07 |
|
|
1540 |
0C94: NOP |
|
|
1541 |
0C95: BCF 03.5 |
|
|
1542 |
0C96: BCF 07.4 |
|
|
1543 |
0C97: BCF 20.4 |
|
|
1544 |
0C98: MOVF 20,W |
|
|
1545 |
0C99: BSF 03.5 |
|
|
1546 |
0C9A: MOVWF 07 |
|
|
1547 |
0C9B: NOP |
|
|
1548 |
0C9C: BCF 03.5 |
|
|
1549 |
0C9D: BCF 07.3 |
|
|
1550 |
0C9E: BCF 20.3 |
|
|
1551 |
0C9F: MOVF 20,W |
|
|
1552 |
0CA0: BSF 03.5 |
|
|
1553 |
0CA1: MOVWF 07 |
|
|
1554 |
.................... I2C_Write(0xAB); |
|
|
1555 |
0CA2: MOVLW AB |
|
|
1556 |
0CA3: BCF 03.5 |
|
|
1557 |
0CA4: MOVWF 39 |
|
|
1558 |
0CA5: BCF 0A.3 |
|
|
1559 |
0CA6: CALL 0C6 |
|
|
1560 |
0CA7: BSF 0A.3 |
|
|
1561 |
.................... KAPC1=i2c_read(0); |
|
|
1562 |
0CA8: CLRF 77 |
|
|
1563 |
0CA9: BCF 0A.3 |
|
|
1564 |
0CAA: CALL 110 |
|
|
1565 |
0CAB: BSF 0A.3 |
|
|
1566 |
0CAC: MOVF 78,W |
|
|
1567 |
0CAD: MOVWF 2A |
|
|
1568 |
.................... i2c_stop(); |
|
|
1569 |
0CAE: BCF 20.4 |
|
|
1570 |
0CAF: MOVF 20,W |
|
|
1571 |
0CB0: BSF 03.5 |
|
|
1572 |
0CB1: MOVWF 07 |
|
|
1573 |
0CB2: NOP |
|
|
1574 |
0CB3: BCF 03.5 |
|
|
1575 |
0CB4: BSF 20.3 |
|
|
1576 |
0CB5: MOVF 20,W |
|
|
1577 |
0CB6: BSF 03.5 |
|
|
1578 |
0CB7: MOVWF 07 |
|
|
1579 |
0CB8: BCF 03.5 |
|
|
1580 |
0CB9: BTFSS 07.3 |
|
|
1581 |
0CBA: GOTO 4B9 |
|
|
1582 |
0CBB: NOP |
|
|
1583 |
0CBC: GOTO 4BD |
|
|
1584 |
0CBD: NOP |
|
|
1585 |
0CBE: BSF 20.4 |
|
|
1586 |
0CBF: MOVF 20,W |
|
|
1587 |
0CC0: BSF 03.5 |
|
|
1588 |
0CC1: MOVWF 07 |
|
|
1589 |
0CC2: NOP |
|
|
1590 |
.................... |
|
|
1591 |
.................... i2c_start(); |
|
|
1592 |
0CC3: BCF 03.5 |
|
|
1593 |
0CC4: BSF 20.4 |
|
|
1594 |
0CC5: MOVF 20,W |
|
|
1595 |
0CC6: BSF 03.5 |
|
|
1596 |
0CC7: MOVWF 07 |
|
|
1597 |
0CC8: NOP |
|
|
1598 |
0CC9: BCF 03.5 |
|
|
1599 |
0CCA: BSF 20.3 |
|
|
1600 |
0CCB: MOVF 20,W |
|
|
1601 |
0CCC: BSF 03.5 |
|
|
1602 |
0CCD: MOVWF 07 |
|
|
1603 |
0CCE: NOP |
|
|
1604 |
0CCF: BCF 03.5 |
|
|
1605 |
0CD0: BCF 07.4 |
|
|
1606 |
0CD1: BCF 20.4 |
|
|
1607 |
0CD2: MOVF 20,W |
|
|
1608 |
0CD3: BSF 03.5 |
|
|
1609 |
0CD4: MOVWF 07 |
|
|
1610 |
0CD5: NOP |
|
|
1611 |
0CD6: BCF 03.5 |
|
|
1612 |
0CD7: BCF 07.3 |
|
|
1613 |
0CD8: BCF 20.3 |
|
|
1614 |
0CD9: MOVF 20,W |
|
|
1615 |
0CDA: BSF 03.5 |
|
|
1616 |
0CDB: MOVWF 07 |
|
|
1617 |
.................... I2C_Write(0xAA); |
|
|
1618 |
0CDC: MOVLW AA |
|
|
1619 |
0CDD: BCF 03.5 |
|
|
1620 |
0CDE: MOVWF 39 |
|
|
1621 |
0CDF: BCF 0A.3 |
|
|
1622 |
0CE0: CALL 0C6 |
|
|
1623 |
0CE1: BSF 0A.3 |
|
|
1624 |
.................... I2C_write(0x02); |
|
|
1625 |
0CE2: MOVLW 02 |
|
|
1626 |
0CE3: MOVWF 39 |
|
|
1627 |
0CE4: BCF 0A.3 |
|
|
1628 |
0CE5: CALL 0C6 |
|
|
1629 |
0CE6: BSF 0A.3 |
|
|
1630 |
.................... i2c_stop(); |
|
|
1631 |
0CE7: BCF 20.4 |
|
|
1632 |
0CE8: MOVF 20,W |
|
|
1633 |
0CE9: BSF 03.5 |
|
|
1634 |
0CEA: MOVWF 07 |
|
|
1635 |
0CEB: NOP |
|
|
1636 |
0CEC: BCF 03.5 |
|
|
1637 |
0CED: BSF 20.3 |
|
|
1638 |
0CEE: MOVF 20,W |
|
|
1639 |
0CEF: BSF 03.5 |
|
|
1640 |
0CF0: MOVWF 07 |
|
|
1641 |
0CF1: BCF 03.5 |
|
|
1642 |
0CF2: BTFSS 07.3 |
|
|
1643 |
0CF3: GOTO 4F2 |
|
|
1644 |
0CF4: NOP |
|
|
1645 |
0CF5: GOTO 4F6 |
|
|
1646 |
0CF6: NOP |
|
|
1647 |
0CF7: BSF 20.4 |
|
|
1648 |
0CF8: MOVF 20,W |
|
|
1649 |
0CF9: BSF 03.5 |
|
|
1650 |
0CFA: MOVWF 07 |
|
|
1651 |
0CFB: NOP |
|
|
1652 |
.................... i2c_start(); |
|
|
1653 |
0CFC: BCF 03.5 |
|
|
1654 |
0CFD: BSF 20.4 |
|
|
1655 |
0CFE: MOVF 20,W |
|
|
1656 |
0CFF: BSF 03.5 |
|
|
1657 |
0D00: MOVWF 07 |
|
|
1658 |
0D01: NOP |
|
|
1659 |
0D02: BCF 03.5 |
|
|
1660 |
0D03: BSF 20.3 |
|
|
1661 |
0D04: MOVF 20,W |
|
|
1662 |
0D05: BSF 03.5 |
|
|
1663 |
0D06: MOVWF 07 |
|
|
1664 |
0D07: NOP |
|
|
1665 |
0D08: BCF 03.5 |
|
|
1666 |
0D09: BCF 07.4 |
|
|
1667 |
0D0A: BCF 20.4 |
|
|
1668 |
0D0B: MOVF 20,W |
|
|
1669 |
0D0C: BSF 03.5 |
|
|
1670 |
0D0D: MOVWF 07 |
|
|
1671 |
0D0E: NOP |
|
|
1672 |
0D0F: BCF 03.5 |
|
|
1673 |
0D10: BCF 07.3 |
|
|
1674 |
0D11: BCF 20.3 |
|
|
1675 |
0D12: MOVF 20,W |
|
|
1676 |
0D13: BSF 03.5 |
|
|
1677 |
0D14: MOVWF 07 |
|
|
1678 |
.................... I2C_Write(0xAB); |
|
|
1679 |
0D15: MOVLW AB |
|
|
1680 |
0D16: BCF 03.5 |
|
|
1681 |
0D17: MOVWF 39 |
|
|
1682 |
0D18: BCF 0A.3 |
|
|
1683 |
0D19: CALL 0C6 |
|
|
1684 |
0D1A: BSF 0A.3 |
|
|
1685 |
.................... STAV=i2c_read(0); |
|
|
1686 |
0D1B: CLRF 77 |
|
|
1687 |
0D1C: BCF 0A.3 |
|
|
1688 |
0D1D: CALL 110 |
|
|
1689 |
0D1E: BSF 0A.3 |
|
|
1690 |
0D1F: MOVF 78,W |
|
|
1691 |
0D20: MOVWF 2B |
|
|
1692 |
.................... i2c_stop(); |
|
|
1693 |
0D21: BCF 20.4 |
|
|
1694 |
0D22: MOVF 20,W |
|
|
1695 |
0D23: BSF 03.5 |
|
|
1696 |
0D24: MOVWF 07 |
|
|
1697 |
0D25: NOP |
|
|
1698 |
0D26: BCF 03.5 |
|
|
1699 |
0D27: BSF 20.3 |
|
|
1700 |
0D28: MOVF 20,W |
|
|
1701 |
0D29: BSF 03.5 |
|
|
1702 |
0D2A: MOVWF 07 |
|
|
1703 |
0D2B: BCF 03.5 |
|
|
1704 |
0D2C: BTFSS 07.3 |
|
|
1705 |
0D2D: GOTO 52C |
|
|
1706 |
0D2E: NOP |
|
|
1707 |
0D2F: GOTO 530 |
|
|
1708 |
0D30: NOP |
|
|
1709 |
0D31: BSF 20.4 |
|
|
1710 |
0D32: MOVF 20,W |
|
|
1711 |
0D33: BSF 03.5 |
|
|
1712 |
0D34: MOVWF 07 |
|
|
1713 |
0D35: NOP |
|
|
1714 |
.................... |
|
|
1715 |
.................... i2c_start(); |
|
|
1716 |
0D36: BCF 03.5 |
|
|
1717 |
0D37: BSF 20.4 |
|
|
1718 |
0D38: MOVF 20,W |
|
|
1719 |
0D39: BSF 03.5 |
|
|
1720 |
0D3A: MOVWF 07 |
|
|
1721 |
0D3B: NOP |
|
|
1722 |
0D3C: BCF 03.5 |
|
|
1723 |
0D3D: BSF 20.3 |
|
|
1724 |
0D3E: MOVF 20,W |
|
|
1725 |
0D3F: BSF 03.5 |
|
|
1726 |
0D40: MOVWF 07 |
|
|
1727 |
0D41: NOP |
|
|
1728 |
0D42: BCF 03.5 |
|
|
1729 |
0D43: BCF 07.4 |
|
|
1730 |
0D44: BCF 20.4 |
|
|
1731 |
0D45: MOVF 20,W |
|
|
1732 |
0D46: BSF 03.5 |
|
|
1733 |
0D47: MOVWF 07 |
|
|
1734 |
0D48: NOP |
|
|
1735 |
0D49: BCF 03.5 |
|
|
1736 |
0D4A: BCF 07.3 |
|
|
1737 |
0D4B: BCF 20.3 |
|
|
1738 |
0D4C: MOVF 20,W |
|
|
1739 |
0D4D: BSF 03.5 |
|
|
1740 |
0D4E: MOVWF 07 |
|
|
1741 |
.................... I2C_Write(0xAA); |
|
|
1742 |
0D4F: MOVLW AA |
|
|
1743 |
0D50: BCF 03.5 |
|
|
1744 |
0D51: MOVWF 39 |
|
|
1745 |
0D52: BCF 0A.3 |
|
|
1746 |
0D53: CALL 0C6 |
|
|
1747 |
0D54: BSF 0A.3 |
|
|
1748 |
.................... I2C_write(0x03); |
|
|
1749 |
0D55: MOVLW 03 |
|
|
1750 |
0D56: MOVWF 39 |
|
|
1751 |
0D57: BCF 0A.3 |
|
|
1752 |
0D58: CALL 0C6 |
|
|
1753 |
0D59: BSF 0A.3 |
|
|
1754 |
.................... i2c_stop(); |
|
|
1755 |
0D5A: BCF 20.4 |
|
|
1756 |
0D5B: MOVF 20,W |
|
|
1757 |
0D5C: BSF 03.5 |
|
|
1758 |
0D5D: MOVWF 07 |
|
|
1759 |
0D5E: NOP |
|
|
1760 |
0D5F: BCF 03.5 |
|
|
1761 |
0D60: BSF 20.3 |
|
|
1762 |
0D61: MOVF 20,W |
|
|
1763 |
0D62: BSF 03.5 |
|
|
1764 |
0D63: MOVWF 07 |
|
|
1765 |
0D64: BCF 03.5 |
|
|
1766 |
0D65: BTFSS 07.3 |
|
|
1767 |
0D66: GOTO 565 |
|
|
1768 |
0D67: NOP |
|
|
1769 |
0D68: GOTO 569 |
|
|
1770 |
0D69: NOP |
|
|
1771 |
0D6A: BSF 20.4 |
|
|
1772 |
0D6B: MOVF 20,W |
|
|
1773 |
0D6C: BSF 03.5 |
|
|
1774 |
0D6D: MOVWF 07 |
|
|
1775 |
0D6E: NOP |
|
|
1776 |
.................... i2c_start(); |
|
|
1777 |
0D6F: BCF 03.5 |
|
|
1778 |
0D70: BSF 20.4 |
|
|
1779 |
0D71: MOVF 20,W |
|
|
1780 |
0D72: BSF 03.5 |
|
|
1781 |
0D73: MOVWF 07 |
|
|
1782 |
0D74: NOP |
|
|
1783 |
0D75: BCF 03.5 |
|
|
1784 |
0D76: BSF 20.3 |
|
|
1785 |
0D77: MOVF 20,W |
|
|
1786 |
0D78: BSF 03.5 |
|
|
1787 |
0D79: MOVWF 07 |
|
|
1788 |
0D7A: NOP |
|
|
1789 |
0D7B: BCF 03.5 |
|
|
1790 |
0D7C: BCF 07.4 |
|
|
1791 |
0D7D: BCF 20.4 |
|
|
1792 |
0D7E: MOVF 20,W |
|
|
1793 |
0D7F: BSF 03.5 |
|
|
1794 |
0D80: MOVWF 07 |
|
|
1795 |
0D81: NOP |
|
|
1796 |
0D82: BCF 03.5 |
|
|
1797 |
0D83: BCF 07.3 |
|
|
1798 |
0D84: BCF 20.3 |
|
|
1799 |
0D85: MOVF 20,W |
|
|
1800 |
0D86: BSF 03.5 |
|
|
1801 |
0D87: MOVWF 07 |
|
|
1802 |
.................... I2C_Write(0xAB); |
|
|
1803 |
0D88: MOVLW AB |
|
|
1804 |
0D89: BCF 03.5 |
|
|
1805 |
0D8A: MOVWF 39 |
|
|
1806 |
0D8B: BCF 0A.3 |
|
|
1807 |
0D8C: CALL 0C6 |
|
|
1808 |
0D8D: BSF 0A.3 |
|
|
1809 |
.................... STAV1=i2c_read(0); |
|
|
1810 |
0D8E: CLRF 77 |
|
|
1811 |
0D8F: BCF 0A.3 |
|
|
1812 |
0D90: CALL 110 |
|
|
1813 |
0D91: BSF 0A.3 |
|
|
1814 |
0D92: MOVF 78,W |
|
|
1815 |
0D93: MOVWF 2C |
|
|
1816 |
.................... i2c_stop(); |
|
|
1817 |
0D94: BCF 20.4 |
|
|
1818 |
0D95: MOVF 20,W |
|
|
1819 |
0D96: BSF 03.5 |
|
|
1820 |
0D97: MOVWF 07 |
|
|
1821 |
0D98: NOP |
|
|
1822 |
0D99: BCF 03.5 |
|
|
1823 |
0D9A: BSF 20.3 |
|
|
1824 |
0D9B: MOVF 20,W |
|
|
1825 |
0D9C: BSF 03.5 |
|
|
1826 |
0D9D: MOVWF 07 |
|
|
1827 |
0D9E: BCF 03.5 |
|
|
1828 |
0D9F: BTFSS 07.3 |
|
|
1829 |
0DA0: GOTO 59F |
|
|
1830 |
0DA1: NOP |
|
|
1831 |
0DA2: GOTO 5A3 |
|
|
1832 |
0DA3: NOP |
|
|
1833 |
0DA4: BSF 20.4 |
|
|
1834 |
0DA5: MOVF 20,W |
|
|
1835 |
0DA6: BSF 03.5 |
|
|
1836 |
0DA7: MOVWF 07 |
|
|
1837 |
0DA8: NOP |
|
|
1838 |
.................... |
|
|
1839 |
.................... |
|
|
1840 |
.................... data4 = (((unsigned int16) INTEP1 << 8) + INTEP ); |
|
|
1841 |
0DA9: BCF 03.5 |
|
|
1842 |
0DAA: CLRF 3A |
|
|
1843 |
0DAB: MOVF 22,W |
|
|
1844 |
0DAC: MOVWF 39 |
|
|
1845 |
0DAD: MOVWF 3A |
|
|
1846 |
0DAE: CLRF 39 |
|
|
1847 |
0DAF: MOVF 21,W |
|
|
1848 |
0DB0: ADDWF 39,W |
|
|
1849 |
0DB1: MOVWF 2D |
|
|
1850 |
0DB2: MOVF 3A,W |
|
|
1851 |
0DB3: MOVWF 2E |
|
|
1852 |
0DB4: BTFSC 03.0 |
|
|
1853 |
0DB5: INCF 2E,F |
|
|
1854 |
.................... data4 = (data4/10)-273; |
|
|
1855 |
0DB6: MOVF 2E,W |
|
|
1856 |
0DB7: MOVWF 3A |
|
|
1857 |
0DB8: MOVF 2D,W |
|
|
1858 |
0DB9: MOVWF 39 |
|
|
1859 |
0DBA: CLRF 3C |
|
|
1860 |
0DBB: MOVLW 0A |
|
|
1861 |
0DBC: MOVWF 3B |
|
|
1862 |
0DBD: BCF 0A.3 |
|
|
1863 |
0DBE: GOTO 155 |
|
|
1864 |
0DBF: BSF 0A.3 |
|
|
1865 |
0DC0: MOVF 79,W |
|
|
1866 |
0DC1: MOVWF 3A |
|
|
1867 |
0DC2: MOVF 78,W |
|
|
1868 |
0DC3: MOVWF 39 |
|
|
1869 |
0DC4: MOVLW 11 |
|
|
1870 |
0DC5: SUBWF 39,W |
|
|
1871 |
0DC6: MOVWF 2D |
|
|
1872 |
0DC7: MOVF 3A,W |
|
|
1873 |
0DC8: MOVWF 2E |
|
|
1874 |
0DC9: MOVLW 01 |
|
|
1875 |
0DCA: BTFSS 03.0 |
|
|
1876 |
0DCB: MOVLW 02 |
|
|
1877 |
0DCC: SUBWF 2E,F |
|
|
1878 |
.................... data5 = (((unsigned int16) NAP1 << 8) + NAP ); |
|
|
1879 |
0DCD: CLRF 3A |
|
|
1880 |
0DCE: MOVF 24,W |
|
|
1881 |
0DCF: MOVWF 39 |
|
|
1882 |
0DD0: MOVWF 3A |
|
|
1883 |
0DD1: CLRF 39 |
|
|
1884 |
0DD2: MOVF 23,W |
|
|
1885 |
0DD3: ADDWF 39,W |
|
|
1886 |
0DD4: MOVWF 2F |
|
|
1887 |
0DD5: MOVF 3A,W |
|
|
1888 |
0DD6: MOVWF 30 |
|
|
1889 |
0DD7: BTFSC 03.0 |
|
|
1890 |
0DD8: INCF 30,F |
|
|
1891 |
.................... data6 = (((unsigned int16) PROUD1 << 8) + PROUD ); |
|
|
1892 |
0DD9: CLRF 3A |
|
|
1893 |
0DDA: MOVF 26,W |
|
|
1894 |
0DDB: MOVWF 39 |
|
|
1895 |
0DDC: MOVWF 3A |
|
|
1896 |
0DDD: CLRF 39 |
|
|
1897 |
0DDE: MOVF 25,W |
|
|
1898 |
0DDF: ADDWF 39,W |
|
|
1899 |
0DE0: MOVWF 31 |
|
|
1900 |
0DE1: MOVF 3A,W |
|
|
1901 |
0DE2: MOVWF 32 |
|
|
1902 |
0DE3: BTFSC 03.0 |
|
|
1903 |
0DE4: INCF 32,F |
|
|
1904 |
.................... data7 = (((unsigned int16) KAPZ1 << 8) + KAPZ ); |
|
|
1905 |
0DE5: CLRF 3A |
|
|
1906 |
0DE6: MOVF 28,W |
|
|
1907 |
0DE7: MOVWF 39 |
|
|
1908 |
0DE8: MOVWF 3A |
|
|
1909 |
0DE9: CLRF 39 |
|
|
1910 |
0DEA: MOVF 27,W |
|
|
1911 |
0DEB: ADDWF 39,W |
|
|
1912 |
0DEC: MOVWF 33 |
|
|
1913 |
0DED: MOVF 3A,W |
|
|
1914 |
0DEE: MOVWF 34 |
|
|
1915 |
0DEF: BTFSC 03.0 |
|
|
1916 |
0DF0: INCF 34,F |
|
|
1917 |
.................... data8 = (((unsigned int16) KAPC1 << 8) + KAPC ); |
|
|
1918 |
0DF1: CLRF 3A |
|
|
1919 |
0DF2: MOVF 2A,W |
|
|
1920 |
0DF3: MOVWF 39 |
|
|
1921 |
0DF4: MOVWF 3A |
|
|
1922 |
0DF5: CLRF 39 |
|
|
1923 |
0DF6: MOVF 29,W |
|
|
1924 |
0DF7: ADDWF 39,W |
|
|
1925 |
0DF8: MOVWF 35 |
|
|
1926 |
0DF9: MOVF 3A,W |
|
|
1927 |
0DFA: MOVWF 36 |
|
|
1928 |
0DFB: BTFSC 03.0 |
|
|
1929 |
0DFC: INCF 36,F |
|
|
1930 |
.................... data9 = (((unsigned int16) STAV1 << 8) + STAV ); |
|
|
1931 |
0DFD: CLRF 3A |
|
|
1932 |
0DFE: MOVF 2C,W |
|
|
1933 |
0DFF: MOVWF 39 |
|
|
1934 |
0E00: MOVWF 3A |
|
|
1935 |
0E01: CLRF 39 |
|
|
1936 |
0E02: MOVF 2B,W |
|
|
1937 |
0E03: ADDWF 39,W |
|
|
1938 |
0E04: MOVWF 37 |
|
|
1939 |
0E05: MOVF 3A,W |
|
|
1940 |
0E06: MOVWF 38 |
|
|
1941 |
0E07: BTFSC 03.0 |
|
|
1942 |
0E08: INCF 38,F |
|
|
1943 |
.................... |
|
|
1944 |
.................... |
|
|
1945 |
.................... |
|
|
1946 |
.................... |
|
|
1947 |
.................... |
|
|
1948 |
.................... printf("Teplota uvnitr io: %Ld C\r\n", data4); |
|
|
1949 |
0E09: MOVLW 10 |
|
|
1950 |
0E0A: BSF 03.6 |
|
|
1951 |
0E0B: MOVWF 0D |
|
|
1952 |
0E0C: MOVLW 00 |
|
|
1953 |
0E0D: MOVWF 0F |
|
|
1954 |
0E0E: BCF 03.0 |
|
|
1955 |
0E0F: MOVLW 13 |
|
|
1956 |
0E10: BCF 03.6 |
|
|
1957 |
0E11: MOVWF 39 |
|
|
1958 |
0E12: BCF 0A.3 |
|
|
1959 |
0E13: CALL 17C |
|
|
1960 |
0E14: BSF 0A.3 |
|
|
1961 |
0E15: MOVLW 10 |
|
|
1962 |
0E16: MOVWF 04 |
|
|
1963 |
0E17: MOVF 2E,W |
|
|
1964 |
0E18: MOVWF 3A |
|
|
1965 |
0E19: MOVF 2D,W |
|
|
1966 |
0E1A: MOVWF 39 |
|
|
1967 |
0E1B: BCF 0A.3 |
|
|
1968 |
0E1C: CALL 1CB |
|
|
1969 |
0E1D: BSF 0A.3 |
|
|
1970 |
0E1E: MOVLW 1B |
|
|
1971 |
0E1F: BSF 03.6 |
|
|
1972 |
0E20: MOVWF 0D |
|
|
1973 |
0E21: MOVLW 00 |
|
|
1974 |
0E22: MOVWF 0F |
|
|
1975 |
0E23: BCF 03.0 |
|
|
1976 |
0E24: MOVLW 04 |
|
|
1977 |
0E25: BCF 03.6 |
|
|
1978 |
0E26: MOVWF 39 |
|
|
1979 |
0E27: BCF 0A.3 |
|
|
1980 |
0E28: CALL 17C |
|
|
1981 |
0E29: BSF 0A.3 |
|
|
1982 |
.................... printf("Napeti clanku: %Ld mV \r\n", data5); |
|
|
1983 |
0E2A: MOVLW 1E |
|
|
1984 |
0E2B: BSF 03.6 |
|
|
1985 |
0E2C: MOVWF 0D |
|
|
1986 |
0E2D: MOVLW 00 |
|
|
1987 |
0E2E: MOVWF 0F |
|
|
1988 |
0E2F: BCF 03.0 |
|
|
1989 |
0E30: MOVLW 0F |
|
|
1990 |
0E31: BCF 03.6 |
|
|
1991 |
0E32: MOVWF 39 |
|
|
1992 |
0E33: BCF 0A.3 |
|
|
1993 |
0E34: CALL 17C |
|
|
1994 |
0E35: BSF 0A.3 |
|
|
1995 |
0E36: MOVLW 10 |
|
|
1996 |
0E37: MOVWF 04 |
|
|
1997 |
0E38: MOVF 30,W |
|
|
1998 |
0E39: MOVWF 3A |
|
|
1999 |
0E3A: MOVF 2F,W |
|
|
2000 |
0E3B: MOVWF 39 |
|
|
2001 |
0E3C: BCF 0A.3 |
|
|
2002 |
0E3D: CALL 1CB |
|
|
2003 |
0E3E: BSF 0A.3 |
|
|
2004 |
0E3F: MOVLW 27 |
|
|
2005 |
0E40: BSF 03.6 |
|
|
2006 |
0E41: MOVWF 0D |
|
|
2007 |
0E42: MOVLW 00 |
|
|
2008 |
0E43: MOVWF 0F |
|
|
2009 |
0E44: BCF 03.0 |
|
|
2010 |
0E45: MOVLW 06 |
|
|
2011 |
0E46: BCF 03.6 |
|
|
2012 |
0E47: MOVWF 39 |
|
|
2013 |
0E48: BCF 0A.3 |
|
|
2014 |
0E49: CALL 17C |
|
|
2015 |
0E4A: BSF 0A.3 |
|
|
2016 |
.................... printf("Proud: %Ld mA \r\n", data6); |
|
|
2017 |
0E4B: MOVLW 2B |
|
|
2018 |
0E4C: BSF 03.6 |
|
|
2019 |
0E4D: MOVWF 0D |
|
|
2020 |
0E4E: MOVLW 00 |
|
|
2021 |
0E4F: MOVWF 0F |
|
|
2022 |
0E50: BCF 03.0 |
|
|
2023 |
0E51: MOVLW 07 |
|
|
2024 |
0E52: BCF 03.6 |
|
|
2025 |
0E53: MOVWF 39 |
|
|
2026 |
0E54: BCF 0A.3 |
|
|
2027 |
0E55: CALL 17C |
|
|
2028 |
0E56: BSF 0A.3 |
|
|
2029 |
0E57: MOVLW 10 |
|
|
2030 |
0E58: MOVWF 04 |
|
|
2031 |
0E59: MOVF 32,W |
|
|
2032 |
0E5A: MOVWF 3A |
|
|
2033 |
0E5B: MOVF 31,W |
|
|
2034 |
0E5C: MOVWF 39 |
|
|
2035 |
0E5D: BCF 0A.3 |
|
|
2036 |
0E5E: CALL 1CB |
|
|
2037 |
0E5F: BSF 0A.3 |
|
|
2038 |
0E60: MOVLW 30 |
|
|
2039 |
0E61: BSF 03.6 |
|
|
2040 |
0E62: MOVWF 0D |
|
|
2041 |
0E63: MOVLW 00 |
|
|
2042 |
0E64: MOVWF 0F |
|
|
2043 |
0E65: BCF 03.0 |
|
|
2044 |
0E66: MOVLW 06 |
|
|
2045 |
0E67: BCF 03.6 |
|
|
2046 |
0E68: MOVWF 39 |
|
|
2047 |
0E69: BCF 0A.3 |
|
|
2048 |
0E6A: CALL 17C |
|
|
2049 |
0E6B: BSF 0A.3 |
|
|
2050 |
.................... printf("Kapacita zbytek: %Ld mAh\r\n", data7); |
|
|
2051 |
0E6C: MOVLW 34 |
|
|
2052 |
0E6D: BSF 03.6 |
|
|
2053 |
0E6E: MOVWF 0D |
|
|
2054 |
0E6F: MOVLW 00 |
|
|
2055 |
0E70: MOVWF 0F |
|
|
2056 |
0E71: BCF 03.0 |
|
|
2057 |
0E72: MOVLW 11 |
|
|
2058 |
0E73: BCF 03.6 |
|
|
2059 |
0E74: MOVWF 39 |
|
|
2060 |
0E75: BCF 0A.3 |
|
|
2061 |
0E76: CALL 17C |
|
|
2062 |
0E77: BSF 0A.3 |
|
|
2063 |
0E78: MOVLW 10 |
|
|
2064 |
0E79: MOVWF 04 |
|
|
2065 |
0E7A: MOVF 34,W |
|
|
2066 |
0E7B: MOVWF 3A |
|
|
2067 |
0E7C: MOVF 33,W |
|
|
2068 |
0E7D: MOVWF 39 |
|
|
2069 |
0E7E: BCF 0A.3 |
|
|
2070 |
0E7F: CALL 1CB |
|
|
2071 |
0E80: BSF 0A.3 |
|
|
2072 |
0E81: MOVLW 3E |
|
|
2073 |
0E82: BSF 03.6 |
|
|
2074 |
0E83: MOVWF 0D |
|
|
2075 |
0E84: MOVLW 00 |
|
|
2076 |
0E85: MOVWF 0F |
|
|
2077 |
0E86: BCF 03.0 |
|
|
2078 |
0E87: MOVLW 06 |
|
|
2079 |
0E88: BCF 03.6 |
|
|
2080 |
0E89: MOVWF 39 |
|
|
2081 |
0E8A: BCF 0A.3 |
|
|
2082 |
0E8B: CALL 17C |
|
|
2083 |
0E8C: BSF 0A.3 |
|
|
2084 |
.................... printf("Kapacita max: %Ld mAh\r\n", data8); |
|
|
2085 |
0E8D: MOVLW 42 |
|
|
2086 |
0E8E: BSF 03.6 |
|
|
2087 |
0E8F: MOVWF 0D |
|
|
2088 |
0E90: MOVLW 00 |
|
|
2089 |
0E91: MOVWF 0F |
|
|
2090 |
0E92: BCF 03.0 |
|
|
2091 |
0E93: MOVLW 0E |
|
|
2092 |
0E94: BCF 03.6 |
|
|
2093 |
0E95: MOVWF 39 |
|
|
2094 |
0E96: BCF 0A.3 |
|
|
2095 |
0E97: CALL 17C |
|
|
2096 |
0E98: BSF 0A.3 |
|
|
2097 |
0E99: MOVLW 10 |
|
|
2098 |
0E9A: MOVWF 04 |
|
|
2099 |
0E9B: MOVF 36,W |
|
|
2100 |
0E9C: MOVWF 3A |
|
|
2101 |
0E9D: MOVF 35,W |
|
|
2102 |
0E9E: MOVWF 39 |
|
|
2103 |
0E9F: BCF 0A.3 |
|
|
2104 |
0EA0: CALL 1CB |
|
|
2105 |
0EA1: BSF 0A.3 |
|
|
2106 |
0EA2: MOVLW 4A |
|
|
2107 |
0EA3: BSF 03.6 |
|
|
2108 |
0EA4: MOVWF 0D |
|
|
2109 |
0EA5: MOVLW 00 |
|
|
2110 |
0EA6: MOVWF 0F |
|
|
2111 |
0EA7: BSF 03.0 |
|
|
2112 |
0EA8: MOVLW 06 |
|
|
2113 |
0EA9: BCF 03.6 |
|
|
2114 |
0EAA: MOVWF 39 |
|
|
2115 |
0EAB: BCF 0A.3 |
|
|
2116 |
0EAC: CALL 17C |
|
|
2117 |
0EAD: BSF 0A.3 |
|
|
2118 |
.................... printf("Stav: %Ld (procenta)\r\n", data9); |
|
|
2119 |
0EAE: MOVLW 4E |
|
|
2120 |
0EAF: BSF 03.6 |
|
|
2121 |
0EB0: MOVWF 0D |
|
|
2122 |
0EB1: MOVLW 00 |
|
|
2123 |
0EB2: MOVWF 0F |
|
|
2124 |
0EB3: BCF 03.0 |
|
|
2125 |
0EB4: MOVLW 06 |
|
|
2126 |
0EB5: BCF 03.6 |
|
|
2127 |
0EB6: MOVWF 39 |
|
|
2128 |
0EB7: BCF 0A.3 |
|
|
2129 |
0EB8: CALL 17C |
|
|
2130 |
0EB9: BSF 0A.3 |
|
|
2131 |
0EBA: MOVLW 10 |
|
|
2132 |
0EBB: MOVWF 04 |
|
|
2133 |
0EBC: MOVF 38,W |
|
|
2134 |
0EBD: MOVWF 3A |
|
|
2135 |
0EBE: MOVF 37,W |
|
|
2136 |
0EBF: MOVWF 39 |
|
|
2137 |
0EC0: BCF 0A.3 |
|
|
2138 |
0EC1: CALL 1CB |
|
|
2139 |
0EC2: BSF 0A.3 |
|
|
2140 |
0EC3: MOVLW 52 |
|
|
2141 |
0EC4: BSF 03.6 |
|
|
2142 |
0EC5: MOVWF 0D |
|
|
2143 |
0EC6: MOVLW 00 |
|
|
2144 |
0EC7: MOVWF 0F |
|
|
2145 |
0EC8: BSF 03.0 |
|
|
2146 |
0EC9: MOVLW 0D |
|
|
2147 |
0ECA: BCF 03.6 |
|
|
2148 |
0ECB: MOVWF 39 |
|
|
2149 |
0ECC: BCF 0A.3 |
|
|
2150 |
0ECD: CALL 17C |
|
|
2151 |
0ECE: BSF 0A.3 |
|
|
2152 |
.................... |
|
|
2153 |
.................... |
|
|
2154 |
.................... delay_ms (2000); |
|
|
2155 |
0ECF: MOVLW 08 |
|
|
2156 |
0ED0: MOVWF 39 |
|
|
2157 |
0ED1: MOVLW FA |
|
|
2158 |
0ED2: MOVWF 3A |
|
|
2159 |
0ED3: BCF 0A.3 |
|
|
2160 |
0ED4: GOTO 24B |
|
|
2161 |
0ED5: BSF 0A.3 |
|
|
2162 |
0ED6: DECFSZ 39,F |
|
|
2163 |
0ED7: GOTO 6D1 |
|
|
2164 |
.................... |
|
|
2165 |
.................... } |
|
|
2166 |
0ED8: GOTO 06E |
|
|
2167 |
.................... } |
|
|
2168 |
0ED9: SLEEP |
|
|
2169 |
|
|
|
2170 |
Configuration Fuses: |
|
|
2171 |
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG |
|
|
2172 |
Word 2: 3FFF NOWRT BORV40 |