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.

66AK2H14: Porting code from TMS320C6678 to the 66AK2H14

Part Number: 66AK2H14
Other Parts Discussed in Thread: TMS320C6678,

Hello, can code written for the TMS320C6678 be easily ported over to the 66AK2H14?

Here is what I'm trying to run on one ARM core on the H14:

/*****************************************************************************
* Function: Utility function a cycle clock
****************************************************************************/
static uint32_t readTime32(void)
{
uint32_t timeVal;

#if defined (_TMS320C6X)
timeVal = TSCL;
#elif __ARM_ARCH_7A__
__asm__ __volatile__ ("MRC p15, 0, %0, c9, c13, 0\t\n": "=r"(timeVal));
#else
/* M4 specific implementation*/
static uint32_t simuTimer = 0;
simuTimer++;
timeVal = simuTimer;
#endif
return timeVal;
}

/*****************************************************************************
* Function: Utility function to introduce delay 
****************************************************************************/
void cycleDelay (uint32_t count)
{
uint32_t start = (uint32_t)readTime32();

while (((uint32_t)readTime32() - start) < count);
}

It is a simple delay function using a Timer.

Thank you,

Joe