Author Topic: Multiple synchronized divide-by-n clocks  (Read 4753 times)

0 Members and 1 Guest are viewing this topic.

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Multiple synchronized divide-by-n clocks
« on: July 27, 2016, 07:17:51 am »
What is a good circuit, or cheap IC, for generating div-by-10, div-by-12, and div-by-15, exactly synchronized so there are no unit delay differences? Starting with a 240MHz clock, and wanting 24, 20 and 16 MHz. All duty cycles must be 50% (45-55 is probably ok).
« Last Edit: July 27, 2016, 07:20:47 am by zappedy »
 

Offline RES

  • Regular Contributor
  • *
  • Posts: 109
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #1 on: July 27, 2016, 09:42:44 am »
Think you need to prescale the input frequency down first, and than divide further with  e.g a 74HC4040, because a 74VHC4040 max. frequency is 210MHz. A 74HC90 can divide by odd numbers to get to divide by 15.

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #2 on: July 27, 2016, 02:17:39 pm »
Thanks!

What about the synchronization? (Is it called edge synchronization?)
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: Multiple synchronized divide-by-n clocks
« Reply #3 on: July 27, 2016, 02:31:30 pm »
How exactly are you supposed to synchronize the edges if the clocks all have different frequencies?
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #4 on: July 27, 2016, 02:42:09 pm »
How exactly are you supposed to synchronize the edges if the clocks all have different frequencies?

The frequencies are "related", 16, 20 and 24 MHz divided from the same master clock. So every 10th clock on the 24Mhz, all three would "line up", unless there is differing unit delays involved.

The purpose of these clocks is to synchronize the logic analyzer with the device under inspection.

So I'm asking for a circuit which takes delays into account and produces several clocks that will line up.
« Last Edit: July 27, 2016, 02:50:23 pm by zappedy »
 

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #5 on: July 27, 2016, 02:58:19 pm »
By the way, I'm only looking for a way get "synchronized" 16, 20 and 24MHz clocks with 50% duty cycles. If there is an easier or cheaper way than using a 240MHz master oscillator and dividers, I'm all ears!

I'm hoping to use a spare Raspberry Pi to generate the master clock, and capture the output of one device over USB at the same time. It does not seem to be possible to generate two or three different high frequency divide-by-n clocks using only settings on the RPi, because I think you are limited to grabbing the output from a PLL clock where you can set an integer and fractional divide, but only as one unit. Please correct me if I misunderstood this part.
« Last Edit: July 27, 2016, 03:06:19 pm by zappedy »
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2091
Re: Multiple synchronized divide-by-n clocks
« Reply #6 on: July 27, 2016, 03:26:55 pm »
I would use a 4MHz clock and three PLLs to multiply up to 16, 20 and 24.
 

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #7 on: July 27, 2016, 03:46:21 pm »
I would use a 4MHz clock and three PLLs to multiply up to 16, 20 and 24.

But the PLLs are analog, how will the edges line up?
 

Offline Kilrah

  • Supporter
  • ****
  • Posts: 1852
  • Country: ch
Re: Multiple synchronized divide-by-n clocks
« Reply #8 on: July 27, 2016, 03:57:32 pm »
PLL stands for "Phase Locked Loop" - keeping phase in the desired relation is its very job.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3386
  • Country: us
 
The following users thanked this post: zappedy

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #10 on: July 27, 2016, 06:13:51 pm »
PLL stands for "Phase Locked Loop" - keeping phase in the desired relation is its very job.
Doh!
 

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Multiple synchronized divide-by-n clocks
« Reply #11 on: July 27, 2016, 06:19:15 pm »
All duty cycles must be 50% (45-55 is probably ok).
To get this use the output of a FF and 2x input.
Ratio will be change output high specification vs change output low specification of FF.
wanting 24, 20 and 16 MHz.
So 48,40,32 as clocks.
exactly synchronized so there are no unit delay differences
To get synchronized, you need to know when to sync or reset all counters at same time.
In a digital system you are limited to add/remove 1/2 cycle of master clock as correction.

The purpose of these clocks is to synchronize the logic analyzer with the device under inspection.
You still need a phase lock to device under inspection.
You will need to phase lock to device clock or replace device clock.
 
The following users thanked this post: zappedy

Offline zappedyTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: 00
Re: Multiple synchronized divide-by-n clocks
« Reply #12 on: July 27, 2016, 06:20:09 pm »
Adafruit Si5351A Clock Generator Breakout Board
Looks perfect! However, shipping to my country is $30, and then customs will be at least another $15, kind of steep for an $8 board...

I am still interested in a discrete design, but also anything you can do with the Raspberry Pi. Come to think of it, some of the Microchip PICs have multiple programmable PLLs. Got to go check my good-to-have drawer.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3386
  • Country: us
Re: Multiple synchronized divide-by-n clocks
« Reply #13 on: July 27, 2016, 07:04:59 pm »
So find a similar board available in your own mysterious country  :-//
 
The following users thanked this post: Kilrah


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf