Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. [15 points] For this SysTick busy-wait delay function, like in Lab3, fill in the missing blocks of code to have the SysTick Wait function

image text in transcribed

3. [15 points] For this SysTick busy-wait delay function, like in Lab3, fill in the missing blocks of code to have the SysTick Wait function below delay by 50 micro-seconds. Assume Systick was initialized to use the core clock (which was set to be 80MHz using the PLL), and was enabled -SysTick Delay- Time delay of 50 micro-second using busy wait : Core clock is 80 MHz (12.5 nano-second each tick) i Input: none : Output: none : Modifies: RO, R1, R2 SysTick Wait LDR R1, -NVIC ST RELOAD R STR RO, [R1] : Time to wait LDR R1, -NVIC ST CURRENT R STR R2, [R1] ; Clear CURRENT register LDR R1, -NVIC ST CTRL R SysTick Wait loop R RO, [R1] LD ; read status ; Check COUNT flag BEQ SysTick Wait loop BXLR 3. [15 points] For this SysTick busy-wait delay function, like in Lab3, fill in the missing blocks of code to have the SysTick Wait function below delay by 50 micro-seconds. Assume Systick was initialized to use the core clock (which was set to be 80MHz using the PLL), and was enabled -SysTick Delay- Time delay of 50 micro-second using busy wait : Core clock is 80 MHz (12.5 nano-second each tick) i Input: none : Output: none : Modifies: RO, R1, R2 SysTick Wait LDR R1, -NVIC ST RELOAD R STR RO, [R1] : Time to wait LDR R1, -NVIC ST CURRENT R STR R2, [R1] ; Clear CURRENT register LDR R1, -NVIC ST CTRL R SysTick Wait loop R RO, [R1] LD ; read status ; Check COUNT flag BEQ SysTick Wait loop BXLR

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions