Week 2 t/m opg 3
This commit is contained in:
@@ -0,0 +1 @@
|
||||
:00000001FF
|
||||
@@ -0,0 +1,448 @@
|
||||
|
||||
MIC-Week2.elf: file format elf32-avr
|
||||
|
||||
Sections:
|
||||
Idx Name Size VMA LMA File off Algn
|
||||
0 .data 00000010 00800100 0000022c 000002c0 2**0
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
1 .text 0000022c 00000000 00000000 00000094 2**1
|
||||
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
||||
2 .bss 00000002 00800110 00800110 000002d0 2**0
|
||||
ALLOC
|
||||
3 .comment 00000030 00000000 00000000 000002d0 2**0
|
||||
CONTENTS, READONLY
|
||||
4 .note.gnu.avr.deviceinfo 0000003c 00000000 00000000 00000300 2**2
|
||||
CONTENTS, READONLY
|
||||
5 .debug_aranges 00000070 00000000 00000000 0000033c 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
6 .debug_info 000003fb 00000000 00000000 000003ac 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
7 .debug_abbrev 00000216 00000000 00000000 000007a7 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
8 .debug_line 00000303 00000000 00000000 000009bd 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
9 .debug_frame 00000174 00000000 00000000 00000cc0 2**2
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
10 .debug_str 000001f8 00000000 00000000 00000e34 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
11 .debug_loc 00000346 00000000 00000000 0000102c 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
12 .debug_ranges 00000078 00000000 00000000 00001372 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00000000 <__vectors>:
|
||||
0: 45 c0 rjmp .+138 ; 0x8c <__ctors_end>
|
||||
2: 00 00 nop
|
||||
4: 61 c0 rjmp .+194 ; 0xc8 <__vector_1>
|
||||
6: 00 00 nop
|
||||
8: 90 c0 rjmp .+288 ; 0x12a <__vector_2>
|
||||
a: 00 00 nop
|
||||
c: c1 c0 rjmp .+386 ; 0x190 <__vector_3>
|
||||
e: 00 00 nop
|
||||
10: 5a c0 rjmp .+180 ; 0xc6 <__bad_interrupt>
|
||||
12: 00 00 nop
|
||||
14: 64 c0 rjmp .+200 ; 0xde <__vector_5>
|
||||
16: 00 00 nop
|
||||
18: 56 c0 rjmp .+172 ; 0xc6 <__bad_interrupt>
|
||||
1a: 00 00 nop
|
||||
1c: 54 c0 rjmp .+168 ; 0xc6 <__bad_interrupt>
|
||||
1e: 00 00 nop
|
||||
20: 52 c0 rjmp .+164 ; 0xc6 <__bad_interrupt>
|
||||
22: 00 00 nop
|
||||
24: 50 c0 rjmp .+160 ; 0xc6 <__bad_interrupt>
|
||||
26: 00 00 nop
|
||||
28: 4e c0 rjmp .+156 ; 0xc6 <__bad_interrupt>
|
||||
2a: 00 00 nop
|
||||
2c: 4c c0 rjmp .+152 ; 0xc6 <__bad_interrupt>
|
||||
2e: 00 00 nop
|
||||
30: 4a c0 rjmp .+148 ; 0xc6 <__bad_interrupt>
|
||||
32: 00 00 nop
|
||||
34: 48 c0 rjmp .+144 ; 0xc6 <__bad_interrupt>
|
||||
36: 00 00 nop
|
||||
38: 46 c0 rjmp .+140 ; 0xc6 <__bad_interrupt>
|
||||
3a: 00 00 nop
|
||||
3c: 44 c0 rjmp .+136 ; 0xc6 <__bad_interrupt>
|
||||
3e: 00 00 nop
|
||||
40: 42 c0 rjmp .+132 ; 0xc6 <__bad_interrupt>
|
||||
42: 00 00 nop
|
||||
44: 40 c0 rjmp .+128 ; 0xc6 <__bad_interrupt>
|
||||
46: 00 00 nop
|
||||
48: 3e c0 rjmp .+124 ; 0xc6 <__bad_interrupt>
|
||||
4a: 00 00 nop
|
||||
4c: 3c c0 rjmp .+120 ; 0xc6 <__bad_interrupt>
|
||||
4e: 00 00 nop
|
||||
50: 3a c0 rjmp .+116 ; 0xc6 <__bad_interrupt>
|
||||
52: 00 00 nop
|
||||
54: 38 c0 rjmp .+112 ; 0xc6 <__bad_interrupt>
|
||||
56: 00 00 nop
|
||||
58: 36 c0 rjmp .+108 ; 0xc6 <__bad_interrupt>
|
||||
5a: 00 00 nop
|
||||
5c: 34 c0 rjmp .+104 ; 0xc6 <__bad_interrupt>
|
||||
5e: 00 00 nop
|
||||
60: 32 c0 rjmp .+100 ; 0xc6 <__bad_interrupt>
|
||||
62: 00 00 nop
|
||||
64: 30 c0 rjmp .+96 ; 0xc6 <__bad_interrupt>
|
||||
66: 00 00 nop
|
||||
68: 2e c0 rjmp .+92 ; 0xc6 <__bad_interrupt>
|
||||
6a: 00 00 nop
|
||||
6c: 2c c0 rjmp .+88 ; 0xc6 <__bad_interrupt>
|
||||
6e: 00 00 nop
|
||||
70: 2a c0 rjmp .+84 ; 0xc6 <__bad_interrupt>
|
||||
72: 00 00 nop
|
||||
74: 28 c0 rjmp .+80 ; 0xc6 <__bad_interrupt>
|
||||
76: 00 00 nop
|
||||
78: 26 c0 rjmp .+76 ; 0xc6 <__bad_interrupt>
|
||||
7a: 00 00 nop
|
||||
7c: 24 c0 rjmp .+72 ; 0xc6 <__bad_interrupt>
|
||||
7e: 00 00 nop
|
||||
80: 22 c0 rjmp .+68 ; 0xc6 <__bad_interrupt>
|
||||
82: 00 00 nop
|
||||
84: 20 c0 rjmp .+64 ; 0xc6 <__bad_interrupt>
|
||||
86: 00 00 nop
|
||||
88: 1e c0 rjmp .+60 ; 0xc6 <__bad_interrupt>
|
||||
...
|
||||
|
||||
0000008c <__ctors_end>:
|
||||
8c: 11 24 eor r1, r1
|
||||
8e: 1f be out 0x3f, r1 ; 63
|
||||
90: cf ef ldi r28, 0xFF ; 255
|
||||
92: d0 e1 ldi r29, 0x10 ; 16
|
||||
94: de bf out 0x3e, r29 ; 62
|
||||
96: cd bf out 0x3d, r28 ; 61
|
||||
|
||||
00000098 <__do_copy_data>:
|
||||
98: 11 e0 ldi r17, 0x01 ; 1
|
||||
9a: a0 e0 ldi r26, 0x00 ; 0
|
||||
9c: b1 e0 ldi r27, 0x01 ; 1
|
||||
9e: ec e2 ldi r30, 0x2C ; 44
|
||||
a0: f2 e0 ldi r31, 0x02 ; 2
|
||||
a2: 00 e0 ldi r16, 0x00 ; 0
|
||||
a4: 0b bf out 0x3b, r16 ; 59
|
||||
a6: 02 c0 rjmp .+4 ; 0xac <__do_copy_data+0x14>
|
||||
a8: 07 90 elpm r0, Z+
|
||||
aa: 0d 92 st X+, r0
|
||||
ac: a0 31 cpi r26, 0x10 ; 16
|
||||
ae: b1 07 cpc r27, r17
|
||||
b0: d9 f7 brne .-10 ; 0xa8 <__do_copy_data+0x10>
|
||||
|
||||
000000b2 <__do_clear_bss>:
|
||||
b2: 21 e0 ldi r18, 0x01 ; 1
|
||||
b4: a0 e1 ldi r26, 0x10 ; 16
|
||||
b6: b1 e0 ldi r27, 0x01 ; 1
|
||||
b8: 01 c0 rjmp .+2 ; 0xbc <.do_clear_bss_start>
|
||||
|
||||
000000ba <.do_clear_bss_loop>:
|
||||
ba: 1d 92 st X+, r1
|
||||
|
||||
000000bc <.do_clear_bss_start>:
|
||||
bc: a2 31 cpi r26, 0x12 ; 18
|
||||
be: b2 07 cpc r27, r18
|
||||
c0: e1 f7 brne .-8 ; 0xba <.do_clear_bss_loop>
|
||||
c2: b1 d0 rcall .+354 ; 0x226 <main>
|
||||
c4: b1 c0 rjmp .+354 ; 0x228 <_exit>
|
||||
|
||||
000000c6 <__bad_interrupt>:
|
||||
c6: 9c cf rjmp .-200 ; 0x0 <__vectors>
|
||||
|
||||
000000c8 <__vector_1>:
|
||||
sei();
|
||||
|
||||
while(1)
|
||||
{
|
||||
wait(500);
|
||||
}
|
||||
c8: 1f 92 push r1
|
||||
ca: 0f 92 push r0
|
||||
cc: 0f b6 in r0, 0x3f ; 63
|
||||
ce: 0f 92 push r0
|
||||
d0: 11 24 eor r1, r1
|
||||
d2: 95 9a sbi 0x12, 5 ; 18
|
||||
d4: 0f 90 pop r0
|
||||
d6: 0f be out 0x3f, r0 ; 63
|
||||
d8: 0f 90 pop r0
|
||||
da: 1f 90 pop r1
|
||||
dc: 18 95 reti
|
||||
|
||||
000000de <__vector_5>:
|
||||
de: 1f 92 push r1
|
||||
e0: 0f 92 push r0
|
||||
e2: 0f b6 in r0, 0x3f ; 63
|
||||
e4: 0f 92 push r0
|
||||
e6: 11 24 eor r1, r1
|
||||
e8: 8f 93 push r24
|
||||
ea: 9f 93 push r25
|
||||
ec: 93 b1 in r25, 0x03 ; 3
|
||||
ee: 81 e0 ldi r24, 0x01 ; 1
|
||||
f0: 89 27 eor r24, r25
|
||||
f2: 83 b9 out 0x03, r24 ; 3
|
||||
f4: 9f 91 pop r25
|
||||
f6: 8f 91 pop r24
|
||||
f8: 0f 90 pop r0
|
||||
fa: 0f be out 0x3f, r0 ; 63
|
||||
fc: 0f 90 pop r0
|
||||
fe: 1f 90 pop r1
|
||||
100: 18 95 reti
|
||||
|
||||
00000102 <shift>:
|
||||
}
|
||||
|
||||
void shift(int i)
|
||||
{
|
||||
|
||||
if(i)
|
||||
102: 89 2b or r24, r25
|
||||
104: 21 f0 breq .+8 ; 0x10e <shift+0xc>
|
||||
PORTC = (PORTC>>1);
|
||||
106: 85 b3 in r24, 0x15 ; 21
|
||||
108: 86 95 lsr r24
|
||||
10a: 85 bb out 0x15, r24 ; 21
|
||||
10c: 03 c0 rjmp .+6 ; 0x114 <shift+0x12>
|
||||
else
|
||||
PORTC = (PORTC<<1);
|
||||
10e: 85 b3 in r24, 0x15 ; 21
|
||||
110: 88 0f add r24, r24
|
||||
112: 85 bb out 0x15, r24 ; 21
|
||||
|
||||
//Als het looplicht aan het einde is
|
||||
if (PORTC >= 0x80)
|
||||
114: af 9b sbis 0x15, 7 ; 21
|
||||
116: 03 c0 rjmp .+6 ; 0x11e <shift+0x1c>
|
||||
{
|
||||
PORTC= 0x01;
|
||||
118: 81 e0 ldi r24, 0x01 ; 1
|
||||
11a: 85 bb out 0x15, r24 ; 21
|
||||
11c: 08 95 ret
|
||||
}
|
||||
//Als het looplicht aan het begin is
|
||||
else if (PORTC < 0x1)
|
||||
11e: 85 b3 in r24, 0x15 ; 21
|
||||
120: 81 11 cpse r24, r1
|
||||
122: 02 c0 rjmp .+4 ; 0x128 <shift+0x26>
|
||||
{
|
||||
PORTC= 0x80;
|
||||
124: 80 e8 ldi r24, 0x80 ; 128
|
||||
126: 85 bb out 0x15, r24 ; 21
|
||||
128: 08 95 ret
|
||||
|
||||
0000012a <__vector_2>:
|
||||
PORTD |= (1<<5);
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
ISR( INT1_vect )
|
||||
{
|
||||
12a: 1f 92 push r1
|
||||
12c: 0f 92 push r0
|
||||
12e: 0f b6 in r0, 0x3f ; 63
|
||||
130: 0f 92 push r0
|
||||
132: 11 24 eor r1, r1
|
||||
134: 0b b6 in r0, 0x3b ; 59
|
||||
136: 0f 92 push r0
|
||||
138: 2f 93 push r18
|
||||
13a: 3f 93 push r19
|
||||
13c: 4f 93 push r20
|
||||
13e: 5f 93 push r21
|
||||
140: 6f 93 push r22
|
||||
142: 7f 93 push r23
|
||||
144: 8f 93 push r24
|
||||
146: 9f 93 push r25
|
||||
148: af 93 push r26
|
||||
14a: bf 93 push r27
|
||||
14c: ef 93 push r30
|
||||
14e: ff 93 push r31
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Clear PORTD.5
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
if(opdr==0)
|
||||
150: 80 91 10 01 lds r24, 0x0110
|
||||
154: 90 91 11 01 lds r25, 0x0111
|
||||
158: 00 97 sbiw r24, 0x00 ; 0
|
||||
15a: 11 f4 brne .+4 ; 0x160 <__vector_2+0x36>
|
||||
{
|
||||
PORTD &= ~(1<<5);
|
||||
15c: 95 98 cbi 0x12, 5 ; 18
|
||||
15e: 05 c0 rjmp .+10 ; 0x16a <__vector_2+0x40>
|
||||
}
|
||||
else if(opdr==1)
|
||||
160: 01 97 sbiw r24, 0x01 ; 1
|
||||
162: 19 f4 brne .+6 ; 0x16a <__vector_2+0x40>
|
||||
{
|
||||
shift(1);
|
||||
164: 81 e0 ldi r24, 0x01 ; 1
|
||||
166: 90 e0 ldi r25, 0x00 ; 0
|
||||
168: cc df rcall .-104 ; 0x102 <shift>
|
||||
}
|
||||
}
|
||||
16a: ff 91 pop r31
|
||||
16c: ef 91 pop r30
|
||||
16e: bf 91 pop r27
|
||||
170: af 91 pop r26
|
||||
172: 9f 91 pop r25
|
||||
174: 8f 91 pop r24
|
||||
176: 7f 91 pop r23
|
||||
178: 6f 91 pop r22
|
||||
17a: 5f 91 pop r21
|
||||
17c: 4f 91 pop r20
|
||||
17e: 3f 91 pop r19
|
||||
180: 2f 91 pop r18
|
||||
182: 0f 90 pop r0
|
||||
184: 0b be out 0x3b, r0 ; 59
|
||||
186: 0f 90 pop r0
|
||||
188: 0f be out 0x3f, r0 ; 63
|
||||
18a: 0f 90 pop r0
|
||||
18c: 1f 90 pop r1
|
||||
18e: 18 95 reti
|
||||
|
||||
00000190 <__vector_3>:
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Clear PORTD.3
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
190: 1f 92 push r1
|
||||
192: 0f 92 push r0
|
||||
194: 0f b6 in r0, 0x3f ; 63
|
||||
196: 0f 92 push r0
|
||||
198: 11 24 eor r1, r1
|
||||
19a: 0b b6 in r0, 0x3b ; 59
|
||||
19c: 0f 92 push r0
|
||||
19e: 2f 93 push r18
|
||||
1a0: 3f 93 push r19
|
||||
1a2: 4f 93 push r20
|
||||
1a4: 5f 93 push r21
|
||||
1a6: 6f 93 push r22
|
||||
1a8: 7f 93 push r23
|
||||
1aa: 8f 93 push r24
|
||||
1ac: 9f 93 push r25
|
||||
1ae: af 93 push r26
|
||||
1b0: bf 93 push r27
|
||||
1b2: ef 93 push r30
|
||||
1b4: ff 93 push r31
|
||||
shift(0);
|
||||
1b6: 80 e0 ldi r24, 0x00 ; 0
|
||||
1b8: 90 e0 ldi r25, 0x00 ; 0
|
||||
1ba: a3 df rcall .-186 ; 0x102 <shift>
|
||||
}
|
||||
1bc: ff 91 pop r31
|
||||
1be: ef 91 pop r30
|
||||
1c0: bf 91 pop r27
|
||||
1c2: af 91 pop r26
|
||||
1c4: 9f 91 pop r25
|
||||
1c6: 8f 91 pop r24
|
||||
1c8: 7f 91 pop r23
|
||||
1ca: 6f 91 pop r22
|
||||
1cc: 5f 91 pop r21
|
||||
1ce: 4f 91 pop r20
|
||||
1d0: 3f 91 pop r19
|
||||
1d2: 2f 91 pop r18
|
||||
1d4: 0f 90 pop r0
|
||||
1d6: 0b be out 0x3b, r0 ; 59
|
||||
1d8: 0f 90 pop r0
|
||||
1da: 0f be out 0x3f, r0 ; 63
|
||||
1dc: 0f 90 pop r0
|
||||
1de: 1f 90 pop r1
|
||||
1e0: 18 95 reti
|
||||
|
||||
000001e2 <opgave3>:
|
||||
}
|
||||
}
|
||||
|
||||
void opgave3()
|
||||
{
|
||||
DDRC = 0x00;
|
||||
1e2: 14 ba out 0x14, r1 ; 20
|
||||
DDRD = 0xFF;
|
||||
1e4: 8f ef ldi r24, 0xFF ; 255
|
||||
1e6: 81 bb out 0x11, r24 ; 17
|
||||
|
||||
int count = 0;
|
||||
1e8: 80 e0 ldi r24, 0x00 ; 0
|
||||
1ea: 90 e0 ldi r25, 0x00 ; 0
|
||||
display(count);
|
||||
}
|
||||
}
|
||||
void display(int d)
|
||||
{
|
||||
PORTD = data[d];
|
||||
1ec: a0 e0 ldi r26, 0x00 ; 0
|
||||
1ee: b1 e0 ldi r27, 0x01 ; 1
|
||||
|
||||
int count = 0;
|
||||
|
||||
while(1)
|
||||
{
|
||||
if(0b00000001 & PINC == 0b00000001)
|
||||
1f0: 23 b3 in r18, 0x13 ; 19
|
||||
1f2: 21 30 cpi r18, 0x01 ; 1
|
||||
1f4: 11 f4 brne .+4 ; 0x1fa <opgave3+0x18>
|
||||
{
|
||||
count++;
|
||||
1f6: 01 96 adiw r24, 0x01 ; 1
|
||||
1f8: 01 c0 rjmp .+2 ; 0x1fc <opgave3+0x1a>
|
||||
}
|
||||
else if(0b00000010 & PINC == 0b00000010)
|
||||
1fa: 23 b3 in r18, 0x13 ; 19
|
||||
{
|
||||
count--;
|
||||
}
|
||||
|
||||
if(count > 15)
|
||||
1fc: 80 31 cpi r24, 0x10 ; 16
|
||||
1fe: 91 05 cpc r25, r1
|
||||
200: 2c f0 brlt .+10 ; 0x20c <opgave3+0x2a>
|
||||
display(count);
|
||||
}
|
||||
}
|
||||
void display(int d)
|
||||
{
|
||||
PORTD = data[d];
|
||||
202: 1e 96 adiw r26, 0x0e ; 14
|
||||
204: 2c 91 ld r18, X
|
||||
206: 1e 97 sbiw r26, 0x0e ; 14
|
||||
208: 22 bb out 0x12, r18 ; 18
|
||||
20a: f2 cf rjmp .-28 ; 0x1f0 <opgave3+0xe>
|
||||
count--;
|
||||
}
|
||||
|
||||
if(count > 15)
|
||||
display(14);
|
||||
else if(count < 0)
|
||||
20c: 99 23 and r25, r25
|
||||
20e: 2c f4 brge .+10 ; 0x21a <opgave3+0x38>
|
||||
display(count);
|
||||
}
|
||||
}
|
||||
void display(int d)
|
||||
{
|
||||
PORTD = data[d];
|
||||
210: 1e 96 adiw r26, 0x0e ; 14
|
||||
212: 2c 91 ld r18, X
|
||||
214: 1e 97 sbiw r26, 0x0e ; 14
|
||||
216: 22 bb out 0x12, r18 ; 18
|
||||
218: eb cf rjmp .-42 ; 0x1f0 <opgave3+0xe>
|
||||
21a: fc 01 movw r30, r24
|
||||
21c: e0 50 subi r30, 0x00 ; 0
|
||||
21e: ff 4f sbci r31, 0xFF ; 255
|
||||
220: 20 81 ld r18, Z
|
||||
222: 22 bb out 0x12, r18 ; 18
|
||||
224: e5 cf rjmp .-54 ; 0x1f0 <opgave3+0xe>
|
||||
|
||||
00000226 <main>:
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
//powerpointOpg();
|
||||
//opgave2();
|
||||
opgave3();
|
||||
226: dd df rcall .-70 ; 0x1e2 <opgave3>
|
||||
|
||||
00000228 <_exit>:
|
||||
228: f8 94 cli
|
||||
|
||||
0000022a <__stop_program>:
|
||||
22a: ff cf rjmp .-2 ; 0x22a <__stop_program>
|
||||
@@ -0,0 +1,479 @@
|
||||
Archive member included to satisfy reference by file (symbol)
|
||||
|
||||
c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o (exit)
|
||||
c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
main.o (__do_copy_data)
|
||||
c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
main.o (__do_clear_bss)
|
||||
|
||||
Allocating common symbols
|
||||
Common symbol size file
|
||||
|
||||
opdr 0x2 main.o
|
||||
|
||||
Discarded input sections
|
||||
|
||||
.data 0x00000000 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
.bss 0x00000000 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
.text 0x00000000 0x0 main.o
|
||||
.data 0x00000000 0x0 main.o
|
||||
.bss 0x00000000 0x0 main.o
|
||||
.text.wait 0x00000000 0x22 main.o
|
||||
.text.powerpointOpg
|
||||
0x00000000 0x38 main.o
|
||||
.text.opgave2 0x00000000 0x34 main.o
|
||||
.text.display 0x00000000 0xc main.o
|
||||
.text 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.data 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.bss 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.mul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.div
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.prologue
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.builtins
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.fmul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text.libgcc.fixed
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
.text 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.data 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.bss 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.mul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.div
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.prologue
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.builtins
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.fmul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text.libgcc.fixed
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
.text 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.data 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.bss 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.mul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.div
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.prologue
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.builtins
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.fmul
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
.text.libgcc.fixed
|
||||
0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
|
||||
Memory Configuration
|
||||
|
||||
Name Origin Length Attributes
|
||||
text 0x00000000 0x00020000 xr
|
||||
data 0x00800100 0x0000ff00 rw !x
|
||||
eeprom 0x00810000 0x00010000 rw !x
|
||||
fuse 0x00820000 0x00000400 rw !x
|
||||
lock 0x00830000 0x00000400 rw !x
|
||||
signature 0x00840000 0x00000400 rw !x
|
||||
user_signatures 0x00850000 0x00000400 rw !x
|
||||
*default* 0x00000000 0xffffffff
|
||||
|
||||
Linker script and memory map
|
||||
|
||||
Address of section .data set to 0x800100
|
||||
LOAD C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
LOAD main.o
|
||||
START GROUP
|
||||
LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr51\libm.a
|
||||
END GROUP
|
||||
START GROUP
|
||||
LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a
|
||||
LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr51\libm.a
|
||||
LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr51\libc.a
|
||||
LOAD C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51\libatmega128.a
|
||||
END GROUP
|
||||
|
||||
.hash
|
||||
*(.hash)
|
||||
|
||||
.dynsym
|
||||
*(.dynsym)
|
||||
|
||||
.dynstr
|
||||
*(.dynstr)
|
||||
|
||||
.gnu.version
|
||||
*(.gnu.version)
|
||||
|
||||
.gnu.version_d
|
||||
*(.gnu.version_d)
|
||||
|
||||
.gnu.version_r
|
||||
*(.gnu.version_r)
|
||||
|
||||
.rel.init
|
||||
*(.rel.init)
|
||||
|
||||
.rela.init
|
||||
*(.rela.init)
|
||||
|
||||
.rel.text
|
||||
*(.rel.text)
|
||||
*(.rel.text.*)
|
||||
*(.rel.gnu.linkonce.t*)
|
||||
|
||||
.rela.text
|
||||
*(.rela.text)
|
||||
*(.rela.text.*)
|
||||
*(.rela.gnu.linkonce.t*)
|
||||
|
||||
.rel.fini
|
||||
*(.rel.fini)
|
||||
|
||||
.rela.fini
|
||||
*(.rela.fini)
|
||||
|
||||
.rel.rodata
|
||||
*(.rel.rodata)
|
||||
*(.rel.rodata.*)
|
||||
*(.rel.gnu.linkonce.r*)
|
||||
|
||||
.rela.rodata
|
||||
*(.rela.rodata)
|
||||
*(.rela.rodata.*)
|
||||
*(.rela.gnu.linkonce.r*)
|
||||
|
||||
.rel.data
|
||||
*(.rel.data)
|
||||
*(.rel.data.*)
|
||||
*(.rel.gnu.linkonce.d*)
|
||||
|
||||
.rela.data
|
||||
*(.rela.data)
|
||||
*(.rela.data.*)
|
||||
*(.rela.gnu.linkonce.d*)
|
||||
|
||||
.rel.ctors
|
||||
*(.rel.ctors)
|
||||
|
||||
.rela.ctors
|
||||
*(.rela.ctors)
|
||||
|
||||
.rel.dtors
|
||||
*(.rel.dtors)
|
||||
|
||||
.rela.dtors
|
||||
*(.rela.dtors)
|
||||
|
||||
.rel.got
|
||||
*(.rel.got)
|
||||
|
||||
.rela.got
|
||||
*(.rela.got)
|
||||
|
||||
.rel.bss
|
||||
*(.rel.bss)
|
||||
|
||||
.rela.bss
|
||||
*(.rela.bss)
|
||||
|
||||
.rel.plt
|
||||
*(.rel.plt)
|
||||
|
||||
.rela.plt
|
||||
*(.rela.plt)
|
||||
|
||||
.text 0x00000000 0x22c
|
||||
*(.vectors)
|
||||
.vectors 0x00000000 0x8c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
0x00000000 __vector_default
|
||||
0x00000000 __vectors
|
||||
*(.vectors)
|
||||
*(.progmem.gcc*)
|
||||
0x0000008c . = ALIGN (0x2)
|
||||
0x0000008c __trampolines_start = .
|
||||
*(.trampolines)
|
||||
.trampolines 0x0000008c 0x0 linker stubs
|
||||
*(.trampolines*)
|
||||
0x0000008c __trampolines_end = .
|
||||
*(.progmem*)
|
||||
0x0000008c . = ALIGN (0x2)
|
||||
*(.jumptables)
|
||||
*(.jumptables*)
|
||||
*(.lowtext)
|
||||
*(.lowtext*)
|
||||
0x0000008c __ctors_start = .
|
||||
*(.ctors)
|
||||
0x0000008c __ctors_end = .
|
||||
0x0000008c __dtors_start = .
|
||||
*(.dtors)
|
||||
0x0000008c __dtors_end = .
|
||||
SORT(*)(.ctors)
|
||||
SORT(*)(.dtors)
|
||||
*(.init0)
|
||||
.init0 0x0000008c 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
0x0000008c __init
|
||||
*(.init0)
|
||||
*(.init1)
|
||||
*(.init1)
|
||||
*(.init2)
|
||||
.init2 0x0000008c 0xc C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
*(.init2)
|
||||
*(.init3)
|
||||
*(.init3)
|
||||
*(.init4)
|
||||
.init4 0x00000098 0x1a c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_copy_data.o)
|
||||
0x00000098 __do_copy_data
|
||||
.init4 0x000000b2 0x10 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_clear_bss.o)
|
||||
0x000000b2 __do_clear_bss
|
||||
*(.init4)
|
||||
*(.init5)
|
||||
*(.init5)
|
||||
*(.init6)
|
||||
*(.init6)
|
||||
*(.init7)
|
||||
*(.init7)
|
||||
*(.init8)
|
||||
*(.init8)
|
||||
*(.init9)
|
||||
.init9 0x000000c2 0x4 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
*(.init9)
|
||||
*(.text)
|
||||
.text 0x000000c6 0x2 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
0x000000c6 __vector_22
|
||||
0x000000c6 __vector_28
|
||||
0x000000c6 __vector_32
|
||||
0x000000c6 __vector_34
|
||||
0x000000c6 __vector_24
|
||||
0x000000c6 __vector_12
|
||||
0x000000c6 __bad_interrupt
|
||||
0x000000c6 __vector_6
|
||||
0x000000c6 __vector_31
|
||||
0x000000c6 __vector_23
|
||||
0x000000c6 __vector_30
|
||||
0x000000c6 __vector_25
|
||||
0x000000c6 __vector_11
|
||||
0x000000c6 __vector_13
|
||||
0x000000c6 __vector_17
|
||||
0x000000c6 __vector_19
|
||||
0x000000c6 __vector_7
|
||||
0x000000c6 __vector_27
|
||||
0x000000c6 __vector_33
|
||||
0x000000c6 __vector_4
|
||||
0x000000c6 __vector_9
|
||||
0x000000c6 __vector_21
|
||||
0x000000c6 __vector_15
|
||||
0x000000c6 __vector_29
|
||||
0x000000c6 __vector_8
|
||||
0x000000c6 __vector_26
|
||||
0x000000c6 __vector_14
|
||||
0x000000c6 __vector_10
|
||||
0x000000c6 __vector_16
|
||||
0x000000c6 __vector_18
|
||||
0x000000c6 __vector_20
|
||||
0x000000c8 . = ALIGN (0x2)
|
||||
*(.text.*)
|
||||
.text.__vector_1
|
||||
0x000000c8 0x16 main.o
|
||||
0x000000c8 __vector_1
|
||||
.text.__vector_5
|
||||
0x000000de 0x24 main.o
|
||||
0x000000de __vector_5
|
||||
.text.shift 0x00000102 0x28 main.o
|
||||
0x00000102 shift
|
||||
.text.__vector_2
|
||||
0x0000012a 0x66 main.o
|
||||
0x0000012a __vector_2
|
||||
.text.__vector_3
|
||||
0x00000190 0x52 main.o
|
||||
0x00000190 __vector_3
|
||||
.text.opgave3 0x000001e2 0x44 main.o
|
||||
0x000001e2 opgave3
|
||||
.text.main 0x00000226 0x2 main.o
|
||||
0x00000226 main
|
||||
0x00000228 . = ALIGN (0x2)
|
||||
*(.fini9)
|
||||
.fini9 0x00000228 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
0x00000228 _exit
|
||||
0x00000228 exit
|
||||
*(.fini9)
|
||||
*(.fini8)
|
||||
*(.fini8)
|
||||
*(.fini7)
|
||||
*(.fini7)
|
||||
*(.fini6)
|
||||
*(.fini6)
|
||||
*(.fini5)
|
||||
*(.fini5)
|
||||
*(.fini4)
|
||||
*(.fini4)
|
||||
*(.fini3)
|
||||
*(.fini3)
|
||||
*(.fini2)
|
||||
*(.fini2)
|
||||
*(.fini1)
|
||||
*(.fini1)
|
||||
*(.fini0)
|
||||
.fini0 0x00000228 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avr51\libgcc.a(_exit.o)
|
||||
*(.fini0)
|
||||
0x0000022c _etext = .
|
||||
|
||||
.data 0x00800100 0x10 load address 0x0000022c
|
||||
0x00800100 PROVIDE (__data_start, .)
|
||||
*(.data)
|
||||
*(.data*)
|
||||
.data.data 0x00800100 0x10 main.o
|
||||
0x00800100 data
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
*(.gnu.linkonce.d*)
|
||||
0x00800110 . = ALIGN (0x2)
|
||||
0x00800110 _edata = .
|
||||
0x00800110 PROVIDE (__data_end, .)
|
||||
|
||||
.bss 0x00800110 0x2
|
||||
0x00800110 PROVIDE (__bss_start, .)
|
||||
*(.bss)
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
COMMON 0x00800110 0x2 main.o
|
||||
0x00800110 opdr
|
||||
0x00800112 PROVIDE (__bss_end, .)
|
||||
0x0000022c __data_load_start = LOADADDR (.data)
|
||||
0x0000023c __data_load_end = (__data_load_start + SIZEOF (.data))
|
||||
|
||||
.noinit 0x00800112 0x0
|
||||
0x00800112 PROVIDE (__noinit_start, .)
|
||||
*(.noinit*)
|
||||
0x00800112 PROVIDE (__noinit_end, .)
|
||||
0x00800112 _end = .
|
||||
0x00800112 PROVIDE (__heap_start, .)
|
||||
|
||||
.eeprom 0x00810000 0x0
|
||||
*(.eeprom*)
|
||||
0x00810000 __eeprom_end = .
|
||||
|
||||
.fuse
|
||||
*(.fuse)
|
||||
*(.lfuse)
|
||||
*(.hfuse)
|
||||
*(.efuse)
|
||||
|
||||
.lock
|
||||
*(.lock*)
|
||||
|
||||
.signature
|
||||
*(.signature*)
|
||||
|
||||
.user_signatures
|
||||
*(.user_signatures*)
|
||||
|
||||
.stab
|
||||
*(.stab)
|
||||
|
||||
.stabstr
|
||||
*(.stabstr)
|
||||
|
||||
.stab.excl
|
||||
*(.stab.excl)
|
||||
|
||||
.stab.exclstr
|
||||
*(.stab.exclstr)
|
||||
|
||||
.stab.index
|
||||
*(.stab.index)
|
||||
|
||||
.stab.indexstr
|
||||
*(.stab.indexstr)
|
||||
|
||||
.comment 0x00000000 0x30
|
||||
*(.comment)
|
||||
.comment 0x00000000 0x30 main.o
|
||||
0x31 (size before relaxing)
|
||||
|
||||
.note.gnu.avr.deviceinfo
|
||||
0x00000000 0x3c
|
||||
.note.gnu.avr.deviceinfo
|
||||
0x00000000 0x3c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/gcc/dev/atmega128/avr51/crtatmega128.o
|
||||
|
||||
.note.gnu.build-id
|
||||
*(.note.gnu.build-id)
|
||||
|
||||
.debug
|
||||
*(.debug)
|
||||
|
||||
.line
|
||||
*(.line)
|
||||
|
||||
.debug_srcinfo
|
||||
*(.debug_srcinfo)
|
||||
|
||||
.debug_sfnames
|
||||
*(.debug_sfnames)
|
||||
|
||||
.debug_aranges 0x00000000 0x70
|
||||
*(.debug_aranges)
|
||||
.debug_aranges
|
||||
0x00000000 0x70 main.o
|
||||
|
||||
.debug_pubnames
|
||||
*(.debug_pubnames)
|
||||
|
||||
.debug_info 0x00000000 0x3fb
|
||||
*(.debug_info .gnu.linkonce.wi.*)
|
||||
.debug_info 0x00000000 0x3fb main.o
|
||||
|
||||
.debug_abbrev 0x00000000 0x216
|
||||
*(.debug_abbrev)
|
||||
.debug_abbrev 0x00000000 0x216 main.o
|
||||
|
||||
.debug_line 0x00000000 0x303
|
||||
*(.debug_line .debug_line.* .debug_line_end)
|
||||
.debug_line 0x00000000 0x303 main.o
|
||||
|
||||
.debug_frame 0x00000000 0x174
|
||||
*(.debug_frame)
|
||||
.debug_frame 0x00000000 0x174 main.o
|
||||
|
||||
.debug_str 0x00000000 0x1f8
|
||||
*(.debug_str)
|
||||
.debug_str 0x00000000 0x1f8 main.o
|
||||
0x231 (size before relaxing)
|
||||
|
||||
.debug_loc 0x00000000 0x346
|
||||
*(.debug_loc)
|
||||
.debug_loc 0x00000000 0x346 main.o
|
||||
|
||||
.debug_macinfo
|
||||
*(.debug_macinfo)
|
||||
|
||||
.debug_weaknames
|
||||
*(.debug_weaknames)
|
||||
|
||||
.debug_funcnames
|
||||
*(.debug_funcnames)
|
||||
|
||||
.debug_typenames
|
||||
*(.debug_typenames)
|
||||
|
||||
.debug_varnames
|
||||
*(.debug_varnames)
|
||||
|
||||
.debug_pubtypes
|
||||
*(.debug_pubtypes)
|
||||
|
||||
.debug_ranges 0x00000000 0x78
|
||||
*(.debug_ranges)
|
||||
.debug_ranges 0x00000000 0x78 main.o
|
||||
|
||||
.debug_macro
|
||||
*(.debug_macro)
|
||||
OUTPUT(MIC-Week2.elf elf32-avr)
|
||||
LOAD linker stubs
|
||||
@@ -0,0 +1,38 @@
|
||||
S01100004D49432D5765656B322E737265634F
|
||||
S113000045C0000061C0000090C00000C1C00000F5
|
||||
S11300105AC0000064C0000056C0000054C0000074
|
||||
S113002052C0000050C000004EC000004CC0000090
|
||||
S11300304AC0000048C0000046C0000044C00000A0
|
||||
S113004042C0000040C000003EC000003CC00000B0
|
||||
S11300503AC0000038C0000036C0000034C00000C0
|
||||
S113006032C0000030C000002EC000002CC00000D0
|
||||
S11300702AC0000028C0000026C0000024C00000E0
|
||||
S113008022C0000020C000001EC0000011241FBEBA
|
||||
S1130090CFEFD0E1DEBFCDBF11E0A0E0B1E0ECE2F4
|
||||
S11300A0F2E000E00BBF02C007900D92A031B1074F
|
||||
S11300B0D9F721E0A0E1B1E001C01D92A231B2075D
|
||||
S11300C0E1F7B1D0B1C09CCF1F920F920FB60F923F
|
||||
S11300D01124959A0F900FBE0F901F9018951F92A0
|
||||
S11300E00F920FB60F9211248F939F9393B181E0D7
|
||||
S11300F0892783B99F918F910F900FBE0F901F9006
|
||||
S11301001895892B21F085B3869585BB03C085B3EB
|
||||
S1130110880F85BBAF9B03C081E085BB089585B381
|
||||
S1130120811102C080E885BB08951F920F920FB61B
|
||||
S11301300F9211240BB60F922F933F934F935F931B
|
||||
S11301406F937F938F939F93AF93BF93EF93FF939B
|
||||
S11301508091100190911101009711F4959805C0B8
|
||||
S1130160019719F481E090E0CCDFFF91EF91BF910A
|
||||
S1130170AF919F918F917F916F915F914F913F913B
|
||||
S11301802F910F900BBE0F900FBE0F901F901895DC
|
||||
S11301901F920F920FB60F9211240BB60F922F934A
|
||||
S11301A03F934F935F936F937F938F939F93AF93FB
|
||||
S11301B0BF93EF93FF9380E090E0A3DFFF91EF9173
|
||||
S11301C0BF91AF919F918F917F916F915F914F916B
|
||||
S11301D03F912F910F900BBE0F900FBE0F901F9069
|
||||
S11301E0189514BA8FEF81BB80E090E0A0E0B1E0F5
|
||||
S11301F023B3213011F4019601C023B3803191055A
|
||||
S11302002CF01E962C911E9722BBF2CF99232CF42E
|
||||
S11302101E962C911E9722BBEBCFFC01E050FF4FA2
|
||||
S10F0220208122BBE5CFDDDFF894FFCF86
|
||||
S113022C3F065B4F666D7D077F6F777C395E797116
|
||||
S9030000FC
|
||||
@@ -0,0 +1,129 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL := cmd.exe
|
||||
RM := rm -rf
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
PROJ :=
|
||||
|
||||
O_SRCS :=
|
||||
C_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
ASM_SRCS :=
|
||||
PREPROCESSING_SRCS :=
|
||||
OBJS :=
|
||||
OBJS_AS_ARGS :=
|
||||
C_DEPS :=
|
||||
C_DEPS_AS_ARGS :=
|
||||
EXECUTABLES :=
|
||||
OUTPUT_FILE_PATH :=
|
||||
OUTPUT_FILE_PATH_AS_ARGS :=
|
||||
AVR_APP_PATH :=$$$AVR_APP_PATH$$$
|
||||
QUOTE := "
|
||||
ADDITIONAL_DEPENDENCIES:=
|
||||
OUTPUT_FILE_DEP:=
|
||||
LIB_DEP:=
|
||||
LINKER_SCRIPT_DEP:=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS :=
|
||||
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../main.c
|
||||
|
||||
|
||||
PREPROCESSING_SRCS +=
|
||||
|
||||
|
||||
ASM_SRCS +=
|
||||
|
||||
|
||||
OBJS += \
|
||||
main.o
|
||||
|
||||
OBJS_AS_ARGS += \
|
||||
main.o
|
||||
|
||||
C_DEPS += \
|
||||
main.d
|
||||
|
||||
C_DEPS_AS_ARGS += \
|
||||
main.d
|
||||
|
||||
OUTPUT_FILE_PATH +=MIC-Week2.elf
|
||||
|
||||
OUTPUT_FILE_PATH_AS_ARGS +=MIC-Week2.elf
|
||||
|
||||
ADDITIONAL_DEPENDENCIES:=
|
||||
|
||||
OUTPUT_FILE_DEP:= ./makedep.mk
|
||||
|
||||
LIB_DEP+=
|
||||
|
||||
LINKER_SCRIPT_DEP+=
|
||||
|
||||
|
||||
# AVR32/GNU C Compiler
|
||||
|
||||
|
||||
|
||||
./%.o: .././%.c
|
||||
@echo Building file: $<
|
||||
@echo Invoking: AVR/GNU C Compiler : 4.9.2
|
||||
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -g2 -Wall -mmcu=atmega128 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\gcc\dev\atmega128" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
|
||||
@echo Finished building: $<
|
||||
|
||||
|
||||
|
||||
|
||||
# AVR32/GNU Preprocessing Assembler
|
||||
|
||||
|
||||
|
||||
# AVR32/GNU Assembler
|
||||
|
||||
|
||||
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES)
|
||||
|
||||
$(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP) $(LINKER_SCRIPT_DEP)
|
||||
@echo Building target: $@
|
||||
@echo Invoking: AVR/GNU Linker : 4.9.2
|
||||
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="MIC-Week2.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mrelax -mmcu=atmega128 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\gcc\dev\atmega128"
|
||||
@echo Finished building target: $@
|
||||
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "MIC-Week2.elf" "MIC-Week2.hex"
|
||||
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "MIC-Week2.elf" "MIC-Week2.eep" || exit 0
|
||||
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "MIC-Week2.elf" > "MIC-Week2.lss"
|
||||
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "MIC-Week2.elf" "MIC-Week2.srec"
|
||||
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "MIC-Week2.elf"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(OBJS_AS_ARGS) $(EXECUTABLES)
|
||||
-$(RM) $(C_DEPS_AS_ARGS)
|
||||
rm -rf "MIC-Week2.elf" "MIC-Week2.a" "MIC-Week2.hex" "MIC-Week2.lss" "MIC-Week2.eep" "MIC-Week2.map" "MIC-Week2.srec" "MIC-Week2.usersignatures"
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
main.d main.o: .././main.c \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
|
||||
C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\include/avr/iom128.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay_basic.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\math.h \
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
|
||||
|
||||
C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\include/avr/iom128.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\util\delay_basic.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\math.h:
|
||||
|
||||
c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h:
|
||||
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit or delete the file
|
||||
################################################################################
|
||||
|
||||
main.c
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Store xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="AtmelPackComponentManagement">
|
||||
<ProjectComponents>
|
||||
<ProjectComponent z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
|
||||
<CApiVersion></CApiVersion>
|
||||
<CBundle></CBundle>
|
||||
<CClass>Device</CClass>
|
||||
<CGroup>Startup</CGroup>
|
||||
<CSub></CSub>
|
||||
<CVariant></CVariant>
|
||||
<CVendor>Atmel</CVendor>
|
||||
<CVersion>1.0.0</CVersion>
|
||||
<DefaultRepoPath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs</DefaultRepoPath>
|
||||
<DependentComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
|
||||
<Description></Description>
|
||||
<Files xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||
<d4p1:anyType i:type="FileInfo">
|
||||
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\include</AbsolutePath>
|
||||
<Attribute></Attribute>
|
||||
<Category>include</Category>
|
||||
<Condition>C</Condition>
|
||||
<FileContentHash i:nil="true" />
|
||||
<FileVersion></FileVersion>
|
||||
<Name>include</Name>
|
||||
<SelectString></SelectString>
|
||||
<SourcePath></SourcePath>
|
||||
</d4p1:anyType>
|
||||
<d4p1:anyType i:type="FileInfo">
|
||||
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\include\avr\iom128.h</AbsolutePath>
|
||||
<Attribute></Attribute>
|
||||
<Category>header</Category>
|
||||
<Condition>C</Condition>
|
||||
<FileContentHash>w6TcdtnSFTUbj2H2rTwkDQ==</FileContentHash>
|
||||
<FileVersion></FileVersion>
|
||||
<Name>include/avr/iom128.h</Name>
|
||||
<SelectString></SelectString>
|
||||
<SourcePath></SourcePath>
|
||||
</d4p1:anyType>
|
||||
<d4p1:anyType i:type="FileInfo">
|
||||
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\templates\main.c</AbsolutePath>
|
||||
<Attribute>template</Attribute>
|
||||
<Category>source</Category>
|
||||
<Condition>C Exe</Condition>
|
||||
<FileContentHash>kmG3LJK3C92Gf3pXxH9BGA==</FileContentHash>
|
||||
<FileVersion></FileVersion>
|
||||
<Name>templates/main.c</Name>
|
||||
<SelectString>Main file (.c)</SelectString>
|
||||
<SourcePath></SourcePath>
|
||||
</d4p1:anyType>
|
||||
<d4p1:anyType i:type="FileInfo">
|
||||
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\templates\main.cpp</AbsolutePath>
|
||||
<Attribute>template</Attribute>
|
||||
<Category>source</Category>
|
||||
<Condition>C Exe</Condition>
|
||||
<FileContentHash>YXFphlh0CtZJU+ebktABgQ==</FileContentHash>
|
||||
<FileVersion></FileVersion>
|
||||
<Name>templates/main.cpp</Name>
|
||||
<SelectString>Main file (.cpp)</SelectString>
|
||||
<SourcePath></SourcePath>
|
||||
</d4p1:anyType>
|
||||
<d4p1:anyType i:type="FileInfo">
|
||||
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.0.90\gcc\dev\atmega128</AbsolutePath>
|
||||
<Attribute></Attribute>
|
||||
<Category>libraryPrefix</Category>
|
||||
<Condition>GCC</Condition>
|
||||
<FileContentHash i:nil="true" />
|
||||
<FileVersion></FileVersion>
|
||||
<Name>gcc/dev/atmega128</Name>
|
||||
<SelectString></SelectString>
|
||||
<SourcePath></SourcePath>
|
||||
</d4p1:anyType>
|
||||
</Files>
|
||||
<PackName>ATmega_DFP</PackName>
|
||||
<PackPath>C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.0.90/Atmel.ATmega_DFP.pdsc</PackPath>
|
||||
<PackVersion>1.0.90</PackVersion>
|
||||
<PresentInProject>true</PresentInProject>
|
||||
<ReferenceConditionId>ATmega128</ReferenceConditionId>
|
||||
<RteComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||
<d4p1:string></d4p1:string>
|
||||
</RteComponents>
|
||||
<Status>Resolved</Status>
|
||||
<VersionMode>Fixed</VersionMode>
|
||||
<IsComponentInAtProject>true</IsComponentInAtProject>
|
||||
</ProjectComponent>
|
||||
</ProjectComponents>
|
||||
</Store>
|
||||
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectVersion>7.0</ProjectVersion>
|
||||
<ToolchainName>com.Atmel.AVRGCC8.C</ToolchainName>
|
||||
<ProjectGuid>{d4088b23-c726-4644-ab7e-6702c074a3c4}</ProjectGuid>
|
||||
<avrdevice>ATmega128</avrdevice>
|
||||
<avrdeviceseries>none</avrdeviceseries>
|
||||
<OutputType>Executable</OutputType>
|
||||
<Language>C</Language>
|
||||
<OutputFileName>$(MSBuildProjectName)</OutputFileName>
|
||||
<OutputFileExtension>.elf</OutputFileExtension>
|
||||
<OutputDirectory>$(MSBuildProjectDirectory)\$(Configuration)</OutputDirectory>
|
||||
<AssemblyName>MIC-Week2</AssemblyName>
|
||||
<Name>MIC-Week2</Name>
|
||||
<RootNamespace>MIC-Week2</RootNamespace>
|
||||
<ToolchainFlavour>Native</ToolchainFlavour>
|
||||
<KeepTimersRunning>true</KeepTimersRunning>
|
||||
<OverrideVtor>false</OverrideVtor>
|
||||
<CacheFlash>true</CacheFlash>
|
||||
<ProgFlashFromRam>true</ProgFlashFromRam>
|
||||
<RamSnippetAddress />
|
||||
<UncachedRange />
|
||||
<preserveEEPROM>true</preserveEEPROM>
|
||||
<OverrideVtorValue />
|
||||
<BootSegment>2</BootSegment>
|
||||
<eraseonlaunchrule>1</eraseonlaunchrule>
|
||||
<AsfFrameworkConfig>
|
||||
<framework-data xmlns="">
|
||||
<options />
|
||||
<configurations />
|
||||
<files />
|
||||
<documentation help="" />
|
||||
<offline-documentation help="" />
|
||||
<dependencies>
|
||||
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.28.1" />
|
||||
</dependencies>
|
||||
</framework-data>
|
||||
</AsfFrameworkConfig>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<ToolchainSettings>
|
||||
<AvrGcc>
|
||||
<avrgcc.common.Device>-mmcu=atmega128 -B "%24(PackRepoDir)\atmel\ATmega_DFP\1.0.90\gcc\dev\atmega128"</avrgcc.common.Device>
|
||||
<avrgcc.common.optimization.RelaxBranches>True</avrgcc.common.optimization.RelaxBranches>
|
||||
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
||||
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
||||
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
||||
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
||||
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
|
||||
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcc.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>NDEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.symbols.DefSymbols>
|
||||
<avrgcc.compiler.directories.IncludePaths>
|
||||
<ListValues>
|
||||
<Value>%24(PackRepoDir)\atmel\ATmega_DFP\1.0.90\include</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.directories.IncludePaths>
|
||||
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
|
||||
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
|
||||
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
|
||||
<avrgcc.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
</ListValues>
|
||||
</avrgcc.linker.libraries.Libraries>
|
||||
</AvrGcc>
|
||||
</ToolchainSettings>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<ToolchainSettings>
|
||||
<AvrGcc>
|
||||
<avrgcc.common.Device>-mmcu=atmega128 -B "%24(PackRepoDir)\atmel\ATmega_DFP\1.0.90\gcc\dev\atmega128"</avrgcc.common.Device>
|
||||
<avrgcc.common.optimization.RelaxBranches>True</avrgcc.common.optimization.RelaxBranches>
|
||||
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
||||
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
||||
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
||||
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
||||
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
|
||||
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcc.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>DEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.symbols.DefSymbols>
|
||||
<avrgcc.compiler.directories.IncludePaths>
|
||||
<ListValues>
|
||||
<Value>%24(PackRepoDir)\atmel\ATmega_DFP\1.0.90\include</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.directories.IncludePaths>
|
||||
<avrgcc.compiler.optimization.level>Optimize (-O1)</avrgcc.compiler.optimization.level>
|
||||
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
|
||||
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
|
||||
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
|
||||
<avrgcc.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
</ListValues>
|
||||
</avrgcc.linker.libraries.Libraries>
|
||||
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
|
||||
</AvrGcc>
|
||||
</ToolchainSettings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="main.c">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,225 @@
|
||||
/* ---------------------------------------------------------------------------
|
||||
** This software is in the public domain, furnished "as is", without technical
|
||||
** support, and with no warranty, express or implied, as to its usefulness for
|
||||
** any purpose.
|
||||
**
|
||||
** ioisr.c
|
||||
**
|
||||
** Beschrijving: ISR on PORTD demonstrattion
|
||||
** Target: AVR mcu
|
||||
** Build: avr-gcc -std=c99 -Wall -O3 -mmcu=atmega128 -D F_CPU=8000000UL -c ioisr.c
|
||||
** avr-gcc -g -mmcu=atmega128 -o ioisr.elf ioisr.o
|
||||
** avr-objcopy -O ihex ioisr.elf ioisr.hex
|
||||
** or type 'make'
|
||||
** Author: dkroeske@gmail.com
|
||||
** -------------------------------------------------------------------------*/
|
||||
|
||||
#define F_CPU 8000000UL //CPU op 8MHz
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
int opdr;
|
||||
/******************************************************************/
|
||||
void wait( int ms )
|
||||
/*
|
||||
short: Busy wait number of millisecs
|
||||
inputs: int ms (Number of millisecs to busy wait)
|
||||
outputs:
|
||||
notes: Busy wait, not very accurate. Make sure (external)
|
||||
clock value is set. This is used by _delay_ms inside
|
||||
util/delay.h
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
for (int i=0; i<ms; i++)
|
||||
{
|
||||
_delay_ms( 1 ); // library function (max 30 ms at 8MHz)
|
||||
}
|
||||
}
|
||||
|
||||
char data[16] = { //segment display
|
||||
0b00111111, // 0
|
||||
0b00000110, // 1
|
||||
0b01011011, // 2
|
||||
0b01001111, // 3
|
||||
0b01100110, // 4
|
||||
0b01101101, // 5
|
||||
0b01111101, // 6
|
||||
0b00000111, // 7
|
||||
0b01111111, // 8
|
||||
0b01101111, // 9
|
||||
0b01110111, // A
|
||||
0b01111100, // B
|
||||
0b00111001, // C
|
||||
0b01011110, // D
|
||||
0b01111001, // E
|
||||
0b01110001 // F
|
||||
};
|
||||
|
||||
/******************************************************************/
|
||||
ISR( INT0_vect ) //powerpointopg
|
||||
/*
|
||||
short: ISR INT0
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Set PORTD.5
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
PORTD |= (1<<5);
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
ISR( INT1_vect )
|
||||
{
|
||||
/*
|
||||
short: ISR INT1
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Clear PORTD.5
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
if(opdr==0)
|
||||
{
|
||||
PORTD &= ~(1<<5);
|
||||
}
|
||||
else if(opdr==1)
|
||||
{
|
||||
shift(1);
|
||||
}
|
||||
}
|
||||
|
||||
ISR( INT2_vect ) //powerpointopg
|
||||
/*
|
||||
short: ISR INT4
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Clear PORTD.3
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
shift(0);
|
||||
}
|
||||
|
||||
ISR( INT4_vect ) //powerpointopg
|
||||
/*
|
||||
short: ISR INT4
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Clear PORTD.3
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
PORTE ^= 0x01; //PE0
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
int main( void )
|
||||
/*
|
||||
short: main() loop, entry point of executable
|
||||
inputs:
|
||||
outputs:
|
||||
notes: Slow background task after init ISR
|
||||
Version : DMK, Initial code
|
||||
*******************************************************************/
|
||||
{
|
||||
//powerpointOpg();
|
||||
//opgave2();
|
||||
opgave3();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void powerpointOpg(void)
|
||||
{
|
||||
// Init I/O
|
||||
DDRD = 0xF0; // PORTD(7:4) output, PORTD(3:0) input
|
||||
DDRE = 0x0F; // PORTE(7:4) input, PORTE(3:0) output
|
||||
|
||||
// Init Interrupt hardware
|
||||
EICRA |= 0x0B; // INT1 falling edge, INT0 rising edge
|
||||
EICRB |= 0x02; // INT4 falling edge
|
||||
EIMSK |= 0x13; // Enable INT1 & INT0 & INT4
|
||||
|
||||
|
||||
// Enable global interrupt system
|
||||
//SREG = 0x80; // Of direct via SREG of via wrapper
|
||||
opdr=0;
|
||||
sei();
|
||||
|
||||
|
||||
while (1)
|
||||
{
|
||||
PORTD ^= (1<<7); // Toggle PORTD.7
|
||||
wait( 500 );
|
||||
}
|
||||
}
|
||||
|
||||
void opgave2(void)
|
||||
{
|
||||
DDRD = 0xF0; //PORTD(7:4) output, PORTD(3:0) input
|
||||
DDRC = 0xFF; //PORTC(7:0) output;
|
||||
PORTC= 0x1;
|
||||
|
||||
EICRA |= 0x28; //INT1 en INT2 falling edge
|
||||
EIMSK |= 0x06;
|
||||
opdr=1;
|
||||
sei();
|
||||
|
||||
while(1)
|
||||
{
|
||||
wait(500);
|
||||
}
|
||||
}
|
||||
|
||||
void shift(int i)
|
||||
{
|
||||
|
||||
if(i)
|
||||
PORTC = (PORTC>>1);
|
||||
else
|
||||
PORTC = (PORTC<<1);
|
||||
|
||||
//Als het looplicht aan het einde is
|
||||
if (PORTC >= 0x80)
|
||||
{
|
||||
PORTC= 0x01;
|
||||
}
|
||||
//Als het looplicht aan het begin is
|
||||
else if (PORTC < 0x1)
|
||||
{
|
||||
PORTC= 0x80;
|
||||
}
|
||||
}
|
||||
|
||||
void opgave3()
|
||||
{
|
||||
DDRC = 0x00;
|
||||
DDRD = 0xFF;
|
||||
|
||||
int count = 0;
|
||||
|
||||
while(1)
|
||||
{
|
||||
if(0b00000001 & PINC == 0b00000001)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
else if(0b00000010 & PINC == 0b00000010)
|
||||
{
|
||||
count--;
|
||||
}
|
||||
|
||||
if(count > 15)
|
||||
display(14);
|
||||
else if(count < 0)
|
||||
display(14);
|
||||
else
|
||||
display(count);
|
||||
}
|
||||
}
|
||||
void display(int d)
|
||||
{
|
||||
PORTD = data[d];
|
||||
}
|
||||
Reference in New Issue
Block a user