1 |
CCS PCM C Compiler, Version 4.106, 47914 02-4-13 17:32 |
1 |
CCS PCM C Compiler, Version 4.106, 47914 30-4-13 23:25 |
2 |
|
2 |
|
3 |
Filename: C:\Users\Honza\Documents\pic\I2C_baterka\main.lst |
3 |
Filename: C:\Users\Honza\Documents\pic\I2C_baterka\main.lst |
4 |
|
4 |
|
5 |
ROM used: 2455 words (30%) |
5 |
ROM used: 1313 words (16%) |
6 |
Largest free fragment is 2048 |
6 |
Largest free fragment is 2048 |
7 |
RAM used: 8 (2%) at main() level |
7 |
RAM used: 7 (2%) at main() level |
8 |
56 (15%) worst case |
8 |
19 (5%) worst case |
9 |
Stack: 2 locations |
9 |
Stack: 3 locations |
10 |
|
10 |
|
11 |
* |
11 |
* |
12 |
0000: MOVLW 08 |
12 |
0000: MOVLW 03 |
13 |
0001: MOVWF 0A |
13 |
0001: MOVWF 0A |
14 |
0002: GOTO 000 |
14 |
0002: GOTO 3E1 |
15 |
0003: NOP |
15 |
0003: NOP |
16 |
.................... #include "C:\Users\Honza\Documents\pic\I2C_magnetometr\main.h" |
16 |
.................... //#include "C:\Users\Honza\Documents\pic\I2C_magnetometr\main.h" |
- |
|
17 |
.................... #include "main.h" |
17 |
.................... #include <16F887.h> |
18 |
.................... #include <16F887.h> |
18 |
.................... //////// Standard Header file for the PIC16F887 device //////////////// |
19 |
.................... //////// Standard Header file for the PIC16F887 device //////////////// |
19 |
.................... #device PIC16F887 |
20 |
.................... #device PIC16F887 |
20 |
.................... #list |
21 |
.................... #list |
21 |
.................... |
22 |
.................... |
22 |
.................... #device adc=8 |
23 |
.................... #device adc=8 |
23 |
.................... |
24 |
.................... |
24 |
.................... #FUSES NOWDT //No Watch Dog Timer |
25 |
.................... #FUSES NOWDT //No Watch Dog Timer |
25 |
.................... #FUSES INTRC //Internal RC Osc |
26 |
.................... #FUSES INTRC //Internal RC Osc |
26 |
.................... #FUSES NOPUT //No Power Up Timer |
27 |
.................... #FUSES NOPUT //No Power Up Timer |
27 |
.................... #FUSES MCLR //Master Clear pin enabled |
28 |
.................... #FUSES MCLR //Master Clear pin enabled |
28 |
.................... #FUSES NOPROTECT //Code not protected from reading |
29 |
.................... #FUSES NOPROTECT //Code not protected from reading |
29 |
.................... #FUSES NOCPD //No EE protection |
30 |
.................... #FUSES NOCPD //No EE protection |
30 |
.................... #FUSES NOBROWNOUT //No brownout reset |
31 |
.................... #FUSES NOBROWNOUT //No brownout reset |
31 |
.................... #FUSES IESO //Internal External Switch Over mode enabled |
32 |
.................... #FUSES IESO //Internal External Switch Over mode enabled |
32 |
.................... #FUSES FCMEN //Fail-safe clock monitor enabled |
33 |
.................... #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 NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
34 |
.................... #FUSES NODEBUG //No Debug mode for ICD |
35 |
.................... #FUSES NODEBUG //No Debug mode for ICD |
35 |
.................... #FUSES NOWRT //Program memory not write protected |
36 |
.................... #FUSES NOWRT //Program memory not write protected |
36 |
.................... #FUSES BORV40 //Brownout reset at 4.0V |
37 |
.................... #FUSES BORV40 //Brownout reset at 4.0V |
37 |
.................... |
38 |
.................... |
38 |
.................... #use delay(clock=8000000) |
39 |
.................... #use delay(clock=8000000) |
39 |
* |
40 |
* |
40 |
012B: MOVLW 4A |
41 |
03CB: MOVLW 24 |
41 |
012C: MOVWF 04 |
42 |
03CC: MOVWF 04 |
42 |
012D: BCF 03.7 |
43 |
03CD: BCF 03.7 |
43 |
012E: MOVF 00,W |
44 |
03CE: MOVF 00,W |
44 |
012F: BTFSC 03.2 |
45 |
03CF: BTFSC 03.2 |
45 |
0130: GOTO 13E |
46 |
03D0: GOTO 3DE |
46 |
0131: MOVLW 02 |
47 |
03D1: MOVLW 02 |
47 |
0132: MOVWF 78 |
48 |
03D2: MOVWF 78 |
48 |
0133: CLRF 77 |
49 |
03D3: CLRF 77 |
49 |
0134: DECFSZ 77,F |
50 |
03D4: DECFSZ 77,F |
50 |
0135: GOTO 134 |
51 |
03D5: GOTO 3D4 |
51 |
0136: DECFSZ 78,F |
52 |
03D6: DECFSZ 78,F |
52 |
0137: GOTO 133 |
53 |
03D7: GOTO 3D3 |
53 |
0138: MOVLW 97 |
54 |
03D8: MOVLW 97 |
54 |
0139: MOVWF 77 |
55 |
03D9: MOVWF 77 |
55 |
013A: DECFSZ 77,F |
56 |
03DA: DECFSZ 77,F |
56 |
013B: GOTO 13A |
57 |
03DB: GOTO 3DA |
57 |
013C: DECFSZ 00,F |
58 |
03DC: DECFSZ 00,F |
58 |
013D: GOTO 131 |
59 |
03DD: GOTO 3D1 |
59 |
013E: BSF 0A.3 |
60 |
03DE: BCF 0A.3 |
60 |
013F: BCF 0A.4 |
61 |
03DF: BCF 0A.4 |
61 |
0140: GOTO 23A (RETURN) |
62 |
03E0: GOTO 51D (RETURN) |
62 |
.................... |
63 |
.................... |
63 |
.................... |
64 |
.................... |
64 |
.................... #define EEPROM_SDA PIN_B0 |
65 |
.................... #define EEPROM_SDA PIN_C4 |
65 |
.................... #define EEPROM_SCL PIN_B1 |
66 |
.................... #define EEPROM_SCL PIN_C3 |
66 |
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
67 |
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
67 |
* |
68 |
* |
68 |
00C4: MOVLW 08 |
69 |
00F7: MOVLW 08 |
69 |
00C5: MOVWF 78 |
70 |
00F8: 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 |
71 |
00F9: 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 |
72 |
00FA: BCF 07.3 |
114 |
00F2: BCF 03.5 |
73 |
00FB: BCF 20.3 |
115 |
00F3: BCF 06.0 |
74 |
00FC: MOVF 20,W |
116 |
00F4: BSF 03.5 |
75 |
00FD: 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 |
76 |
00FE: MOVWF 07 |
124 |
00FC: BSF 03.5 |
- |
|
125 |
00FD: BSF 06.0 |
- |
|
126 |
00FE: NOP |
77 |
00FF: NOP |
127 |
00FF: BSF 06.1 |
- |
|
128 |
0100: BCF 03.5 |
78 |
0100: BCF 03.5 |
129 |
0101: BTFSS 06.1 |
79 |
0101: RLF 2B,F |
130 |
0102: GOTO 101 |
80 |
0102: BCF 07.4 |
131 |
0103: BTFSC 06.0 |
81 |
0103: BTFSS 03.0 |
132 |
0104: BSF 03.0 |
82 |
0104: GOTO 10B |
133 |
0105: BTFSS 06.0 |
83 |
0105: BSF 20.4 |
134 |
0106: BCF 03.0 |
84 |
0106: MOVF 20,W |
135 |
0107: RLF 78,F |
85 |
0107: BSF 03.5 |
136 |
0108: NOP |
86 |
0108: MOVWF 07 |
137 |
0109: BSF 03.5 |
87 |
0109: GOTO 10F |
138 |
010A: BCF 06.1 |
88 |
010A: BCF 03.5 |
139 |
010B: BCF 03.5 |
89 |
010B: BCF 20.4 |
140 |
010C: BCF 06.1 |
90 |
010C: MOVF 20,W |
141 |
010D: DECFSZ 4A,F |
91 |
010D: BSF 03.5 |
142 |
010E: GOTO 0FC |
92 |
010E: MOVWF 07 |
143 |
010F: BSF 03.5 |
93 |
010F: NOP |
144 |
0110: BSF 06.0 |
94 |
0110: BCF 03.5 |
145 |
0111: NOP |
95 |
0111: BSF 20.3 |
146 |
0112: BCF 03.5 |
96 |
0112: MOVF 20,W |
147 |
0113: BCF 06.0 |
97 |
0113: BSF 03.5 |
148 |
0114: MOVF 4B,W |
98 |
0114: MOVWF 07 |
149 |
0115: BTFSC 03.2 |
99 |
0115: BCF 03.5 |
150 |
0116: GOTO 11A |
100 |
0116: BTFSS 07.3 |
151 |
0117: BSF 03.5 |
101 |
0117: GOTO 116 |
152 |
0118: BCF 06.0 |
102 |
0118: DECFSZ 78,F |
153 |
0119: BCF 03.5 |
103 |
0119: GOTO 0F9 |
154 |
011A: NOP |
104 |
011A: NOP |
155 |
011B: BSF 03.5 |
105 |
011B: BCF 07.3 |
156 |
011C: BSF 06.1 |
106 |
011C: BCF 20.3 |
157 |
011D: BCF 03.5 |
107 |
011D: MOVF 20,W |
158 |
011E: BTFSS 06.1 |
108 |
011E: BSF 03.5 |
159 |
011F: GOTO 11E |
109 |
011F: MOVWF 07 |
160 |
0120: NOP |
110 |
0120: NOP |
161 |
0121: BCF 06.1 |
111 |
0121: BCF 03.5 |
- |
|
112 |
0122: BSF 20.4 |
- |
|
113 |
0123: MOVF 20,W |
162 |
0122: BSF 03.5 |
114 |
0124: BSF 03.5 |
- |
|
115 |
0125: MOVWF 07 |
- |
|
116 |
0126: NOP |
- |
|
117 |
0127: NOP |
163 |
0123: BCF 06.1 |
118 |
0128: BCF 03.5 |
- |
|
119 |
0129: BSF 20.3 |
- |
|
120 |
012A: MOVF 20,W |
- |
|
121 |
012B: BSF 03.5 |
- |
|
122 |
012C: MOVWF 07 |
- |
|
123 |
012D: BCF 03.5 |
- |
|
124 |
012E: BTFSS 07.3 |
- |
|
125 |
012F: GOTO 12E |
- |
|
126 |
0130: CLRF 78 |
- |
|
127 |
0131: NOP |
- |
|
128 |
0132: BTFSC 07.4 |
- |
|
129 |
0133: BSF 78.0 |
- |
|
130 |
0134: BCF 07.3 |
- |
|
131 |
0135: BCF 20.3 |
- |
|
132 |
0136: MOVF 20,W |
- |
|
133 |
0137: BSF 03.5 |
- |
|
134 |
0138: MOVWF 07 |
- |
|
135 |
0139: BCF 03.5 |
- |
|
136 |
013A: BCF 07.4 |
- |
|
137 |
013B: BCF 20.4 |
- |
|
138 |
013C: MOVF 20,W |
- |
|
139 |
013D: BSF 03.5 |
- |
|
140 |
013E: MOVWF 07 |
- |
|
141 |
013F: BCF 03.5 |
- |
|
142 |
0140: RETURN |
- |
|
143 |
0141: MOVLW 08 |
- |
|
144 |
0142: MOVWF 2C |
- |
|
145 |
0143: MOVF 77,W |
- |
|
146 |
0144: MOVWF 2D |
- |
|
147 |
0145: BSF 20.4 |
- |
|
148 |
0146: MOVF 20,W |
- |
|
149 |
0147: BSF 03.5 |
- |
|
150 |
0148: MOVWF 07 |
- |
|
151 |
0149: NOP |
- |
|
152 |
014A: BCF 03.5 |
- |
|
153 |
014B: BSF 20.3 |
- |
|
154 |
014C: MOVF 20,W |
- |
|
155 |
014D: BSF 03.5 |
- |
|
156 |
014E: MOVWF 07 |
- |
|
157 |
014F: BCF 03.5 |
- |
|
158 |
0150: BTFSS 07.3 |
- |
|
159 |
0151: GOTO 150 |
- |
|
160 |
0152: BTFSC 07.4 |
- |
|
161 |
0153: BSF 03.0 |
- |
|
162 |
0154: BTFSS 07.4 |
- |
|
163 |
0155: BCF 03.0 |
- |
|
164 |
0156: RLF 78,F |
- |
|
165 |
0157: NOP |
- |
|
166 |
0158: BCF 20.3 |
- |
|
167 |
0159: MOVF 20,W |
- |
|
168 |
015A: BSF 03.5 |
- |
|
169 |
015B: MOVWF 07 |
- |
|
170 |
015C: BCF 03.5 |
- |
|
171 |
015D: BCF 07.3 |
- |
|
172 |
015E: DECFSZ 2C,F |
- |
|
173 |
015F: GOTO 145 |
- |
|
174 |
0160: BSF 20.4 |
- |
|
175 |
0161: MOVF 20,W |
- |
|
176 |
0162: BSF 03.5 |
- |
|
177 |
0163: MOVWF 07 |
164 |
0124: NOP |
178 |
0164: NOP |
165 |
0125: BCF 03.5 |
179 |
0165: BCF 03.5 |
166 |
0126: BCF 06.0 |
180 |
0166: BCF 07.4 |
- |
|
181 |
0167: MOVF 2D,W |
- |
|
182 |
0168: BTFSC 03.2 |
- |
|
183 |
0169: GOTO 16F |
- |
|
184 |
016A: BCF 20.4 |
- |
|
185 |
016B: MOVF 20,W |
- |
|
186 |
016C: BSF 03.5 |
- |
|
187 |
016D: MOVWF 07 |
- |
|
188 |
016E: BCF 03.5 |
- |
|
189 |
016F: NOP |
- |
|
190 |
0170: BSF 20.3 |
- |
|
191 |
0171: MOVF 20,W |
167 |
0127: BSF 03.5 |
192 |
0172: BSF 03.5 |
- |
|
193 |
0173: MOVWF 07 |
- |
|
194 |
0174: BCF 03.5 |
- |
|
195 |
0175: BTFSS 07.3 |
- |
|
196 |
0176: GOTO 175 |
- |
|
197 |
0177: NOP |
168 |
0128: BCF 06.0 |
198 |
0178: BCF 07.3 |
- |
|
199 |
0179: BCF 20.3 |
- |
|
200 |
017A: MOVF 20,W |
- |
|
201 |
017B: BSF 03.5 |
- |
|
202 |
017C: MOVWF 07 |
- |
|
203 |
017D: NOP |
- |
|
204 |
017E: BCF 03.5 |
- |
|
205 |
017F: BCF 07.4 |
- |
|
206 |
0180: BCF 20.4 |
- |
|
207 |
0181: MOVF 20,W |
- |
|
208 |
0182: BSF 03.5 |
- |
|
209 |
0183: MOVWF 07 |
169 |
0129: BCF 03.5 |
210 |
0184: BCF 03.5 |
170 |
012A: RETURN |
211 |
0185: RETURN |
171 |
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD |
212 |
.................... #use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD |
172 |
* |
213 |
* |
173 |
005A: BSF 03.5 |
214 |
008D: BCF 20.7 |
174 |
005B: BCF 06.3 |
215 |
008E: MOVF 20,W |
175 |
005C: BCF 03.5 |
216 |
008F: BSF 03.5 |
176 |
005D: BCF 06.3 |
217 |
0090: MOVWF 07 |
177 |
005E: MOVLW 08 |
218 |
0091: BCF 03.5 |
178 |
005F: MOVWF 78 |
219 |
0092: BCF 07.7 |
179 |
0060: GOTO 061 |
220 |
0093: MOVLW 08 |
180 |
0061: NOP |
221 |
0094: MOVWF 78 |
181 |
0062: BSF 78.7 |
222 |
0095: GOTO 096 |
182 |
0063: GOTO 072 |
223 |
0096: NOP |
183 |
0064: BCF 78.7 |
224 |
0097: BSF 78.7 |
184 |
0065: RRF 52,F |
225 |
0098: GOTO 0A7 |
185 |
0066: BTFSC 03.0 |
226 |
0099: BCF 78.7 |
186 |
0067: BSF 06.3 |
227 |
009A: RRF 2C,F |
187 |
0068: BTFSS 03.0 |
228 |
009B: BTFSC 03.0 |
188 |
0069: BCF 06.3 |
229 |
009C: BSF 07.7 |
189 |
006A: BSF 78.6 |
230 |
009D: BTFSS 03.0 |
190 |
006B: GOTO 072 |
231 |
009E: BCF 07.7 |
191 |
006C: BCF 78.6 |
232 |
009F: BSF 78.6 |
192 |
006D: DECFSZ 78,F |
233 |
00A0: GOTO 0A7 |
193 |
006E: GOTO 065 |
234 |
00A1: BCF 78.6 |
194 |
006F: GOTO 070 |
235 |
00A2: DECFSZ 78,F |
195 |
0070: NOP |
236 |
00A3: GOTO 09A |
196 |
0071: BSF 06.3 |
237 |
00A4: GOTO 0A5 |
197 |
0072: MOVLW 3F |
238 |
00A5: NOP |
198 |
0073: MOVWF 04 |
239 |
00A6: BSF 07.7 |
199 |
0074: DECFSZ 04,F |
240 |
00A7: MOVLW 3F |
200 |
0075: GOTO 074 |
241 |
00A8: MOVWF 04 |
201 |
0076: NOP |
242 |
00A9: DECFSZ 04,F |
202 |
0077: BTFSC 78.7 |
243 |
00AA: GOTO 0A9 |
203 |
0078: GOTO 064 |
244 |
00AB: NOP |
204 |
0079: BTFSC 78.6 |
245 |
00AC: BTFSC 78.7 |
205 |
007A: GOTO 06C |
246 |
00AD: GOTO 099 |
206 |
007B: RETURN |
247 |
00AE: BTFSC 78.6 |
- |
|
248 |
00AF: GOTO 0A1 |
- |
|
249 |
00B0: RETURN |
- |
|
250 |
.................... #include "BQ34Z100.h" |
- |
|
251 |
.................... #define BAT_ADDR_R 0xAB //addresa pro cteni |
- |
|
252 |
.................... #define BAT_ADDR_W 0xAA |
- |
|
253 |
.................... |
- |
|
254 |
.................... |
- |
|
255 |
.................... |
- |
|
256 |
.................... |
- |
|
257 |
.................... |
- |
|
258 |
.................... #include "BQ34Z100.c" |
- |
|
259 |
.................... int16 cteniBAT(byte lsb, byte msb) |
- |
|
260 |
.................... { |
- |
|
261 |
* |
- |
|
262 |
0186: CLRF 28 |
- |
|
263 |
0187: CLRF 27 |
- |
|
264 |
.................... int16 data = 0; |
- |
|
265 |
.................... unsigned int8 h, l; |
- |
|
266 |
.................... i2c_start(); |
- |
|
267 |
0188: BSF 20.4 |
- |
|
268 |
0189: MOVF 20,W |
- |
|
269 |
018A: BSF 03.5 |
- |
|
270 |
018B: MOVWF 07 |
- |
|
271 |
018C: NOP |
- |
|
272 |
018D: BCF 03.5 |
- |
|
273 |
018E: BSF 20.3 |
- |
|
274 |
018F: MOVF 20,W |
- |
|
275 |
0190: BSF 03.5 |
- |
|
276 |
0191: MOVWF 07 |
- |
|
277 |
0192: NOP |
- |
|
278 |
0193: BCF 03.5 |
- |
|
279 |
0194: BCF 07.4 |
- |
|
280 |
0195: BCF 20.4 |
- |
|
281 |
0196: MOVF 20,W |
- |
|
282 |
0197: BSF 03.5 |
- |
|
283 |
0198: MOVWF 07 |
- |
|
284 |
0199: NOP |
- |
|
285 |
019A: BCF 03.5 |
- |
|
286 |
019B: BCF 07.3 |
- |
|
287 |
019C: BCF 20.3 |
- |
|
288 |
019D: MOVF 20,W |
- |
|
289 |
019E: BSF 03.5 |
- |
|
290 |
019F: MOVWF 07 |
- |
|
291 |
.................... I2C_Write(BAT_ADDR_W); |
- |
|
292 |
01A0: MOVLW AA |
- |
|
293 |
01A1: BCF 03.5 |
- |
|
294 |
01A2: MOVWF 2B |
- |
|
295 |
01A3: CALL 0F7 |
- |
|
296 |
.................... I2C_write(lsb); |
- |
|
297 |
01A4: MOVF 25,W |
- |
|
298 |
01A5: MOVWF 2B |
- |
|
299 |
01A6: CALL 0F7 |
- |
|
300 |
.................... |
- |
|
301 |
.................... i2c_start(); |
- |
|
302 |
01A7: BSF 20.4 |
- |
|
303 |
01A8: MOVF 20,W |
- |
|
304 |
01A9: BSF 03.5 |
- |
|
305 |
01AA: MOVWF 07 |
- |
|
306 |
01AB: NOP |
- |
|
307 |
01AC: BCF 03.5 |
- |
|
308 |
01AD: BSF 20.3 |
- |
|
309 |
01AE: MOVF 20,W |
- |
|
310 |
01AF: BSF 03.5 |
- |
|
311 |
01B0: MOVWF 07 |
- |
|
312 |
01B1: NOP |
- |
|
313 |
01B2: BCF 03.5 |
- |
|
314 |
01B3: BTFSS 07.3 |
- |
|
315 |
01B4: GOTO 1B3 |
- |
|
316 |
01B5: BCF 07.4 |
- |
|
317 |
01B6: BCF 20.4 |
- |
|
318 |
01B7: MOVF 20,W |
- |
|
319 |
01B8: BSF 03.5 |
- |
|
320 |
01B9: MOVWF 07 |
- |
|
321 |
01BA: NOP |
- |
|
322 |
01BB: BCF 03.5 |
- |
|
323 |
01BC: BCF 07.3 |
- |
|
324 |
01BD: BCF 20.3 |
- |
|
325 |
01BE: MOVF 20,W |
- |
|
326 |
01BF: BSF 03.5 |
- |
|
327 |
01C0: MOVWF 07 |
- |
|
328 |
.................... I2C_Write(BAT_ADDR_R); |
- |
|
329 |
01C1: MOVLW AB |
- |
|
330 |
01C2: BCF 03.5 |
- |
|
331 |
01C3: MOVWF 2B |
- |
|
332 |
01C4: CALL 0F7 |
- |
|
333 |
.................... l=i2c_read(0); |
- |
|
334 |
01C5: CLRF 77 |
- |
|
335 |
01C6: CALL 141 |
- |
|
336 |
01C7: MOVF 78,W |
- |
|
337 |
01C8: MOVWF 2A |
- |
|
338 |
.................... i2c_stop(); |
- |
|
339 |
01C9: BCF 20.4 |
- |
|
340 |
01CA: MOVF 20,W |
- |
|
341 |
01CB: BSF 03.5 |
- |
|
342 |
01CC: MOVWF 07 |
- |
|
343 |
01CD: NOP |
- |
|
344 |
01CE: BCF 03.5 |
- |
|
345 |
01CF: BSF 20.3 |
- |
|
346 |
01D0: MOVF 20,W |
- |
|
347 |
01D1: BSF 03.5 |
- |
|
348 |
01D2: MOVWF 07 |
- |
|
349 |
01D3: BCF 03.5 |
- |
|
350 |
01D4: BTFSS 07.3 |
- |
|
351 |
01D5: GOTO 1D4 |
- |
|
352 |
01D6: NOP |
- |
|
353 |
01D7: GOTO 1D8 |
- |
|
354 |
01D8: NOP |
- |
|
355 |
01D9: BSF 20.4 |
- |
|
356 |
01DA: MOVF 20,W |
- |
|
357 |
01DB: BSF 03.5 |
- |
|
358 |
01DC: MOVWF 07 |
- |
|
359 |
01DD: NOP |
- |
|
360 |
.................... |
- |
|
361 |
.................... i2c_start(); |
- |
|
362 |
01DE: BCF 03.5 |
- |
|
363 |
01DF: BSF 20.4 |
- |
|
364 |
01E0: MOVF 20,W |
- |
|
365 |
01E1: BSF 03.5 |
- |
|
366 |
01E2: MOVWF 07 |
- |
|
367 |
01E3: NOP |
- |
|
368 |
01E4: BCF 03.5 |
- |
|
369 |
01E5: BSF 20.3 |
- |
|
370 |
01E6: MOVF 20,W |
- |
|
371 |
01E7: BSF 03.5 |
- |
|
372 |
01E8: MOVWF 07 |
- |
|
373 |
01E9: NOP |
- |
|
374 |
01EA: BCF 03.5 |
- |
|
375 |
01EB: BCF 07.4 |
- |
|
376 |
01EC: BCF 20.4 |
- |
|
377 |
01ED: MOVF 20,W |
- |
|
378 |
01EE: BSF 03.5 |
- |
|
379 |
01EF: MOVWF 07 |
- |
|
380 |
01F0: NOP |
- |
|
381 |
01F1: BCF 03.5 |
- |
|
382 |
01F2: BCF 07.3 |
- |
|
383 |
01F3: BCF 20.3 |
- |
|
384 |
01F4: MOVF 20,W |
- |
|
385 |
01F5: BSF 03.5 |
- |
|
386 |
01F6: MOVWF 07 |
- |
|
387 |
.................... I2C_Write(BAT_ADDR_W); |
- |
|
388 |
01F7: MOVLW AA |
- |
|
389 |
01F8: BCF 03.5 |
- |
|
390 |
01F9: MOVWF 2B |
- |
|
391 |
01FA: CALL 0F7 |
- |
|
392 |
.................... I2C_write(msb); |
- |
|
393 |
01FB: MOVF 26,W |
- |
|
394 |
01FC: MOVWF 2B |
- |
|
395 |
01FD: CALL 0F7 |
- |
|
396 |
.................... i2c_start(); |
- |
|
397 |
01FE: BSF 20.4 |
- |
|
398 |
01FF: MOVF 20,W |
- |
|
399 |
0200: BSF 03.5 |
- |
|
400 |
0201: MOVWF 07 |
- |
|
401 |
0202: NOP |
- |
|
402 |
0203: BCF 03.5 |
- |
|
403 |
0204: BSF 20.3 |
- |
|
404 |
0205: MOVF 20,W |
- |
|
405 |
0206: BSF 03.5 |
- |
|
406 |
0207: MOVWF 07 |
- |
|
407 |
0208: NOP |
- |
|
408 |
0209: BCF 03.5 |
- |
|
409 |
020A: BTFSS 07.3 |
- |
|
410 |
020B: GOTO 20A |
- |
|
411 |
020C: BCF 07.4 |
- |
|
412 |
020D: BCF 20.4 |
- |
|
413 |
020E: MOVF 20,W |
- |
|
414 |
020F: BSF 03.5 |
- |
|
415 |
0210: MOVWF 07 |
- |
|
416 |
0211: NOP |
- |
|
417 |
0212: BCF 03.5 |
- |
|
418 |
0213: BCF 07.3 |
- |
|
419 |
0214: BCF 20.3 |
- |
|
420 |
0215: MOVF 20,W |
- |
|
421 |
0216: BSF 03.5 |
- |
|
422 |
0217: MOVWF 07 |
- |
|
423 |
.................... I2C_Write(BAT_ADDR_R); |
- |
|
424 |
0218: MOVLW AB |
- |
|
425 |
0219: BCF 03.5 |
- |
|
426 |
021A: MOVWF 2B |
- |
|
427 |
021B: CALL 0F7 |
- |
|
428 |
.................... h=i2c_read(0); |
- |
|
429 |
021C: CLRF 77 |
- |
|
430 |
021D: CALL 141 |
- |
|
431 |
021E: MOVF 78,W |
- |
|
432 |
021F: MOVWF 29 |
- |
|
433 |
.................... i2c_stop(); |
- |
|
434 |
0220: BCF 20.4 |
- |
|
435 |
0221: MOVF 20,W |
- |
|
436 |
0222: BSF 03.5 |
- |
|
437 |
0223: MOVWF 07 |
- |
|
438 |
0224: NOP |
- |
|
439 |
0225: BCF 03.5 |
- |
|
440 |
0226: BSF 20.3 |
- |
|
441 |
0227: MOVF 20,W |
- |
|
442 |
0228: BSF 03.5 |
- |
|
443 |
0229: MOVWF 07 |
- |
|
444 |
022A: BCF 03.5 |
- |
|
445 |
022B: BTFSS 07.3 |
- |
|
446 |
022C: GOTO 22B |
- |
|
447 |
022D: NOP |
- |
|
448 |
022E: GOTO 22F |
- |
|
449 |
022F: NOP |
- |
|
450 |
0230: BSF 20.4 |
- |
|
451 |
0231: MOVF 20,W |
- |
|
452 |
0232: BSF 03.5 |
- |
|
453 |
0233: MOVWF 07 |
- |
|
454 |
0234: NOP |
- |
|
455 |
.................... |
- |
|
456 |
.................... return data = (((unsigned int16) h << 8) + l ); |
- |
|
457 |
0235: BCF 03.5 |
- |
|
458 |
0236: CLRF 2C |
- |
|
459 |
0237: MOVF 29,W |
- |
|
460 |
0238: MOVWF 2B |
- |
|
461 |
0239: MOVWF 2C |
- |
|
462 |
023A: CLRF 2B |
- |
|
463 |
023B: MOVF 2A,W |
- |
|
464 |
023C: ADDWF 2B,W |
- |
|
465 |
023D: MOVWF 27 |
- |
|
466 |
023E: MOVF 2C,W |
- |
|
467 |
023F: MOVWF 28 |
- |
|
468 |
0240: BTFSC 03.0 |
- |
|
469 |
0241: INCF 28,F |
- |
|
470 |
0242: MOVF 27,W |
- |
|
471 |
0243: MOVWF 78 |
- |
|
472 |
0244: MOVF 28,W |
- |
|
473 |
0245: MOVWF 79 |
- |
|
474 |
.................... } |
- |
|
475 |
0246: RETURN |
- |
|
476 |
.................... |
- |
|
477 |
.................... int16 batintT(void) //teplota baterie (pri vyrobnim nastaveni, je mozne zmenit na teplotu v IO |
- |
|
478 |
.................... { |
- |
|
479 |
0247: MOVLW 0C |
- |
|
480 |
0248: MOVWF 25 |
- |
|
481 |
0249: MOVLW 0D |
- |
|
482 |
024A: MOVWF 26 |
- |
|
483 |
024B: CALL 186 |
- |
|
484 |
024C: MOVF 79,W |
- |
|
485 |
024D: MOVWF 24 |
- |
|
486 |
024E: MOVF 78,W |
- |
|
487 |
024F: MOVWF 23 |
- |
|
488 |
.................... int16 data = cteniBAT(0x0C, 0x0D); |
- |
|
489 |
.................... data = (data/10)-273; |
- |
|
490 |
0250: MOVF 24,W |
- |
|
491 |
0251: MOVWF 26 |
- |
|
492 |
0252: MOVF 23,W |
- |
|
493 |
0253: MOVWF 25 |
- |
|
494 |
0254: CLRF 28 |
- |
|
495 |
0255: MOVLW 0A |
- |
|
496 |
0256: MOVWF 27 |
- |
|
497 |
* |
- |
|
498 |
027B: MOVLW 11 |
- |
|
499 |
027C: SUBWF 78,W |
- |
|
500 |
027D: MOVWF 23 |
- |
|
501 |
027E: MOVF 79,W |
- |
|
502 |
027F: MOVWF 24 |
- |
|
503 |
0280: MOVLW 01 |
- |
|
504 |
0281: BTFSS 03.0 |
- |
|
505 |
0282: MOVLW 02 |
- |
|
506 |
0283: SUBWF 24,F |
- |
|
507 |
.................... return data; |
- |
|
508 |
0284: MOVF 23,W |
- |
|
509 |
0285: MOVWF 78 |
- |
|
510 |
0286: MOVF 24,W |
- |
|
511 |
0287: MOVWF 79 |
- |
|
512 |
.................... |
- |
|
513 |
.................... } |
- |
|
514 |
0288: BCF 0A.3 |
- |
|
515 |
0289: BCF 0A.4 |
- |
|
516 |
028A: GOTO 455 (RETURN) |
- |
|
517 |
.................... |
- |
|
518 |
.................... int16 batNAP(void) //napeti baterie |
- |
|
519 |
.................... { |
- |
|
520 |
* |
- |
|
521 |
032C: MOVLW 08 |
- |
|
522 |
032D: MOVWF 25 |
- |
|
523 |
032E: MOVLW 09 |
- |
|
524 |
032F: MOVWF 26 |
- |
|
525 |
0330: CALL 186 |
- |
|
526 |
0331: MOVF 79,W |
- |
|
527 |
0332: MOVWF 24 |
- |
|
528 |
0333: MOVF 78,W |
- |
|
529 |
0334: MOVWF 23 |
- |
|
530 |
.................... int16 data = cteniBAT(0x08, 0x09); |
- |
|
531 |
.................... return data; |
- |
|
532 |
0335: MOVF 23,W |
- |
|
533 |
0336: MOVWF 78 |
- |
|
534 |
0337: MOVF 24,W |
- |
|
535 |
0338: MOVWF 79 |
- |
|
536 |
.................... |
- |
|
537 |
.................... } |
- |
|
538 |
0339: BCF 0A.3 |
- |
|
539 |
033A: BCF 0A.4 |
- |
|
540 |
033B: GOTO 473 (RETURN) |
- |
|
541 |
.................... |
- |
|
542 |
.................... int16 batPROUD(void) //proud z nebo do baterie |
- |
|
543 |
.................... { |
- |
|
544 |
* |
- |
|
545 |
038B: MOVLW 0A |
- |
|
546 |
038C: MOVWF 25 |
- |
|
547 |
038D: MOVLW 0B |
- |
|
548 |
038E: MOVWF 26 |
- |
|
549 |
038F: CALL 186 |
- |
|
550 |
0390: MOVF 79,W |
- |
|
551 |
0391: MOVWF 24 |
- |
|
552 |
0392: MOVF 78,W |
- |
|
553 |
0393: MOVWF 23 |
- |
|
554 |
.................... int16 data = cteniBAT(0x0A, 0x0B); |
- |
|
555 |
.................... return data; |
- |
|
556 |
0394: MOVF 23,W |
- |
|
557 |
0395: MOVWF 78 |
- |
|
558 |
0396: MOVF 24,W |
- |
|
559 |
0397: MOVWF 79 |
- |
|
560 |
.................... |
- |
|
561 |
.................... } |
- |
|
562 |
0398: BCF 0A.3 |
- |
|
563 |
0399: BCF 0A.4 |
- |
|
564 |
039A: GOTO 493 (RETURN) |
- |
|
565 |
.................... |
- |
|
566 |
.................... int16 batKAPAKT(void) //zbyvajici kapacita |
- |
|
567 |
.................... { |
- |
|
568 |
039B: MOVLW 04 |
- |
|
569 |
039C: MOVWF 25 |
- |
|
570 |
039D: MOVLW 05 |
- |
|
571 |
039E: MOVWF 26 |
- |
|
572 |
039F: CALL 186 |
- |
|
573 |
03A0: MOVF 79,W |
- |
|
574 |
03A1: MOVWF 24 |
- |
|
575 |
03A2: MOVF 78,W |
- |
|
576 |
03A3: MOVWF 23 |
- |
|
577 |
.................... int16 data = cteniBAT(0x04, 0x05); |
- |
|
578 |
.................... return data; |
- |
|
579 |
03A4: MOVF 23,W |
- |
|
580 |
03A5: MOVWF 78 |
- |
|
581 |
03A6: MOVF 24,W |
- |
|
582 |
03A7: MOVWF 79 |
- |
|
583 |
.................... |
- |
|
584 |
.................... } |
- |
|
585 |
03A8: BCF 0A.3 |
- |
|
586 |
03A9: BCF 0A.4 |
- |
|
587 |
03AA: GOTO 4B3 (RETURN) |
- |
|
588 |
.................... int16 batKAPMAX(void) //max. kapacita |
- |
|
589 |
.................... { |
- |
|
590 |
03AB: MOVLW 06 |
- |
|
591 |
03AC: MOVWF 25 |
- |
|
592 |
03AD: MOVLW 07 |
- |
|
593 |
03AE: MOVWF 26 |
- |
|
594 |
03AF: CALL 186 |
- |
|
595 |
03B0: MOVF 79,W |
- |
|
596 |
03B1: MOVWF 24 |
- |
|
597 |
03B2: MOVF 78,W |
- |
|
598 |
03B3: MOVWF 23 |
- |
|
599 |
.................... int16 data = cteniBAT(0x06, 0x07); |
- |
|
600 |
.................... return data; |
- |
|
601 |
03B4: MOVF 23,W |
- |
|
602 |
03B5: MOVWF 78 |
- |
|
603 |
03B6: MOVF 24,W |
- |
|
604 |
03B7: MOVWF 79 |
- |
|
605 |
.................... |
- |
|
606 |
.................... } |
- |
|
607 |
03B8: BCF 0A.3 |
- |
|
608 |
03B9: BCF 0A.4 |
- |
|
609 |
03BA: GOTO 4D3 (RETURN) |
- |
|
610 |
.................... |
- |
|
611 |
.................... int16 batSTAV(void) //zbytek energie v baterii v % |
- |
|
612 |
.................... { |
- |
|
613 |
03BB: MOVLW 02 |
- |
|
614 |
03BC: MOVWF 25 |
- |
|
615 |
03BD: MOVLW 03 |
- |
|
616 |
03BE: MOVWF 26 |
- |
|
617 |
03BF: CALL 186 |
- |
|
618 |
03C0: MOVF 79,W |
- |
|
619 |
03C1: MOVWF 24 |
- |
|
620 |
03C2: MOVF 78,W |
- |
|
621 |
03C3: MOVWF 23 |
- |
|
622 |
.................... int16 data = cteniBAT(0x02, 0x03); |
- |
|
623 |
.................... return data; |
- |
|
624 |
03C4: MOVF 23,W |
- |
|
625 |
03C5: MOVWF 78 |
- |
|
626 |
03C6: MOVF 24,W |
- |
|
627 |
03C7: MOVWF 79 |
- |
|
628 |
.................... |
- |
|
629 |
.................... } |
- |
|
630 |
03C8: BCF 0A.3 |
- |
|
631 |
03C9: BCF 0A.4 |
- |
|
632 |
03CA: GOTO 4F3 (RETURN) |
- |
|
633 |
.................... |
- |
|
634 |
.................... |
- |
|
635 |
.................... |
207 |
.................... |
636 |
.................... |
208 |
.................... |
637 |
.................... |
209 |
.................... void main() |
638 |
.................... void main() |
210 |
.................... { |
639 |
.................... { |
211 |
* |
640 |
* |
212 |
0059: DATA 00,00 |
- |
|
213 |
* |
- |
|
214 |
0800: CLRF 04 |
641 |
03E1: CLRF 04 |
215 |
0801: BCF 03.7 |
642 |
03E2: BCF 03.7 |
216 |
0802: MOVLW 1F |
643 |
03E3: MOVLW 1F |
217 |
0803: ANDWF 03,F |
644 |
03E4: ANDWF 03,F |
218 |
0804: MOVLW 71 |
645 |
03E5: MOVLW 71 |
219 |
0805: BSF 03.5 |
646 |
03E6: BSF 03.5 |
220 |
0806: MOVWF 0F |
647 |
03E7: MOVWF 0F |
221 |
0807: MOVF 0F,W |
648 |
03E8: MOVF 0F,W |
222 |
0808: BCF 06.3 |
649 |
03E9: BCF 03.5 |
- |
|
650 |
03EA: BCF 20.7 |
- |
|
651 |
03EB: MOVF 20,W |
- |
|
652 |
03EC: BSF 03.5 |
- |
|
653 |
03ED: MOVWF 07 |
223 |
0809: BCF 03.5 |
654 |
03EE: BCF 03.5 |
224 |
080A: BSF 06.3 |
655 |
03EF: BSF 07.7 |
225 |
080B: BSF 03.5 |
656 |
03F0: BSF 03.5 |
226 |
080C: BSF 03.6 |
657 |
03F1: BSF 03.6 |
227 |
080D: MOVF 09,W |
658 |
03F2: MOVF 09,W |
228 |
080E: ANDLW C0 |
659 |
03F3: ANDLW C0 |
229 |
080F: MOVWF 09 |
660 |
03F4: MOVWF 09 |
230 |
0810: BCF 03.6 |
661 |
03F5: BCF 03.6 |
231 |
0811: BCF 1F.4 |
662 |
03F6: BCF 1F.4 |
232 |
0812: BCF 1F.5 |
663 |
03F7: BCF 1F.5 |
233 |
0813: MOVLW 00 |
664 |
03F8: MOVLW 00 |
234 |
0814: BSF 03.6 |
665 |
03F9: BSF 03.6 |
235 |
0815: MOVWF 08 |
666 |
03FA: MOVWF 08 |
236 |
0816: BCF 03.5 |
667 |
03FB: BCF 03.5 |
237 |
0817: CLRF 07 |
668 |
03FC: CLRF 07 |
238 |
0818: CLRF 08 |
669 |
03FD: CLRF 08 |
239 |
0819: CLRF 09 |
670 |
03FE: CLRF 09 |
240 |
.................... |
671 |
.................... |
241 |
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD); |
672 |
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD); |
242 |
* |
673 |
* |
243 |
081D: BSF 03.5 |
674 |
0402: BSF 03.5 |
244 |
081E: BSF 03.6 |
675 |
0403: BSF 03.6 |
245 |
081F: MOVF 09,W |
676 |
0404: MOVF 09,W |
246 |
0820: ANDLW C0 |
677 |
0405: ANDLW C0 |
247 |
0821: MOVWF 09 |
678 |
0406: MOVWF 09 |
248 |
0822: BCF 03.6 |
679 |
0407: BCF 03.6 |
249 |
0823: BCF 1F.4 |
680 |
0408: BCF 1F.4 |
250 |
0824: BCF 1F.5 |
681 |
0409: BCF 1F.5 |
251 |
0825: MOVLW 00 |
682 |
040A: MOVLW 00 |
252 |
0826: BSF 03.6 |
683 |
040B: BSF 03.6 |
253 |
0827: MOVWF 08 |
684 |
040C: MOVWF 08 |
254 |
.................... setup_adc(ADC_CLOCK_DIV_2); |
685 |
.................... setup_adc(ADC_CLOCK_DIV_2); |
255 |
0828: BCF 03.5 |
686 |
040D: BCF 03.5 |
256 |
0829: BCF 03.6 |
687 |
040E: BCF 03.6 |
257 |
082A: BCF 1F.6 |
688 |
040F: BCF 1F.6 |
258 |
082B: BCF 1F.7 |
689 |
0410: BCF 1F.7 |
259 |
082C: BSF 03.5 |
690 |
0411: BSF 03.5 |
260 |
082D: BCF 1F.7 |
691 |
0412: BCF 1F.7 |
261 |
082E: BCF 03.5 |
692 |
0413: BCF 03.5 |
262 |
082F: BSF 1F.0 |
693 |
0414: BSF 1F.0 |
263 |
.................... setup_spi(SPI_SS_DISABLED); |
694 |
.................... setup_spi(SPI_SS_DISABLED); |
264 |
0830: BCF 14.5 |
695 |
0415: BCF 14.5 |
265 |
0831: BCF 20.5 |
696 |
0416: BCF 20.5 |
266 |
0832: MOVF 20,W |
697 |
0417: MOVF 20,W |
267 |
0833: BSF 03.5 |
698 |
0418: BSF 03.5 |
268 |
0834: MOVWF 07 |
699 |
0419: MOVWF 07 |
269 |
0835: BCF 03.5 |
700 |
041A: BCF 03.5 |
270 |
0836: BSF 20.4 |
701 |
041B: BSF 20.4 |
271 |
0837: MOVF 20,W |
702 |
041C: MOVF 20,W |
272 |
0838: BSF 03.5 |
703 |
041D: BSF 03.5 |
273 |
0839: MOVWF 07 |
704 |
041E: MOVWF 07 |
274 |
083A: BCF 03.5 |
705 |
041F: BCF 03.5 |
275 |
083B: BCF 20.3 |
706 |
0420: BCF 20.3 |
276 |
083C: MOVF 20,W |
707 |
0421: MOVF 20,W |
277 |
083D: BSF 03.5 |
708 |
0422: BSF 03.5 |
278 |
083E: MOVWF 07 |
709 |
0423: MOVWF 07 |
279 |
083F: MOVLW 01 |
710 |
0424: MOVLW 01 |
280 |
0840: BCF 03.5 |
711 |
0425: BCF 03.5 |
281 |
0841: MOVWF 14 |
712 |
0426: MOVWF 14 |
282 |
0842: MOVLW 00 |
713 |
0427: MOVLW 00 |
283 |
0843: BSF 03.5 |
714 |
0428: BSF 03.5 |
284 |
0844: MOVWF 14 |
715 |
0429: MOVWF 14 |
285 |
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
716 |
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
286 |
0845: MOVF 01,W |
717 |
042A: MOVF 01,W |
287 |
0846: ANDLW C7 |
718 |
042B: ANDLW C7 |
288 |
0847: IORLW 08 |
719 |
042C: IORLW 08 |
289 |
0848: MOVWF 01 |
720 |
042D: MOVWF 01 |
290 |
.................... setup_timer_1(T1_DISABLED); |
721 |
.................... setup_timer_1(T1_DISABLED); |
291 |
0849: BCF 03.5 |
722 |
042E: BCF 03.5 |
292 |
084A: CLRF 10 |
723 |
042F: CLRF 10 |
293 |
.................... setup_timer_2(T2_DISABLED,0,1); |
724 |
.................... setup_timer_2(T2_DISABLED,0,1); |
294 |
084B: MOVLW 00 |
725 |
0430: MOVLW 00 |
295 |
084C: MOVWF 78 |
726 |
0431: MOVWF 78 |
296 |
084D: MOVWF 12 |
727 |
0432: MOVWF 12 |
297 |
084E: MOVLW 00 |
728 |
0433: MOVLW 00 |
298 |
084F: BSF 03.5 |
729 |
0434: BSF 03.5 |
299 |
0850: MOVWF 12 |
730 |
0435: MOVWF 12 |
300 |
.................... setup_ccp1(CCP_OFF); |
731 |
.................... setup_ccp1(CCP_OFF); |
301 |
0851: BCF 03.5 |
732 |
0436: BCF 03.5 |
302 |
0852: BSF 20.2 |
733 |
0437: BSF 20.2 |
303 |
0853: MOVF 20,W |
734 |
0438: MOVF 20,W |
304 |
0854: BSF 03.5 |
735 |
0439: BSF 03.5 |
305 |
0855: MOVWF 07 |
736 |
043A: MOVWF 07 |
306 |
0856: BCF 03.5 |
737 |
043B: BCF 03.5 |
307 |
0857: CLRF 17 |
738 |
043C: CLRF 17 |
308 |
0858: BSF 03.5 |
739 |
043D: BSF 03.5 |
309 |
0859: CLRF 1B |
740 |
043E: CLRF 1B |
310 |
085A: CLRF 1C |
741 |
043F: CLRF 1C |
311 |
085B: MOVLW 01 |
742 |
0440: MOVLW 01 |
312 |
085C: MOVWF 1D |
743 |
0441: MOVWF 1D |
313 |
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard |
744 |
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard |
314 |
085D: BCF 03.5 |
745 |
0442: BCF 03.5 |
315 |
085E: BSF 03.6 |
746 |
0443: BSF 03.6 |
316 |
085F: CLRF 07 |
747 |
0444: CLRF 07 |
317 |
0860: CLRF 08 |
748 |
0445: CLRF 08 |
318 |
0861: CLRF 09 |
749 |
0446: CLRF 09 |
319 |
.................... |
750 |
.................... |
320 |
.................... printf("Simple Thermomether \r\n",); |
751 |
.................... printf("Vycitani zakladnich dat z modulu LION1CELL01B \r\n",); |
321 |
0862: MOVLW 04 |
752 |
0447: MOVLW 04 |
322 |
0863: MOVWF 0D |
753 |
0448: MOVWF 0D |
323 |
0864: MOVLW 00 |
754 |
0449: MOVLW 00 |
324 |
0865: MOVWF 0F |
755 |
044A: MOVWF 0F |
325 |
0866: BCF 0A.3 |
756 |
044B: BCF 03.6 |
326 |
0867: BCF 03.6 |
757 |
044C: CALL 0B1 |
- |
|
758 |
.................... printf("(c) MLAB 2013 JACHO \r\n",); |
327 |
0868: GOTO 07C |
759 |
044D: MOVLW 1D |
328 |
0869: BSF 0A.3 |
760 |
044E: BSF 03.6 |
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 |
.................... |
761 |
044F: MOVWF 0D |
332 |
.................... int16 data1; |
762 |
0450: MOVLW 00 |
333 |
.................... int16 data2; |
763 |
0451: MOVWF 0F |
334 |
.................... int16 data3; |
764 |
0452: BCF 03.6 |
335 |
.................... int16 data4; |
- |
|
336 |
.................... int16 data5; |
765 |
0453: CALL 0B1 |
337 |
.................... int16 data6; |
766 |
.................... int16 data; |
338 |
.................... int16 data7; |
- |
|
339 |
.................... int16 data8; |
- |
|
340 |
.................... int16 data9; |
767 |
.................... |
341 |
.................... |
768 |
.................... |
342 |
.................... while(TRUE) |
769 |
.................... while(TRUE) |
343 |
.................... { |
770 |
.................... { |
344 |
.................... XL=0; |
771 |
.................... data=batintT(); |
345 |
086A: CLRF 22 |
772 |
0454: GOTO 247 |
346 |
.................... XH= 0; |
773 |
0455: MOVF 79,W |
347 |
086B: CLRF 21 |
774 |
0456: MOVWF 22 |
348 |
.................... YL= 0; |
775 |
0457: MOVF 78,W |
349 |
086C: CLRF 24 |
776 |
0458: MOVWF 21 |
350 |
.................... YH= 0; |
777 |
.................... printf("Teplota baterie: %Ld (°C)\r\n", data); |
351 |
086D: CLRF 23 |
778 |
0459: MOVLW 29 |
352 |
.................... ZL= 0; |
779 |
045A: BSF 03.6 |
353 |
086E: CLRF 26 |
780 |
045B: MOVWF 0D |
354 |
.................... ZH= 0; |
781 |
045C: MOVLW 00 |
355 |
086F: CLRF 25 |
782 |
045D: MOVWF 0F |
356 |
.................... |
783 |
045E: MOVLW 11 |
357 |
.................... i2c_start(); |
784 |
045F: BCF 03.6 |
358 |
0870: BSF 03.5 |
785 |
0460: MOVWF 23 |
359 |
0871: BSF 06.0 |
786 |
0461: CALL 28B |
360 |
0872: NOP |
787 |
0462: MOVLW 10 |
361 |
0873: BSF 06.1 |
788 |
0463: MOVWF 04 |
362 |
0874: NOP |
789 |
0464: MOVF 22,W |
363 |
0875: BCF 03.5 |
790 |
0465: MOVWF 24 |
364 |
0876: BCF 06.0 |
791 |
0466: MOVF 21,W |
365 |
0877: BSF 03.5 |
792 |
0467: MOVWF 23 |
366 |
0878: BCF 06.0 |
793 |
0468: CALL 2AC |
367 |
0879: NOP |
794 |
0469: MOVLW 3D |
368 |
087A: BCF 03.5 |
795 |
046A: BSF 03.6 |
369 |
087B: BCF 06.1 |
796 |
046B: MOVWF 0D |
370 |
087C: BSF 03.5 |
797 |
046C: MOVLW 00 |
371 |
087D: BCF 06.1 |
798 |
046D: MOVWF 0F |
372 |
.................... I2C_Write(0x3C); |
799 |
046E: MOVLW 07 |
373 |
087E: MOVLW 3C |
800 |
046F: BCF 03.6 |
374 |
087F: BCF 03.5 |
801 |
0470: MOVWF 23 |
375 |
0880: MOVWF 49 |
802 |
0471: CALL 28B |
376 |
0881: BCF 0A.3 |
803 |
.................... data=batNAP(); |
377 |
0882: CALL 0C4 |
804 |
0472: GOTO 32C |
378 |
0883: BSF 0A.3 |
805 |
0473: MOVF 79,W |
379 |
.................... I2C_write(0x03); |
806 |
0474: MOVWF 22 |
380 |
0884: MOVLW 03 |
807 |
0475: MOVF 78,W |
381 |
0885: MOVWF 49 |
808 |
0476: MOVWF 21 |
382 |
0886: BCF 0A.3 |
809 |
.................... printf("Napeti clanku: %Ld (mV)\r\n", data); |
383 |
0887: CALL 0C4 |
810 |
0477: MOVLW 45 |
384 |
0888: BSF 0A.3 |
811 |
0478: BSF 03.6 |
385 |
.................... i2c_stop(); |
812 |
0479: MOVWF 0D |
386 |
0889: BSF 03.5 |
813 |
047A: MOVLW 00 |
387 |
088A: BCF 06.0 |
814 |
047B: MOVWF 0F |
388 |
088B: NOP |
815 |
047C: BCF 03.0 |
389 |
088C: BSF 06.1 |
816 |
047D: MOVLW 0F |
390 |
088D: BCF 03.5 |
817 |
047E: BCF 03.6 |
391 |
088E: BTFSS 06.1 |
818 |
047F: MOVWF 23 |
392 |
088F: GOTO 08E |
819 |
0480: CALL 33C |
393 |
0890: NOP |
820 |
0481: MOVLW 10 |
394 |
0891: GOTO 092 |
821 |
0482: MOVWF 04 |
395 |
0892: NOP |
822 |
0483: MOVF 22,W |
396 |
0893: BSF 03.5 |
823 |
0484: MOVWF 24 |
397 |
0894: BSF 06.0 |
824 |
0485: MOVF 21,W |
398 |
0895: NOP |
825 |
0486: MOVWF 23 |
399 |
.................... i2c_start(); |
826 |
0487: CALL 2AC |
400 |
0896: BSF 06.0 |
827 |
0488: MOVLW 4E |
401 |
0897: NOP |
828 |
0489: BSF 03.6 |
402 |
0898: BSF 06.1 |
829 |
048A: MOVWF 0D |
403 |
0899: NOP |
830 |
048B: MOVLW 00 |
404 |
089A: BCF 03.5 |
831 |
048C: MOVWF 0F |
405 |
089B: BCF 06.0 |
832 |
048D: BCF 03.0 |
406 |
089C: BSF 03.5 |
833 |
048E: MOVLW 07 |
407 |
089D: BCF 06.0 |
834 |
048F: BCF 03.6 |
408 |
089E: NOP |
835 |
0490: MOVWF 23 |
409 |
089F: BCF 03.5 |
836 |
0491: CALL 33C |
410 |
08A0: BCF 06.1 |
837 |
.................... data=batPROUD(); |
411 |
08A1: BSF 03.5 |
838 |
0492: GOTO 38B |
412 |
08A2: BCF 06.1 |
839 |
0493: MOVF 79,W |
413 |
.................... I2C_Write(0x3D); |
840 |
0494: MOVWF 22 |
414 |
08A3: MOVLW 3D |
841 |
0495: MOVF 78,W |
415 |
08A4: BCF 03.5 |
842 |
0496: MOVWF 21 |
416 |
08A5: MOVWF 49 |
843 |
.................... printf("Proud clankem: %Ld (mA)\r\n", data); |
417 |
08A6: BCF 0A.3 |
844 |
0497: MOVLW 52 |
418 |
08A7: CALL 0C4 |
845 |
0498: BSF 03.6 |
419 |
08A8: BSF 0A.3 |
846 |
0499: MOVWF 0D |
420 |
.................... XH=i2c_read(0); |
847 |
049A: MOVLW 00 |
421 |
08A9: CLRF 77 |
848 |
049B: MOVWF 0F |
422 |
08AA: BCF 0A.3 |
849 |
049C: BCF 03.0 |
423 |
08AB: CALL 0F8 |
850 |
049D: MOVLW 0F |
424 |
08AC: BSF 0A.3 |
851 |
049E: BCF 03.6 |
425 |
08AD: MOVF 78,W |
852 |
049F: MOVWF 23 |
426 |
08AE: MOVWF 21 |
853 |
04A0: CALL 33C |
427 |
.................... i2c_stop(); |
854 |
04A1: MOVLW 10 |
428 |
08AF: BSF 03.5 |
855 |
04A2: MOVWF 04 |
429 |
08B0: BCF 06.0 |
856 |
04A3: MOVF 22,W |
430 |
08B1: NOP |
857 |
04A4: MOVWF 24 |
431 |
08B2: BSF 06.1 |
858 |
04A5: MOVF 21,W |
432 |
08B3: BCF 03.5 |
859 |
04A6: MOVWF 23 |
433 |
08B4: BTFSS 06.1 |
860 |
04A7: CALL 2AC |
434 |
08B5: GOTO 0B4 |
861 |
04A8: MOVLW 5B |
435 |
08B6: NOP |
862 |
04A9: BSF 03.6 |
436 |
08B7: GOTO 0B8 |
863 |
04AA: MOVWF 0D |
437 |
08B8: NOP |
864 |
04AB: MOVLW 00 |
438 |
08B9: BSF 03.5 |
865 |
04AC: MOVWF 0F |
439 |
08BA: BSF 06.0 |
866 |
04AD: BCF 03.0 |
440 |
08BB: NOP |
867 |
04AE: MOVLW 07 |
441 |
.................... i2c_start(); |
868 |
04AF: BCF 03.6 |
442 |
08BC: BSF 06.0 |
869 |
04B0: MOVWF 23 |
443 |
08BD: NOP |
870 |
04B1: CALL 33C |
444 |
08BE: BSF 06.1 |
871 |
.................... data=batKAPAKT(); |
445 |
08BF: NOP |
872 |
04B2: GOTO 39B |
446 |
08C0: BCF 03.5 |
873 |
04B3: MOVF 79,W |
447 |
08C1: BCF 06.0 |
874 |
04B4: MOVWF 22 |
448 |
08C2: BSF 03.5 |
875 |
04B5: MOVF 78,W |
449 |
08C3: BCF 06.0 |
876 |
04B6: MOVWF 21 |
450 |
08C4: NOP |
877 |
.................... printf("Zbyvajici kapacita: %Ld (mAh)\r\n", data); |
451 |
08C5: BCF 03.5 |
878 |
04B7: MOVLW 5F |
452 |
08C6: BCF 06.1 |
879 |
04B8: BSF 03.6 |
453 |
08C7: BSF 03.5 |
880 |
04B9: MOVWF 0D |
454 |
08C8: BCF 06.1 |
881 |
04BA: MOVLW 00 |
455 |
.................... I2C_Write(0x3C); |
882 |
04BB: MOVWF 0F |
456 |
08C9: MOVLW 3C |
883 |
04BC: BCF 03.0 |
457 |
08CA: BCF 03.5 |
884 |
04BD: MOVLW 14 |
458 |
08CB: MOVWF 49 |
885 |
04BE: BCF 03.6 |
459 |
08CC: BCF 0A.3 |
886 |
04BF: MOVWF 23 |
460 |
08CD: CALL 0C4 |
887 |
04C0: CALL 33C |
461 |
08CE: BSF 0A.3 |
888 |
04C1: MOVLW 10 |
462 |
.................... I2C_write(0x04); |
889 |
04C2: MOVWF 04 |
463 |
08CF: MOVLW 04 |
890 |
04C3: MOVF 22,W |
464 |
08D0: MOVWF 49 |
891 |
04C4: MOVWF 24 |
465 |
08D1: BCF 0A.3 |
892 |
04C5: MOVF 21,W |
466 |
08D2: CALL 0C4 |
893 |
04C6: MOVWF 23 |
467 |
08D3: BSF 0A.3 |
894 |
04C7: CALL 2AC |
468 |
.................... i2c_stop(); |
895 |
04C8: MOVLW 6A |
469 |
08D4: BSF 03.5 |
896 |
04C9: BSF 03.6 |
470 |
08D5: BCF 06.0 |
897 |
04CA: MOVWF 0D |
471 |
08D6: NOP |
898 |
04CB: MOVLW 00 |
472 |
08D7: BSF 06.1 |
899 |
04CC: MOVWF 0F |
473 |
08D8: BCF 03.5 |
900 |
04CD: BSF 03.0 |
474 |
08D9: BTFSS 06.1 |
901 |
04CE: MOVLW 08 |
475 |
08DA: GOTO 0D9 |
902 |
04CF: BCF 03.6 |
476 |
08DB: NOP |
903 |
04D0: MOVWF 23 |
477 |
08DC: GOTO 0DD |
904 |
04D1: CALL 33C |
478 |
08DD: NOP |
905 |
.................... data=batKAPMAX(); |
479 |
08DE: BSF 03.5 |
906 |
04D2: GOTO 3AB |
480 |
08DF: BSF 06.0 |
907 |
04D3: MOVF 79,W |
481 |
08E0: NOP |
908 |
04D4: MOVWF 22 |
482 |
.................... i2c_start(); |
909 |
04D5: MOVF 78,W |
483 |
08E1: BSF 06.0 |
910 |
04D6: MOVWF 21 |
484 |
08E2: NOP |
911 |
.................... printf("Max. kapacita: %Ld (mAh)\r\n", data); |
485 |
08E3: BSF 06.1 |
912 |
04D7: MOVLW 6F |
486 |
08E4: NOP |
913 |
04D8: BSF 03.6 |
487 |
08E5: BCF 03.5 |
914 |
04D9: MOVWF 0D |
488 |
08E6: BCF 06.0 |
915 |
04DA: MOVLW 00 |
489 |
08E7: BSF 03.5 |
916 |
04DB: MOVWF 0F |
490 |
08E8: BCF 06.0 |
917 |
04DC: BCF 03.0 |
491 |
08E9: NOP |
918 |
04DD: MOVLW 0F |
492 |
08EA: BCF 03.5 |
919 |
04DE: BCF 03.6 |
493 |
08EB: BCF 06.1 |
920 |
04DF: MOVWF 23 |
494 |
08EC: BSF 03.5 |
921 |
04E0: CALL 33C |
495 |
08ED: BCF 06.1 |
922 |
04E1: MOVLW 10 |
496 |
.................... I2C_Write(0x3D); |
923 |
04E2: MOVWF 04 |
497 |
08EE: MOVLW 3D |
924 |
04E3: MOVF 22,W |
498 |
08EF: BCF 03.5 |
925 |
04E4: MOVWF 24 |
499 |
08F0: MOVWF 49 |
926 |
04E5: MOVF 21,W |
500 |
08F1: BCF 0A.3 |
927 |
04E6: MOVWF 23 |
501 |
08F2: CALL 0C4 |
928 |
04E7: CALL 2AC |
502 |
08F3: BSF 0A.3 |
929 |
04E8: MOVLW 78 |
503 |
.................... XL=i2c_read(0); |
930 |
04E9: BSF 03.6 |
504 |
08F4: CLRF 77 |
931 |
04EA: MOVWF 0D |
505 |
08F5: BCF 0A.3 |
932 |
04EB: MOVLW 00 |
506 |
08F6: CALL 0F8 |
933 |
04EC: MOVWF 0F |
507 |
08F7: BSF 0A.3 |
934 |
04ED: BCF 03.0 |
508 |
08F8: MOVF 78,W |
935 |
04EE: MOVLW 08 |
509 |
08F9: MOVWF 22 |
936 |
04EF: BCF 03.6 |
510 |
.................... i2c_stop(); |
937 |
04F0: MOVWF 23 |
511 |
08FA: BSF 03.5 |
938 |
04F1: CALL 33C |
512 |
08FB: BCF 06.0 |
939 |
.................... data=batSTAV(); |
513 |
08FC: NOP |
940 |
04F2: GOTO 3BB |
514 |
08FD: BSF 06.1 |
941 |
04F3: MOVF 79,W |
515 |
08FE: BCF 03.5 |
942 |
04F4: MOVWF 22 |
516 |
08FF: BTFSS 06.1 |
943 |
04F5: MOVF 78,W |
517 |
0900: GOTO 0FF |
944 |
04F6: MOVWF 21 |
518 |
0901: NOP |
945 |
.................... printf("Stav baterie: %Ld (procenta)\r\n", data); |
519 |
0902: GOTO 103 |
946 |
04F7: MOVLW 7D |
520 |
0903: NOP |
947 |
04F8: BSF 03.6 |
521 |
0904: BSF 03.5 |
948 |
04F9: MOVWF 0D |
522 |
0905: BSF 06.0 |
949 |
04FA: MOVLW 00 |
523 |
0906: NOP |
950 |
04FB: MOVWF 0F |
524 |
.................... i2c_start(); |
951 |
04FC: BCF 03.0 |
525 |
0907: BSF 06.0 |
952 |
04FD: MOVLW 0E |
526 |
0908: NOP |
953 |
04FE: BCF 03.6 |
527 |
0909: BSF 06.1 |
954 |
04FF: MOVWF 23 |
528 |
090A: NOP |
955 |
0500: CALL 33C |
529 |
090B: BCF 03.5 |
956 |
0501: MOVLW 10 |
530 |
090C: BCF 06.0 |
957 |
0502: MOVWF 04 |
531 |
090D: BSF 03.5 |
958 |
0503: MOVF 22,W |
532 |
090E: BCF 06.0 |
959 |
0504: MOVWF 24 |
533 |
090F: NOP |
960 |
0505: MOVF 21,W |
534 |
0910: BCF 03.5 |
961 |
0506: MOVWF 23 |
535 |
0911: BCF 06.1 |
962 |
0507: CALL 2AC |
536 |
0912: BSF 03.5 |
963 |
0508: MOVLW 85 |
537 |
0913: BCF 06.1 |
964 |
0509: BSF 03.6 |
538 |
.................... I2C_Write(0x3C); |
965 |
050A: MOVWF 0D |
539 |
0914: MOVLW 3C |
966 |
050B: MOVLW 00 |
540 |
0915: BCF 03.5 |
967 |
050C: MOVWF 0F |
541 |
0916: MOVWF 49 |
968 |
050D: BSF 03.0 |
542 |
0917: BCF 0A.3 |
969 |
050E: MOVLW 0D |
543 |
0918: CALL 0C4 |
970 |
050F: BCF 03.6 |
544 |
0919: BSF 0A.3 |
971 |
0510: MOVWF 23 |
545 |
.................... I2C_write(0x05); |
972 |
0511: CALL 33C |
546 |
091A: MOVLW 05 |
973 |
.................... printf("\r\n"); |
547 |
091B: MOVWF 49 |
974 |
0512: MOVLW 0D |
548 |
091C: BCF 0A.3 |
975 |
0513: MOVWF 2C |
549 |
091D: CALL 0C4 |
976 |
0514: CALL 08D |
550 |
091E: BSF 0A.3 |
977 |
0515: MOVLW 0A |
551 |
.................... i2c_stop(); |
978 |
0516: MOVWF 2C |
552 |
091F: BSF 03.5 |
979 |
0517: CALL 08D |
553 |
0920: BCF 06.0 |
980 |
.................... delay_ms (2000); |
554 |
0921: NOP |
981 |
0518: MOVLW 08 |
555 |
0922: BSF 06.1 |
982 |
0519: MOVWF 23 |
556 |
0923: BCF 03.5 |
983 |
051A: MOVLW FA |
557 |
0924: BTFSS 06.1 |
984 |
051B: MOVWF 24 |
558 |
0925: GOTO 124 |
985 |
051C: GOTO 3CB |
559 |
0926: NOP |
986 |
051D: DECFSZ 23,F |
560 |
0927: GOTO 128 |
987 |
051E: GOTO 51A |
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 |
.................... } |
988 |
.................... } |
2319 |
0F5E: GOTO 06A |
989 |
051F: GOTO 454 |
2320 |
.................... } |
990 |
.................... } |
2321 |
0F5F: SLEEP |
991 |
0520: SLEEP |
2322 |
|
992 |
|
2323 |
Configuration Fuses: |
993 |
Configuration Fuses: |
2324 |
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG |
994 |
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG |
2325 |
Word 2: 3FFF NOWRT BORV40 |
995 |
Word 2: 3FFF NOWRT BORV40 |