Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Consider the following program that calls the Init PortB function from Question 1. The program asserts a sequence of values onto Port B to
2. Consider the following program that calls the Init PortB function from Question 1. The program asserts a sequence of values onto Port B to flash a pattern onto the LED matrix. When this is done fast enough, the human eyes do not notice any flicker, but see the full image instead. Note: DelayIms is a 1 mili-second delay function that does not affect the CPU registers Start BL Init PortB LDR RO, GPIO PORTB DATA R MOV R1, #0x86 MOV R2 , #0xd9 MOV R3, #0xBF MOV R4, #0x79 Function from 1 PBO PB1 PB2 loop PB4 PB5 PB6 PB7 STR R1, [RO] BL Delaylms A: which LEDs are on now? STR R2, [RO] BL Delaylms B Which LEDs are on now? STR R3, [RO] BL Delaylms C: which LEDs are on now? STR R4, [R0] BL Delaylms D Which LEDs are on now? B loop 20 points] Analyze this program, and determine which LEDs are ON at the indicated points in the program (points A, B, c, and D above). Use the letter naming convention shown, and circle the LEDs that are lit at any point in the program. K L M N O PYR 2. Consider the following program that calls the Init PortB function from Question 1. The program asserts a sequence of values onto Port B to flash a pattern onto the LED matrix. When this is done fast enough, the human eyes do not notice any flicker, but see the full image instead. Note: DelayIms is a 1 mili-second delay function that does not affect the CPU registers Start BL Init PortB LDR RO, GPIO PORTB DATA R MOV R1, #0x86 MOV R2 , #0xd9 MOV R3, #0xBF MOV R4, #0x79 Function from 1 PBO PB1 PB2 loop PB4 PB5 PB6 PB7 STR R1, [RO] BL Delaylms A: which LEDs are on now? STR R2, [RO] BL Delaylms B Which LEDs are on now? STR R3, [RO] BL Delaylms C: which LEDs are on now? STR R4, [R0] BL Delaylms D Which LEDs are on now? B loop 20 points] Analyze this program, and determine which LEDs are ON at the indicated points in the program (points A, B, c, and D above). Use the letter naming convention shown, and circle the LEDs that are lit at any point in the program. K L M N O PYR
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started