Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   split frequency (http://www.velocityreviews.com/forums/t23372-split-frequency.html)

 Martin Kokelmann 02-15-2005 01:59 PM

split frequency

hello,

i want to split a frequency.For example:

The clock is given with 3.9152 MHz and as output there have to be 10KHz.

How can I implement it?

From 3.9152 MHz to 1 Hz is no problem.

Is this a attempt?

Martin

 Allan Herriman 02-15-2005 02:50 PM

Re: split frequency

On Tue, 15 Feb 2005 14:59:13 +0100, Martin Kokelmann
<mkokelma@htwm.de> wrote:

>hello,
>
>i want to split a frequency.For example:
>
>The clock is given with 3.9152 MHz and as output there have to be 10KHz.
>
>How can I implement it?
>
> From 3.9152 MHz to 1 Hz is no problem.
>
>Is this a attempt?

Firstly, are you sure you mean 3.9152MHz, and not 4.9152MHz?
4.9152MHz is a common crystal frequency, used for baud rate
generators.

In general, you can divide any frequency down to any lower frequency,
as long as the ratio of the two frequencies isn't an irrational
number.
So, yes, your problem is not difficult to solve.

Performing such a frequency division will result in adding jitter to
the signal. This jitter will have an amplitude that may be as large
as 1 period of the input clock (255ns here).

Can your application tolerate this much jitter?

The coding is trivial. This web page:
http://fractional-divider.tripod.com/
has a script which will write the code for you.

Regards,
Allan

 Jezwold 02-15-2005 07:59 PM

Re: split frequency

You can actualy divide by an approximation of an irrational number by
using whats known as a fractional divider,there are two commonly used
types one is a phase accumulator type the other is a dual modulus type.
IA search on google should help or i have a copy of a perl script and
test bench which makes design easy
Jez(removethis)-smith@lycos.co.uk
if you would like a copy.

 Allan Herriman 02-16-2005 05:10 AM

Re: split frequency

On 15 Feb 2005 11:59:21 -0800, "Jezwold" <edad3000@yahoo.co.uk> wrote:

>You can actualy divide by an approximation of an irrational number by
>using whats known as a fractional divider,there are two commonly used
>types one is a phase accumulator type the other is a dual modulus type.

"approximation of irrational number" = rational number

:)

Allan

 All times are GMT. The time now is 10:35 PM.