Go Down

Topic: Frequency Division Question (Read 648 times) previous topic - next topic

Helghast-Engineer

Hello all,

I'm relatively new to Arduino, but learning fairly quickly.  I was wondering if it is possible to take an input logic signal, and divide it's frequency down.  My desire is to divide the frequency down by a factor of 100.  The input frequency can be as high as 1MHz. 

Any help is appreciated, thank you.

Magician

Timer 0 and Timer 1 could be configured to have external clock at pin T0 and T1.  Than you set Output Compare register to specific division value, and trigger a pin on compare match.
Time to dig into data sheet... Division up to 256 with 8-bit Timer0, 65536 with 16-bit Timer1, and there is a way to "cascade" all 3 timers to get 32-bit division coefficient. 

Go Up