Seeking a 16 bit binary up-counter in a single chip package? Does it exist?
xanatos
Posts: 1,120
I'm needing to count 4 simultaneous, asynchronous, independent pulse trains, and read the total count only when another sensor is triggered. My current design would require I have something like 4-74LS193 counters cascaded with the outputs going into a 74LS165 P to S shift register, with four separate copies of this circuit running (one for each monitored stream), with the SR's having common D and C lines, only the latches being polled to get the count from the given counter when needed.
That's lot of chips. At the least, I'm wondering if there's a simple 16-bit binary up-counter in a single package out there?
At best, I'm looking for a 16 bit binary up-counter with shift-register outputs... :-) Am I asking for too much?
Suggestions are greatly appreciated...
Thanks and Happy New Year everybody!
Best,
Dave
PS., the count frequency is low - probably on the order of 20 pulses per second max.
That's lot of chips. At the least, I'm wondering if there's a simple 16-bit binary up-counter in a single package out there?
At best, I'm looking for a 16 bit binary up-counter with shift-register outputs... :-) Am I asking for too much?
Suggestions are greatly appreciated...
Thanks and Happy New Year everybody!
Best,
Dave
PS., the count frequency is low - probably on the order of 20 pulses per second max.
Comments
Send me a PM if that is of interest to you.
That looks fantastic! Other than it resetting ALL values when it is read, it's PERFECT! I would have to keep running totals on the stamp (one channel may continue needing to count long after another channel has been read and "hung up") - but I could just keep adding subsequent partial count reads to previous counts until the "hang up" command was received, and then I could add the count and send it along to my data logger.
PM on its way...
Thanks,
Dave
I truly would LOVE to use the propeller more, but for whatever reason (being spoiled by the BS2px maybe) - I just can't seem to wrap my head around the Propeller fast enough to keep up with design evolution in my projects, and so far, the stamps have never failed to do the job with efficiency and reliability and - one of their sales pitches - RAPID prototyping and implementation. I have a few Propeller projects that I am working on, but I have just not been able to make the utterly reliable mind-fortress of knowledge for the Propeller that I have built up for the Stamp.
It is my fervent desire and goal, however, to this year master the Propeller such that I feel as comfortable using it as I do a Stamp.
And as long as people have made things like the CT515 available, the Stamp remains a thing of utter awesomeness! :-)
Best,
Dave
This sort of obvious block, seems to have fallen between two stools.
It missed the initial TTL spawning, as too complex, and then when CMOS came along, it was too specialized.
The 74HC590 is maybe the closest, that has 8 bit counter plus 8 bit TS capture/latch, and you can chain them.
There are companies making the modern equivalent of what you seek : (no one would bother with 16 bits these days...)
http://www.lsicsi.com/counters.htm
32-Bit Multi-Mode Counter with Serial Interface.. (14 Pins) Last Updated: 08/17/11 I found a price of $2.00/500+, which seems good.
and these days CPLD is also a viable solution, with offerings like
LCMXO2-1200ZE-B-EVN
for $29, you can pack a shipload of counters into that...
Dave
That was a tongue in cheek post I just couldn't resist making. I figured you had a pretty good reason for going with discrete chips, and it makes sense to use what you are familiar with when you have a tight schedule. FWIW though I did use 3 props to replace 16 AM9513APC scaler chips on a 20 well gamma counter. Worked very well and the 3 props cost just over 1/2 of what a single AM scaler chip would have cost.
TI has the 74F676, it may be what you are looking for, but rechecking prior to my reply basically confirmed that there is not much of a market for 16bit chips. So they will not be as readily available through Digikey, newark elex etc. May need to go direct to OEM and get hung up on lead times.
An alternative may be two hct590s cascaded for 16 bits.
FF
DIPs seem cheaper at disti's than TSSOP, maybe older stock ?
It is a point well taken about using the Prop. Cog counters are not suitable if debouncing is called for, but a dedicated cog would be perfect to handle the task of multiple channels of debounce and count. My PIC algorithm runs a loop with vertical counters in parallel, a state machine.
I still might choose to use my external chip in a system integration, so as to save Prop pins and also a cog for something else if those resources are tight. The PIC also offers wake-up on change that keeps it asleep when nothing is going on (think no rain, no wind, lazy flow).
Here is a photo of a system I built that scans 20 rain gages and two anemometers, using 6 of the CT515 counters attached to an OWL2pe (BS2pe) data logger. This is being used in the area affected by the Fukushima nuclear disaster to monitor runoff into watercourses. The interface chips are socketed in case anything damages them.
Great speaking with you today, looking forward to developing with those CT515s.
Dave.