Reply by paryanz June 26, 20082008-06-26
Thank you Nils for your advice and direction....
Reply by Vladimir Vassilevsky June 25, 20082008-06-25

Nils wrote:


> > Back to the topic: > > What would you use a clock at one Hz for that can't live with a jitter > of 2 or 4 milliseconds?
There is a whole lot of different applications where you have to synchronize multiple channels. Ranging from pro audio to active beamforming. BTW not too long ago I developed the data acquisition board. This board can be synchronized to the GPS 1pps reference, and/or used as the clock master for the other data ascqusition boards. The short term jitter spec was 1e-8; we actually did about 1e-9. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Reply by Nils June 25, 20082008-06-25
 > The 101 computer science: Lamer must pay.

There are very little real lamers out there but a lot of guys who jus 
don't have the experience..

 > Next question: what is GPIO and how to install the interrupt
 > handler...

Dsp-Bios documentation along with the example codes will tell and teach 
them.

 > You'll get a pretty bad 1Hz reference with the interrupt latency
 > jitter.

That depends...

 >> Assuming that you have GPIO pins free the entire thing will cost
 >> around 500 bytes of code and will have nearly no influence on the
 >> system performance, e.g. it's a free meal.
 >
 > Naive.

Not really.

It depends on what you want to do with the clock, and how many wobble 
and jitter you an tolerate.

Little example from germany:

The 50hz cylce from the power supply has lots of jitter and wobble, but 
over a longer timespan (say a day or two) they are a rock-solid time 
reference.

Same goes to the 18khz pilot-tone for radio FM-modulation.

In germany both frequencies are pll'ed from the DCF77 timebase. That 
means we have a caesium atomic clock as a refernce. Sure - it can be off 
for a second once in a while, but over a week such differences will even 
out.

I'm pretty sure the same is done with such frequencies all over europe 
at last.



Back to the topic:

What would you use a clock at one Hz for that can't live with a jitter 
of 2 or 4 milliseconds?
Reply by Vladimir Vassilevsky June 25, 20082008-06-25

Nils wrote:

> Vladimir Vassilevsky schrieb: > >> >> Here is the specific advice: hire a consultant. In this newsgroup, at >> least ten persons can fix your problem at no time. >> > > VV, greedy again, eh?
The 101 computer science: Lamer must pay.
> Hire a consulatant for such a simple problem?
Don't you see? Explain or not, he will never be able to do that. At least not in a year or so. Want a bet?
> Here's my advice: > > Connect your 10Hz signal to a GPIO pin. Install an interrupt handler + > event for that GPIO pin.
Next question: what is GPIO and how to install the interrupt handler...
> Then inside the interrupt handler: Increment a counter. If you reach 10 > toggle the state of another GPIO pin and reset your counter. > > You'll get a pretty good 1Hz reference that way.
You'll get a pretty bad 1Hz reference with the interrupt latency jitter. Hint: the 6713 timers can be clocked externally.
> Your accuracy is > limited by the interrupt thresold (the guys who take care about the > compiler settings should know).
:))))))
> Assuming that you have GPIO pins free the entire thing will cost around > 500 bytes of code and will have nearly no influence on the system > performance, e.g. it's a free meal.
Naive. VLV
Reply by Nils June 25, 20082008-06-25
Vladimir Vassilevsky schrieb:
> > Here is the specific advice: hire a consultant. In this newsgroup, at > least ten persons can fix your problem at no time. >
VV, greedy again, eh? Hire a consulatant for such a simple problem? Here's my advice: Connect your 10Hz signal to a GPIO pin. Install an interrupt handler + event for that GPIO pin. Then inside the interrupt handler: Increment a counter. If you reach 10 toggle the state of another GPIO pin and reset your counter. You'll get a pretty good 1Hz reference that way. Your accuracy is limited by the interrupt thresold (the guys who take care about the compiler settings should know). Assuming that you have GPIO pins free the entire thing will cost around 500 bytes of code and will have nearly no influence on the system performance, e.g. it's a free meal. Cheers, Nils
Reply by Vladimir Vassilevsky June 25, 20082008-06-25

paryanz wrote:

> In that thread we were not considering the implementation using C6713 or > some kind of DSP processor and the project requirements were not very clear > to me. > > Now I know for sure what hardware I have and what I need to generate, If > you have any specific advice with respect to implementation on a processor > to generate the 1 Hz output with those freqs as a reference input.
Here is the specific advice: hire a consultant. In this newsgroup, at least ten persons can fix your problem at no time.
> I would really appreciate your help.
It depends. How much is the real appreciacion? VLV
Reply by Jerry Avins June 25, 20082008-06-25
paryanz wrote:
> In that thread we were not considering the implementation using C6713 or > some kind of DSP processor and the project requirements were not very clear > to me. > > Now I know for sure what hardware I have and what I need to generate, If > you have any specific advice with respect to implementation on a processor > to generate the 1 Hz output with those freqs as a reference input. I would > really appreciate your help.
I'm not holding back. I know how I would start to do it, but I haven't actually done that task so I have no advice worth giving. My comment about saying what you mean applied to the frequency you cited. When you write 10 Hz accurate to GPS standards, a reader can't know that you might mean 10.01 Hz. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by paryanz June 25, 20082008-06-25
In that thread we were not considering the implementation using C6713 or
some kind of DSP processor and the project requirements were not very clear
to me.

Now I know for sure what hardware I have and what I need to generate, If
you have any specific advice with respect to implementation on a processor
to generate the 1 Hz output with those freqs as a reference input. I would
really appreciate your help.

   Thanks
Reply by Jerry Avins June 25, 20082008-06-25
paryanz wrote:
> A) > > well regarding the divide by 10...... it looks a real good advice....how > do i implement a simple divide by 10 option. It is a freq divider .... it > is like for every 10 pulses as an input we give 1 pulse out ... I could use > some logic gates.... > > B) > > But truly speaking my reference frequencies are going to be any one of the > > following at any given instant not exactly 10Hz > > 16.8634 16.7224 16.6945 13.7552 12.5628 12.5313 12.0627 11.1483 10.4058 10.0604 10.0402 10.01 > > I would have to use a PLL or some kind of logic to get a 1 Hz output by > using the above reference frequency. > > > Does your advice of using a divider network still be good.
No. The posted numbers are familiar. By cross checking with other threads you might have written, it is possible that I would have guessed the answer to my question. I have other advice for you that will always be appropriate: write what you really mean instead of a simplification that you hope your readers will be able to expand. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by paryanz June 25, 20082008-06-25
A) 

well regarding the divide by 10...... it looks a real good advice....how
do i implement a simple divide by 10 option. It is a freq divider .... it
is like for every 10 pulses as an input we give 1 pulse out ... I could use
some logic gates....

B)

But truly speaking my reference frequencies are going to be any one of the

following at any given instant not exactly 10Hz

16.8634	16.7224	16.6945	13.7552	12.5628	12.5313	12.0627	11.1483	10.4058	10.0604	10.0402	10.01

I would have to use a PLL or some kind of logic to get a 1 Hz output by
using the above reference frequency. 


Does your advice of using a divider network still be good.