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
vote
1answer
217 views

Creating a Counter in Verilog for Flashing LED on Lattice Starter Kit

I have a lattic X03LF starter board with 6900C FGPA. There are eight LED available on this board and a push button. The goal of my code is to design a 8 bit counter that increments whenever a button ...
1
vote
1answer
98 views

Clock frequency of FPGA circuit and 4-bit counter [closed]

I have implemented a 4 bit counter using HDL. Now I have downloaded the code to an FPGA kit with a 50 Mhz oscillator. This means that the clock period will be equal to 0.02 microseconds and ...
1
vote
1answer
75 views

circuit that disconnects a connection

I'm designing a circuit that will disconnect a connection when 5 consecutive square wave pulses are missing. If less than 5 consecutive pulses are missing then I want to reset the counting process. <...
1
vote
0answers
71 views

IC for magnetic environments

I am working on a comparator circuit for converting a small AC signal to a digital (square) signal. The circuit is meant to be used in a strong magnetic environment, so the casing should not have ...
1
vote
0answers
63 views

Using a clock to increment a counter which drives a mux?

I am trying to program this functionality onto a Xilinx FPGA; however, when I program it to do this, I get no output. My situation is as follows: I have 12 bits of data (in parallel): the first 6 ...
1
vote
0answers
806 views

Clock Frequency for 4 digit 7 segment display in VHDL

I am using basys 3 and VHDL to create a stopwatch and I need to do it for both the 7 segment display of the basys3 itself and for a external 4 digit 7 segment display. I am given the clock divider ...
1
vote
1answer
622 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
0answers
79 views

Is this a ring counter ? What is its definition?

We can know the ring counter like :0000 -> 1000 -> 0100 -> 0010 -> 0001,it shifts the "1" bit. Here is my schematic,the same as the schematic from the internet,and because my d-flip flop is active ...
1
vote
1answer
1k 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 ...
1
vote
1answer
588 views

Hold Time Violations with Shift Registers/Ring Counters

