## Rookie Frequency Divider Question

This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
Engineer1138
Posts: 458
Joined: Thu Feb 05, 2004 1:01 am
Location: Minneapolis, MN
Contact:
Since the goal is to multiply the input by 5/8, I'd use an AVR processor and a state machine.
STATE PULSES_IN PULSES_OUT
0 2 1
1 2 1
2 2 1
3 2 2
0 2 1
...

This can be simplified, but that's the basic method.The end goal is to output 5 pulses for every 8 input.

A more sophisticated approach, which will result in smoother output pulses with constant spacing (unlike the above), is to do a software PLL where the output frequency is 5/8ths the input.

VIRAND
Posts: 88
Joined: Tue Aug 23, 2005 1:01 am
Location: New York
Contact:
In other words:

STATE 0 --- 1 --- 2 --- 3
IN- 0101 0101 0101 0101
OUT 0100 0100 0101 0100

IN WAVE _/\_/\_/\_/\_/\_/\_/\_/\
OUT WAVE _/\___/\___/\_/\_/\__

Looks funny but might work.

Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:
You could also solve this with an old eprom and a binary counter. Make a sequence 1609 cycles long and program the eprom to let out 1000 cycles during this sequence and use oneof the outputs to reset the counter on the correct number of cycles. This way you increase the accuracy too.

TOK
Gorgon the Caretaker - Character in a childrens TV-show from 1968.

### Who is online

Users browsing this forum: No registered users and 52 guests