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.

MSP432E401Y: Usage of MAP_SysCtlDelay

Part Number: MSP432E401Y

Tool/software:

Hello Team,

With the Simplelink SDK, MAP_SysCtlDelay function does the clock cycle delay.

Can you please tell, what it means to have MAP_SysCtlDelay(1000) when the system clock is 120Mhz?

If i want to give 10ms delay, what is the value that i have to pass inside the MAP_SysCtlDelay function?

What is the formula used here?

Thank you

  • With the Simplelink SDK, MAP_SysCtlDelay function does the clock cycle delay.

    SysCtlDelay a function that simply branches to itself until the number of system clock cycles are counted. This function will take 3 cycles to execute. Therefore, if you specify SysCtlDelay(1) then it will delay by 3 system clock cycles. If you specify SysCtlDelay(120000000) then it will create a 3 seconds delay. If you just want a one second delay you would specify SysCtlDelay(120000000 / 3). If you want 10ms then you will specify SysCtlDelay(120000000 / 100 / 3).