AnsweredAssumed Answered

Different Clock Speed on LPC1768 using LPCXpresso

Question asked by Cyrus Vali on Feb 24, 2017
Latest reply on Apr 12, 2017 by LPCX presso support

Hi there

I'm trying to program my LPC1768 board using LPCXpresso IDE

But i have a trouble building a code that uses delay function

I built a program with KEIL with CPU clock speed of 100MHz

the function delay for 1 ms is as follows:


void delayms (void) {

int i=25000;



This was built and ran perfectly using KEIL IDE

But when i built the same code on LPCXpresso i get 1.75ms of delay and not 1ms!

The system configuration file is identical on both IDEs (system_17xx.c) and Clock is set to 100MHz


What could be the cause of the problem?

Is there anything to be changed in the startup file? (cr_startup_lpc175x_6x.c)

Thank you