-
Notifications
You must be signed in to change notification settings - Fork 0
/
Atmega32 + DS18B20 + 16x2 Character lcd display.rpt
542 lines (533 loc) · 21.4 KB
/
Atmega32 + DS18B20 + 16x2 Character lcd display.rpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
Report : Atmega32 + DS18B20 + 16x2 Character lcd display
Date : 08-09-2022
Time : 19:03:27
Compiler : BASCOM-AVR LIBRARY V 2.0.8.5
Processor : M32
SRAM : 800 hex
EEPROM : 400 hex
ROMSIZE : 8000 hex
ROMIMAGE : 96A hex -> Will fit into ROM
ROMIMAGE : 2410 dec
FLASH USED : 7 %
BAUD : 9600 Baud
XTAL : 1000000 Hz
BAUD error : 0.16%
Stack start : 85F hex
Stack size : 28 hex
S-Stacksize : 10 hex
S-Stackstart : 838 hex
Framesize : 20 hex
Framestart : 808 hex
Space left : 1905 dec
LCD DB7 : PORTC.7
LCD DB6 : PORTC.6
LCD DB5 : PORTC.5
LCD DB4 : PORTC.4
LCD E : PORTC.2
LCD RS : PORTC.0
LCD mode : 4 bit
--------------------------------------------------------------------------------
Variable Type Address(hex) Address(dec)
--------------------------------------------------------------------------------
SP Word 005D 93
TCNT1 Word 004C 76
OCR1A Word 004A 74
OCR1B Word 0048 72
ICR1 Word 0046 70
EEAR Word 003E 62
ADC Word 0024 36
TIMER1 Word 004C 76
COUNTER1 Word 004C 76
COMPARE1A Word 004A 74
COMPARE1B Word 0048 72
PWM1A Word 004A 74
PWM1B Word 0048 72
CAPTURE1 Word 0046 70
HWSTACK Word 005D 93
SWSTACK Word 001C 28
FRAME Word 0004 4
R0 0000 0
R1 0001 1
R2 0002 2
R3 0003 3
R4 0004 4
R5 0005 5
R6 0006 6
R7 0007 7
R8 0008 8
R9 0009 9
R10 000A 10
R11 000B 11
R12 000C 12
R13 000D 13
R14 000E 14
R15 000F 15
R16 0010 16
R17 0011 17
R18 0012 18
R19 0013 19
R20 0014 20
R21 0015 21
R22 0016 22
R23 0017 23
R24 0018 24
R25 0019 25
R26 001A 26
R27 001B 27
R28 001C 28
R29 001D 29
R30 001E 30
R31 001F 31
ADCD Word 0024 36
COUNTER1 Word 004C 76
TIMER1 Word 004C 76
CAPTURE1 Word 0046 70
COMPARE1A Word 004A 74
PWM1A Word 004A 74
COMPARE1 Word 004A 74
PWM1B Word 0048 72
COMPARE1B Word 0048 72
PWM0 Byte 005C 92
ERR Bit [2] 0006 6
TEMPERATURE String * 6 0060 96
BUFFER_DIGITAL Integer 0067 103
DS18B20_ID_1 Byte(9) 0069 105
DS18B20_ID_2 Byte(8) 0072 114
DS18B20_ID_3 Byte(8) 007A 122
DS18B20_ID_4 Byte(8) 0082 130
--------------------------------------------------------------------------------
Constant Value
--------------------------------------------------------------------------------
SREG &H3F
SPH &H3E
SPL &H3D
OCR0 &H3C
PWM0 &H3C
COMPARE0 &H3C
GIMSK &H3B
GICR &H3B
GIFR &H3A
TIMSK &H39
TIFR &H38
TIFR1 &H38
SPMCR &H37
SPMCSR &H37
TWCR &H36
MCUCR &H35
MCUSR &H34
MCUCSR &H34
TCCR0 &H33
TCNT0 &H32
COUNTER0 &H32
TIMER0 &H32
OSCCAL &H31
SFIOR &H30
TCCR1A &H2F
TCCR1B &H2E
TCNT1H &H2D
TCNT1L &H2C
OCR1AH &H2B
OCR1AL &H2A
OCR1BH &H29
OCR1BL &H28
ICR1H &H27
ICR1L &H26
TCCR2 &H25
TCNT2 &H24
TIMER2 &H24
COUNTER2 &H24
OCR2 &H23
PWM2 &H23
COMPARE2 &H23
ASSR &H22
WDTCR &H21
UBRRHI &H20
UCSRC &H20
EEARH &H1F
EEARL &H1E
EEDR &H1D
EECR &H1C
PORTA &H1B
DDRA &H1A
PINA &H19
PORTB &H18
DDRB &H17
PINB &H16
PORTC &H15
DDRC &H14
PINC &H13
PORTD &H12
DDRD &H11
PIND &H10
SPDR &H0F
SPSR &H0E
SPCR &H0D
UDR &H0C
USR &H0B
UCSRA &H0B
UCSR0A &H0B
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OINT 46
_RTSCTS 0
_RTSCTS1 0
_RTSCTS3 0
_RTSCTS4 0
_RTSCTS5 0
_RTSCTS6 0
_RTSCTS7 0
_RTSCTS8 0
_RAMSIZE 2048
_ERAMSIZE 1024
_SIM 0
_HUGE 0
_BASE 1
_XTAL 1000000
_BUILD 20850
_COMPILER 90
_HWMUL 1
_DOSFILEWRITE 0
_DOSDIRWRITE 0
_1WEXT 0
_ADC_REFMODEL 0
_UARTS 1
_HWSTACKSTART 2143
_TIMEOUT 0
_PBIN_EXTENDED 0
_SPI_EXTENDED 0
_INPBIN_EXTENDED 0
_BIGSTRINGS 0
SEROUT_EXTPULL 1
_FPROTECT 0
_HWSTACK_LOW &H0837
_SWSTACK_LOW &H0828
_FRAME_HIGH &H0829
_HAVEMOVW 1
_XMEGA 0
_XTINY 0
_LCDDBRS &H15
_LCDDBRS_PIN 0
_LCDDBRSDIR &H14
_LCDDBE &H15
_LCDDBE_PIN 2
_LCDDBEDIR &H14
_LCDDB4 &H15
_LCDDB4_PIN 4
_LCDDB4DIR &H14
_LCDDB5 &H15
_LCDDB5_PIN 5
_LCDDB5DIR &H14
_LCDDB6 &H15
_LCDDB6_PIN 6
_LCDDB6DIR &H14
_LCDDB7 &H15
_LCDDB7_PIN 7
_LCDDB7DIR &H14
_TEXTLCDKIND 162
CBITINFINITY 0
CMBITINFINITY 1
CBITZERO 1
CMBITZERO 2
CBITNAN 2
CMBITNAN 4
CBITNANIFINF 3
CMBITNANIFINF 8
CBITNANIFMINUS 4
CMBITNANIFMINUS 16
CBITSIGN 7
CMBITSIGN 128
CEXPADDOFFSET 0
CEXPSUBOFFSET 12
CEXPMULOFFSET 24
CEXPDIVOFFSET 36
--------------------------------------------------------------------------------
Warnings:
--------------------------------------------------------------------------------
ADCD not used
COMPARE1 not used
Source string could be too big to fit into target string [TEMPERATURE>___STRBUF] in line 94