Pages: [1]   Go Down
Author Topic: Frequency Division Question  (Read 314 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2487
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. 
Logged

Pages: [1]   Go Up
Jump to: