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
