Maker Pro
Maker Pro

74LS160 COUNTER - 0 to 999999

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
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,476
Joined
Nov 17, 2011
Messages
13,476
  1. Is this homework or an assignment
  2. Why 74 LS? This is an outdated technology. Use HC, or HCT.
  3. 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.
  4. 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.
 

BlackMamba777

Jun 26, 2023
4
Joined
Jun 26, 2023
Messages
4
  1. Is this homework or an assignment
  2. Why 74 LS? This is an outdated technology. Use HC, or HCT.
  3. 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.
  4. 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.
It's a homework. My professor told me to use 74ls160
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,476
Joined
Nov 17, 2011
Messages
13,476
It's a homework.
In 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 -> 1010 0000)

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).
 

AnalogKid

Jun 10, 2015
2,843
Joined
Jun 10, 2015
Messages
2,843
Another hint, just so you know the size of the final circuit - you are looking at around 15 IC's.

ak
 

BlackMamba777

Jun 26, 2023
4
Joined
Jun 26, 2023
Messages
4
In 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 -> 1010 0000)

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).
Thx for the help
 

BlackMamba777

Jun 26, 2023
4
Joined
Jun 26, 2023
Messages
4
Another hint, just so you know the size of the final circuit - you are looking at around 15 IC's.

ak
Man, it's a big circuit, i am trying to make a serial display controller. I have an outline of the project, down there.
 

Attachments

  • DisplaySerialController.pdf
    78.4 KB · Views: 8

AnalogKid

Jun 10, 2015
2,843
Joined
Jun 10, 2015
Messages
2,843
In the upper schematic, you have Vcc dead-shorted to GND.

Also, the six WR- inputs are connected together, but that net is not connected to anything.

ak
 
Top