Author Topic: Looking for a chip  (Read 10433 times)

0 Members and 1 Guest are viewing this topic.

OSHJunkies

  • Guest
Looking for a chip
« on: February 09, 2012, 11:13:22 pm »
Hi,

I am looking for a IC that will do the following:

Count upto 10 and count down from 10, while keeping succesive pins high/low.

For example, I am picturing a chip that has an "increment" pin,  when a voltage pulse is applied to the increment pin, the 1st output pin goes high, when a second pulse is applied, the 1st output pin stays high and the 2nd output pin also goes high.  When the third pulse goes to the increment pin, both the 1st and 2nd out pins stay high and the 3rd outpin is high also...up to 10 output pins.

In the same manner, this chip would have a "decrement" pin, when a pulse is applied, it would reduce the number of output high pins by one.  So if the count was at 3, it would reduce the count 2.

Any suggestions?
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 830
  • Country: au
Re: Looking for a chip
« Reply #1 on: February 09, 2012, 11:19:29 pm »
I am thinking PIC or AVR for this one. Quick and easy.

Regards
Testing one two three...
 

Offline baljemmett

  • Supporter
  • ****
  • Posts: 665
  • Country: gb
Re: Looking for a chip
« Reply #2 on: February 09, 2012, 11:28:20 pm »
You could also do this with a bi-directional shift register (well, probably a few in a chain since a 10-bit one might not be available) -- wire one shift input high, the other low, and then shift left/right as appropriate.  A small uC might take up less space though!
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: Looking for a chip
« Reply #3 on: February 09, 2012, 11:48:51 pm »
Three 74HC194 in a row and a NAND to stop shifting at 10.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline damo

  • Contributor
  • Posts: 48
  • Country: au
Re: Looking for a chip
« Reply #4 on: February 10, 2012, 12:29:01 am »
BCD counter is the way to go. Try a 4510.

Edit: After re-reading the thread (I really should read threads carefully before answering), I still think the 4510 would be a potentially viable solution. You would need to decode the output using gates to provide the necessary output, however it could get messy.
« Last Edit: February 10, 2012, 01:11:38 am by damo »
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Looking for a chip
« Reply #5 on: February 10, 2012, 12:49:11 am »
The best that I can come up with (other than the obvious: MCU or CPLD) is to use either a 74HC4017 or 4017 Johnson counter and feed each of the outputs (which are active high) into a 2-input OR gate, with the second input of the OR gate coming from the _output_ of the OR gate from the stage above it. 

The OR gate's outputs will basically cascade from the top to the bottom so that any if any stage above is active (output is high) the output of that stage will be high as well.  Use the OR gate's output to drive your LEDs.

The very top won't need an OR gate.  Its output will go directly to the LED and to the input of the OR gate below it.
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Looking for a chip
« Reply #6 on: February 10, 2012, 01:13:49 am »
Oops.  I guess the 4017 doesn't count down so it wouldn't work.  I guess you would need an up/down counter stage followed by a 4 to 10 decoder (74HC42) followed by the cascading OR gates.
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 830
  • Country: au
Re: Looking for a chip
« Reply #7 on: February 10, 2012, 01:32:44 am »
Hi,

I am looking for a IC that will do the following:

Count upto 10 and count down from 10, while keeping succesive pins high/low.

For example, I am picturing a chip that has an "increment" pin,  when a voltage pulse is applied to the increment pin, the 1st output pin goes high, when a second pulse is applied, the 1st output pin stays high and the 2nd output pin also goes high.  When the third pulse goes to the increment pin, both the 1st and 2nd out pins stay high and the 3rd outpin is high also...up to 10 output pins.

In the same manner, this chip would have a "decrement" pin, when a pulse is applied, it would reduce the number of output high pins by one.  So if the count was at 3, it would reduce the count 2.

Any suggestions?

The way i read this, the OP is requesting a single chip solution.

Regards
Testing one two three...
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Looking for a chip
« Reply #8 on: February 10, 2012, 01:46:53 am »
Hi,

I am looking for a IC that will do the following:

Count upto 10 and count down from 10, while keeping succesive pins high/low.

For example, I am picturing a chip that has an "increment" pin,  when a voltage pulse is applied to the increment pin, the 1st output pin goes high, when a second pulse is applied, the 1st output pin stays high and the 2nd output pin also goes high.  When the third pulse goes to the increment pin, both the 1st and 2nd out pins stay high and the 3rd outpin is high also...up to 10 output pins.

In the same manner, this chip would have a "decrement" pin, when a pulse is applied, it would reduce the number of output high pins by one.  So if the count was at 3, it would reduce the count 2.

Any suggestions?

The way i read this, the OP is requesting a single chip solution.

Regards

Xilinx CoolRunner-II.  SOLVED.
 

Offline lowimpedance

  • Super Contributor
  • ***
  • Posts: 1246
  • Country: au
  • Watts in an ohm?
Re: Looking for a chip
« Reply #9 on: February 10, 2012, 01:51:10 am »
Or download an APP for his phone  ::)

or 74hc190 decade up/down counter.
The odd multimeter or 2 or 3 or 4...or........can't remember !.
 

Offline damo

  • Contributor
  • Posts: 48
  • Country: au
Re: Looking for a chip
« Reply #10 on: February 10, 2012, 05:27:41 am »
The way i read this, the OP is requesting a single chip solution.

Regards

Yes, fair enough. In that case, your solution would be the best, but it doesn't hurt to have some fun contemplating ideas :D
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 830
  • Country: au
Re: Looking for a chip
« Reply #11 on: February 10, 2012, 05:37:18 am »
The way i read this, the OP is requesting a single chip solution.

Regards

Yes, fair enough. In that case, your solution would be the best, but it doesn't hurt to have some fun contemplating ideas :D

Nothing better than a creative challenge.... ;D

Regards
Testing one two three...
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Looking for a chip
« Reply #12 on: February 10, 2012, 06:32:15 am »
Yep.  I kind of lost the single chip requirement while trying to solve the problem.  You would think that there was something out there that would do that but I can't think of any.  It's kind of like a digital version of the LM3914.  Sometimes you just have to roll your own.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7585
  • Country: au
Re: Looking for a chip
« Reply #13 on: February 10, 2012, 09:36:21 am »
There may be a standalone chip that will do this,& you can certainly do it with a few 4017s,RS flipflops & maybe some NAND gates,but by the time you either did the research to find the former,or breadboarded up the latter,you could have chosen the PIC option,programmed the thing & had it in service.(& that's a big "PIC hater" like me saying so!)

 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 830
  • Country: au
Re: Looking for a chip
« Reply #14 on: February 10, 2012, 09:45:33 am »
that's a big "PIC hater" like me saying so!

I know it must have killed you to type that.... ;D

Both PIC and AVR have there place. I was pro-PIC but now i am getting to like Arduino and, by extension, AVR.

All the OP needs is a 16F PIC in an 18 pin package or an AVR equivalent. I been searching and cant find an easier way to do it (will be interesting to see if anyone has another single-chip solution to this one). ::)

Regards
Testing one two three...
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8264
Re: Looking for a chip
« Reply #15 on: February 10, 2012, 10:25:37 am »
The disadvantage I see with an MCU is that it may not be as fast and/or have as stable latency as hardcoded logic. How high of a frequency do you need?
 

Offline PeterG

  • Frequent Contributor
  • **
  • Posts: 830
  • Country: au
Re: Looking for a chip
« Reply #16 on: February 10, 2012, 10:39:16 am »
Just thinking outside the box here, but, does the OP need this chip to be through hole?
If so, then there are MANY options available. I am thinking a small 18pin through hole footprint PCB with surface mount logic chips. This way, a 'Custom Chip' or sorts could be made.

Just a crazy idea. ;D

Regards
Testing one two three...
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: Looking for a chip
« Reply #17 on: February 10, 2012, 11:33:22 am »
If you succumb to using a microcontroller, I'd recommend something like the 20 pin ATtiny2313, which is the neatest solution in terms of hardware.

