1 micro second time unit LPC2106

Greetings,

I would like to put the timer to interrupt the LPC2106 CPU on a multiple of 1 microseconds. I got success with a range of 1 millisecond, but at intervals of 1 micro the error is very large, about 40%, one has any idea how to shorten this interval?

Best regards

Parents
  • * Have you considered what this will do to your CPU usage? it will be spending most of its time servicing the interrupt. do you have other interrupt sources? do you do important work in your main loop as well?
    * Make sure that your ISR is not longer than the timer interrupt period otherwise you would miss interrupts, or have delays. Again, do note what this will impact your processor availability to do other work.

Reply
  • * Have you considered what this will do to your CPU usage? it will be spending most of its time servicing the interrupt. do you have other interrupt sources? do you do important work in your main loop as well?
    * Make sure that your ISR is not longer than the timer interrupt period otherwise you would miss interrupts, or have delays. Again, do note what this will impact your processor availability to do other work.

Children
More questions in this forum