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