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.

LP-MSPM0G3507: Usage of SYSTICk program

Part Number: LP-MSPM0G3507

Hi, Gentleman.

I want to confirm about the uage of SYSTICK.

I wrote the small sample program for comfirm about how to use "DL_SYSTICK _getValue()".

Also set Period of SYSTICK "1000000", and check  "Initialize Period" and "Enable Sustickand Start Counting" in .syscfg file in CCS. 

///////////////////////////////////////////////////////////////
#include "ti_msp_dl_config.h"

uint32_t wdt, wdt2; // Systick timer data

int main(void)
{
SYSCFG_DL_init();

// DL_SYSCTL_enableSleepOnExit();

while (1) {
// __WFI();
DL_Common_delayCycles(200000);
wdt = DL_SYSTICK_getValue();
asm("NOP");
DL_Common_delayCycles(200000);
wdt2 = DL_SYSTICK_getValue();
DL_GPIO_togglePins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN);
asm("NOP");
}
}

///////////////////////////////////////////////////////////////////

I thought that the SYSTICK counter will start  from 0, and increment to 1000000, and return to 0.

But I checked upper program when break and check wdt and wdt2 value. It look like start from 1000000 and decrement counter.

Is it right that the SYSTICK counter is decremant from the initial period, and if counter reach to 0, it will return to 1000000 automatically?

Please advice me.

Kind regards

**Attention** This is a public forum