diff --git a/Debug/AtTiny_alarm_clock.elf b/Debug/AtTiny_alarm_clock.elf index 21514f3..58d1c61 100644 Binary files a/Debug/AtTiny_alarm_clock.elf and b/Debug/AtTiny_alarm_clock.elf differ diff --git a/Debug/AtTiny_alarm_clock.hex b/Debug/AtTiny_alarm_clock.hex index 4018a18..ffb5600 100644 --- a/Debug/AtTiny_alarm_clock.hex +++ b/Debug/AtTiny_alarm_clock.hex @@ -18,8 +18,8 @@ :1001100082E0DEDF9CDF0895CF93DF931F92CDB79F :10012000DD2784E4898389819FEF980F9983882351 :1001300041F08981898189819FEF980F998381118D -:10014000F8CF0F90DF91CF9108958FEF87BBC5DF78 -:1001500040E060E670E080E081DF8AEA88BBFECFA5 +:10014000F8CF0F90DF91CF9108958FEF87BB8AEAA8 +:1001500088BBC3DF40E060E670E080E07FDFFFCF78 :04016000F894FFCF41 :02016400740025 :00000001FF diff --git a/Debug/AtTiny_alarm_clock.lss b/Debug/AtTiny_alarm_clock.lss index 81e7cfc..85d0905 100644 --- a/Debug/AtTiny_alarm_clock.lss +++ b/Debug/AtTiny_alarm_clock.lss @@ -17,15 +17,15 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY, DEBUGGING 6 .debug_abbrev 00000631 00000000 00000000 00000be3 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_line 00000522 00000000 00000000 00001214 2**0 + 7 .debug_line 00000517 00000000 00000000 00001214 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_frame 000000f4 00000000 00000000 00001738 2**2 + 8 .debug_frame 000000f4 00000000 00000000 0000172c 2**2 CONTENTS, READONLY, DEBUGGING - 9 .debug_str 0000035c 00000000 00000000 0000182c 2**0 + 9 .debug_str 0000035c 00000000 00000000 00001820 2**0 CONTENTS, READONLY, DEBUGGING - 10 .debug_loc 0000028c 00000000 00000000 00001b88 2**0 + 10 .debug_loc 0000028c 00000000 00000000 00001b7c 2**0 CONTENTS, READONLY, DEBUGGING - 11 .debug_ranges 00000058 00000000 00000000 00001e14 2**0 + 11 .debug_ranges 00000058 00000000 00000000 00001e08 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: @@ -320,21 +320,18 @@ int main(void) DDRB = 0xff; 14a: 8f ef ldi r24, 0xFF ; 255 14c: 87 bb out 0x17, r24 ; 23 + PORTB = 0xAA; + 14e: 8a ea ldi r24, 0xAA ; 170 + 150: 88 bb out 0x18, r24 ; 24 lcd_init(); - 14e: c5 df rcall .-118 ; 0xda + 152: c3 df rcall .-122 ; 0xda lcd_write(here, "t", 0); - 150: 40 e0 ldi r20, 0x00 ; 0 - 152: 60 e6 ldi r22, 0x60 ; 96 - 154: 70 e0 ldi r23, 0x00 ; 0 - 156: 80 e0 ldi r24, 0x00 ; 0 - 158: 81 df rcall .-254 ; 0x5c - /* Replace with your application code */ - while (1) - { - PORTB = 0xAA; - 15a: 8a ea ldi r24, 0xAA ; 170 - 15c: 88 bb out 0x18, r24 ; 24 - 15e: fe cf rjmp .-4 ; 0x15c + 154: 40 e0 ldi r20, 0x00 ; 0 + 156: 60 e6 ldi r22, 0x60 ; 96 + 158: 70 e0 ldi r23, 0x00 ; 0 + 15a: 80 e0 ldi r24, 0x00 ; 0 + 15c: 7f df rcall .-258 ; 0x5c + 15e: ff cf rjmp .-2 ; 0x15e 00000160 <_exit>: 160: f8 94 cli diff --git a/Debug/AtTiny_alarm_clock.map b/Debug/AtTiny_alarm_clock.map index e1b305d..8ef467d 100644 --- a/Debug/AtTiny_alarm_clock.map +++ b/Debug/AtTiny_alarm_clock.map @@ -422,12 +422,12 @@ END GROUP .debug_abbrev 0x00000519 0x72 lcd_wait.o .debug_abbrev 0x0000058b 0xa6 main.o -.debug_line 0x00000000 0x522 +.debug_line 0x00000000 0x517 *(.debug_line .debug_line.* .debug_line_end) .debug_line 0x00000000 0x10c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATtiny_DFP/1.3.172/gcc/dev/attiny2313a/avr25/tiny-stack/crtattiny2313a.o .debug_line 0x0000010c 0x291 lcd4.o .debug_line 0x0000039d 0xbd lcd_wait.o - .debug_line 0x0000045a 0xc8 main.o + .debug_line 0x0000045a 0xbd main.o .debug_frame 0x00000000 0xf4 *(.debug_frame) diff --git a/Debug/AtTiny_alarm_clock.srec b/Debug/AtTiny_alarm_clock.srec index 68f0544..8797bdf 100644 --- a/Debug/AtTiny_alarm_clock.srec +++ b/Debug/AtTiny_alarm_clock.srec @@ -19,8 +19,8 @@ S1130100E7DF87B3807F87BB8CE0E2DF86E0E0DF58 S113011082E0DEDF9CDF0895CF93DF931F92CDB79B S1130120DD2784E4898389819FEF980F998388234D S113013041F08981898189819FEF980F9983811189 -S1130140F8CF0F90DF91CF9108958FEF87BBC5DF74 -S113015040E060E670E080E081DF8AEA88BBFECFA1 +S1130140F8CF0F90DF91CF9108958FEF87BB8AEAA4 +S113015088BBC3DF40E060E670E080E07FDFFFCF74 S1070160F894FFCF3D S1050164740021 S9030000FC diff --git a/Debug/main.o b/Debug/main.o index 76b9588..7012eae 100644 Binary files a/Debug/main.o and b/Debug/main.o differ diff --git a/main.c b/main.c index f3296f2..e90e5df 100644 --- a/main.c +++ b/main.c @@ -12,12 +12,13 @@ int main(void) { DDRB = 0xff; + PORTB = 0xAA; lcd_init(); lcd_write(here, "t", 0); /* Replace with your application code */ while (1) { - PORTB = 0xAA; + } }