2298 |
jacho |
1 |
|
|
|
2 |
LCD_zkouska.elf: file format elf32-avr |
|
|
3 |
|
|
|
4 |
Sections: |
|
|
5 |
Idx Name Size VMA LMA File off Algn |
|
|
6 |
|
|
|
7 |
CONTENTS, ALLOC, LOAD, READONLY, CODE |
|
|
8 |
1 .data 0000000a 00800060 00000232 000002a6 2**0 |
|
|
9 |
CONTENTS, ALLOC, LOAD, DATA |
|
|
10 |
2 .debug_aranges 00000020 00000000 00000000 000002b0 2**0 |
|
|
11 |
CONTENTS, READONLY, DEBUGGING |
|
|
12 |
3 .debug_pubnames 000000d2 00000000 00000000 000002d0 2**0 |
|
|
13 |
CONTENTS, READONLY, DEBUGGING |
|
|
14 |
4 .debug_info 00000577 00000000 00000000 000003a2 2**0 |
|
|
15 |
CONTENTS, READONLY, DEBUGGING |
|
|
16 |
5 .debug_abbrev 000001da 00000000 00000000 00000919 2**0 |
|
|
17 |
CONTENTS, READONLY, DEBUGGING |
|
|
18 |
6 .debug_line 00000413 00000000 00000000 00000af3 2**0 |
|
|
19 |
CONTENTS, READONLY, DEBUGGING |
|
|
20 |
7 .debug_frame 000000c0 00000000 00000000 00000f08 2**2 |
|
|
21 |
CONTENTS, READONLY, DEBUGGING |
|
|
22 |
8 .debug_str 00000192 00000000 00000000 00000fc8 2**0 |
|
|
23 |
CONTENTS, READONLY, DEBUGGING |
|
|
24 |
9 .debug_loc 0000017f 00000000 00000000 0000115a 2**0 |
|
|
25 |
CONTENTS, READONLY, DEBUGGING |
|
|
26 |
10 .debug_ranges 000000a8 00000000 00000000 000012d9 2**0 |
|
|
27 |
CONTENTS, READONLY, DEBUGGING |
|
|
28 |
|
|
|
29 |
Disassembly of section .text: |
|
|
30 |
|
|
|
31 |
00000000 <__vectors>: |
|
|
32 |
0: 14 c0 rjmp .+40 ; 0x2a <__ctors_end> |
|
|
33 |
2: 26 c0 rjmp .+76 ; 0x50 <__bad_interrupt> |
|
|
34 |
4: 25 c0 rjmp .+74 ; 0x50 <__bad_interrupt> |
|
|
35 |
6: 24 c0 rjmp .+72 ; 0x50 <__bad_interrupt> |
|
|
36 |
8: 23 c0 rjmp .+70 ; 0x50 <__bad_interrupt> |
|
|
37 |
a: 22 c0 rjmp .+68 ; 0x50 <__bad_interrupt> |
|
|
38 |
c: 21 c0 rjmp .+66 ; 0x50 <__bad_interrupt> |
|
|
39 |
e: 20 c0 rjmp .+64 ; 0x50 <__bad_interrupt> |
|
|
40 |
10: 1f c0 rjmp .+62 ; 0x50 <__bad_interrupt> |
|
|
41 |
12: 1e c0 rjmp .+60 ; 0x50 <__bad_interrupt> |
|
|
42 |
14: 1d c0 rjmp .+58 ; 0x50 <__bad_interrupt> |
|
|
43 |
16: 1c c0 rjmp .+56 ; 0x50 <__bad_interrupt> |
|
|
44 |
18: 1b c0 rjmp .+54 ; 0x50 <__bad_interrupt> |
|
|
45 |
1a: 1a c0 rjmp .+52 ; 0x50 <__bad_interrupt> |
|
|
46 |
1c: 19 c0 rjmp .+50 ; 0x50 <__bad_interrupt> |
|
|
47 |
1e: 18 c0 rjmp .+48 ; 0x50 <__bad_interrupt> |
|
|
48 |
20: 17 c0 rjmp .+46 ; 0x50 <__bad_interrupt> |
|
|
49 |
22: 16 c0 rjmp .+44 ; 0x50 <__bad_interrupt> |
|
|
50 |
24: 15 c0 rjmp .+42 ; 0x50 <__bad_interrupt> |
|
|
51 |
|
|
|
52 |
00000026 <LCD_INIT_STRING>: |
|
|
53 |
26: 28 0c 01 06 (... |
|
|
54 |
|
|
|
55 |
0000002a <__ctors_end>: |
|
|
56 |
2a: 11 24 eor r1, r1 |
|
|
57 |
2c: 1f be out 0x3f, r1 ; 63 |
|
|
58 |
2e: cf e5 ldi r28, 0x5F ; 95 |
|
|
59 |
30: d4 e0 ldi r29, 0x04 ; 4 |
|
|
60 |
32: de bf out 0x3e, r29 ; 62 |
|
|
61 |
34: cd bf out 0x3d, r28 ; 61 |
|
|
62 |
|
|
|
63 |
00000036 <__do_copy_data>: |
|
|
64 |
36: 10 e0 ldi r17, 0x00 ; 0 |
|
|
65 |
38: a0 e6 ldi r26, 0x60 ; 96 |
|
|
66 |
3a: b0 e0 ldi r27, 0x00 ; 0 |
|
|
67 |
3c: e2 e3 ldi r30, 0x32 ; 50 |
|
|
68 |
3e: f2 e0 ldi r31, 0x02 ; 2 |
|
|
69 |
40: 02 c0 rjmp .+4 ; 0x46 <.do_copy_data_start> |
|
|
70 |
|
|
|
71 |
00000042 <.do_copy_data_loop>: |
|
|
72 |
42: 05 90 lpm r0, Z+ |
|
|
73 |
44: 0d 92 st X+, r0 |
|
|
74 |
|
|
|
75 |
00000046 <.do_copy_data_start>: |
|
|
76 |
46: aa 36 cpi r26, 0x6A ; 106 |
|
|
77 |
48: b1 07 cpc r27, r17 |
|
|
78 |
4a: d9 f7 brne .-10 ; 0x42 <.do_copy_data_loop> |
|
|
79 |
4c: ba d0 rcall .+372 ; 0x1c2 <main> |
|
|
80 |
4e: ef c0 rjmp .+478 ; 0x22e <_exit> |
|
|
81 |
|
|
|
82 |
00000050 <__bad_interrupt>: |
|
|
83 |
50: d7 cf rjmp .-82 ; 0x0 <__vectors> |
|
|
84 |
|
|
|
85 |
00000052 <LCD_init_IO_PIN>: |
|
|
86 |
0x06 // inkrement pozice kurzoru (posun kurzoru doprava) |
|
|
87 |
}; |
|
|
88 |
|
|
|
89 |
void LCD_init_IO_PIN(void) |
|
|
90 |
{ |
|
|
91 |
DDR_D0 |= _BV(PIN_D0); |
|
|
92 |
52: a3 9a sbi 0x14, 3 ; 20 |
|
|
93 |
DDR_D1 |= _BV(PIN_D1); |
|
|
94 |
54: bc 9a sbi 0x17, 4 ; 23 |
|
|
95 |
DDR_D2 |= _BV(PIN_D2); |
|
|
96 |
56: bd 9a sbi 0x17, 5 ; 23 |
|
|
97 |
DDR_D3 |= _BV(PIN_D3); |
|
|
98 |
58: bb 9a sbi 0x17, 3 ; 23 |
|
|
99 |
DDR_E |= _BV(PIN_E); |
|
|
100 |
5a: b9 9a sbi 0x17, 1 ; 23 |
|
|
101 |
DDR_RS |= _BV(PIN_RS); |
|
|
102 |
5c: ba 9a sbi 0x17, 2 ; 23 |
|
|
103 |
} |
|
|
104 |
5e: 08 95 ret |
|
|
105 |
|
|
|
106 |
00000060 <LCD_send_nibble>: |
|
|
107 |
_delay_us(40); |
|
|
108 |
} |
|
|
109 |
|
|
|
110 |
void LCD_send_nibble(uint8_t data) |
|
|
111 |
{ |
|
|
112 |
L_D0;L_D1;L_D2;L_D3; |
|
|
113 |
60: ab 98 cbi 0x15, 3 ; 21 |
|
|
114 |
62: c4 98 cbi 0x18, 4 ; 24 |
|
|
115 |
64: c5 98 cbi 0x18, 5 ; 24 |
|
|
116 |
66: c3 98 cbi 0x18, 3 ; 24 |
|
|
117 |
if (data & 0x1) H_D0; |
|
|
118 |
68: 80 fd sbrc r24, 0 |
|
|
119 |
6a: ab 9a sbi 0x15, 3 ; 21 |
|
|
120 |
if (data & 0x2) H_D1; |
|
|
121 |
6c: 81 fd sbrc r24, 1 |
|
|
122 |
6e: c4 9a sbi 0x18, 4 ; 24 |
|
|
123 |
if (data & 0x4) H_D2; |
|
|
124 |
70: 82 fd sbrc r24, 2 |
|
|
125 |
72: c5 9a sbi 0x18, 5 ; 24 |
|
|
126 |
if (data & 0x8) H_D3; |
|
|
127 |
74: 83 fd sbrc r24, 3 |
|
|
128 |
76: c3 9a sbi 0x18, 3 ; 24 |
|
|
129 |
H_E; |
|
|
130 |
78: c1 9a sbi 0x18, 1 ; 24 |
|
|
131 |
can be achieved. |
|
|
132 |
*/ |
|
|
133 |
void |
|
|
134 |
_delay_loop_1(uint8_t __count) |
|
|
135 |
{ |
|
|
136 |
__asm__ volatile ( |
|
|
137 |
7a: 81 e0 ldi r24, 0x01 ; 1 |
|
|
138 |
7c: 8a 95 dec r24 |
|
|
139 |
7e: f1 f7 brne .-4 ; 0x7c <LCD_send_nibble+0x1c> |
|
|
140 |
_delay_us(1); |
|
|
141 |
L_E; |
|
|
142 |
80: c1 98 cbi 0x18, 1 ; 24 |
|
|
143 |
} |
|
|
144 |
82: 08 95 ret |
|
|
145 |
|
|
|
146 |
00000084 <LCD_send>: |
|
|
147 |
H_RS; |
|
|
148 |
LCD_send(data); |
|
|
149 |
} |
|
|
150 |
|
|
|
151 |
void LCD_send(uint8_t data) |
|
|
152 |
{ |
|
|
153 |
84: 1f 93 push r17 |
|
|
154 |
86: 18 2f mov r17, r24 |
|
|
155 |
LCD_send_nibble(data >> 4); |
|
|
156 |
88: 82 95 swap r24 |
|
|
157 |
8a: 8f 70 andi r24, 0x0F ; 15 |
|
|
158 |
8c: e9 df rcall .-46 ; 0x60 <LCD_send_nibble> |
|
|
159 |
LCD_send_nibble(data); |
|
|
160 |
8e: 81 2f mov r24, r17 |
|
|
161 |
90: e7 df rcall .-50 ; 0x60 <LCD_send_nibble> |
|
|
162 |
92: 8d e0 ldi r24, 0x0D ; 13 |
|
|
163 |
94: 8a 95 dec r24 |
|
|
164 |
96: f1 f7 brne .-4 ; 0x94 <LCD_send+0x10> |
|
|
165 |
_delay_us(40); |
|
|
166 |
} |
|
|
167 |
98: 1f 91 pop r17 |
|
|
168 |
9a: 08 95 ret |
|
|
169 |
|
|
|
170 |
0000009c <LCD_send_data>: |
|
|
171 |
H_RS; |
|
|
172 |
} |
|
|
173 |
|
|
|
174 |
void LCD_send_data(uint8_t data) |
|
|
175 |
{ |
|
|
176 |
H_RS; |
|
|
177 |
9c: c2 9a sbi 0x18, 2 ; 24 |
|
|
178 |
LCD_send(data); |
|
|
179 |
9e: f2 df rcall .-28 ; 0x84 <LCD_send> |
|
|
180 |
} |
|
|
181 |
a0: 08 95 ret |
|
|
182 |
|
|
|
183 |
000000a2 <LCD_putc>: |
|
|
184 |
} |
|
|
185 |
} |
|
|
186 |
|
|
|
187 |
void LCD_putc(uint8_t data) |
|
|
188 |
{ |
|
|
189 |
LCD_send_data(data); |
|
|
190 |
a2: fc df rcall .-8 ; 0x9c <LCD_send_data> |
|
|
191 |
} |
|
|
192 |
a4: 08 95 ret |
|
|
193 |
|
|
|
194 |
000000a6 <LCD_send_command>: |
|
|
195 |
|
|
|
196 |
void LCD_send_command(uint8_t data) |
|
|
197 |
{ |
|
|
198 |
L_RS; |
|
|
199 |
a6: c2 98 cbi 0x18, 2 ; 24 |
|
|
200 |
LCD_send(data); |
|
|
201 |
a8: ed df rcall .-38 ; 0x84 <LCD_send> |
|
|
202 |
H_RS; |
|
|
203 |
aa: c2 9a sbi 0x18, 2 ; 24 |
|
|
204 |
} |
|
|
205 |
ac: 08 95 ret |
|
|
206 |
|
|
|
207 |
000000ae <LCD_init>: |
|
|
208 |
DDR_E |= _BV(PIN_E); |
|
|
209 |
DDR_RS |= _BV(PIN_RS); |
|
|
210 |
} |
|
|
211 |
|
|
|
212 |
void LCD_init(void) |
|
|
213 |
{ |
|
|
214 |
ae: 0f 93 push r16 |
|
|
215 |
b0: 1f 93 push r17 |
|
|
216 |
b2: cf 93 push r28 |
|
|
217 |
b4: df 93 push r29 |
|
|
218 |
uint8_t a; |
|
|
219 |
|
|
|
220 |
LCD_init_IO_PIN(); |
|
|
221 |
b6: cd df rcall .-102 ; 0x52 <LCD_init_IO_PIN> |
|
|
222 |
milliseconds can be achieved. |
|
|
223 |
*/ |
|
|
224 |
void |
|
|
225 |
_delay_loop_2(uint16_t __count) |
|
|
226 |
{ |
|
|
227 |
__asm__ volatile ( |
|
|
228 |
b8: 88 e8 ldi r24, 0x88 ; 136 |
|
|
229 |
ba: 93 e1 ldi r25, 0x13 ; 19 |
|
|
230 |
bc: 01 97 sbiw r24, 0x01 ; 1 |
|
|
231 |
be: f1 f7 brne .-4 ; 0xbc <LCD_init+0xe> |
|
|
232 |
_delay_ms(20); |
|
|
233 |
L_E; |
|
|
234 |
c0: c1 98 cbi 0x18, 1 ; 24 |
|
|
235 |
L_RS; |
|
|
236 |
c2: c2 98 cbi 0x18, 2 ; 24 |
|
|
237 |
c4: 04 ef ldi r16, 0xF4 ; 244 |
|
|
238 |
c6: 11 e0 ldi r17, 0x01 ; 1 |
|
|
239 |
c8: c8 01 movw r24, r16 |
|
|
240 |
ca: 01 97 sbiw r24, 0x01 ; 1 |
|
|
241 |
cc: f1 f7 brne .-4 ; 0xca <LCD_init+0x1c> |
|
|
242 |
for (a=0;a<3;a++) |
|
|
243 |
{ |
|
|
244 |
_delay_ms(2); |
|
|
245 |
LCD_send_nibble(0x3); |
|
|
246 |
ce: 83 e0 ldi r24, 0x03 ; 3 |
|
|
247 |
d0: c7 df rcall .-114 ; 0x60 <LCD_send_nibble> |
|
|
248 |
d2: c8 01 movw r24, r16 |
|
|
249 |
d4: 01 97 sbiw r24, 0x01 ; 1 |
|
|
250 |
d6: f1 f7 brne .-4 ; 0xd4 <LCD_init+0x26> |
|
|
251 |
d8: 83 e0 ldi r24, 0x03 ; 3 |
|
|
252 |
da: c2 df rcall .-124 ; 0x60 <LCD_send_nibble> |
|
|
253 |
dc: c8 01 movw r24, r16 |
|
|
254 |
de: 01 97 sbiw r24, 0x01 ; 1 |
|
|
255 |
e0: f1 f7 brne .-4 ; 0xde <LCD_init+0x30> |
|
|
256 |
e2: 83 e0 ldi r24, 0x03 ; 3 |
|
|
257 |
e4: bd df rcall .-134 ; 0x60 <LCD_send_nibble> |
|
|
258 |
can be achieved. |
|
|
259 |
*/ |
|
|
260 |
void |
|
|
261 |
_delay_loop_1(uint8_t __count) |
|
|
262 |
{ |
|
|
263 |
__asm__ volatile ( |
|
|
264 |
e6: 1d e0 ldi r17, 0x0D ; 13 |
|
|
265 |
e8: 81 2f mov r24, r17 |
|
|
266 |
ea: 8a 95 dec r24 |
|
|
267 |
ec: f1 f7 brne .-4 ; 0xea <LCD_init+0x3c> |
|
|
268 |
|
|
|
269 |
} |
|
|
270 |
_delay_us(40); |
|
|
271 |
LCD_send_nibble(0x2); |
|
|
272 |
ee: 82 e0 ldi r24, 0x02 ; 2 |
|
|
273 |
f0: b7 df rcall .-146 ; 0x60 <LCD_send_nibble> |
|
|
274 |
f2: 1a 95 dec r17 |
|
|
275 |
f4: f1 f7 brne .-4 ; 0xf2 <LCD_init+0x44> |
|
|
276 |
f6: 06 e2 ldi r16, 0x26 ; 38 |
|
|
277 |
f8: 10 e0 ldi r17, 0x00 ; 0 |
|
|
278 |
milliseconds can be achieved. |
|
|
279 |
*/ |
|
|
280 |
void |
|
|
281 |
_delay_loop_2(uint16_t __count) |
|
|
282 |
{ |
|
|
283 |
__asm__ volatile ( |
|
|
284 |
fa: c4 ef ldi r28, 0xF4 ; 244 |
|
|
285 |
fc: d1 e0 ldi r29, 0x01 ; 1 |
|
|
286 |
_delay_us(40); |
|
|
287 |
for (a=0;a<3;a++) |
|
|
288 |
{ |
|
|
289 |
LCD_send_command(pgm_read_byte(&(LCD_INIT_STRING[a]))); |
|
|
290 |
fe: f8 01 movw r30, r16 |
|
|
291 |
100: 84 91 lpm r24, Z+ |
|
|
292 |
102: d1 df rcall .-94 ; 0xa6 <LCD_send_command> |
|
|
293 |
104: ce 01 movw r24, r28 |
|
|
294 |
106: 01 97 sbiw r24, 0x01 ; 1 |
|
|
295 |
108: f1 f7 brne .-4 ; 0x106 <LCD_init+0x58> |
|
|
296 |
10a: 0f 5f subi r16, 0xFF ; 255 |
|
|
297 |
10c: 1f 4f sbci r17, 0xFF ; 255 |
|
|
298 |
|
|
|
299 |
} |
|
|
300 |
_delay_us(40); |
|
|
301 |
LCD_send_nibble(0x2); |
|
|
302 |
_delay_us(40); |
|
|
303 |
for (a=0;a<3;a++) |
|
|
304 |
10e: f0 e0 ldi r31, 0x00 ; 0 |
|
|
305 |
110: 09 32 cpi r16, 0x29 ; 41 |
|
|
306 |
112: 1f 07 cpc r17, r31 |
|
|
307 |
114: a1 f7 brne .-24 ; 0xfe <LCD_init+0x50> |
|
|
308 |
{ |
|
|
309 |
LCD_send_command(pgm_read_byte(&(LCD_INIT_STRING[a]))); |
|
|
310 |
_delay_ms(2); |
|
|
311 |
} |
|
|
312 |
} |
|
|
313 |
116: df 91 pop r29 |
|
|
314 |
118: cf 91 pop r28 |
|
|
315 |
11a: 1f 91 pop r17 |
|
|
316 |
11c: 0f 91 pop r16 |
|
|
317 |
11e: 08 95 ret |
|
|
318 |
|
|
|
319 |
00000120 <LCD_clear>: |
|
|
320 |
} |
|
|
321 |
|
|
|
322 |
|
|
|
323 |
void LCD_clear(void) |
|
|
324 |
{ |
|
|
325 |
LCD_send_command(1); |
|
|
326 |
120: 81 e0 ldi r24, 0x01 ; 1 |
|
|
327 |
122: c1 df rcall .-126 ; 0xa6 <LCD_send_command> |
|
|
328 |
124: 84 ef ldi r24, 0xF4 ; 244 |
|
|
329 |
126: 91 e0 ldi r25, 0x01 ; 1 |
|
|
330 |
128: 01 97 sbiw r24, 0x01 ; 1 |
|
|
331 |
12a: f1 f7 brne .-4 ; 0x128 <LCD_clear+0x8> |
|
|
332 |
_delay_ms(2); |
|
|
333 |
} |
|
|
334 |
12c: 08 95 ret |
|
|
335 |
|
|
|
336 |
0000012e <LCD_gotoxy>: |
|
|
337 |
|
|
|
338 |
void LCD_gotoxy( uint8_t x, uint8_t y) |
|
|
339 |
{ |
|
|
340 |
uint8_t Adr; |
|
|
341 |
|
|
|
342 |
Adr=x-1; |
|
|
343 |
12e: 81 50 subi r24, 0x01 ; 1 |
|
|
344 |
if(y==2) |
|
|
345 |
130: 62 30 cpi r22, 0x02 ; 2 |
|
|
346 |
132: 09 f4 brne .+2 ; 0x136 <LCD_gotoxy+0x8> |
|
|
347 |
Adr+=LCD_LINE_2; |
|
|
348 |
134: 80 5c subi r24, 0xC0 ; 192 |
|
|
349 |
|
|
|
350 |
LCD_send_command(0x80|Adr); |
|
|
351 |
136: 80 68 ori r24, 0x80 ; 128 |
|
|
352 |
138: b6 df rcall .-148 ; 0xa6 <LCD_send_command> |
|
|
353 |
} |
|
|
354 |
13a: 08 95 ret |
|
|
355 |
|
|
|
356 |
0000013c <ProcesDispl>: |
|
|
357 |
|
|
|
358 |
} |
|
|
359 |
|
|
|
360 |
|
|
|
361 |
void ProcesDispl(char *data) //zajiuje tisk øetìzce na lcd |
|
|
362 |
{ |
|
|
363 |
13c: ef 92 push r14 |
|
|
364 |
13e: ff 92 push r15 |
|
|
365 |
140: 1f 93 push r17 |
|
|
366 |
142: cf 93 push r28 |
|
|
367 |
144: df 93 push r29 |
|
|
368 |
146: 7c 01 movw r14, r24 |
|
|
369 |
148: c0 e0 ldi r28, 0x00 ; 0 |
|
|
370 |
14a: d0 e0 ldi r29, 0x00 ; 0 |
|
|
371 |
uint8_t a,b; |
|
|
372 |
|
|
|
373 |
for (a=0;a<MAXDISPLBUFFER;a++) |
|
|
374 |
{ |
|
|
375 |
switch (*(data+a)) |
|
|
376 |
14c: f7 01 movw r30, r14 |
|
|
377 |
14e: ec 0f add r30, r28 |
|
|
378 |
150: fd 1f adc r31, r29 |
|
|
379 |
152: 80 81 ld r24, Z |
|
|
380 |
154: 8a 30 cpi r24, 0x0A ; 10 |
|
|
381 |
156: 61 f0 breq .+24 ; 0x170 <ProcesDispl+0x34> |
|
|
382 |
158: 8b 30 cpi r24, 0x0B ; 11 |
|
|
383 |
15a: 28 f4 brcc .+10 ; 0x166 <ProcesDispl+0x2a> |
|
|
384 |
15c: 88 23 and r24, r24 |
|
|
385 |
15e: 49 f1 breq .+82 ; 0x1b2 <ProcesDispl+0x76> |
|
|
386 |
160: 87 30 cpi r24, 0x07 ; 7 |
|
|
387 |
162: 11 f5 brne .+68 ; 0x1a8 <ProcesDispl+0x6c> |
|
|
388 |
164: 0b c0 rjmp .+22 ; 0x17c <ProcesDispl+0x40> |
|
|
389 |
166: 8c 30 cpi r24, 0x0C ; 12 |
|
|
390 |
168: 61 f0 breq .+24 ; 0x182 <ProcesDispl+0x46> |
|
|
391 |
16a: 8d 30 cpi r24, 0x0D ; 13 |
|
|
392 |
16c: e9 f4 brne .+58 ; 0x1a8 <ProcesDispl+0x6c> |
|
|
393 |
16e: 02 c0 rjmp .+4 ; 0x174 <ProcesDispl+0x38> |
|
|
394 |
{ |
|
|
395 |
case 0: *data = 0;return; |
|
|
396 |
case '\n': LCD_gotoxy(1,2);break; //posun na druhej øádek |
|
|
397 |
170: 81 e0 ldi r24, 0x01 ; 1 |
|
|
398 |
172: 05 c0 rjmp .+10 ; 0x17e <ProcesDispl+0x42> |
|
|
399 |
case '\r': LCD_gotoxy(1,1);break; |
|
|
400 |
174: 81 e0 ldi r24, 0x01 ; 1 |
|
|
401 |
176: 61 e0 ldi r22, 0x01 ; 1 |
|
|
402 |
178: da df rcall .-76 ; 0x12e <LCD_gotoxy> |
|
|
403 |
17a: 17 c0 rjmp .+46 ; 0x1aa <ProcesDispl+0x6e> |
|
|
404 |
case '\a': LCD_gotoxy(6,2);break; //posun na 2.øádek 6.políèko |
|
|
405 |
17c: 86 e0 ldi r24, 0x06 ; 6 |
|
|
406 |
17e: 62 e0 ldi r22, 0x02 ; 2 |
|
|
407 |
180: fb cf rjmp .-10 ; 0x178 <ProcesDispl+0x3c> |
|
|
408 |
case '\f': LCD_gotoxy(1,1); |
|
|
409 |
182: 81 e0 ldi r24, 0x01 ; 1 |
|
|
410 |
184: 61 e0 ldi r22, 0x01 ; 1 |
|
|
411 |
186: d3 df rcall .-90 ; 0x12e <LCD_gotoxy> |
|
|
412 |
188: 10 e0 ldi r17, 0x00 ; 0 |
|
|
413 |
} |
|
|
414 |
} |
|
|
415 |
|
|
|
416 |
void LCD_putc(uint8_t data) |
|
|
417 |
{ |
|
|
418 |
LCD_send_data(data); |
|
|
419 |
18a: 80 e2 ldi r24, 0x20 ; 32 |
|
|
420 |
18c: 87 df rcall .-242 ; 0x9c <LCD_send_data> |
|
|
421 |
for (b=0;b<8;b++) LCD_putc(0x20); |
|
|
422 |
18e: 1f 5f subi r17, 0xFF ; 255 |
|
|
423 |
190: 18 30 cpi r17, 0x08 ; 8 |
|
|
424 |
192: d9 f7 brne .-10 ; 0x18a <ProcesDispl+0x4e> |
|
|
425 |
LCD_gotoxy(1,2); |
|
|
426 |
194: 81 e0 ldi r24, 0x01 ; 1 |
|
|
427 |
196: 62 e0 ldi r22, 0x02 ; 2 |
|
|
428 |
198: ca df rcall .-108 ; 0x12e <LCD_gotoxy> |
|
|
429 |
19a: 10 e0 ldi r17, 0x00 ; 0 |
|
|
430 |
19c: 80 e2 ldi r24, 0x20 ; 32 |
|
|
431 |
19e: 7e df rcall .-260 ; 0x9c <LCD_send_data> |
|
|
432 |
for (b=0;b<8;b++) LCD_putc(0x20); |
|
|
433 |
1a0: 1f 5f subi r17, 0xFF ; 255 |
|
|
434 |
1a2: 18 30 cpi r17, 0x08 ; 8 |
|
|
435 |
1a4: d9 f7 brne .-10 ; 0x19c <ProcesDispl+0x60> |
|
|
436 |
1a6: e6 cf rjmp .-52 ; 0x174 <ProcesDispl+0x38> |
|
|
437 |
1a8: 79 df rcall .-270 ; 0x9c <LCD_send_data> |
|
|
438 |
1aa: 21 96 adiw r28, 0x01 ; 1 |
|
|
439 |
|
|
|
440 |
void ProcesDispl(char *data) //zajiuje tisk øetìzce na lcd |
|
|
441 |
{ |
|
|
442 |
uint8_t a,b; |
|
|
443 |
|
|
|
444 |
for (a=0;a<MAXDISPLBUFFER;a++) |
|
|
445 |
1ac: c4 31 cpi r28, 0x14 ; 20 |
|
|
446 |
1ae: d1 05 cpc r29, r1 |
|
|
447 |
1b0: 69 f6 brne .-102 ; 0x14c <ProcesDispl+0x10> |
|
|
448 |
LCD_gotoxy(1,1); |
|
|
449 |
break; |
|
|
450 |
default : LCD_putc(*(data+a)); |
|
|
451 |
} |
|
|
452 |
} |
|
|
453 |
*data = 0; |
|
|
454 |
1b2: f7 01 movw r30, r14 |
|
|
455 |
1b4: 10 82 st Z, r1 |
|
|
456 |
} |
|
|
457 |
1b6: df 91 pop r29 |
|
|
458 |
1b8: cf 91 pop r28 |
|
|
459 |
1ba: 1f 91 pop r17 |
|
|
460 |
1bc: ff 90 pop r15 |
|
|
461 |
1be: ef 90 pop r14 |
|
|
462 |
1c0: 08 95 ret |
|
|
463 |
|
|
|
464 |
000001c2 <main>: |
|
|
465 |
|
|
|
466 |
|
|
|
467 |
//----------------------------------------------------------------------------- |
|
|
468 |
|
|
|
469 |
int main(void) |
|
|
470 |
{ |
|
|
471 |
1c2: 0f 93 push r16 |
|
|
472 |
1c4: 1f 93 push r17 |
|
|
473 |
1c6: df 93 push r29 |
|
|
474 |
1c8: cf 93 push r28 |
|
|
475 |
1ca: cd b7 in r28, 0x3d ; 61 |
|
|
476 |
1cc: de b7 in r29, 0x3e ; 62 |
|
|
477 |
1ce: 63 97 sbiw r28, 0x13 ; 19 |
|
|
478 |
1d0: 0f b6 in r0, 0x3f ; 63 |
|
|
479 |
1d2: f8 94 cli |
|
|
480 |
1d4: de bf out 0x3e, r29 ; 62 |
|
|
481 |
1d6: 0f be out 0x3f, r0 ; 63 |
|
|
482 |
1d8: cd bf out 0x3d, r28 ; 61 |
|
|
483 |
|
|
|
484 |
LCD_init(); //Inicializace LCD |
|
|
485 |
1da: 69 df rcall .-302 ; 0xae <LCD_init> |
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
|
|
|
490 |
|
|
|
491 |
sprintf(zasobnik,"LCD je OK"); |
|
|
492 |
1dc: 8e 01 movw r16, r28 |
|
|
493 |
1de: 0f 5f subi r16, 0xFF ; 255 |
|
|
494 |
1e0: 1f 4f sbci r17, 0xFF ; 255 |
|
|
495 |
1e2: c8 01 movw r24, r16 |
|
|
496 |
1e4: 60 e6 ldi r22, 0x60 ; 96 |
|
|
497 |
1e6: 70 e0 ldi r23, 0x00 ; 0 |
|
|
498 |
1e8: 1b d0 rcall .+54 ; 0x220 <strcpy> |
|
|
499 |
LCD_gotoxy(0,0); |
|
|
500 |
1ea: 80 e0 ldi r24, 0x00 ; 0 |
|
|
501 |
1ec: 60 e0 ldi r22, 0x00 ; 0 |
|
|
502 |
1ee: 9f df rcall .-194 ; 0x12e <LCD_gotoxy> |
|
|
503 |
ProcesDispl(zasobnik); |
|
|
504 |
1f0: c8 01 movw r24, r16 |
|
|
505 |
1f2: a4 df rcall .-184 ; 0x13c <ProcesDispl> |
|
|
506 |
LCD_gotoxy(0,2); |
|
|
507 |
1f4: 80 e0 ldi r24, 0x00 ; 0 |
|
|
508 |
1f6: 62 e0 ldi r22, 0x02 ; 2 |
|
|
509 |
1f8: 9a df rcall .-204 ; 0x12e <LCD_gotoxy> |
|
|
510 |
ProcesDispl(zasobnik); |
|
|
511 |
1fa: c8 01 movw r24, r16 |
|
|
512 |
1fc: 9f df rcall .-194 ; 0x13c <ProcesDispl> |
|
|
513 |
1fe: 8a ef ldi r24, 0xFA ; 250 |
|
|
514 |
200: 90 e0 ldi r25, 0x00 ; 0 |
|
|
515 |
202: 01 97 sbiw r24, 0x01 ; 1 |
|
|
516 |
204: f1 f7 brne .-4 ; 0x202 <main+0x40> |
|
|
517 |
|
|
|
518 |
return 0; |
|
|
519 |
|
|
|
520 |
|
|
|
521 |
|
|
|
522 |
} |
|
|
523 |
206: 80 e0 ldi r24, 0x00 ; 0 |
|
|
524 |
208: 90 e0 ldi r25, 0x00 ; 0 |
|
|
525 |
20a: 63 96 adiw r28, 0x13 ; 19 |
|
|
526 |
20c: 0f b6 in r0, 0x3f ; 63 |
|
|
527 |
20e: f8 94 cli |
|
|
528 |
210: de bf out 0x3e, r29 ; 62 |
|
|
529 |
212: 0f be out 0x3f, r0 ; 63 |
|
|
530 |
214: cd bf out 0x3d, r28 ; 61 |
|
|
531 |
216: cf 91 pop r28 |
|
|
532 |
218: df 91 pop r29 |
|
|
533 |
21a: 1f 91 pop r17 |
|
|
534 |
21c: 0f 91 pop r16 |
|
|
535 |
21e: 08 95 ret |
|
|
536 |
|
|
|
537 |
00000220 <strcpy>: |
|
|
538 |
220: fb 01 movw r30, r22 |
|
|
539 |
222: dc 01 movw r26, r24 |
|
|
540 |
224: 01 90 ld r0, Z+ |
|
|
541 |
226: 0d 92 st X+, r0 |
|
|
542 |
228: 00 20 and r0, r0 |
|
|
543 |
22a: e1 f7 brne .-8 ; 0x224 <strcpy+0x4> |
|
|
544 |
22c: 08 95 ret |
|
|
545 |
|
|
|
546 |
0000022e <_exit>: |
|
|
547 |
22e: f8 94 cli |
|
|
548 |
|
|
|
549 |
00000230 <__stop_program>: |
|
|
550 |
230: ff cf rjmp .-2 ; 0x230 <__stop_program> |