Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 5 (10 points) Consider the code fragment below. The func tion uint32_t

ID: 3349183 • Letter: Q

Question

Question 5 (10 points) Consider the code fragment below. The func tion uint32_t ysctlclockGet (void) is a TivaWare function which returns the current clock frequency of the processor. . Here the 32-bit variable ui32SysCikFreq gets the system clock frequency in Hz. uint32_t ui32SysClkFreq 16MHZ I SYSCTI_OSc MAIN) u132SysClkFreq= SysCticlockGet( ); SysCt1Delay (ui32sysclkFreq) 1) After the execution of the code fragment, the system clock frequency is Hz. A. 10 MHz B. 16 MH:z C. 20 MHz D. 40 MHz 2) In this code fragment, the SysCtlDelay function generates delay. A. 1 s B. 3 s C. 5 s D. 6 s

Explanation / Answer

There is not much to explain. Answers are guided by the standard syntax properties.

1). Function Sysctlclockset sets the processor clock frequency to 16 MHz as wrriten in the syntax. ui32sysclkfreq is a variable that gets assigned the processor clock frequency i.e 16 MHz

2)SysCtlDelay function generates a delay of 3 seconds with the given standard syntax. If it has to generate a delay of 1 sec syntax would have been SysCtlDelay (16000000/3).

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote