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 ...

learn more… | top users | synonyms

0
votes
1answer
52 views

Is it normal that a clock divider made with ring johnson counter has output Undefined if clk starts high?

I'm making a frequency divider and the easiest way is to use a johnon's counter with D flip flop. The point is that if I make the clk start high, the counter has undefined output, while if I make the ...
2
votes
1answer
52 views

VHDL 4-display counter on a Nexys 3 (0000 to 9999)

I'm triyng to implement a 4 display counter (0 to 9999) on a Nexys 3. However, when I load the bit file, all displays remain at 0. It seems like variables a,b,c,d; which control individual digits, ...
1
vote
2answers
103 views

How to switch between two analog outputs with a digital output?

I have a circuit with a 74ls93 counter and I want to use one of its outputs to switch between two analog output, i.e., when the output of the counter is HIGH, the output of the circuit must be V1 and ...
0
votes
2answers
61 views

Adding a sensor to a traffic light circuit?

I am using the current circuit to time a basic traffic light that changes every twenty seconds: However, I've been trying to figure out a way to add a way to detect a car stopping at the light, so ...
0
votes
2answers
34 views

VHDL Counter does not update when desired

For a project I am working on, I require a counter whose value increases as soon as the increment control goes high (i.e. on the rising edge). However, I have had trouble implementing this in VHDL. ...
1
vote
1answer
59 views

3 - bit Counter (repeat after each 6 clocks)

I have tried to make a counter which counts until six clock cycles and then repeats. And would like to know whether I have done all right and the counter works correct. simulate this circuit ...
-4
votes
1answer
63 views

Synchronous decade counter only 3 AND gates

I need a design for a synchronous decade counter that can have no more than 3 gates, excluding the JK's. I do not need to design this myself as it is considered above the level of course I am doing, I ...
0
votes
0answers
65 views

LED Matrix design in Logisim to display a count sequence

I've built quite a large circuit (at my level) that generates outputs d3, d2, d1 & d0. d3 and d2 are generated by a multiplexer / OR gates and d1 / d0 are generated by an 8-1 MUX. These outputs ...
0
votes
2answers
96 views

Resetting a counter when it reaches 6, without logic gates

I have a 3 bit ripple counter (using t flip flops) and I want the counter to reset to one when it reaches 7 i.e. the counter counts from 1 to 6. My idea was that I could hook the three outputs from ...
-2
votes
1answer
67 views

Serial Counter in digital electronics [closed]

What exactly is a serial counter in digital electronics? Someone told me it is a way of to design a counter with shift registers and some combinational circuit to obtain s counter that operates ...
0
votes
4answers
127 views

4 digit 7 segment CC - all digits count the same number

Ultimately I'm looking to build something that's going to count revolutions as part of a guitar pick up winder. I've got a circuit hooked up with 4 x 4026 counters going into a 4 digit 7 segment ...
0
votes
1answer
28 views

Designing state machine for Jk FF Counter

The counter is supposed to go from 1>3>4>7>6 and use JK flip flops. While filling out the state table I'm a bit confused about what to do with invalid states. Since I think this is 3 bits and should ...
0
votes
0answers
72 views

How to implement the bit count using logic circuit?

I am very interesting in these bit counting problems, since there are many programming implementations such as: http://gurmeet.net/puzzles/fast-bit-counting-routines/ Also someone discussed the ...
0
votes
2answers
133 views

Confusion over a simple 4060 LED blinker

I'm trying to build a simple LED blinker using a 4060BP binary counter, as per the following: and (Originals here and here). When I have built either circuit, the LED (I'm just using one for now) ...
0
votes
0answers
138 views

Verilog Testbench

I designed a Binary Counter using Basys-2 FPGA Board.Its working on the Basys-2 board,but my test bench is giving me some errors.I couldn't figure out what's the problem,since the timing diagram is ...
0
votes
2answers
68 views

How to convert this NOT/AND/OR counter to an all NAND counter?

Sequence: 000,010,111,001,100... Have to build it using a JK Flip Flop for Q0 and 2 D flip flops for Q1 and Q2 and all NAND gates. Basically I have no problem building this counter with just the ...
0
votes
2answers
90 views

time delay in counter

For the ring oscillator shown in teh figure 1 , A ring oscillator consisting of 5 inverters is running at a frequency of 1 MHz. the propagation delay per each gate is? One possible solution for ...
-3
votes
1answer
85 views

AVR 60Hz periodic interrupt [closed]

How can I configure an AVR microcontroller timer to generate periodic interrupt events at 60 Hz rate, using 14.745 MHz system clock?
0
votes
1answer
33 views

Where should I include the instantiation in top module(counter)

I am doing a counter module in Basys-2 board.This is my instantiation of the debouncing circuit ...
0
votes
3answers
164 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 ...
0
votes
1answer
113 views

aquaculture fish counting

in fish farming the fish are fed at a percentage of their weight. i measured the weight of the fish that i put into the tank, and i can remove the fish once in a while to reweigh them but that is very ...
0
votes
0answers
156 views

Using Pic18F timer for external pulse count assembly code

