June 28, 2015 at 12:05 pm #13017
with timer in 16 bit mode u can generate max delay of 65 ms aprox.
so u need loop to repeat the process
you set timer to count 50000 to generate delay of 50 ms
then just rotate it for 20 times in for loop so u get 20×50 = 1000 ms = 1 sec