hi all,
On my project, the CPU is set to work at 30MHz. When I do the piece of code below, it takes 5µsec:
-1.5µsec to do the i++
-1.5µsec to toggle the I/O
-2µsec to store the register value
for(i=0; i < 8192; i++)
{
GpioDataRegs.GPASET.bit.GPIO2 = 1;
g_AdcMesure[i] = AdcRegs.ADCRESULT0;
GpioDataRegs.GPACLEAR.bit.GPIO2 = 1;
}
#define DSP28_DIVSEL 3 // Enable /1 for SYSCLKOUT
#define DSP28_PLLCR 0 // PLL is bypassed in this mode
void InitSysCtrl(void)
{
// Disable the watchdog
DisableDog();
// Initialize the PLL control: PLLCR and DIVSEL
InitPll(DSP28_PLLCR,DSP28_DIVSEL);
// Initialize the peripheral clocks
InitPeripheralClocks();
}
It is very very slow, I can t figure out what is going wrong.
thanks a million to anybody 's help,
greg.