Hi,
I am working with at90 micro and was wondering if i could ask for help on calulating top value for a given frequency.
Freq = 20khz
so Period = 50us
does the formula freq=((prescalar/timer freq)*top value) ring a bell?
the output register is on the 16 bit timer.
I know the top will work out to be 800 but my friend was telling me that you set ICR1 to 400 not 800.
Any ideas?
I am working with at90 micro and was wondering if i could ask for help on calulating top value for a given frequency.
Freq = 20khz
so Period = 50us
does the formula freq=((prescalar/timer freq)*top value) ring a bell?
the output register is on the 16 bit timer.
I know the top will work out to be 800 but my friend was telling me that you set ICR1 to 400 not 800.
Any ideas?