Hi Sol,
Thanks for your response,
I have LPC183x-Xplorer board, I am working to toggle a GPIO say GPIO0[8] available on header of the development board, I see the frequency at which it is toggling is around 800KHz. I am looking to generate higher frequency in order of mega hertz, is it possible to do that. Below is the sample code I am working on.
int main(void)
{
SystemCoreClockUpdate();
Board_Init();
unsigned int *CLK_M3_GPIO_CFG = (unsigned int *) 0x40051410;
unsigned int *CLK_M3_GPIO_STAT = (unsigned int *) 0x40051414;
DEBUGOUT("System initialized = %d\r\n", Chip_Clock_GetRate(CLK_MX_MXCORE));
DEBUGOUT("GPIO CFG = %d\r\n", *CLK_M3_GPIO_CFG);
DEBUGOUT("GPIO STAT = %d\r\n", *CLK_M3_GPIO_STAT);
while (1) {
Board_LED_Set(3, LedState);
LedState = (bool) !LedState;
//__WFI();
}
}
How do I ensure that GPIO block is running at BASE_M3_CLK and how to attain higher frequency by toggling GPIO