AnsweredAssumed Answered

LPC1313 16-bit timer 0 MR register value

Question asked by prachipanse on Apr 20, 2017
Latest reply on Apr 26, 2017 by jeremyzhou

Hi,

 

I need to set the timer CT16B0 to generate an interrupt every 10ms. The system clock is 12MHz and I am using the prescalar value of 6. I am writing 2000 (4E20h) to the MR0 register (i.e. 10ms * 12MHz / 6).

However, with this I am getting interrupts every 11.6ms instead of 10ms. I have enabled interrupt and timer reset on match 0.

Please suggest to me what may be the issue.

 

Thanks and Regards,

Prachi 

Outcomes