I am new to using a Pic18f2550 micro-controller. I have been searching for examples on how to setup and use the 16 bit timer Tmr1 and Tmr2 to count the number of pulses from an external motor opto. ...
1
vote
2answers
84 views

johnson counter sine wave resistor network

I saw one schematic which uses an 8-bit shift reg to produce a sine wave with a resistor network. I am guessing the resistors will be voltage dividers, but how are the values calculated? I tried to ...
0
votes
2answers
104 views

74LS163 Counter Exhibits Constant Voltage on an Input Pin

I built a circuit that uses the 74LS163 synchronous counter. I am using in such a way that I reset the counter, using the /clear input pin, externally via and LPF connected to a tactile switch. The ...
0
votes
3answers
69 views

Why is it when I set up a Johnson counter, the number sequence rotates fine, but I can't get a ring counter right (explanation below)?

With a Johnson counter, I hook up every flip flop's Q output to the following flip flop's D input, for D flip flops. And then the final Q' output is hooked into the first flip flop's D input. When I ...
0
votes
2answers
57 views

Reset pin (15) behaviour of 4026 counter

I'm trying to play with CD4026BE counter and I'm unable to solve the problem with reset pin (15 according to datasheets and numerous examples). In my case, if pin 15 (reset) is grounded with the ...
0
votes
1answer
47 views

JK flip-flop and sequence network

State diagram of the sequence network S looks like the following for a jk flip-flop: Is this the right truth table for it? ...
0
votes
1answer
112 views

What's the difference between a decade counter and a “Divide by 10 counter”(MOD 10 Counter)?

I have a project of creating a digital clock out of multiple 7-segments. In order to display digits 0 to 59 in 2 7-segments which is better and easier to use: cascaded decade counters or a "divide by ...
1
vote
1answer
184 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
3answers
97 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
1answer
243 views

Realisation of asynchronous decade counter

Here is the illustration of the counter: Can you please explain in detal what happens here? Why are J and K inputs always 1 and how does CLR reset these flip-flops?
4
votes
1answer
205 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 ...
0
votes
1answer
43 views

Freq. measurement using pin change interrupt + 4024 counter?

I have an oscillator which I need to measure using an AVR MCU running on an 8MHz Xtal. The output from the oscillator is driving the clock input of a 4024 counter. The freq. range on Q6 (input signal ...
0
votes
1answer
54 views

Binary Counter IC Counting Incorrectly

I'm currently trying to use 74HC163 in a project, and it appears I have it wired up correctly, but it counts in a very strange sequence. I wrote down the sequence as follows: ...
0
votes
2answers
227 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
92 views

Making a clock cp for counter, using a photodiode

I need to make a device that counts light impulses, basicly a light detector counter, i need help with my counter cp, how to implement a photodiode(can't find phototransistors in the stores) to do ...
0
votes
1answer
292 views

I2C-controlled digital counter

I need for a project an IC which should generate a digital signal with a length given by an I2C-signal, i.e. if I send the IC "50" (or something similar with the same meaning), I want to get 50 ...
0
votes
1answer
209 views

Design up counter in VHDL using generate statement

I need to design an 8 bit up counter in VHDL using T flip flop and generate statement. I know how the counter works, but I am not able to design it in VHDL. The main problem is "using generate ...
1
vote
1answer
83 views

Using a Counter to Determine next MSB position in polynomial division

I am working on implementing a polynomial divider the operation is as follows: Check MSB of Numerator: if 1 XOR with Denom then shift Denom right if 0 Num is the same and Denom also shift right When ...
1
vote
5answers
221 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 ...
0
votes
2answers
363 views

Divide By 5 Up Counter 6 to 10

How can I design a divide by 5 counter which counts from 6 and up to 10 then resets to 6. A normal divide by 5 counter is 3 bit counter which counts from 0 to 5 then resets to 0. I think my one should ...
1
vote
1answer
135 views

Implementing a counter in VHLD with edge triggered clear

I'm still giving my first steps learning VHDL and after a couple of days I could not yet find a solution for this problem. What I'm trying to do is to implement an LCD controller on an Altera MAX II ...
0
votes
1answer
169 views

I'm looking to create a simple circuit that will have 8 randomized “pulsing/fading” LED's

I am looking to make a simple (cheap, small spaced) circuit that will light 8 LEDs in a random order AND have a pulsing/fading in and out effect. I was originally going to program a randomized effect, ...
1
vote
1answer
144 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 ...
0
votes
4answers
193 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
121 views

How to toggle a reset in a counter made up of JK flip flops

I have been playing around with a small circuit which at the moment consists only of a counter made up of 3 JK flip flops. Like so: What I want to add is a reset input pin that will set the 3 LEDs ...
2
votes
2answers
357 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 ...
0
votes
1answer
1k 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.
3
votes
4answers
359 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 ...
0
votes
1answer
97 views

Common cathode LED resistor with 4017 decade counter

Is it possible to use a common cathode resistor for all 10 LEDs with 4017 decade counter? I try it but only the first LED (output 0) lights up. EDIT: I got it working. My wiring was wrong. I use a 9V ...