Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions