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.
Rookie Frequency Divider Question
-
- Posts: 458
- Joined: Thu Feb 05, 2004 1:01 am
- Location: Minneapolis, MN
- 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
TOK
Gorgon the Caretaker - Character in a childrens TV-show from 1968.
Who is online
Users browsing this forum: No registered users and 89 guests