BlackMamba777
- Jun 26, 2023
- 4
- Joined
- Jun 26, 2023
- Messages
- 4
II need help doing the logic for a counter from 0 to 999999 using a 74LS160, to print to an 8 segment display
It's a homework. My professor told me to use 74ls160
- Is this homework or an assignment
- Why 74 LS? This is an outdated technology. Use HC, or HCT.
- Why 74xx160? This is a binary counter. You'll need extra logic to make it a decimal counter. For your project you'd be better off using a BCD counter like e.g. 74xx90.
- You will also need a BCD to 7-segmentg decoder like e.g. 74xx47 or 74xx48. Note that you need different decoders for either common anode or common cathode displays.
btw: This is not about microcontroller or programming, so I'll move this thread to a better matching section.
In this case we won't provide a full solution to you.It's a homework.
Thx for the helpIn this case we won't provide a full solution to you.
Expect us to guide you through the steps to help you find the solution yourself.
Step 1:
Modify the 74LS 160 by additional gates so it becomes a decimal (BCD) counter, counting from 0 ... 9 and re-starting from 0. This will give 1 digit of your counter.
Hint: use the reset input to reset the counter from 9 to 0 on the clock pulse that would otherwise advance the counter from 9 to A (1001 ->10100000)
Step 2:
Concatenate 6 of these BCD counters to create the 6 digit decimal counter required to count from 000000 ... 999999.
The imho most simple way is a ripple-up counter - sufficient for such an application. If you want to get fanc, build a synchronous counter. This may require additional logic.
Step 3:
Use whatever is allowed by the task description (logic gates, integrated BCD to 7-segment decoders, programmable logic ...) to decode the BCD coded output(s) of the counter into the 7-segment control lines.
Use resistors to limit the current through the displays' LEDs.
Observe the polarity of the displays (common anode vs. common cathode).
Man, it's a big circuit, i am trying to make a serial display controller. I have an outline of the project, down there.Another hint, just so you know the size of the final circuit - you are looking at around 15 IC's.
ak
Start with a single digit counter, then copy 6 times.Man, it's a big circuit,
The scheme in your pdf using a 74LS595 is completely different from what I expected when you mentioned a 74LS160 in your post #1.i am trying to make a serial display controller.