I have read (and been told) numerous times that for a shift register, the clock should run reversely to the data (e.g. http://www.edaboard.com/thread103493.html). Main Question: Is this definitely ...
1
vote
0answers
91 views

Glitch on 7490 driving a 7441

Edit 1/1/17: I was going to take a picture of my NI Elvis breadboard as the first fee suggestions didnt work. I removed several ICs (counters) that I was going to use for the other digits and some ...
1
vote
1answer
174 views

Unexpected behaviour from synchronous counters in proteus

Figure: 1. Figure: 2. Content in ROM(U56) T0: 00 T1: 00 T2: 00 T3: 04 T4: 00 T5: 00 T6: 04 T7: 00 T8: 00 T9: 04 (I have ...
1
vote
3answers
564 views

4017 Counter LED Shuffle By Touch

Hi all, I found the following circuit on the internet and made it on the back of a business card as a fun project. The idea is that you ask a question, touch the naked wire, the lights shuffle and ...
1
vote
0answers
117 views

clarification on a particular 555 implementation for 4017 johnson counters

I'm trying to build a 13 count johnson ring counter (which flashes LEDs sequentially 1 thru 13 and then repeats), and I found this circuit which looks perfect: I assembled it with an extra LED on the ...
1
vote
1answer
448 views

Binary counter (SN74LV8154) jumps (internal bits seems to flip)

I am using a "Dual 16-bit binary counter with 3-state output registers" (SN74LV8154) to count input pulses up to 32 bits. It is working fine most of the time, but some of the bits in the counter seem ...
1
vote
5answers
1k views

Understanding D flip flop function - what this thing does

I am trying to understand what a D flip flop does int he context of building a truth table, so I can design a synchronous divide-by-five circuit. That is, count to five and reset. I know I need 3 ...
1
vote
1answer
976 views

Improving my impulse counter circuit

I just started studying electrical engineering this semester, and I'm currently working on following impulse counter: The circuit is basically a power supply regulated to 5V, a pendulum acting as a ...
1
vote
0answers
99 views

Relation between Digital frequency counter and temperature

This is a homework question, I can normally solve the problems on freqeuncy counter but I never did with temperature related frequency counter problems. A digital frequency counter has these ...
0
votes
4answers
1k views

How to use Counters ONLY to construct a School Bell circuit?

I am really stuck here, our instructor told us not to use the 555 timer (and to be honest I never used it). So we are supposed to make a circuit by using counters only, I guess. How can I generate ...
0
votes
1answer
3k views

Realization of divide by 78 counter

I am unable to pick the right option from the below ...
0
votes
2answers
976 views

Frequency Counter Using a PIC16F648A

I wonder if someone could help me with some general suggestions on a frequency counter project. I'm trying to modify a 6 digit LED frequency counter that uses an integral PIC16F648A, a 13 Mhz ...
0
votes
1answer
411 views

How can I emulate the PS/2 protocol without a microcontroller?

I am trying to emulate the PS/2 keyboard protocol with a custom piece of hardware, without using a microcontroller. The said piece of hardware will consist of 13 momentary push buttons. http://...
0
votes
3answers
118 views

Why is my seconds counter in verilog jumping values behaviour?

I am implementing a seconds counter on the Altera DE-1 Educational Board powered by the old Cyclone 2 FPGA. My plan is to make a 'down-clocker' that takes the on-board 50 MHz clock and produces a 1 Hz ...
0
votes
2answers
341 views

How propagation delay of synchronous counter is less than asynchronous counter?

My question is very basic one, but thought of asking here to clarify. In asynchronous counter the output of Flip Flop is given as input to other Flip Flop as clock, where as in synchronous counter the ...
0
votes
2answers
784 views

D type flip flop feedback

The D type flip flop needs feedback from its inverted Q output to divide frequency by two. Is there an intuitive explanation for this?
0
votes
4answers
959 views

Shift Register Counter

I am working on a project with my MBED microcontroller and I'm running into some snags, because I'm new to it and getting myself confused with how exactly everything works. I have my MBED hooked up ...
0
votes
1answer
87 views

Finding frequency of a series of pulses (3 - 60 Hz) without using a microcontroller or frequency-to-voltage converter

I came across an interesting yet challenging problem of finding the frequency of a series of pulses. The pulses can have a frequency anywhere from 1 to more than 100 Hz. The goal is to detect if the ...
0
votes
3answers
76 views

74LS74AN Binary Up-Counter

I have an issue with my binary up-counter using a 74LS74AN D-Flip Flop The issue is the following: I am trying to toggle the flipflop state by sending it a 1Hz Square wave (5V Peak) to make it toggle ...
0
votes
1answer
511 views

Counting signal frequency with binary counter

I'm trying to count the frequency of an audio signal using a 393 binary counter which is read by an Arduino without using its ADC. If the reading is done once per second, should the counter be somehow ...
0
votes
1answer
378 views

Issues with combining counters for traffic light

I am trying to implement something as simple as the controller for one single traffic light by using two counters (one for green/red and one for yellow), but I don't seem to be getting the timing ...
0
votes
4answers
399 views

Is it possible to create a 22 stage synchronous counter using multiple 4-bit synchronous counter?

Is it possible to create a 22 stage synchronous counter by linking together multiple 4-bit synchronous counter, like SN74F163AN?
0
votes
2answers
15k views

8 bit counter from T Flip Flops

I'm trying to build an 8bit counter in Verilog. I specifically need to create a module that I instantiate 8 times. I have followed the diagram below (and assumed that I can just build on it to make it ...
0
votes
2answers
867 views

frequency divider by 42 with 50% duty cycle

I want to design a clock divider by 42 from flip flops. Is there a way to do that while still gets 50% duty cycle?
0
votes
3answers
1k views

Keypad to set a counter

Is there a way to use a standard Matrix Keypad to set a synchronous counter IC without having to use a micro controller?
0
votes
3answers
872 views

Synchronous 4-Bit Up/Down Counters preset

I have a synchronous 4-bit up/down counter, and in the data sheet it stands that there are 4 pins where I can enter a 4 bit preset number, but it doesn't say what this number represents. I believe ...
0
votes
2answers
194 views

High speed counter with step control

I am trying to build my own DDS. I want to make a lookup table (eeprom)that controls steps of a counter and then feed it into a DAC to make a wave form ( something like that Direct Digital ...
0
votes
1answer
279 views

Verilog counter made of 32 bit adder (syntax error)

For a school assignment I have to make a counter, based on a 32-bit adder, that increments with 1 every clockcycle if 'enable = high' and 'reset = low'. When I try to use the adder in my counter ...
0
votes
1answer
56 views

Which edges does this counter count? [closed]

This board has two counter inputs. But is there a way to figure out whether the counter counts each rising or falling edges? Rising or falling edges?
0
votes
4answers
158 views

Making a counter that goes from 1 to 6

How do I make a counter that goes from 1 to 6? I have a 555 Timer connected to a 74LS390N counter which is connected to a 7 segment display module. I can't figure out how to make the counter's output ...
0
votes
1answer
234 views

Building a 7 Segment clock using mains frequency

As the title says, I want to build a clock using the mains frequency (50Hz). I only want to use digital integrated circuits from the CD4xxx series or something similar. (no microcontroller or do-it-...
0
votes
2answers
5k views

8-Bit Binary to BCD Decoding for Three 7-Segment Displays

I've created a circuit that uses both binary and BCD counters to convert an 8-bit binary number into three BCD numbers, which then feed into BCD to 7-segment decoder chips, and finally to common-anode ...
0
votes
3answers
374 views

74LS90N Is not counting!

So basically Im working on a counter from 0-9 and I have made a simulation and it works completely fine but when I implement it on the breadboard it does not count. I have implemented it more than 4 ...
0
votes
4answers
296 views

LM393: Electronic Fry Counter

We're using an LM393 Light sensor and a laser transmitter used for counting the fry that will enter into our machine. The machine counts properly when we use an object like a pen or a stick in front ...
0
votes
3answers
135 views

Using PIC18F4520 to measure slow period/Frequency

I have been trying to find a solution to measuring a relatively slow frequency using the PIC18F4520. The frequency range I'm attempting to measure is in the range of .5 to 20Hz. I need to have a 1 ...
0
votes
2answers
104 views

How do I build this simpler gadget?

Up front I have almost no experience with this kind of thing. I'm a computer scientist so I understand logic gates and the like but I know near nothing about electricity. What I want to do is build a ...
0
votes
2answers
536 views

Is it possible to load values to a counter upon startup?

I'm designing a digital clock for a freshman electrical engineering projects course. I am using SN74HC161 4-bit synchronous counter chips for the counting. My design counts seconds and minutes with ...
0
votes
1answer
3k views

Non-Wraping Up-Down Counter

I'm trying to implement a synchronous up-down counter in verilog with the following rules: Counter only changes on rising edge of clock When reset=1, count goes to 00, normal operation when reset=0 ...
0
votes
2answers
247 views

how many bit binary counter?

I was in a training class and the instructor went quickly over how to use a single output momentary switch to effectively drive 4 different states, which he didn't think was important and skimmed--so ...
0
votes
3answers
5k views

Delay function using timer/counter 1

i have made a function called _MY_Delay() which use 16bit timer/counter1 in ATMEGA16 , and used this function to blink a LED . the problem is i didn't work and i don't know the reason , here is my ...