P
Pieter
Guest
Hi,
I hope anybody can solve my problem, i tried all many things to solve
it.
I've got the following problem:
In a vhdl design i implemented a DCM to make sure that a clock signal
is always 50% duty cycle at the output, so I thought that this would
be the easiest with a DCM, because it has an built in duty cycle
correction.
The major problem is that the input clock is variable between 40MHz
and 160MHz,
because I is used in an PC monitor with DVI input.
So everytime the frequency chances I will reset the DCM, at first I
worked very well
but sometime the output clock is not the same as the input clock. To
solve this I
wrote some code that counts some pulse from the incoming and the
outgoing clock.
Than I compare the two counters, if the difference is not so much
(between 1 or 5) then
the output is ok. This solve already a big problem that I had with the
DCM.
But now I see that sometimes the input and the output clock are
sometimes
not in phase and because of this I get now image on the screen or it
is wrong. You've got to "reload"
the signal and then the image appears or is it corrected. I already
tried to also reset
with the locked signal, but then I really don't works or is may clock
output from the DCM very strange.
A smaller thing, how higher the clock input is how smaller the output
signal comes, so at 160MHz
is maybe 500Mv from min to max. This stays the same if I change to the
HIGH mode.
Hope that someone nows how to solve it, of have a small tip for me
that would be very welcome
Thanks already
Greets
Pieter
I hope anybody can solve my problem, i tried all many things to solve
it.
I've got the following problem:
In a vhdl design i implemented a DCM to make sure that a clock signal
is always 50% duty cycle at the output, so I thought that this would
be the easiest with a DCM, because it has an built in duty cycle
correction.
The major problem is that the input clock is variable between 40MHz
and 160MHz,
because I is used in an PC monitor with DVI input.
So everytime the frequency chances I will reset the DCM, at first I
worked very well
but sometime the output clock is not the same as the input clock. To
solve this I
wrote some code that counts some pulse from the incoming and the
outgoing clock.
Than I compare the two counters, if the difference is not so much
(between 1 or 5) then
the output is ok. This solve already a big problem that I had with the
DCM.
But now I see that sometimes the input and the output clock are
sometimes
not in phase and because of this I get now image on the screen or it
is wrong. You've got to "reload"
the signal and then the image appears or is it corrected. I already
tried to also reset
with the locked signal, but then I really don't works or is may clock
output from the DCM very strange.
A smaller thing, how higher the clock input is how smaller the output
signal comes, so at 160MHz
is maybe 500Mv from min to max. This stays the same if I change to the
HIGH mode.
Hope that someone nows how to solve it, of have a small tip for me
that would be very welcome
Thanks already
Greets
Pieter