Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Blinky program using Ti EK-TM4C123GXL. In the first part of main), o set the clock frequency to 80 MHz enable the port for the red

Blinky program using Ti EK-TM4C123GXL.

image text in transcribed

In the first part of main), o set the clock frequency to 80 MHz enable the port for the red and green LEDs (wait for it to be ready) o set the GPIO direction In the second part of main, o set up the switchs (using calls to button.c) set SysTick RELOAD value for a 0.2 s delay enable the SysTek peripheral In the last part of main), create a while(1) do-forever loop turn off all of the LEDs turn on the current LED color o delay for 4 seconds o turn off the current LED color o delay for 4 seconds In mydelayO, you will need to get into the low-level details to poll the SysTick periph eral o using HWREG macro to transfer the reload register value to the count register create a loop to count a 4 second delay based 0.2 second delay ereated by SysTick o use HWREG macro to check the COUNT flag in the SysTick control register In the first part of main), o set the clock frequency to 80 MHz enable the port for the red and green LEDs (wait for it to be ready) o set the GPIO direction In the second part of main, o set up the switchs (using calls to button.c) set SysTick RELOAD value for a 0.2 s delay enable the SysTek peripheral In the last part of main), create a while(1) do-forever loop turn off all of the LEDs turn on the current LED color o delay for 4 seconds o turn off the current LED color o delay for 4 seconds In mydelayO, you will need to get into the low-level details to poll the SysTick periph eral o using HWREG macro to transfer the reload register value to the count register create a loop to count a 4 second delay based 0.2 second delay ereated by SysTick o use HWREG macro to check the COUNT flag in the SysTick control register

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago