Author Topic: counter required to count to near 1 million  (Read 30557 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17729
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
counter required to count to near 1 million
« on: March 17, 2013, 09:01:00 pm »
I need to count to nearly 1'000'000 on a counter, can anyone suggest a good counter ? this is for  a clock signal generator
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: counter required to count to near 1 million
« Reply #1 on: March 17, 2013, 09:14:09 pm »
You need to provide a bit more information, what are you looking for? A pulse out after the counts or do you need a readout of the counts?
What are you trying to brew this time?  8)
Keyboard error: Press F1 to continue.
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: counter required to count to near 1 million
« Reply #2 on: March 17, 2013, 09:23:32 pm »
I dunno how/if they work or do what you want but DX sell industrial (looking) counters which go up to 999,999

http://dx.com/p/cg8-digital-counter-ac-110-220v-118803
http://dx.com/p/dhc3j-1-1-lcd-digital-counter-grey-black-138035

Edit: looking at your comment about it being for a "clock signal generator" im thinking you want an IC counter and not a finished unit??

« Last Edit: March 17, 2013, 09:28:11 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17729
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: counter required to count to near 1 million
« Reply #3 on: March 17, 2013, 09:28:42 pm »
no just a digital counter / frequency divider IC, I'm putting in a 32.768 KHz clock and want to fire an impulse every 30 seconds so make a circuit send an impulse every time the counter resets (or other convenient number occures)
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: counter required to count to near 1 million
« Reply #4 on: March 17, 2013, 09:47:48 pm »
Looking at cost and board space the best solution is probably a PIC10XXX.
Keyboard error: Press F1 to continue.
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: counter required to count to near 1 million
« Reply #5 on: March 17, 2013, 09:48:51 pm »
74HC160 or 74HC4059 should be usable.
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: counter required to count to near 1 million
« Reply #6 on: March 17, 2013, 09:50:49 pm »
74HC160 or 74HC4059 should be usable.
Not enough counts.
Keyboard error: Press F1 to continue.
 

Offline krish2487

  • Frequent Contributor
  • **
  • Posts: 500
  • Country: dk
Re: counter required to count to near 1 million
« Reply #7 on: March 17, 2013, 09:51:17 pm »
Cascade 6 decade counters...

 :-//

@thor-arne

you beat me by seconds...
 :D
If god made us in his image,
and we are this stupid
then....
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: counter required to count to near 1 million
« Reply #8 on: March 17, 2013, 09:53:39 pm »
Looking at cost and board space the best solution is probably a PIC10XXX.

Yep. I'm often the last to suggest a microcontroller, but they do make for nice, quick, custom "logic" chips when you need something this specific. I've got a pile of PIC10F200s (both DIP-8 and SOT-23-6 - holy crap that is a small microcontroller, it's smaller than its 0805 decoupling cap!) that frequently get used for this sort of application. A cascade of 7400 series counters would work, but I'd probably prefer a single 10F200.
No longer active here - try the IRC channel if you just can't be without me :)
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: counter required to count to near 1 million
« Reply #9 on: March 17, 2013, 09:58:17 pm »
A DIP-8 $ 0.30 is hard to beat with 2-4 DIP 16-24 devices...
Keyboard error: Press F1 to continue.
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: counter required to count to near 1 million
« Reply #10 on: March 17, 2013, 10:06:44 pm »
I had a very quick look at clock divider chips on digikey but you really need a divide and then a multiply to get 30s, which is two chips.
A mcu is going to be cheaper unless you can find a dirt cheap clock logic IC with a half-minute output.
« Last Edit: March 17, 2013, 10:11:19 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: counter required to count to near 1 million
« Reply #11 on: March 17, 2013, 10:07:45 pm »
Both 74HC160 and 74HC4059 can be pre-programmed with dip switches, that's why I suggested those.

A micro controller is also usable ofcourse, I just generally don't suggest those if it can be done easily with standard logic.
 

Offline jimmc

  • Frequent Contributor
  • **
  • Posts: 304
  • Country: gb
Re: counter required to count to near 1 million
« Reply #12 on: March 17, 2013, 10:09:30 pm »
As has been said PIC route is the simplest, there's a ready made solution here http://www.tayloredge.com/reference/Circuits/ClockDivider2/.

Using standard logic devices a '4060 will divide by 16384, followed by a '4024, '390 or '393 plus gate to divide by 60

Jim
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: counter required to count to near 1 million
« Reply #13 on: March 17, 2013, 10:10:28 pm »
The MCU gets my vote.

... even if it is a PIC. XD
 

Offline Thor-Arne

  • Supporter
  • ****
  • Posts: 500
  • Country: no
  • tinker - tinker, little noob.....
Re: counter required to count to near 1 million
« Reply #14 on: March 17, 2013, 10:13:51 pm »
As has been said PIC route is the simplest, there's a ready made solution here http://www.tayloredge.com/reference/Circuits/ClockDivider2/.

Using standard logic devices a '4060 will divide by 16384, followed by a '4024, '390 or '393 plus gate to divide by 60

I agree, this is the simplest solution.  ;)
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: counter required to count to near 1 million
« Reply #15 on: March 17, 2013, 10:24:16 pm »
Could you use a higher frequency crystal with a 4521?
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: counter required to count to near 1 million
« Reply #16 on: March 17, 2013, 10:27:53 pm »
Using standard logic devices a '4060 will divide by 16384, followed by a '4024, '390 or '393 plus gate to divide by 60

how would it work?
32768Hz / 16384 = 2 second clock
2Hz / 60 = 33ms clock
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5121
  • Country: nl
Re: counter required to count to near 1 million
« Reply #17 on: March 17, 2013, 10:37:46 pm »
how would it work?
32768Hz / 16384 = 2 second clock
2Hz / 60 = 33ms clock

Having a bad day Psi?
32768Hz / 16384 = 0.5 second
0.5 second / 60 = 30 second
Just saying...
Keyboard error: Press F1 to continue.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17729
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: counter required to count to near 1 million
« Reply #18 on: March 17, 2013, 10:56:24 pm »
the MCU is out, I'm getting fed up with MCU's at the moment as nothing about C is made simple and when you nearly have your problem solved but for a detail and ask a question on a forum you get told you missed some basic concept and have to go back to learning. Waste of time.

From my school days i seems to remember that I can have a counter that counts to t least what i need and use logic gates to sent out a reset signal at the right count, simples I'll get it done faster with basic digital circuitry than any of the MCU jargons, anythinf complex i'll take to an arduino, sad i know but as it is only with arduino that everything is made easy for idiots like me that is the route i will have to take.

My main concern is that I remeber something about counters not being sycronous and drifting due to propagation delays as one flip/flop clocked another, that is my main concern. What about the HCF4060M013TR ? it has built in oscillator circuitry
« Last Edit: March 17, 2013, 11:03:31 pm by Simon »
 

Offline jpb

  • Super Contributor
  • ***
  • Posts: 1771
  • Country: gb
Re: counter required to count to near 1 million
« Reply #19 on: March 17, 2013, 11:04:10 pm »
 A brief search at Farnell  led to the SN74LV8154N which can be used as a 32 bit counter (you need 20 bits I guess). It is a dual 16bit but can be connected as one 32bit. They only seem to have the SMD version in stock. You might need a 4 input AND gate (or 3 x 2 input AND gates) to detect when it reaches 0xF0000 and use that as both a reset and the clock (I may be out by one on this but the error of 1 part in a million is probably worth living with to simplify the circuit).
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: counter required to count to near 1 million
« Reply #20 on: March 17, 2013, 11:04:51 pm »
the MCU is out, I'm getting fed up with MCU's at the moment as nothing about C is made simple

 :-DD Then I guess my suggestion of PIC10F200 is way the hell out! With 384 bytes ROM and 16 bytes RAM, I don't think you'd have much luck programming it in anything but assembly.

I can definitely understand the draw of discrete logic chips. I use them a lot and love them. Sorry I can't help much with this specific problem though, if you want to use discrete logic - digital timing isn't exactly my forte.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17729
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: counter required to count to near 1 million
« Reply #21 on: March 17, 2013, 11:09:30 pm »
A brief search at Farnell  led to the SN74LV8154N which can be used as a 32 bit counter (you need 20 bits I guess). It is a dual 16bit but can be connected as one 32bit. They only seem to have the SMD version in stock. You might need a 4 input AND gate (or 3 x 2 input AND gates) to detect when it reaches 0xF0000 and use that as both a reset and the clock (I may be out by one on this but the error of 1 part in a million is probably worth living with to simplify the circuit).

so long as it does not have ripple type drift problems. I don't mind a slightly more complicated logic gate array to detect the overflow.
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2797
  • Country: au
Re: counter required to count to near 1 million
« Reply #22 on: March 17, 2013, 11:59:51 pm »
the MCU is out, I'm getting fed up with MCU's at the moment as nothing about C is made simple and when you nearly have your problem solved but for a detail and ask a question on a forum you get told you missed some basic concept and have to go back to learning. Waste of time.

Sounds like you need to put in some time to learn how to write (C or asm) code.  The real waste of time happens when you refuse to learn.
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2979
  • Country: aq
    • DaysAlive
Re: counter required to count to near 1 million
« Reply #23 on: March 18, 2013, 12:01:39 am »
What about the HCF4060M013TR ? it has built in oscillator circuitry
I've never been a fan of the 4060. A better discrete chip for large counts is the MC14541B. It has 2^8, 2^10, 2^13, and 2^16 outputs, with the built-in oscillator circuitry, and pin controls for auto-reset and output logic level - plus it's not a ripple counter like the 4060 - and has a smaller pin count.

Combine this with any Divide-by-N 4-bit counter (like the MC14526B) and you can easily have precision 30 second pulses from 32kHz - done completely with synchronous counters - and without the need for any extra gates.
« Last Edit: March 18, 2013, 12:28:06 am by marmad »
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17729
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: counter required to count to near 1 million
« Reply #24 on: March 18, 2013, 07:06:55 am »
So do I need to specifically look for a synchronized counter to make sure it does not drift off timing due to propagation delays ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf