We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [counter]

A digital circuit that literally "counts" - it progresses through a sequence of states that are representative of some value. It need not count in a natural progression i.e. 1,2,3,4,5 etc. to be considered a counter (i.e. you can have different count sequences) each count value need not be of significance to other circuits (i.e. sometime it's sufficient that the counter counts to some value and then stops). Examples are Gray code, up/down counter.

Filter by
Sorted by
Tagged with
13
votes
5answers
8k views

Lengthening a 5 ns pulse

I have a 5 ns pulse width High coming out of a comparator that is asynchronous. I am attempting to count this pulse. My current microcontroller (dsPIC33FJ) has an asynchronous counter on board, ...
6
votes
5answers
6k views

Counter for 20 GHz clock

I am designing time critical application where I need time resolution in order of 100 picoseconds. I am considering to make an ring oscillator of 20 GHz and clock from ring oscillator. Is there IC'...
6
votes
6answers
9k views

Very high speed counter (around 1.5 GHz to 2 GHz)

I am thinking of a device that can measure the distance of an object from a sensor using a radio transmitter and receiver pair. I'm thinking of using a counter at the sensor side, with a fixed-...
6
votes
4answers
607 views

Resetting two CD4017 counters simultaneously, only one resets

I am working on a simple 24-hour clock based on the CD4017. To reset when the clock reaches the 24th hour, two diodes are used to produce an "and" logic when the 2 digit and 4 digit LEDs receive a ...
6
votes
4answers
6k views

Can anyone tell me any exclusive application of Johnson counter?

I went through many types of counter in my digital electronics text book. Each one was interesting. When I came across Johnson counter, I was not able to figure out any practical application. Can ...
5
votes
6answers
13k views

How to interface a quadrature encoder with PIC?

I'm developing a prototype that uses a quadrature encoder to measure it's linear displacement. The encoder is attached to the prototype body and has a wheel in it's shaft. As the prototype moves ...
5
votes
1answer
3k views

4017 counter: Why do some LEDs have multiple connections in this traffic light circuit?

Schematic (from here): Why are four legs connected to the green LED and two to the amber LED in the 4017 traffic light circuit? Shouldn't it be able to do with only one leg per LED?
5
votes
3answers
1k views

five month countdown timer circuit?

I'm a beginner in electronics, so I just have an idea in my head and don't know how to actually make it. I want to make a countdown circuit, for an event in next 5 month. The display format is like ...
5
votes
1answer
3k views

Synchronous Counter to go through sequence 1,2,5,6,3,4,7,0

I have been working on a question which is: Design a synchronous up-counter that goes through the sequence 1 2 5 6 3 4 7 0 and then repeats. Implement the counter using D flip-flops. So Far I have ...
4
votes
3answers
839 views

CPLD is (sometimes) not incrementing counter

I have this simple program running on the Altera EPM240 that’s sometimes not doing the counter increment. ...
4
votes
4answers
11k views

In a JK Binary Counter from 0 to 9, why is the NAND gate connected to the second and fourth J-K flip flop and not the first and fourth?

In a binary counter design using 4 J-K flip-flops, that counts from 0 to 9, the flip flops are reset when the output from the 2nd flip flop NAND the 4th flipflop equals to 0. Since binary 9 is 1001, ...
4
votes
2answers
976 views

CD4029 does not initialize at 0

I am attempting to build a very simple 4 bit counting machine using a CD4029 ic and a 555 timer. I have built my circuit on a breadboard and everything seems to be working perfectly, however on the ...
4
votes
3answers
2k views

Initial or undefined value of flip flop

I am modeling Digital Circuits using ICs in a software. I have worked with flip flops and counters, but I don't remember it well. How do I model undefined or initial value of flip flop (SR or JK etc.)?...
4
votes
1answer
7k views

Ripple counters versus synchronous--pros, cons, and power consumption

Substantial edit--note that David Kessner's answer was written in response to the original posting; view the edit history to see what he was responding to From what I've read of digital design, there ...
4
votes
5answers
3k views

Maximum frequency of the synchronous counter

Find the maximum clock frequency at which the counter in the figure below can be operated. Assume that the propagation delay through each flip flop and each AND gate is 10 ns. Also assume that the ...
4
votes
1answer
384 views

How do I determine the fastest time between pulses I can measure?

I need to calculate the elapsed time between the rising edge of one pulse to the rising edge of the next pulse. This needs to be in a mobile environment, but I am not attached to any solution as long ...
4
votes
1answer
73 views

How to generate a clock for my ring counter?

I want to run a 4 phase switched reluctance motor at low speed. The expected conduction sequence for the motor winding(y, r, b, g) follows the output similar to that of a 4-bit ring counter and thus I ...
4
votes
1answer
3k views

AVR: Timer overflow flag in TIFR [duplicate]

I have a little question about the TOVn flag located in the TIFRn register. The datasheet says, if the ...
4
votes
3answers
128 views

Creating a Sequenced Array of 3 Mosfets with Adjustable Timings

I am comfortable with rudimentary 555 circuits and other basics, but I have something a little bit beyond me now. I need to have three separate mosfets A, B, and C all turn on and off in sequence. I ...
3
votes
6answers
14k views

Design a 8 - 6 - 4 - 2 - 0 - 1 - 3 - 5 - 7 - 9… Counter

Design a counter: 12-10-8-6-4-2-0-1-3-5-7-9-11 using D Flip Flop. My first approach is designing a 8 - 6 - 4 - 2 - 0 - 1 - 3 - 5 - 7 - 9 - 8 - 6 ... counter and display them on 7segment LED. ...
3
votes
4answers
517 views

Record signal when two items touch each other

I have a Carrera GO!!! race track. There's a plastic mechanical lap counter that adjusts every time a car passes it. What I would like to do is to have some sort of electrical connection that when ...
3
votes
4answers
3k views

Discrete I2C Counter IC

I feel a bit like I'm losing it... I can't seem to find a (modern) i2c counter chip. Something that will take random events, sum them up, and let me poll from a uC a couple times a second. Events can ...
3
votes
1answer
499 views

Why ripple counter increments on each 8th pulse

I have connected the ripple counter CD4020 to an Atmega328, which sends a 50ms (low logic level) pulse to the CD4020's input each second and monitors all of its 12 outputs. However instead of ...
3
votes
2answers
363 views

How to make AC signal's level proper for MCU input?

I'm working on a frequency counter coursework, where I use MSP430 MCU. I have to measure signals with specifications: frequency from 0.1 Hz to 1 MHz and signal's amplitude from 0.1V to 10V. The ...
3
votes
3answers
370 views

How to create a counter to display 6 digits using anodes?

I'm trying to write a digital clock on vhdl for an fpga that runs on 100mhz. I can write it on 4 anodes by creating a counter as shown below(count1 = 249999), the digits seem pretty clear. However, ...
3
votes
2answers
242 views

What does this dash mark in a DIP 4-bit counter IC indicate?

I have seen a dash mark in 74LS193 4-bit counter IC while working with it in a project. What does this dash mark indicate?
3
votes
2answers
12k views

VHDL--counter for 7 segment display

I am writing a code that when the key(0) is pressed, the letter shown on the 7-segment display changes from the one to the next, like a to b, b to c. It starts from A. When the letter reaches H, it ...
3
votes
2answers
3k views

Johnson Counter VHDL

I have a problem given to me that states: Design a 4-bit Johnson counter and decoding for all eight states using just four flip-flops and eight gates. Your counter needs not be self-correcting....
3
votes
1answer
752 views

An IC that would combine a counter and a decoder

I have a circuit that makes uses of a decoder to command the latch line of 8 latches. To avoid spurious latching that could occur in transitions, I disable the decoder output while I change the input ...
3
votes
2answers
2k views

Issues implementing an up/down counter

I am trying to understand how to implement up/down binary ripple counter. Basically, I have a bunch of D-flipflops, and connect clk of next flipflop to ether Q or Q'. So, if I want to change ...
3
votes
1answer
599 views

frequency generator / counter

I want to generate a precise frequency in the 500MHz range, and have therefore purchased a VCO (200MHz to 400MHz). To measure the VCO output frequency, I'm trying to build a high frequency counter up ...
3
votes
1answer
518 views

74190 counter problem

So, I got my 74190 counter shows number like this 9-8-7-6-5-4-3-2-1-0-5-4-3-2-1-0-5-4-3-2-1-0-5-4-3-2-1-0 and so on. My questions: What can I do to change the output count down into 5-4-3-2-1-0-5-4-...
3
votes
3answers
398 views

Count cycles from oscillator clock to get time

first time on stackexchange, hope I'm in the right place. I am working on a project where I need to timestamp an event (which will be detected from an electrical pulse) down to a few tens of ...
3
votes
1answer
2k views

Unsigned addition overflow and synthesis

Let's say we have the following code where a, b and c are 3-bit wide representing unsigned ...
2
votes
3answers
661 views

Counter: pulse every 8 clocks

I have a square signal (fixed but can be between 12MHz and up to 48MHz) and I would like to create every 8 clocks a pulse as brief as possible, no more than 1/4 of the period. First, a couple of ...
2
votes
3answers
2k views

Using a counter to reduce pin counts for SPI slave selection

I've got five SPI SRAM chips, which I want to control off a single Arduino. I've seen setups like this, which share SCLK, MOSI ...
2
votes
3answers
51k views

How to connect 7447 decoder to 7-segment display?

I've connected a 7447 decoder to 7-segment display as shown in figure. When I connect an input, the LEDs doesn't form numbers but they light up randomly. I just want to know the right way to connect ...
2
votes
2answers
479 views

Why are synchronous counters synchronous?

Doesn't the input signal having to propagate through the AND gates cause a propagation delay anyway? With the asynchronous counter the delay was caused by the clock signal - with the synchronous ...
2
votes
3answers
550 views

Counter is missing an output signal

I used a 4040 counter to count the pulses from an encoder. I then connected two counter output signals to an AND gate, and after that one way is go to reset 4040 counter. The issue is that when I ...
2
votes
1answer
170 views

Use counter's output to reset itself

I have SN74HC4040 12 bit counter, however, I need only 10 bits and then reset it back to 0. Would it be reliable to use 11th bit as an input to the CLR (reset pin)? Basically, when the counter ...
2
votes
3answers
797 views

CPLD best practice for resetting a counter

My application has a bog-standard count-until-a-certain-number-then-reset-the-counter section. My experienced friend tells me that when using actual chips, it's common to increment the counter on the ...
2
votes
2answers
4k views

Design a Counter With an Arbitrary Sequence

I'm trying to design an asynchronous counter with JK flip- flops, with an arbitrary sequence. The sequence is: 0,1,10,11,0,5,14,15. I know how to solve this kind of problems, but in this case the ...
2
votes
1answer
1k views

VHDL - How to reduce signal's dependencies and optimize speed?

I'm wondering how to optimize comparison a wide counter value with few defined values. Maybe it will be easier if I show it on example - let say there is a receiver that gets data in well defined ...
2
votes
2answers
1k views

Why is a 15 stage binary counter/divider so cumbersome?

There seem to be many ways to take a 32.768kHz signal and turn it into 1Hz. I can use a CD4060, but still have to add a flip-flop... so 2 "large" chips with excess (potentially) unused functions ...
2
votes
4answers
7k views

How to count the number of people in a room with a specific sensor? [closed]

I want to count the number of people in a small room. According to my research, there are person-counters in the web but I want to use the number of people data for coding hence I must transfer the ...
2
votes
1answer
470 views

How to count the number of high voltages in Hantek Oscilloscope?

I have a Hantek 6022BE oscilloscope and I want to know how I can count the time and number of times a certain voltage is reached by the wave. For example, I am measuring the voltage of data being ...
2
votes
2answers
2k views

Having an issue of implementing an 8 bit counter from two 4 bit counters

So I'm having an issue of implementing an 8 bit counter from two 4 bit counters. The first 4 bit works when initiated by the clock pulse and so does the second separately with its own clock pulse. How ...
2
votes
2answers
4k views

Designing a synchronous counter with d flip flops

I have to design a counter with two inputs: x and y. If y = 0, the counter behaves like a 3-...
2
votes
2answers
2k views

Easy resource to learn solving counter problems?

Could anybody please point me some direction on where I can learn to solve simple counter problems like counting in a given sequence using a given flip-flop? For example: Create a counter counting ...
2
votes
3answers
863 views

how to create a square wave with large duration and high duty cycle

For a "plant waterer circuit" I would like to add a safety feature that prevents watering for over ~3 minutes, and delays the next watering from occurring for ~12 hours. Currently the circuit is ...