| |
 |
|
|
Science Forum Index » Electronics - Design Forum » Cascading two 74LS90's doesn't work (needs deglitching)
Page 1 of 3 Goto page 1, 2, 3 Next
|
| Author |
Message |
| Rocky |
Posted: Fri Apr 25, 2008 3:37 am |
|
|
|
Guest
|
Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
I tried placing a single pole passive LPF in series from the div5
output to the CLK input of the 2nd 74LS90 to no avail. It seemed to
result in random periods coming from the outputs of the 2nd 74LS90.
I kept the resistor low enough (a few hundred ohms) so the input
current didn't stuff the logic levels up. And I tried capacitors of
0.1uF, 0.68uF and even 100uF (this 100uF stopped the lines from
toggling altogether !). All the set and preset pins on the 74LS90s
are tied low as required.
So is it possible to deglitch the output of a 74LS90 ?
regards
Peter |
|
|
| Back to top |
|
| Guest |
Posted: Fri Apr 25, 2008 3:46 am |
|
|
|
|
On Apr 25, 9:37 am, Rocky <for...@internode.on.net> wrote:
Quote: Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
I tried placing a single pole passive LPF in series from the div5
output to the CLK input of the 2nd 74LS90 to no avail. It seemed to
result in random periods coming from the outputs of the 2nd 74LS90.
I kept the resistor low enough (a few hundred ohms) so the input
current didn't stuff the logic levels up. And I tried capacitors of
0.1uF, 0.68uF and even 100uF (this 100uF stopped the lines from
toggling altogether !). All the set and preset pins on the 74LS90s
are tied low as required.
So is it possible to deglitch the output of a 74LS90 ?
regards
Peter
You are using more than one IC to do the job of one microcontroller.
Please stop immediately, look around, take your bearings and get with
the millennium.
Thank you. |
|
|
| Back to top |
|
| Guest |
Posted: Fri Apr 25, 2008 7:26 am |
|
|
|
|
On Apr 25, 9:37 am, Rocky <for...@internode.on.net> wrote:
Quote: the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
As others have pointed out the data sheet comment on glitches only
applies to combinatorial functions of the outputs, not a given output
used individually.
However, with a timescale in the minutes you shouldn't need a scope
to tell what your system is doing. Put some LED's on the various Q's
and watch them - see if it's changing state when it shouldn't be.
You might even have to substitute a faster oscillator to speed it up
if you don't want to take all day  |
|
|
| Back to top |
|
| John Fields |
Posted: Fri Apr 25, 2008 9:15 am |
|
|
|
Guest
|
On Fri, 25 Apr 2008 06:37:34 -0700 (PDT), Rocky
<forums@internode.on.net> wrote:
Quote: Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
I tried placing a single pole passive LPF in series from the div5
output to the CLK input of the 2nd 74LS90 to no avail. It seemed to
result in random periods coming from the outputs of the 2nd 74LS90.
I kept the resistor low enough (a few hundred ohms) so the input
current didn't stuff the logic levels up. And I tried capacitors of
0.1uF, 0.68uF and even 100uF (this 100uF stopped the lines from
toggling altogether !). All the set and preset pins on the 74LS90s
are tied low as required.
So is it possible to deglitch the output of a 74LS90 ?
---
There are no glitches on the Q outputs of the counters.
What Motorola is talking about is that since the counters' outputs
don't occur simultaneously, if you use glue logic to decode a
particular state that decoded output will have glitches in it and
can't be used as a clock or a strobe.
How about posting a schematic of your circuit?
JF |
|
|
| Back to top |
|
| Jeroen Belleman |
Posted: Fri Apr 25, 2008 9:25 am |
|
|
|
Guest
|
Rocky wrote:
Quote: Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
You're not decoding anything, so this is not an issue. But did
you notice that the C and D outputs have the same number of state
changes over a full cycle?
Jeroen Belleman |
|
|
| Back to top |
|
| Fred Bloggs |
Posted: Fri Apr 25, 2008 11:22 am |
|
|
|
Guest
|
Quote:
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
I tried placing a single pole passive LPF in series from the div5
output to the CLK input of the 2nd 74LS90 to no avail. It seemed to
result in random periods coming from the outputs of the 2nd 74LS90.
I kept the resistor low enough (a few hundred ohms) so the input
current didn't stuff the logic levels up. And I tried capacitors of
0.1uF, 0.68uF and even 100uF (this 100uF stopped the lines from
toggling altogether !). All the set and preset pins on the 74LS90s
are tied low as required.
So is it possible to deglitch the output of a 74LS90 ?
regards
Peter
Last thing you want to do is add an LPF in the clock paths, this logic
family requires fast clock transitions. This is probably asking to much,
but if you designate the LS90 receiving the 1/60 Hz as subscript 0 and
the second LS90 as subscript1, then you want to configure the sub 0 LS90
as biquinary which means the 1/60 Hz drives CKB0 and and QD0 drives
CKA0. Then QA0 is 10 minutes, QD0 is 5 minutes, QC0 is 5 minutes, and
QB0 is 2 minutes. Then if you route either of QD0 or QC0 into CKB1, you
will have QD1 and QC1 both at 25 minutes, QB1 at 10 minutes, and QA1 at
50 minutes ( if you route QD1 into CKA1). |
|
|
| Back to top |
|
| Arie |
Posted: Fri Apr 25, 2008 12:59 pm |
|
|
|
Guest
|
"Rocky" <forums@internode.on.net> wrote in message
news:88b18682-649b-4afc-9146-b90f8c2000b1@r9g2000prd.googlegroups.com...
Quote: Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
I've seen exactly this problem on 7490 and 74LS90 when there was a stub of
more than 10cm (4") of wire attached to it's clock input - the signal
reflection in the wire triggered another clock pulse.
Arie de Muijnck |
|
|
| Back to top |
|
| Rocky |
Posted: Fri Apr 25, 2008 1:19 pm |
|
|
|
Guest
|
On Apr 26, 3:59 am, "Arie" <no.s...@nospam.com> wrote:
Quote: I've seen exactly this problem on 7490 and 74LS90 when there was a stub of
more than 10cm (4") of wire attached to it's clock input - the signal
reflection in the wire triggered another clock pulse.
Arie de Muijnck
Arie you are Correct !!!! I am exceedingly grateful that you
discovered my problem. Thank you. I had been trying to nut it out
for well over a week now.
I had wires of length 50-100cm coming off each Q output (routed via a
rotary switch to allow me to select whichever one I wanted to be fed
into the clk of a D flip flop in another part of the cct). Some Q
outputs were fed back into CLK input of the cascaded 74LS90 (and also
a 74LS92 which I didn't originally mention in an effort to simplify/
confine the problem).
Thank you also to John, Jeroen, Fred and cs_posting for taking an
interest and replying to my question, I appreciated all those
suggestions. For testing purposes I am easily able to speed up the clk
rates.
So now I need to alleviate reflections causing the multiple triggers.
Do people have suggestions as to how I do that ?
regards
Peter |
|
|
| Back to top |
|
| Rocky |
Posted: Fri Apr 25, 2008 1:21 pm |
|
|
|
Guest
|
On Apr 26, 5:00 am, "petrus bitbyter"
<pieterkraltlaatdit...@enditookhccnet.nl> wrote:
Quote:
You're using some wrong counters. To make seconds from 60Hz, you'd better
use half a LS92 counter, followed by an LS90. You can use the circuit to
make minutes from seconds. Both types are ripple counters, so the outputs do
not change at the same time but they have no glitches. Glitches only occur
when you combine outputs with glue logic like gates. Maybe you can't trust
Gates anyway :)
petrus bitbyter
Thanks for your suggestions Petrus, see my reply above for where
things are now at.
regards
Peter |
|
|
| Back to top |
|
| petrus bitbyter |
Posted: Fri Apr 25, 2008 2:00 pm |
|
|
|
Guest
|
"Rocky" <forums@internode.on.net> schreef in bericht
news:88b18682-649b-4afc-9146-b90f8c2000b1@r9g2000prd.googlegroups.com...
Quote: Hi there,
I am using two 74LS90 ICs cascaded in series to divide down a clock
signal (f=1/60 Hz). A 74LS90 has a divide by 2 and a divide by 5
section in it. The 1min period clock pulse is therefore divided up
into:
2min, 5min, 10min and 25min periods.
the 2, 5 and 10min periods work OK, but the 25min doesn't. It turns
out to also be 10min rather than 25min.
My suspicion is that this problem is highlighted by the following
sentences in Motorola's datasheet:
"State changes of the Q outputs do not occur
simultaneously because of internal ripple delays. Therefore,
decoded output signals are subject to decoding spikes and
should not be used for clocks or strobes."
I don't have a DSO to see if there are glitches on the divide by 5
output from the first 74LS90. (I just have an analog CRO), so I am
assuming there are glitches that are causing this problem.
I tried placing a single pole passive LPF in series from the div5
output to the CLK input of the 2nd 74LS90 to no avail. It seemed to
result in random periods coming from the outputs of the 2nd 74LS90.
I kept the resistor low enough (a few hundred ohms) so the input
current didn't stuff the logic levels up. And I tried capacitors of
0.1uF, 0.68uF and even 100uF (this 100uF stopped the lines from
toggling altogether !). All the set and preset pins on the 74LS90s
are tied low as required.
So is it possible to deglitch the output of a 74LS90 ?
regards
Peter
You're using some wrong counters. To make seconds from 60Hz, you'd better
use half a LS92 counter, followed by an LS90. You can use the circuit to
make minutes from seconds. Both types are ripple counters, so the outputs do
not change at the same time but they have no glitches. Glitches only occur
when you combine outputs with glue logic like gates. Maybe you can't trust
Gates anyway :)
petrus bitbyter |
|
|
| Back to top |
|
| Rocky |
Posted: Fri Apr 25, 2008 5:04 pm |
|
|
|
Guest
|
On Apr 26, 12:52 pm, rebel <m...@privacy.net> wrote:
Quote: So now I need to alleviate reflections causing the multiple triggers.
Do people have suggestions as to how I do that ?
Short cables ....
Surely that isn't my only option ! I'd prefer not to have to shorten
those wires.
Any other suggestions ? I can't be the first person wanting to
transmit digital signals over a 1m distance without reflections.
Perhaps I need some kind of impedance matching.
regards
Peter |
|
|
| Back to top |
|
| rebel |
Posted: Fri Apr 25, 2008 9:52 pm |
|
|
|
Guest
|
On Fri, 25 Apr 2008 16:19:00 -0700 (PDT), Rocky <forums@internode.on.net> wrote:
Quote: On Apr 26, 3:59 am, "Arie" <no.s...@nospam.com> wrote:
I've seen exactly this problem on 7490 and 74LS90 when there was a stub of
more than 10cm (4") of wire attached to it's clock input - the signal
reflection in the wire triggered another clock pulse.
Arie de Muijnck
Arie you are Correct !!!! I am exceedingly grateful that you
discovered my problem. Thank you. I had been trying to nut it out
for well over a week now.
I had wires of length 50-100cm coming off each Q output (routed via a
rotary switch to allow me to select whichever one I wanted to be fed
into the clk of a D flip flop in another part of the cct). Some Q
outputs were fed back into CLK input of the cascaded 74LS90 (and also
a 74LS92 which I didn't originally mention in an effort to simplify/
confine the problem).
Thank you also to John, Jeroen, Fred and cs_posting for taking an
interest and replying to my question, I appreciated all those
suggestions. For testing purposes I am easily able to speed up the clk
rates.
So now I need to alleviate reflections causing the multiple triggers.
Do people have suggestions as to how I do that ?
Short cables .... |
|
|
| Back to top |
|
| Dave Platt |
Posted: Fri Apr 25, 2008 10:58 pm |
|
|
|
Guest
|
In article <066514pmffvmqe09201elimnppo340q8j8@4ax.com>,
rebel <me@privacy.net> wrote:
Quote: I've seen exactly this problem on 7490 and 74LS90 when there was a stub of
more than 10cm (4") of wire attached to it's clock input - the signal
reflection in the wire triggered another clock pulse.
Arie you are Correct !!!! I am exceedingly grateful that you
discovered my problem. Thank you. I had been trying to nut it out
for well over a week now.
I had wires of length 50-100cm coming off each Q output (routed via a
rotary switch to allow me to select whichever one I wanted to be fed
into the clk of a D flip flop in another part of the cct). Some Q
outputs were fed back into CLK input of the cascaded 74LS90 (and also
a 74LS92 which I didn't originally mention in an effort to simplify/
confine the problem).
So now I need to alleviate reflections causing the multiple triggers.
Do people have suggestions as to how I do that ?
Short cables ....
Or, termination (series or parallel) of the long wires, at the far
ends, with a suitable resistance that will absorb the pulse and
prevent the reflection (or reduce its amplitude enough to avoid
false-triggering).
--
Dave Platt <dplatt@radagast.org> AE6EO
Friends of Jade Warrior home page: http://www.radagast.org/jade-warrior
I do _not_ wish to receive unsolicited commercial email, and I will
boycott any company which has the gall to send me such ads! |
|
|
| Back to top |
|
| Rocky |
Posted: Sat Apr 26, 2008 12:38 am |
|
|
|
Guest
|
On Apr 26, 1:58 pm, dpl...@radagast.org (Dave Platt) wrote:
Quote: Short cables ....
Or, termination (series or parallel) of the long wires, at the far
ends, with a suitable resistance that will absorb the pulse and
prevent the reflection (or reduce its amplitude enough to avoid
false-triggering).
--
Dave Platt
Hi Dave,
yes that is a good idea. The cable I am using is cut from a VGA cable
with the ends cut off. I am guessing its characteristic impedance is
about 75 to 100 ohms, so I will try termination resistors close to
that value at the load end to see if that helps. I found a useful
article detailing how to deal with/eliminate reflections here
http://www.ecircuitcenter.com/Circuits/tline1/tline1.htm
regards
Peter |
|
|
| Back to top |
|
| Guest |
Posted: Sat Apr 26, 2008 3:53 am |
|
|
|
|
On Apr 26, 12:19�am, Rocky <for...@internode.on.net> wrote:
Quote: On Apr 26, 3:59 am, "Arie" <no.s...@nospam.com> wrote:
I've seen exactly this problem on 7490 and 74LS90 when there was a stub of
more than 10cm (4") of wire attached to it's clock input - the signal
reflection in the wire triggered another clock pulse.
Arie de Muijnck
Arie you are Correct !!!! �I am exceedingly grateful that you
discovered my problem. �Thank you. �I had been trying to nut it out
for well over a week now.
I had wires of length 50-100cm coming off each Q output (routed via a
rotary switch to allow me to select whichever one I wanted to be fed
into the clk of a D flip flop in another part of the cct). Some Q
outputs were fed back into CLK input of the cascaded 74LS90 (and also
a 74LS92 which I didn't originally mention in an effort to simplify/
confine the problem).
Thank you also to John, Jeroen, Fred and cs_posting for taking an
interest and replying to my question, I appreciated all those
suggestions. For testing purposes I am easily able to speed up the clk
rates.
So now I need to alleviate reflections causing the multiple triggers.
Do people have suggestions as to how I do that ?
regards
Peter
Put a 50 ohm sries resistor in each line |
|
|
| Back to top |
|
| |
Page 1 of 3 Goto page 1, 2, 3 Next
All times are GMT - 5 Hours
The time now is Wed Aug 20, 2008 5:17 am
|
|