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
-1
votes
0answers
24 views

What are these Inputs on a 8-Bit synchronous forward/backward counter in Logisim?

Our instructor has given us this Counter and we were tasked with constructing a logic, which makes the counter go from 0 to 78, then from 78 to 0 and repeat. The Circuit you see works as intended when ...
0
votes
1answer
44 views

Digital downcounter not resetting

I have a digital down counter which is supposed to count from 9 to 0 and then it goes back to 9 (bottom) but it only goes back from 9 to 8 and then back to 9 and I don't understand how it works. Note ...
1
vote
2answers
27k views

Design a 3-Bit Up Synchronous Counter Using JK Flip Flop (odd vs even numbers)

I have to design 3-Bit Up Synchronous Counter Using JK Flip Flop counters. The first one should count even numbers: 0-2-4-6-0 The second one should count odd ...
0
votes
1answer
46 views

How exactly does activating CLEAR cause an asynchronous modulus 12 counter to reset?

I'm confused about how Clear manages to reset the counter. The trigger is falling edge. Starting from where the counter is in the image (I'll refer to each JK flip-flop as F1 etc.): At first, we have ...
0
votes
1answer
46 views

Assigning binary value to decimal value using counter

I don't know muach about verilog, but i started to study it lately. So if these codes doesn't make sense at all, forgive me :D I am writing a verilog code for Sinus lookup table. for instance, ...
0
votes
1answer
72 views

Help on writing test bench for up counter in verilog

preamble: I think I have enough understanding of logic circuits and enough experience in programming from other languages(C, python, etc.) However, I am very new at Verilog and also have never used ...
3
votes
2answers
2k views

Ripple counter, reset problem (J-K flip flop counter)

I am trying to simulate a decade counter using a ripple counter 4 bits and a NAND gate to reset the 4 J-K flip-flops when it reaches 10 (1010). The thing is it does not reset but goes to 4 (0100) due ...
0
votes
1answer
55 views

Master-slave JK flip flop (74HC73) doesn't toggle

I'm designing a traffic light using two BCD counters and a JK flip flop. The simulation works perfectly on Proteus, but not in hardware (PCB). The traffic light is required to count from 40 to 0 in ...
0
votes
1answer
30 views

Counter Flip Flop D no sequence

I have the sequence: 0-3-1-2-3-1. Making the table for this. |Present state | Next state | D1| D0 | | 0 0 | 1 1 | 1 | 1 | | 0 1 | 1 0 | 1 | 0 | | 1 0 ...
0
votes
1answer
76 views

Understand a counter in VHDL

I'm trying to understand the description of a counter in VHDL: ...
0
votes
2answers
52 views

Redundant capacitor?

I have the following circuit It's a basic traffic light circuit using a 555 timer and decade counter. All works fine but what is the purpose of the 0.1 microfarad capacitor on the left of the diagram?...
0
votes
0answers
28 views

How to produce sound when a certain condition is met in proteus?

I've made a 6-bit counter with 6 JK flip-flops that can count from 1 to 33. After it reaches 33, the circuit will go back to zero. I want the circuit to produce a sound when the counter reaches 33. I ...
1
vote
3answers
63 views

Why doesn't my pull-up work on S-35770 I2C counter IC?

I designed the following PCB from the schematic below to make a breakout for an I2C counter IC, datasheet is here. However my RST pin doesn't go up and the IC stays in reset state. I'm feeding 3.3V to ...
0
votes
3answers
255 views

Using a counter to count how many clock cycles a signal is high using Verilog

I want to use a counter to count how many clock cycles an input signal is high. The issue I am running into is that once the input signal returns back to zero, my counter resets which causes my output ...
1
vote
1answer
1k views

Simple number counter - PIC16F877A microcontroller problem

I am trying to make a simple counter using pic16f877a. I want to count each time a push button is pressed, that is taking one press as one count, regardless of how long the button is pressed. The ...
1
vote
2answers
184 views

What is a dc reset?

