We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
* 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.
Hi,
Thanks for your answers, the time spend in the ISR was bigger than the time unit. So, I changed my approach to use the timer only as a reference of time for the program without interruption. Compared the time of the program shown on Keil with the time of peripheral and saw that the counts were quite different. because i believe that any limitation on the counter. with a tick higher there is not much difference.
bruno