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
0answers
51 views

Why does the 2-digit counter count the wrong number?

I am quite new to fpga and quartus II and I am working with the schematic design. I have designed a 2-digit counter with the circuit shown in the picture and I am testing it in an Altera development ...
0
votes
1answer
32 views

Johnson Counter self correction

I'm having trouble understanding Johnson Counter self correction. Why is it the lower right box of the k-map that when changed to a 0, results in the desired change of the next state of state 6 ...
0
votes
1answer
32 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
1answer
35 views

Design 5 bit counter with two control inputs (direction and stop)

I am designing a 5-bit counter with two control inputs including direction (up/down) D and stop S. Here is how counter works: DS = 00: down (or decrease) DS = 01: don't care DS = 10: stop DS = ...
0
votes
1answer
44 views

verilog: binary code decimal and gray code counter implementation

I am trying to implement a 8-bit counter that does both BCD(Binary Code decimal) and gray code sequence. If the input control = 0, the circuit will count in BCD and if the input control = 1, the ...
0
votes
1answer
47 views

Why the output signal from the counter seems to be not driven?

I've written a memory module for an application. In order to address each memory location a simple 6-bit counter is used. I have tested most of the components (including the counter) and they seem to ...
-5
votes
1answer
48 views

Large timer interrupt instructions [closed]

Assume that it takes the micro-controller 1 microsecond to execute an instruction and the timer overflow has also been set to 1 microsecond and in the timer interrupt handler we have some instructions ...
-3
votes
1answer
60 views

modifying a frequency counter to make it a frequency meter [closed]

Is it possible to modify this circuit and make it a frequency meter? This is an assignment and none of us know how to do that. We all have considered to make another circuit and not modify the one ...
0
votes
0answers
18 views

Understanding how to use a counter and timer for a fixed number of counts

I'm going to generate pulses indefinitely with a 555 timer and use have a counter such as the below one count from 0 to 64 or another power of two and convert the output into an analog voltage to ...
0
votes
2answers
75 views

simple counter in VHDL

I am trying to write a little counter in VHDL using the two process methodology. However it is not working. Could someone explain me why? ...
0
votes
1answer
121 views

Digital Logic Reset [closed]

Question Too broad apparently.
-1
votes
1answer
36 views

Problem VHDL process maintaing a signal modified

I am writing a VHDL code of a simple counter which receives as an input a number and that is a time in ms, and a 50 MHz clock, for example if 200 is received it has to count 200 ms so 200* 50e3 ...
0
votes
2answers
41 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 ...
-2
votes
1answer
25 views

The meaning of T0CLK=1 [closed]

i know that there are two types for clock in a Timer in a micocontroller one of them is the counter and i wonder how the counter can be a clock ?
0
votes
1answer
71 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 ...
1
vote
1answer
61 views

Asynchronous Down Counter using D Flip Flops

After fixing my Up Counter, I'm having troubles writing structural verilog code for an Asynchronous 4-bit Down Counter using D Flip Flops. Here's the D Flip Flop code (which was tested and works): ...
-1
votes
2answers
70 views

Increment operation in 24 bit counter

This is a 24 bit counter verilog program. What is the function of highlighted operation? Do we add 1 to the least significant bit? How can we know that the addition was done to the least significant ...
0
votes
1answer
51 views

Setting up a counter on STM32F405xx

How do you correctly setup Timer9 (TIM9)on an STM32F405xx to count pulses on rising edge? Is there a special configuration for the pin to the timer outside of this short example? Here's what I've ...
0
votes
1answer
53 views

how much current does the 74161 4 bit counter needs?

you see, i have this circuit simulate this circuit – Schematic created using CircuitLab however when i add another more 74161 simulate this circuit the first one stops working ...
-2
votes
1answer
55 views

Can someone tell me whats wrong on this 4 bit counting circuit? [closed]

The circuits are a 555 timer and a 74161 counter, its supposed to do a simple 4 bit count up, however when I give it 5V it just keeps the first LED permanently on without changing And the schematic ...
4
votes
5answers
2k 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 ...
0
votes
4answers
62 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
3answers
124 views

8-bit binary U/D counter with rotary encoder

Im trying to make 8-bit binary counter using CD4516 / HEF4516 (doesnt matter, both act same). My circuit works well excepct one error. I can successfully go from ...
0
votes
2answers
56 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 ...
-1
votes
1answer
221 views

Minimum No. of JK FlipFlops needed to design a user defined counter

We want to design a synchronous counter that counts the sequence 0−1−0−2−0−3 and then repeats. The minimum number of J-K flip-flops required to implement this counter is : My doubt: We can design ...
0
votes
2answers
58 views

Downwards 74LS190 with clock wired to another's RCO counts twice

I have a really simple circuit, a 2-digit decade counter (0 to 99) using two 74LS190s. It works fine when counting upwards (0 .. 9, 10 .. 19, etc), but when going downwards, it seems to decrement the ...
0
votes
2answers
219 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 ...
1
vote
3answers
182 views

Binary Counter C Code for pic16f877a

I'm trying to write a code for an up/down binary counter. The task is to light up 8 leds (up counter)and then reverse the lighting order (down counter). I am trying to create an array of leds in my ...
1
vote
3answers
117 views

How to make a zeros and ones counter?

I'm trying to write a zeros and ones counter in assembly with the AVR ATmega328P. To choose between the ones and zeros, I have a switch in PC5. For the input there are 8 switches connected to PORTB ...
0
votes
1answer
61 views

Timers and counters

I have to build a ladder diagram for a system which sounds the alarm if inside 60 seconds after pressing the start button,10 objects have passed.The alarm goes on until we press stop.In the system we ...
0
votes
1answer
100 views

Count pwm pulses on pic

I'm working on PIC18F8722 to generate PWM for 50% duty cycle. I have obtained the PWM and now I need to count the PWM pulse. As per my knowledge we can use timers to generate and count those pulses ...
0
votes
0answers
70 views

Asynchronous Down Counter Using D Flip Flops Simulation Not Working As Expected

I'm a bit new to this, but I just want to have some insight as to why my circuit simulation doesn't work as planned (I'm using Quartus 2, qsim). Here I have designed an asynchronous down counter ...
-2
votes
2answers
104 views

Count external clock pulses for a predefined time interval (PIC16f877a)

I need to count external clock pulses for a predefined time using PIC16f877a. I don't know what to use, whether counter or timer or both. I don't know to use timer and counter modules of PIC16f877a. ...
0
votes
1answer
57 views

74161N 4-bit counter not counting properly

As further issues arise I see myself stuck once more with a dysfunctional circuit. Whenever I press the clock button I get all of the leds on except maybe one or two, with some flashing during the ...
0
votes
2answers
57 views

74161N counter isn't counting with clock input

I am trying to get a 74161N 4-bit counter to work. If I connect the clock input to a button to ground, pressing the button increments the counter. Unfortunately due to the physical connection in the ...
0
votes
1answer
148 views

pulse width modulation

I need help on number one of this practice assignment. I barely learned about this so it is kind of hard me to understand it right now. So any advice or help is appreciated. I want to determine the ...
1
vote
1answer
177 views

Counting pulse in firmware without interrupt

How can I count the number of pulses using a microcontroller (any), provided the following conditions: Can not use any interrupt (no interrupt on pin change allowed) Can not use any of uC's hardware ...
0
votes
1answer
62 views

Flip Flop D Sequence

I want to create a game like "pimball" using 4 leds to state the game. One exit to define if the game is still running. And 2 inputs that are switches. 1) To begin with, the first is to assemble 4 ...
0
votes
1answer
74 views

Number of logic gates for counter with each type of flip flop

I am designing two synchronous counters one mod 21 and the other one mod 30. Is there a way to know which kind of flip flop (D, SR, JK, T) will use the smallest number of logic gates? I know we can ...
1
vote
1answer
62 views

frequency divider for two output frequencies

I want to make a frequency divider from flip flops that can generate two frequencies. For example, if the input frequency is fin then the output frequencies will be fin/30 or fin/35 depending on the ...
0
votes
2answers
71 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
1answer
46 views

Comparator with latch as trigger

I was hoping to use a Linear Comparator with a latch such as LT1016 as a trigger for the Register output clock for a 74HC590. The 74HC590 is going to be cascaded with it's RCO going to several more ...
0
votes
1answer
70 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?
1
vote
3answers
198 views

Understanding Test Parameters on Datasheet (CL pF)

On Page 7 of the datasheet for M74HC590 It uses a CL (pF) At the bottom of Page 8 is the test circuit which shows where the CL(pF) goes, in regards to a circuit diagram, but I don't understand that ...
1
vote
1answer
53 views

Understanding critical paths

So I'm having trouble understanding critical paths. I have the following example question: Draw the critical path that shows how fast the counter can count: Delays are specified as follows: Delay ...
-1
votes
0answers
24 views

Counter with 4 flip flops jk synchronous from 3 to 13 [duplicate]

I have to create a counter with 4 flip flops jk synchronous. The counter shall count in this order: 3 to 13 and then to 3 to 13 and so on.. I have to use logisim simulator. Until now what i´ve ...
-5
votes
5answers
313 views

Counter with 4 flip flops jk synchronous from 3 to 13!

I have to create a counter with 4 flip flops jk synchronous. The counter shall count in this order: 3 to 13 and then to 3 to 13 and so on.. I have to use logisim simulator. Ok. So i think its ...
1
vote
0answers
50 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 ...
0
votes
2answers
98 views

what is meant by Divide by N and Modulo(N) in counters?

I am trying to understand counters. Can anyone of you clarify me about terms (Divide by N) and Modulo(N) used in counter? What exactly it means?
0
votes
1answer
613 views

Modulo 10 Counter using T flip flops?

so I have been tasked with making a counter that counts from 0-9 continuously and pauses when the input is 0. Of course this has to be done with T flip flops, but for the life of me I cannot figure ...