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
2
votes
3answers
867 views

how to create a square wave with large duration and high duty cycle

For a "plant waterer circuit" I would like to add a safety feature that prevents watering for over ~3 minutes, and delays the next watering from occurring for ~12 hours. Currently the circuit is ...
2
votes
1answer
131 views

Directly connecting LEDs to IC outputs

Forgive the amateur question - I don't know anything about electronics. I was not able to find any similar questions on this board, but that probably has to do with the fact that I know so little ...
2
votes
5answers
680 views

Reciprocal Frequency Counter Mean

I have designed a high precision frequency counter circuit. I am using it to measure a frequency of around 35kHz that is stable to 0.1mHz. I can measure the frequency using a Stanford Research Systems ...
2
votes
3answers
1k views

Counting number of push button press by external interrupt

It's a requirement that I should count the number of button press by external or any other interrupt. So when I use the external interrupt to increment the counter by 1, it sometimes is crease by 2 ...
2
votes
1answer
105 views

Efficient Windowed Counter

How does one efficiently implement a windowed counter, counting ones on a input line in the last say e.g. 10000 clk cycles (in VHDL for use on an FPGA)? My idea: take a shift register (to delay the ...
2
votes
1answer
17k 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
3answers
378 views

Intersection Turning Movement counts

Civil Traffic Engineers have a perpetual data gathering problem. They need intersection turning movement counts to do their studies. This has historically been a manual task. Someone sits by the ...
2
votes
1answer
89 views

How to wire up a street light to change lights in specific states (digital circuit)

This is the final project for the only electronics course in my career. I have never taken any other electronics course and I'm seriously at a lost here. I need to score 100 here to pass the course. ...
2
votes
3answers
2k views

Propagation delay in asynchronous counter

Are the ripple counters useful in real life? I know, for example, if we set an up counter with 3 FFs, CBA. Followings are the block and the waveform diagram: After the count 001, it will appear 000 (...
2
votes
1answer
639 views

Asynchronous Cascaded Counters Problem!

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 upper ...
2
votes
2answers
1k views

Is there difference between Timer vs Counter in ATmega328P?

Is there difference between Timer vs Counter in ATmega328P? Or is it the same thing?
2
votes
2answers
1k views

What's the benefit of Upcounting or Downcounting or Center-aligned mode of timer/counter?

I have done several project (3-4 project) via Timers/Counters but I'm curious to know Why do they have three mode for counting? Also I know that in Upcounting mode it count from zero to 0xff... or in ...
2
votes
2answers
2k views

Any sequence asynchronous counter

While I can understand the logic behind synchronous counters that can implement 'any-sequence',I'm not sure how I would go about doing that with an asynchronous counter. For example one that produces ...
2
votes
1answer
49 views

4-bit synchronous counter IC: Do I need to pre-synchronize the count enables? (Metastability?)

Using a 74LVC163 synchronous 4-bit binary counter and would like to predicate the counting on an asynchronous signal. If I apply this signal directly to one of the enables (e.g. CEP), am I assured ...
2
votes
2answers
138 views

Problem with adding two counters in series on an FPGA

I am using Verilog in Lattice Diamond IDE with a lattice MachXO2 7000HE breakout board. I built a basic counter with a limit input which generates a variable period clock output. It works fine on its ...
2
votes
2answers
103 views

how do I implement a start timer in a digital circuit

In vhdl, I know how to code a start timer behavorially. However, if I have to implement such a counter to start based on a trigger, how could I implement such a counter? My trigger is another signal ...
2
votes
1answer
60 views

Design of A Counter Circuit

I want to build a counter circuit which to count from from 0-7, during some pulseswidth. The problem I am having is that it has to do the whole count sequence during one PW and that is where I am ...
2
votes
3answers
472 views

A binary counter problem

How can I create a digital counter that counts from 000 to 111 and automatically starts reverse counting from 111 to 000. I have tried with simulation it works fine, but with actual ICs I am not ...
2
votes
1answer
182 views

Up/Down Counter Not Counting Down

I'm trying to build a 2 bit counter using JK flip flops. In the simulation it counts up just fine, but when I switch it to count down, it starts at 3 and then goes to zero and counts up again. The ...
2
votes
1answer
308 views

atmega32u4 use Timer as souce for a counter

I started to play around with an atmega32u4 and came across a question I wasn't able to solve right now (may be I just missed the right page in the 500 pages datasheet). I was able to create a ...
2
votes
1answer
2k 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, ...
2
votes
1answer
50 views

Timimg of 4060 counter-oscillator

I'm using a CD4060B counter/oscillator and need to know the internal timing of the RESET operation. TI's 4060B datasheet says that the minimum input reset pulse width is 30 ns at 10 V, and ...
2
votes
0answers
75 views

I’m having trouble solving this digital circuit. Help!

I need to design sequential logic circuit from this state diagram using only 2 D-latches. And this is my attempt: If I put it in the simulator it just gives me error and wont count. I assumed that ...
2
votes
2answers
233 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
3answers
599 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
3answers
1k views

Resetting CD4017 Counter when power source is OFF

I found the circuit below online and I have two questions about the reset switch. Does it help to click the reset button when power is OFF? I mean, does it clears the memory of the CD4017 chip when ...
1
vote
1answer
791 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 ...
1
vote
2answers
92 views

Synchronous burst generator circuit

Ok, this is my very first question here so please forgive me if I'm asking a too broad question or if my problem description is too imprecise. I have a 13.56 MHz (RFID) pierce-type quartz oscillator ...
1
vote
3answers
293 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 ...
1
vote
2answers
2k views

How does the 4017B Decade Counter work?

I am currently looking at a 4017B Decade Counter Data Sheet. As I look at the Logic Schematic for this IC (http://www.ti.com/lit/ds/symlink/cd4017b.pdf) I can see several sqaure boxes label D, C, Q(...
1
vote
3answers
2k views

HEF4060B counter doesn't count

I'm building (on a breadboard) a 16Mhz oscillator (part of another circuit) with the HEF4060B using an external xtal. Schematic I'm using is that's not so different from the example on the HEF4060B ...
1
vote
5answers
13k views

alternative to 4017 decade counter for iterating over matrix columns

NOTE: I have made some changes since the original question, the number of columns is 114 not 45, this may affect some of the answers below. I'm working on a project with a large LED matrix I'm making....
1
vote
1answer
118 views

74193 stops working after compilation on another PC (QUARTUS)

I got a Quartus project with a mod 22 counter using 74193 from a friend. It works just fine when I run a simulation before a compilation on my PC, but after I compile it on my PC, it stops working ...
1
vote
1answer
375 views

Erratic behavior from 16-bit counter IC SN74LV8154 [duplicate]

My test circuit is shown below. I've tried various configurations but keep getting jumps in the output counts. Seems to be repeatable and consistent. For instance, the first jump always occurs ...
1
vote
3answers
1k views

Counter in assembly, using interrupt to prevent multiple counts with single push?

I am completely new to assembly, and I must develop a counter using PIC16F628A, a push button, and a display. Additionally it there will be an external oscillator (555). I made some progress on this, ...
1
vote
2answers
306 views

Difference between these counters 74LS196 and 74LS197

Components data sheet can be confusing sometimes Can anyone explain to me the difference between these counters 74LS196 and 74LS197 ? can they replace each other? can the 74LS197 perform better in ...
1
vote
3answers
6k 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
1answer
103 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 ...
1
vote
3answers
191 views

How to stretch high frequency digital signals (e.g., MIDI) into the audio range

I'm curious about the possibility of sonifying MIDI data, which has a bitrate of 31250. The range of human hearing extends to about 20kHz, which means that the fastest bits of the signal would lie ...
1
vote
2answers
829 views

How to get 460.8KHz from 1.8432Mhz oscillator using counters?

I need to supply 460.8kHz clock to IC (NCR20C12). However, I can only get 1.8432MHz Oscillator. How can generate clock divided by 4 from it? I have a couple of SN74LS393 counters and want to ask, is ...
1
vote
4answers
8k views

How to reset a 4026 counter IC when it reaches 6 for electronic dice

I'm trying to build a circuit to simulate a dice roll using a 555 in astable as it's heart. The output pulses are counted by a 4026 and then fed into a 4511 BCD to 7 segment decoder. It works ...
1
vote
2answers
3k views

Design a 4-bit synchronous counter using D filp-flops and 16 x 4 ROM that can generated any arbitrary counting sequence

What are the restrictions on the counting sequence? Give the ROM contents for the following sequences: a) 12, 13, 14, 15, 5, 6, 7, 0, 1, 2, 3, 4, 11, 10, 9, 8, 12, 13, etc... b)8, 9, 0, 1, 8, 9, etc......
1
vote
3answers
3k views

Design 3-bit Synchronous Counter

I'm new to the whole electronic circuit scene, I've been trying to work out for hours how to design a 3-bit synchronous counter using D-Flip Flops to count in a given sequence. So say for instances ...
1
vote
1answer
126 views

8-Bit Program Counter Implementation

I'm trying to construct an 8-Bit Program Counter, in Logisim. It currently has functions LOAD, which makes the 8-Bit input (A0-A7) appear at the output (S0-S7) on the clock pulse: Loading 1 as input: ...
1
vote
3answers
132 views

How do I activate a counter?

I'm trying to build an electronic lock that takes a 4 digit password and if the password is inserted wrong three times in a row, a logic display is activated. Below is the lock, it works fine, but I ...
1
vote
3answers
135 views

Design of a counter that stays in each state for x clocks

Suppose we have an 8-bit counter out[7:0] It needs to stay in each count for specified number of clocks x, where x can be any integer or fractional factor of 512. My Approach: Use 10 bit counter ...
1
vote
1answer
68 views

truth table for D flip flop with control variables x and y

So I need to build a counter with D Flip-Flop and 2 control variables x and y. XY=00 --> 0-3-2-1-0; XY=01 --> 0-1-2-3-0; XY=10 --> 0-2-3-1-0; XY=11 --> 0-1-3-2-0. How should I make the truth table?...
1
vote
1answer
5k views

Output frequency of asynchronous and synchronous counter

I read that output frequency of asynchronous counter will be \$\frac{f_{in}}{2^n}\$ where \$n\$ is number of flip flops and \$f_{in}\$ is input frequency. In synchronous counter will the output ...
1
vote
2answers
271 views

7490 Counting But a Little bit Buggy

I followed a video (Click Here) to make the 0-9 Counter. The counter does work but its a little bit buggy. For the first 0 - 9 cycle it works fine but then it starts to follow this sequence: Where ...
1
vote
2answers
389 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 ...