you can use any timers
but the maximum count you can get is only 65535+1
because the timer is a 16 bit timer
you can use other methods to get your required counts
but if you need exat timimg you should take care
as mentioned, use two timers in loops. which means make a 65535 counts for the counter in the internal loop update the count for the timer in the external loop by 1. and so you'll achieve number of counts larger than 65535 (16 bits)..
as mentioned, use two timers in loops. which means make a 65535 counts for the counter in the internal loop update the count for the timer in the external loop by 1. and so you'll achieve number of counts larger than 65535 (16 bits)..
there is no need for 2 TIMERs to do that... how exactly are you going to increment a TIMER with ... a TIMER INT? you just need a timer and some variable to do the counting of interrupts.
Hi!
You can do this very accurately by using just one timer.
See the complete keil project that is attached. Study the code carefully.
Ask if still not clear about the code.
Regards.