Question: undefined Q.2 a. A 3x3 matrix data is to be stored in an SRAM of ATmega32 microcontroller. The data is fed horizontally (left to right

undefined Q.2 a. A 3x3 matrix data is to be stored inundefined

Q.2 a. A 3x3 matrix data is to be stored in an SRAM of ATmega32 microcontroller. The data is fed horizontally (left to right - refer Figure Q.2) to PORTD starting from the first row of the matrix. By using a loop, write a program that stores the data from address location $0060. [The pull-up resistors of input PORTD are enabled] (6 marks) 1411 412 413 021 022 La31 a32 a331 Figure Q.2 023 (Use the following template to write your program) include "m32def.inc 0 jmp start .org .def count=r16 // use it as a counter def temp = r17 .org $2A .equ cell = 9 start: // (Your program starts here) .dseg data: db 1 b. Write a program that transposes the stored 3x3 matrix data in part (a) and then store the transposed data from address location $0060. The program must use a loop and stack to transpose and to store the data. [You can continue writing the code from part (a)] Q.2 a. A 3x3 matrix data is to be stored in an SRAM of ATmega32 microcontroller. The data is fed horizontally (left to right - refer Figure Q.2) to PORTD starting from the first row of the matrix. By using a loop, write a program that stores the data from address location $0060. [The pull-up resistors of input PORTD are enabled] (6 marks) 1411 412 413 021 022 La31 a32 a331 Figure Q.2 023 (Use the following template to write your program) include "m32def.inc 0 jmp start .org .def count=r16 // use it as a counter def temp = r17 .org $2A .equ cell = 9 start: // (Your program starts here) .dseg data: db 1 b. Write a program that transposes the stored 3x3 matrix data in part (a) and then store the transposed data from address location $0060. The program must use a loop and stack to transpose and to store the data. [You can continue writing the code from part (a)]

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!