Synchronizing to Prop clocks
steprog
Posts: 227
Hi Guys,
I got a project where Im synchronizing two props over a few feet distance.· Im generating 60MHz + signals for modulating and the same for demodulation a few feet away.· I was thinking of just using props for these clocks, but I need these to be sync up.· Any suggestions?
Thanks, Greg
I got a project where Im synchronizing two props over a few feet distance.· Im generating 60MHz + signals for modulating and the same for demodulation a few feet away.· I was thinking of just using props for these clocks, but I need these to be sync up.· Any suggestions?
Thanks, Greg
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
You might also consider using some kind of self-clocking encoding of the signal (like Manchester encoding) rather than a separate clock and data.
I solved this dilemna by using a 5 MHz crystal on one Prop, then generating a 5 MHz on one pin using a counter mode, and clocking the 2nd Prop on the X1 pin using FDS to communicate between the two Props. Saves a crystal, takes very little code to generate the 5 MHz output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
I can understand that. The crystal drivers can be pretty sensitive to the load given.
FDS is Full Duplex Serial. I didn't have the spare I/Os to communicate in parallel between the two Props. FDS only required 2 I/Os each.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
I don't think it was a loading problem, the track was only 2cm long and when things were running all was well. When the secondary prop was reset, all was well. But when the primary prop was reset the secondary was left clockless for a bit and crashed. I just stiched another rock onto it, and all behaved themselves. As Ale says an external Xtal osc block would have worked ok. I didn't need syncronization, I was just trying to be sneeky/cheep.
I have done these things before on AVRs but of course they do not change their clock modes on reset.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point