# [HELP] 74ls193 count up and down as BCD

Discussion in 'The Projects Forum' started by FarProd, Feb 9, 2012.

1. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
I'm having problem designing 74ls193 count up and down as BCD from 00 to 99
(2 digits)

Using switch will interchange from up to down...

Any help out there....

I'm stuck!!!

2. ### SgtWookie Expert

Jul 17, 2007
22,183
1,728

FarProd likes this.
3. ### Wendy Moderator

Mar 24, 2008
20,772
2,540
As Wookie said, the 192 is a BCD counter, the 193 is a binary counter.

FarProd likes this.
4. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
My goal is to use 74ls193 as counter and design BCD up and down counter from 00 - 99 vice versa (2 digits).

I figured out how 74ls193 work as BCD counter, but the problem is, when it count down, from 9 - 0.. it doesn't come back to 9.. it stay at 0 all the time.

5. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
74LS193 as BCD...

How would I cascaded it to make it 8 bit counter

Last edited: Feb 11, 2012
6. ### SgtWookie Expert

Jul 17, 2007
22,183
1,728
You need to add logic so that when the output is zero, and the Down input is clocked, that 9 is loaded into the counter instead of 15 like is happening now; as soon as the count goes to 15, the AND gate loads in all zeroes.

FarProd likes this.
7. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
How about cascading those two 74ls193 to count from 00 - 99 vice versa?

Is this Possible?

8. ### SgtWookie Expert

Jul 17, 2007
22,183
1,728
Why don't you get just ONE digit working first?

Once you have a single digit working, the 2nd will be easy.

FarProd likes this.
9. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
Can you help me figuring out? I'm stuck!

10. ### Wendy Moderator

Mar 24, 2008
20,772
2,540
You could go about this two ways. Draw a truth table that with any number over 9 it stuffs 9 into the preset.

Sense the binary number 10 (1010) and if the output is a 10 stuff 9 into the preset.

You say you must use a 74193, is this homework?

11. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
No, I'm just experimenting.

I had just watched some videos of this using 74ls193, so i'm curious how they implemented it.

12. ### Wendy Moderator

Mar 24, 2008
20,772
2,540
As has been said, the 74192 does it directly.

Have you tried coming up with the gate logic I described?

Last edited: Feb 15, 2012
13. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
My only problem in my design is that., when it countdown from 9 and reached 0, after that it resumes to 1010 and detect (1010) that will lead to reset... so the output will be 0.

I know that 74ls192 would do it directly, but how about 74ls193?

14. ### Wendy Moderator

Mar 24, 2008
20,772
2,540
Yes, the outputs will go to zero with reset. If you are counting down however the outputs will go to 1111. If the timer hits this condition you will need to stuff 1010 into the presets, and then toggle them in. I designed such a circuit a long while back. I used two different RC constants to sent a toggle after I sent the clock.

Interestingly, with that scheme (which I did breadboard, it is tested) the equivalent to 1010 was directly on the preset pins, no gates, just hardwired. Think of it as an alternate reset.

The reason I had to do it is it was a stadium counter, starting from either 3 or 2 on the countdown, with the standard 0 to 5 on the other digit.

Do you want to see it? It was rather a kludge, but it worked.

FarProd likes this.
15. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
Yes, can you show it to me?

16. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
This my UNFINISHED work!!!

17. ### FarProd Thread Starter New Member

Feb 9, 2012
10
0
The problem is counting down. from 99-00 continously...

74ls193 U1 is the 1 digit... and U6 are the 2nd digit

Apr 5, 2008
15,797
2,384
Hello,

The problem is, when counting down, the counter will jump to 15 after it has gone through 0.
(see timing diagram)

You must detect the "15" and load a 9 at the monent it occurs.

I also have attached the complete datasheet.

Bertus

File size:
31.6 KB
Views:
578
• ###### 74LS193.pdf
File size:
77.1 KB
Views:
55
FarProd likes this.
19. ### Wendy Moderator

Mar 24, 2008
20,772
2,540
Looking at it, you still have open inputs. This is a bad habit, which you really need to work on. Any true digital will be erratic and unpredictable, with the exception of TTL, which always assumes a high.

When I see this I go no further, as the schematic is incomplete. I suspect I am not the only one.

20. ### noblewolf New Member

Aug 14, 2007
1
1
Hi,

If you are counting down (9..0): the "borrow" (pin 13) goes low in the transition from 0 to 15. Read this pin and when it goes low put 9 (1001) in the data pins (pins 1,9,10,15) AND set low the pin "load" (pin 11).

Hope this help.

FarProd likes this.