Question: 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

 3. [15 points] For this SysTick busy-wait delay function, like in

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

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!