I read this sentence from a book: "MR is a dc reset". It said about master reset leg in a counter IC. I have been searching but found nothing related to this terminology. I wonder what a dc reset is?...
2
votes
2answers
3k views

Ring counter in verilog

I have the task of designing a ring counter in verilog using shift operator. Here is the code so far along with test bench : ...
0
votes
1answer
152 views

RFID (or other) - Proximity Detector

I am trying to detect how often 2 animals 'interact'. Say I have 4 cats, I am trying to work out how often each of the cats interact with each other. I have considered using RFID tags attached to ...
1
vote
0answers
19 views

Designing a down counter using Xilinx ISE design

We are trying to design a circuit that counts down from 9.99 to 0.00. Could you give us some tips?
0
votes
1answer
52 views

Converting pulses to RPM

I have a question about how to take an output from a sensor and calculate RPM. The sensor produces a square wave at a maximum frequency of 1kHz. So I think I have two options: Count rising edges in a ...
0
votes
0answers
60 views

Logisim - Counter with clock and Magnitude Comparator not working as expected

I have the next circuit in logisim: It is a simple 8 bit counter, with a magnitude comparator that outputs 1 when certain value is met. The problem is that if I simulate with a clock, the counter ...
0
votes
3answers
535 views

4024 cmos counter not resetting

In my project, this section is faulty. I'm doing a bit-banging operation with shift registers and I'm trying to make shift register data reset after 15 bits are shifted out from the micro controller. ...
3
votes
2answers
191 views

Is this a good design for a 0…7 counter?

My daughter's electronics teacher recommends to realize a counter from 0...7 as follows: It shall give an output pulse (for a subsequent circuit) when the button is hit the 8-th time. For me this ...
3
votes
2answers
360 views

Unable to trigger NPN Transistor from 4017 decade counter output

I am trying to make a unipolar stepper motor driver circuit. As a development landmark, I am trying to first run LEDs using the driver. Attached is my circuit. My 555 timer generates regular pulses ...
1
vote
1answer
128 views

How to send to pulses to a CMOS Counter

I have tried to find answers to this many times, and the only solution I have been able to find is having two 555 Timers (or a 556) one in astable, and one in monostable. I could easily do this with ...
0
votes
3answers
137 views

How can I improve my 3 decade counter design so that it counts sequentially in Verilog [closed]

How can I improve my 3 decade counter design so that it counts sequentially? I am attempting to build and simulate a 3 decade BCD counter by cascading 3 decades counters that produce an output to ...
6
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 ...
1
vote
2answers
2k views

Can you make a ripple counter count in Gray Code?

The Task: I was given the task of designing a decade counter using J-K Flip-Flops. What I immediately thought of was whether I should make it Synchronous or Ripple. And here is where I started getting ...
1
vote
1answer
185 views

led chaser with non-mechanical shut-off option

I've seen thousands of standard led chaser circuits online but I haven't seen one in which I can shut off all LED's in a non-mechanical way. I'm wiring one pin of my chaser up to a microcontroller so ...
2
votes
1answer
175 views

3 digit BCD Counter in VHDL and Quartus II

I'm trying to make a 3 digits BCD counter in VHDL for Cyclone V FPGA from intel. I have an module-k counter design and I instantiate four counters in top level module (structural design): One counter ...
2
votes
3answers
2k 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 ...
1
vote
1answer
269 views

How can I implement this function with JK Flip Flop + NAND Gates

I have a problem about logic design. I need to design MOD 5 Up/Down Counter with control input x, when x=0 it will count down and when x=1 it will count up. I'm allowed to use only JK flip flop and ...
0
votes
1answer
34 views

Unexpected Behavior: i2s L/R clock only works under arbitrary conditions?

I'm new to Verilog (and HDL at all) and working with a Cyclone II EP2C5 Mini Dev Board in Quartus II (version 13sp1 to be compatible with my cheap FPGA). I use the below two modules (one mostly just a ...
1
vote
0answers
42 views

Counter example

