Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SYNC and CLK Generator

Status
Not open for further replies.

cjrathi

Member level 2
Joined
Oct 18, 2012
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,704
Hello All,

I want to generate LRCLK and BCLK signals for testing in one of my project. Requirement is they should be in sync of each other i.e., falling edge of both clocks should be same.

I can use dual IC 555 (LM556) and generate these two clocks in astable mode, but will they be in sync?

Can anyone one suggest some other simple solution, which will not require any programming to be done?

Thanks,
cjrathi
 

Attachments

  • Capture.PNG
    Capture.PNG
    4.6 KB · Views: 50

Hi,

It seems to be an I2S audio interface...

Please start with the specification. You may agree that 0.00% deviation is impossible. There must be any tolerance. This is what you need to take care of.
Then you need to say the ratio: BCLK_frequency/LRCK_frequency

A counter - clocked with BCLK -
and a compare wit a fixed value ( BCLK_frequency/LRCK_frequency -1)
causing a counter reset

.. may do the job.

There will be a small delay between BCLK and LRCK

If you want it even smaller, then use a DFF (D = counter_reset, CLK = BCLK, Q = LRCK). This reduces the the delay by (counter_delay + compare_delay).

If you want it even smaller, then you need have a clock source with 2 x BCLK. Then use two DFF to syncronize BCLK and LRCK.

Usually one uses a CPLD for this. But for sure you may use discrete logic as well.

***
Maybe you can (mis-)use an I2S transmitter to generate these signals.


Klaus
 

depends what you mean by "in synch". Like in synch to a femtosecond, or just repeatably in sych so the rising edges are within say 20 nanoseconds of each other.

The synch pulse you show can be generated by a divide by two circuit (flip flop) counting the clock, and you can enable a single pulse to output on the counter chip or possibly by adding a fast AND gate at the output of the counter. You could add some some capacitive delay to the clock output, to get the clock and synch pulse to match right up.

in other words, use one 555 chip, and one flipflop, and some sort of gate to only output ONE synch pulse when it is wanted.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top