Problem 2: Portion of C code for setting up delays using SysTick Assume that SysTick Initialization has been perfor...
Problem 2: Portion of C code for setting up delays using SysTick Assume that SysTick Initialization has been performed correctly. Study the function below (it was used in Labl) and answer the questions that follow void SysTick_delay (void) NVIC ST RELOAD R-0x3E7F: I/ Load value for 1 ms delay NVIC ST CURRENT R = 0x0; // Clear current and start timer while((NVIC-ST-CTRL-R Ox000 10000) 0)(); // Wait until COUNT flag is & set The crystal Oscillator on the general purpose development board is 16 MHz. a) Show calculations that verify that loading RELOAD register (NVIC ST RELOAD R by Ox3E7F allows for the creation of a 1 ms delay. b) What logic operation(s) įs/are achieved by the line: NVIC-ST CTRL-R & 0x00010000) -0 used in the while loop.
Problem 2: Portion of C code for setting up delays using SysTick Assume that SysTick Initialization has been performed correctly. Study the function below (it was used in Labl) and answer the questions that follow void SysTick_delay (void) NVIC ST RELOAD R-0x3E7F: I/ Load value for 1 ms delay NVIC ST CURRENT R = 0x0; // Clear current and start timer while((NVIC-ST-CTRL-R Ox000 10000) 0)(); // Wait until COUNT flag is & set The crystal Oscillator on the general purpose development board is 16 MHz. a) Show calculations that verify that loading RELOAD register (NVIC ST RELOAD R by Ox3E7F allows for the creation of a 1 ms delay. b) What logic operation(s) įs/are achieved by the line: NVIC-ST CTRL-R & 0x00010000) -0 used in the while loop.