I am building a digital 1 bit counter. The function of the bit counter is: I have stored a value somewhere. I take this value and add 1(digital) if the stored value was 0 then the output value will be ...
1
vote
0answers
42 views

How i can automate a circuit using transistors instead switches?

I'm recycling the counter circuit of a microwave, for use it as a stopwatch, that turns on automatically, and start the count per seconds immediately when turns on, the circuit have two buttons "...
4
votes
1answer
19k views

What is reset, preset and clear in a counter circuit?

I know this is a basic question. But I want to know the use of Reset, Preset and Clear in a Counter circuit. How do I use them? An example would be appreciated.
2
votes
1answer
53 views

Basic Logic Gate with a Counter

Wire the AND gate so that its (former) X input is driven by the counter’s Q1 output, and its (former) Y input is driven by the counter’s Q0 output. The output is still F. To ensure that you can see ...
0
votes
2answers
383 views

Design Counter With Arbitrary Sequence Using Load

I'm trying to design an asynchronous counter with JK flip- flops, with an arbitrary sequence. The sequence is: 0, 1, 2, 3, 4, 5, 2 ? I know how to solve this kind of problems, but in this case how ...
1
vote
1answer
97 views

Designing a electronic dice with Arduino, 74HC163 and a 74HC4511 decoder to a 7segment display

So im designing a electronic dice with a 74HC163 and the 74HC4511. My problem is that the counter counts 0-7 everytime (using only the 3 flip flop outputs, Q0-Q2) I would want the counter to count ...
0
votes
2answers
183 views

How to design Gray code synchronous counters of large widths using SystemVerilog?

I want to design a synchronous gray code counter which is 10 bits wide in SystemVerilog. The counter should have an Active HIGH synchronous reset. I know how to design a 3 bit gray code counter like ...
0
votes
0answers
53 views

Counter with 4 flip flops jk synchronous from 1 to 12?

I wanted to create a circuit that would count from 1 to 12 to make hours counter for the digital clock. I work on logisim. I already made counter mod 13 but don't know how to adjust from 1 to 12 (not ...
2
votes
1answer
98 views

How can a 74LS76 JK Flip Flop's outputs Q and Q-bar not be fully complementary?

I have a 74LS76 JK flip flop hooked up as follows: You think that should be easy. But look at my scope traces of Q above and Q-bar below: how the heck can a JK flip flop's output Q and Q-bar be not ...
-1
votes
2answers
125 views

How do I make a counter only from logic gates?

What I want to make is a circuit using only logic gates made from transistors, and not using any IC. What I want to do: There is 1 button and 8 LEDs. When I press the button the first LED turns on. ...
1
vote
1answer
49 views

How to use “AND” statement in Verilog

I am trying to create a counter that starts counting when a start signal goes from 0 to 1. Then, I want the counter to keep counting until both the start and stop signal are 1. Once both signals are 1 ...
-2
votes
1answer
47 views

Unknown error in Verilog

I am currently getting an error saying that my "counter_2" is not a constant. I am also getting a syntax error when I use "<=" with my counter_2. I've attached screenshots of my ...
1
vote
1answer
108 views

Trying to measure a pulse width and then send pulse of same width using Verilog

I am trying to write Verilog code which will measure the width of a pulse and then send a return pulse which has the same width. So far, I have created a counter which counts the number of periods ...
0
votes
2answers
26 views

binary up/down counter with synchronous clear and preset

For a binary up/down counter with synchronous clear and preset , my question is what is the exact function of the preset here ? I have done many searches but every source assumes that the reader knows ...
0
votes
1answer
104 views

Why is my 8-bit counter only counting until 127?

I recently coded an 8-bit counter in Libero and simulated it in ModelSim using Verilog. When I simulated my design, it only went up to 127. Shouldn't an 8-bit counter go up to 255? Here is my HDL Code:...
1
vote
2answers
44 views

Encoder direction change during index pulse

I have a quadrature encoder with an index pulse, and I would like to keep track of angular position over multiple turns. The microcontroller I am using has counters that count both index pulses (...

1
2 3 4 5
10