J
Josef Moellers
Guest
Am 1.7.2011 schrub Richard:
intermediate counter values, a gray-code counter is (the only?)
solution: a BCD counter may need to change several bits when progressing
from one count to the next (e.g. all 4 bits need to change when going
from 7 to 8), but since we're dealing with real-world hardware, they
may, in fact, not change simultaneously but in (very fast) succession,
so rather than
0111 -> 1000
you may end up with 0111 -> 0110 -> 0100 -> 0000 -> 1000
Gray code changes only a single bit between values.
However, I'm not sure if a decimal gray code exists.
Also, I know of no standard Gray Code to 7-segment decoders.
Josef
--
These are my personal views and not those of Fujitsu Technology Solutions!
Josef Möllers (Pinguinpfleger bei FTS)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://de.ts.fujitsu.com/imprint.html
If you cannot, in no way, tolerate "glitches", i.e. unwantedOn 01/07/2011 09:29, Richard wrote:
Some more questions about making counters using counter ICs
If you want to make a counter, you can choose to employ 7-segment LED
displays to show digits. It seems that if you go that way you are
practically tied to counters offering BCD outputs. Because you have BCD
to 7-segment display decoders ready-available. Not that you could not
use counters with 1in10 outputs, but you would then need to devise your
own decoder.
Now, we also have fully-decoded counters or one-hot code output counters
of which the 4017 IC is an example. Same as 1in10 counters.
Question is: Do folks build counters with one-hot code counters? I'm
receiving an impression that although counters, you would not build a
counter-with-display with them. But, I think I could be getting the
wrong impression here. And, if you do use them for building a
counter-with-display, what displays do you use? Apart from Dekatrons. :c)
Also, ignoring microprocessors for the moment, what is the modern set-up
for counter-with-display? In other words is using 7-segment LED displays
"old hat"? Or still in vogue.
Aaah, maybe I'm on the right track and fully decoded counters like 4017
would not be used in counters-with-display:
"Decade counter
A decade counter is one that counts in decimal digits, rather than
binary. A decimal counter may have each digit binary encoded (that is,
it may count in binary-coded decimal, as the 7490 integrated circuit
did) or other binary encodings (such as the bi-quinary encoding of the
7490 integrated circuit). Alternatively, it may have a "fully decoded"
or one-hot output code in which each output goes high in turn; the 4017
was such a circuit. The latter type of circuit finds applications in
multiplexers and demultiplexers, or wherever a scanning type of
behaviour is useful. Similar counters with different numbers of outputs
are also common.
The decade counter is also known as a mod-10 counter."
http://www.tititudorancea.com/z/counter.htm
So, at the moment I'm only seeing BCD output counters that are in the
ballpark for counter-with-display. But, there must be other non BCD
counters suitable?
intermediate counter values, a gray-code counter is (the only?)
solution: a BCD counter may need to change several bits when progressing
from one count to the next (e.g. all 4 bits need to change when going
from 7 to 8), but since we're dealing with real-world hardware, they
may, in fact, not change simultaneously but in (very fast) succession,
so rather than
0111 -> 1000
you may end up with 0111 -> 0110 -> 0100 -> 0000 -> 1000
Gray code changes only a single bit between values.
However, I'm not sure if a decimal gray code exists.
Also, I know of no standard Gray Code to 7-segment decoders.
Josef
--
These are my personal views and not those of Fujitsu Technology Solutions!
Josef Möllers (Pinguinpfleger bei FTS)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://de.ts.fujitsu.com/imprint.html