# Tagged Questions

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

33 views

### How to terminate binary counting using a logic gate

So I am designing a 3-bit asynchronous binary counter which counts up to 11 then repeats using D flip-flops. That much I have done, however I am stuck when it comes to decoding the outputs to stop the ...
82 views

### What kind of microcontroller peripherals can help me to implement a timeout?

I am discovering the world of embedder software with microcontrollers. My need is to check that an input of my system stays high for 2 secondes for example. Since I am not very familiar with ...
50 views

### How to write a counter in verilog for debouncing an input?

I am trying to write a module counter to debounce a input coming from mechanical buttons. The module should be controlled by the 4x4 matrix button module when to start or stop debonce. This is my ...
66 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 ...
51 views

### What's wrong with this ring counter made using D Flip Flop?

I have created this ring counter using D Flip Flop in multisim(I am learning counters). It's not working maybe due to the switch provided on the top left for the preset pin of D Flip Flop. I have no ...
47 views

### Design a 2-bit up/down counter

I need to design a 2-bit counter with two inputs: CLOCK and UP. If UP is high, the counter shows this pattern: 0 1 2 3 0 1 2 3 0 ... If UP is low, the counter shows this pattern: 3 2 1 0 3 2 1 0 ... ...
72 views

What is the Frequency and Duty cycle and of the waveform at Z (say if input clock frequency is 1.5Khz) My Understanding: Two negative edge triggered MOD 12 counters cascaded and reset when the ...
53 views

### Frequency divider diving at 2, 3 and 4

What I'm basically trying to do is to modify a stacking device to skip stops normally dictated by a mechanical switch that stops on a cogwheel tooth. I want to put a circuit between the switch and ...
84 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 ...
46 views

### STM32 Repetition Counter

what is the max value of the Repetition Counter register? Because i am trying to use a TIM1 as PWM output. Period = 50kHz Clock = 72Mhz 72Mhz/50kHz = 1440Hz -> PWM freq So if I set Repetition ...
44 views

### How to find the transfer function of a frequency counter?

I am designing a mathematical model for my control systems project and in that there is this block which measures the frequency of the wave. For the practical application I fed this wave into a micro ...
35 views

### 8051 Assembly - reading 16 bit timer value and comparing to a constant

I need to read a 16 bit timer value on the fly , compare it to a constant and reset it every time its value equals a constant value and thus avoiding it from going to ISR. Can anyone help me with ...
56 views

### Parallel binary counter using T flip-flops

Can someone explain me how this parallel binary counter works: For example, if the state in the beginning is 0000, what happens when Pt goes high?
85 views

### PIC MCU: Triggered Counter from ADC

Basically, I'm looking to program a PIC16F917, so that a particular int will increment by one every time I press a button. Now I got the ADC up and running, I got loops to count, but I seem to be ...
20 views

### How to drive system time from system counter?

I need to know how could system time be drived from system counters? Let's say on ARM64 I have CNTVCT and CNTPCT system counter registers.Now I am able to read the value of these two registers. ...
77 views

### Reading a 32bit IC counter on from a computer

I am working on a design to count the mechanical cycles of a piece of equipment. It has to be a 32 bit counter and be robust. I have a working prototype using a sn74lv8154 IC, configured as 32bit. ...
113 views

### How to represent a 3 bit counter in Data flow style? [closed]

I want to represent a 3 bit counter in Data Flow style in VHDL. But I am getting confused. Any hints how it is going to be represented.
88 views

### Difference between adder and counter

I want to build a simple calculator on my breadboard but I don't have an adder IC and I can't find one easily. I already have a counter (CD4029BMS) and when I search for adders I can only find ...
82 views

### How to create counter with unique sequence

I have a sequence: 001, 110, 010, 001, 110, etc. Although there are 3 bits that I want to represent, only 2 are needed for states (3 states). What I get confused with, is utilizing only 2 state bits ...
61 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 ...
129 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, ...
121 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 ...
127 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 ...
48 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. ...
79 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 ...
73 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 ...
171 views

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 ...
147 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 ...
175 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 ...
220 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 ...
33 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 ...
153 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 ...
269 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) ...
362 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 ...
84 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 ...
99 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 ...
110 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?
63 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 ...
519 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 ...
152 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 ...
190 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. ...
168 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 ...
138 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 ...
101 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 ...
77 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 ...
55 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? ...
247 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 ...
420 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 : ...