Question: Please include full working code, Including any setup code. I have what i think should work, but i keep getting errors for 8.1 I have,

 Please include full working code, Including any setup code. I have

Please include full working code, Including any setup code. I have what i think should work, but i keep getting errors

for 8.1 I have,

LDI r16, 0xFF

OUT DDRA, r16

LDI r16, 0x53

OUT PORTA, r16

I get the errors 'Undefined symbol:DDRA' and Undefined symbol: PORTA'

For 8.2 I have

LDI r16, 0x00

OUT DDRB, r16

IN r20, PINB

With similar errors, I dont know how to 'define' the ports and DDRB/DDRA

The code needs to actually work in the Atmel assembly studio

E8.1 Write an instruction sequence to output the value 0x53 to PORTA. E8.2 Write an instruction sequence to read the value in register r20. voltage levels on PORTB pins and place the E8.1 Write an instruction sequence to output the value 0x53 to PORTA. E8.2 Write an instruction sequence to read the value in register r20. voltage levels on PORTB pins and place the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!