Question: Question 4: 110 points) Data Encryption: You are required to write a program for the AVR 8-bit microcontroller to encrypt 10 byte- wide data values

 Question 4: 110 points) Data Encryption: You are required to write

Question 4: 110 points) Data Encryption: You are required to write a program for the AVR 8-bit microcontroller to encrypt 10 byte- wide data values stored in a memory location starting at address Ox 100. The encrypted data values must be stored in a memory location starting at address 0x200. Wnite a subroutine called ENCR DATA by following the steps (for each data byte value) in the algorithm given below. You must use a loop and access data using indirect addressing mode with post-increment operator. 1. Load data byte value from source location 2. Multiply the data value by 8 3. Invert data value 4. Divide the data value by 4 5. Exchange the upper 4 bits of the data byte with the lower 4 bits 6. Store the encrypted value in target location 7. Repeat steps 1-6 for the remaining bytes Hint Use X and Y registers to point to the source location and target location, respectively Question 4: 110 points) Data Encryption: You are required to write a program for the AVR 8-bit microcontroller to encrypt 10 byte- wide data values stored in a memory location starting at address Ox 100. The encrypted data values must be stored in a memory location starting at address 0x200. Wnite a subroutine called ENCR DATA by following the steps (for each data byte value) in the algorithm given below. You must use a loop and access data using indirect addressing mode with post-increment operator. 1. Load data byte value from source location 2. Multiply the data value by 8 3. Invert data value 4. Divide the data value by 4 5. Exchange the upper 4 bits of the data byte with the lower 4 bits 6. Store the encrypted value in target location 7. Repeat steps 1-6 for the remaining bytes Hint Use X and Y registers to point to the source location and target location, respectively

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!