Question: 3 DESIGN AND IMPLEMENTATIONA template project has been created which contains the key generation lookup table and demonstrates how a value can be loaded and

3 DESIGN AND IMPLEMENTATIONA template project has been created which contains the key generation lookup table and demonstrates how a value can be loaded and placed in a register. The template project can be found on the subject Canvas website under Laboratory 1. It is suggested that the template is downloaded to your local hard drive and then the project modified from there. Open the project (keyGeneration.atsln) and ensure that the assembler code is displayed. The required tasks are as follows: a) Once the template project has been opened, load the assembler file keyGeneration.asm by double-clicking the file in the Solution Explorer window. Using the ATmega32A Instruction Set Manual available on the Canvas website, determine the functionality of the provided template. In your laboratory report, provide a summary of the instructions used in the template and determine the clock cycles required to run each instruction. b) In the initial part of this laboratory you can place each digit of your student number into a register using a Data Transfer Instruction. From the Assembler reference manual, determine what instruction can be used to load a single digit of your student number into a register. To simplify the problem, consider the pseudocode segment in Figure 2. Given the template code below, what restrictions are placed on the value of k? Document your findings in your report. You can now begin to develop the code to perform the lookup of a single digit as per the pseudocode in Figure 2. At this stage you will need to demonstrate that the code can transfer sequential bytes (entries) from the table in program memory and place them in a register. In your report, briefly explain how your code functions and place a screenshot of the simulator before, during and after the operation has occurred. c) An algorithm can now be created to extend the generation of the key as described in Figure 1. Rather than iterating through your student number using a loop, load each value of k into a register using a Data Transfer Instruction. Assuming that you are working with 8-bit operations,

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 Programming Questions!