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.

CCS/LAUNCHXL-F28379D: LAUNCHXL-F28379D

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

// 1 second Period (in uSeconds)

configCPUTimer(CPUTIMER0_BASE, DEVICE_SYSCLK_FREQ, 1000000);

// configCPUTimer - This function initializes the selected timer to the
// period specified by the "freq" and "period" parameters. The "freq" is
// entered as Hz and the period in uSeconds. The timer is held in the stopped
// state after configuration.
//
void
configCPUTimer(uint32_t cpuTimer, float freq, float period)
{
uint32_t temp;

//
// Initialize timer period:
//
temp = (uint32_t)(freq / 1000000 * period);

}

they say that this is 1 second delay can any body prove that this equal to 1 second.

Thanks in advance.

  • Jamshid,

    Have you tried running the example and observing the delay in the watch expressions window? If you're interested you can toggle and LED to observe the delay. See the examples in C2000Ware. Additionally, if you look in the contents of the configCPUTimer() function, you will observe the calculation of the period by converting the freq.

    Regards,

    Ozino