This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432 launchpad(red board) clock

Hi,

I wrote the following code to generate an interrupt using SysTick.The interrupt should arrive at 10ms considering the launchpad clock running at 3Mhz by default.I have not configured the launchpad clock.I am using the default setting on the launchpad board.I get the interrupt at 3ms.Why is the timing going awry.

#include "msp.h"
volatile uint32_t msTicks = 0;
void Sleep(void);

int main(void){
__disable_irq();
SysTick->LOAD = 3333333-1;
SysTick->CTRL = 7;
NVIC_SetPriority(SysTick_IRQn,2);

__enable_irq();
while(1){
Sleep();
}

}

void SysTick_Handler(void){
msTicks++;

}

void Sleep(void){
__wfi();

}

**Attention** This is a public forum