Content originally posted in LPCWare by ex-kayoda on Mon Sep 17 17:30:27 MST 2012
Quote: nelmak
LPC_CT16B0->PR = 0x00; /* set prescaler to zero */
LPC_CT16B0->MR[0] = delay * (SystemCoreClock / 1000 - 1);
Isn't this a 16 bit register? And you are filling it with what :eek:
Better solution is to use prescale register to generate a ms :)