If this is purely for academic reasons, it is, of course, more fun to make something with the standard logic building blocks.
 

OSHJunkies

  • Guest
Re: Looking for a chip
« Reply #18 on: February 11, 2012, 01:30:52 am »
Wow thanks for all the great ideas - this forum doesn't mess around!  I am a bit of noob yet, so it will take some time to digest all these great suggestions.
 

Offline sacherjj

  • Frequent Contributor
  • **
  • Posts: 993
  • Country: us
Re: Looking for a chip
« Reply #19 on: February 11, 2012, 02:12:37 am »
For some reason the first thing this made me think of is the LM3914 Dot/Bar driver chip.  It acts exactly like you want with one little problem.  You need to translate your clock up and down to analog voltage range.  That is your perfect start of a Rube Goldberg Solution.  :)
 

OSHJunkies

  • Guest
Re: Looking for a chip
« Reply #20 on: February 13, 2012, 07:38:03 pm »
Right now I am leaning toward using a CD4510 BCD counter as damo suggested.  I have a couple questions about the datasheet:

http://www.doctronics.co.uk/pdf_files/HEF4510B.pdf

1. How do I know what voltage is considered HIGH or LOW by the IC? i see 5/10/15 but this seems high to me...

2. What does "edge-triggered" mean?

2.5.  In the Pinning table, some of the names have a bar over top the letters. What does this mean [e.g. CE, TC]?  I am thinking it means that the feature is active with a LOW input?

3.  Not sure I comprehend the operation...my thinking is as follows. 

I will connect P0-P3 to +voltage. 

I will connect +voltage through a push button to CP.

I will have UP/DW connected to +Voltage (for incrementing).

As I press the button multiple times, I am thinking the outputs 00s-04 will sequentially go from low to high.

Is this right, or am I smoking crack?
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: Looking for a chip
« Reply #21 on: February 13, 2012, 08:28:28 pm »
As I press the button multiple times, I am thinking the outputs 00s-04 will sequentially go from low to high.

Is this right, or am I smoking crack?

No, yes.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline Joshua

  • Regular Contributor
  • *
  • Posts: 194
  • Country: us
Looking for a chip
« Reply #22 on: February 13, 2012, 10:07:36 pm »
The words with lines on top are, as you said: active LOW

Sorry I can't help with the rest.
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: Looking for a chip
« Reply #23 on: February 13, 2012, 10:39:36 pm »
1. How do I know what voltage is considered HIGH or LOW by the IC? i see 5/10/15 but this seems high to me...
High is something close to Vcc, and low is something close to GND, with respect to ground. So for TTL powered at 5V, a low is something like 0-0.8V and a high is 3-5V or so. You'd aim for LOW=0V and HIGH=5V, however.

Edit: For CMOS, you generally get a wider range of voltages. I know you can run a CD4510 at 15V if you like. Not sure about the exact high/low thresholds off the top of my head, but LOW=0V and HIGH=<close to Vcc> will always work.

2. What does "edge-triggered" mean?
Edge-triggered means that an input (usually a clock input) is triggered by the edge of a square-wave. Rising edge means that a LOW->HIGH transition triggers the input, and falling edge means a HIGH->LOW transition triggers it.

2.5.  In the Pinning table, some of the names have a bar over top the letters. What does this mean [e.g. CE, TC]?  I am thinking it means that the feature is active with a LOW input?
Yep.

3.  Not sure I comprehend the operation...my thinking is as follows. 

I will connect P0-P3 to +voltage. 

I will connect +voltage through a push button to CP.

I will have UP/DW connected to +Voltage (for incrementing).

As I press the button multiple times, I am thinking the outputs 00s-04 will sequentially go from low to high.

Is this right, or am I smoking crack?


It's a BCD counter, to the outputs will go:
0000
0001
0010
0011
0100
etc...
« Last Edit: February 13, 2012, 10:45:36 pm by electrode »
 

Offline Jimmy

  • Regular Contributor
  • *
  • Posts: 224
  • Country: au
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf