Free Essay

All About Counter

In:

Submitted By maberbasa
Words 1093
Pages 5
COUNTERS
A counter is simply a device that counts. Counters may be used to count operations, quantities, or periods of time. They may also be used for dividing frequencies, for addressing information in storage, or for temporary storage.
Counters are a series of FFs wired together to perform the type of counting desired. They will count up or down by ones, twos, or more.

In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist:
• Asynchronous (ripple) counter – changing state bits are used as clocks to subsequent state flip-flops
• Synchronous counter – all state bits change under control of a single clock
• Decade counter – counts through ten states per stage
• Up/down counter – counts both up and down, under command of a control inputMontgomery
• Ring counter – formed by a shift register with feedback connection in a ring
• Johnson counter – a twisted ring counter
• Cascaded counter
• modulas counter.
Each is useful for different applications. Usually, counter circuits are digital in nature, and count in natural binary. Many types of counter circuits are available as digital building blocks, for example a number of chips in the 4000 series implement different counters.
Occasionally there are advantages to using a counting sequence other than the natural binary sequence—such as the binary coded decimal counter, a linear feedback shift register counter, or aGray-code counter.
Counters are useful for digital clocks and timers, and in oven timers, VCR clocks, etc.

Asynchronous (ripple) counter
An asynchronous (ripple) counter is a single JK-type flip-flop, with its J (data) input fed from its own inverted output. This circuit can store one bit, and hence can count from zero to one before it overflows (starts over from 0). This counter will increment once for every clock cycle and takes two clock cycles to overflow, so every cycle it will alternate between a transition from 0 to 1 and a transition from 1 to 0. Notice that this creates a new clock with a 50%duty cycle at exactly half the frequency of the input clock. If this output is then used as the clock signal for a similarly arranged D flip-flop (remembering to invert the output to the input), one will get another 1 bit counter that counts half as fast. Putting them together yields a two-bit counter:

Cycle Q1 Q0 (Q1:Q0)dec
0 0 0 0
1 0 1 1
2 1 0 2
3 1 1 3
4 0 0 0

You can continue to add additional flip-flops, always inverting the output to its own input, and using the output from the previous flip-flop as the clock signal. The result is called a ripple counter, which can count to 2n − 1 where n is the number of bits (flip-flop stages) in the counter. Ripple counters suffer from unstable outputs as the overflows "Ripple" from stage to stage, but they do find frequent application as dividers for clock signals, where the instantaneous count is unimportant, but the division ratio overall is (to clarify this, a 1-bit counter is exactly equivalent to a divide by two circuit; the output frequency is exactly half that of the input when fed with a regular train of clock pulses).
The use of flip-flop outputs as clocks leads to timing skew between the count data bits, making this ripple technique incompatible with normal synchronous circuit design styles.

Synchronous counter

A simple way of implementing the logic for each bit of an ascending counter (which is what is depicted in the image to the right) is for each bit to toggle when all of the less significant bits are at a logic high state. For example, bit 1 toggles when bit 0 is logic high; bit 2 toggles when both bit 1 and bit 0 are logic high; bit 3 toggles when bit 2, bit 1 and bit 0 are all high; and so on.
Synchronous counters can also be implemented with hardware finite state machines, which are more complex but allow for smoother, more stable transitions.
Hardware-based counters are of this type.

Decade counter
A decade counter is one that counts in decimal digits, rather than binary. A decade counter may have each digit binary encoded (that is, it may count in binary-coded decimal, as the 7490 integrated circuit did) or other binary encodings (such as the bi-quinary encoding of the 7490 integrated circuit). Alternatively, it may have a "fully decoded" or one-hotoutput code in which each output goes high in turn (the 4017 is such a circuit). The latter type of circuit finds applications in multiplexers and demultiplexers, or wherever a scanning type of behavior is useful. Similar counters with different numbers of outputs are also common.
The decade counter is also known as a mod-counter when it counts to ten (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). A Mod Counter that counts to 64 stops at 63 because 0 counts as a valid digit.

Up/down counter
A counter that can change state in either direction, under the control of an up or down selector input, is known as an up/down counter. When the selector is in the up state, the counter increments its value. When the selector is in the down state, the counter decrements the count.
Ring counter
A ring counter is a circular shift register which is initiated such that only one of its flip-flops is the state one while others are in their zero states.
A ring counter is a Shift Register (a cascade connection of flip-flops) with the output of the last one connected to the input of the first, that is, in a ring. Typically, a pattern consisting of a single bit is circulated so the state repeats every n clock cycles if n flip-flops are used. It can be used as a cycle counter of n states.
Johnson counter
A Johnson counter (or switchtail ring counter, twisted-ring counter, walking-ring counter, or Moebius counter) is a modified ring counter, where the output from the last stage is inverted and fed back as input to the first stage.The register cycles through a sequence of bit-patterns, whose length is equal to twice the length of the shift register, continuing indefinitely. These counters find specialist applications, including those similar to the decade counter, digital-to-analog conversion, etc. They can be implemented easily using D- or JK-type flip-flops.

Similar Documents

Free Essay

All About Eve

...Name: Joel Sanguinetti Title: All About Eve Year: 1950 Director: Joseph L. Mankiewicz Producer: Darryl F. Zanuck Three Performers: Bette Davis, Anne Baxter, George Sanders Costume/Wardrobe: Edith Head, Charles LE Maire, Sam Benson, Josephine Brown, Ann Landers, Merle Williams Hair and Make-up: Ben Nye, Bunny Gardel, Franz Prehoda, Kay Reed, Gene Roemer, Gladys Witten Set and Stage Design: Thomas Little, Walter M. Scott Musical Score Composer: Alfred Newman Cinematographer/Photographer: Milton R. Krasner Screenplay: Joseph L. Mankiewicz Original Novel, Play, or Story: Mary Orr – The Wisdom of Eve Academy Awards (Oscars) Won: 1. Best Actor in a Supporting Role – George Sanders 2. Best Costume Design, Black-and-White – Edith Head & Charles LE Maire 3. Best Director – Joseph L. Mankiewicz 4. Best Picture – 20th Century Fox 5. Best Sound, Recording – 20th Century-Fox Sound Dept. 6. Best Writing, Screenplay – Joseph L. Mankiewicz Joel Sanguinetti Mr. Skillings English 101-B4N December 19, 2011 All About Theatre Theatre has evolved in many ways throughout history. Theatre goes back to the 6th century BCE and develops its origins from Greece. Around 1750, theatre was introduced to New York, and eventually became what we now know as Broadway theatre. All About Eve, directed and written by Joseph L. Mankiewicz, is a movie based on the novel The Wisdom of Eve, written by Mary Orr. All About Eve is a movie about Broadway theatre and the harsh...

Words: 999 - Pages: 4

Free Essay

It Problems

...local and imported * Cosmetics and Perfumes * Medicines * Kitchen and household apparel * Household electronic items Customer Problems at Imtiaz Imtiaz is receiving a number of customer complaints and wishes to hire the services of a business analysis team that can help it overcome these problems. Amongst the host of customer problems that Imtiaz has received through a survey, the following have been identified as most critical from customer satisfaction perspective. Major Customer Problems: New customers face a lot of difficulty navigating through to their desired isle in the store. This causes frustration and dissatisfaction for customers. 2. Customers complain of long waiting lines at the check‐out counters. This is especially infuriating for customers who upon purchases of only a few items need to stand in line behind customers who might have purchased...

Words: 1778 - Pages: 8

Free Essay

Digital Clock Design on De1 Board

...Xi’an Jiaotong-Liverpool University Department of Electrical and Electronic Engineering Digital Clock Design on DE1 Board By: Zhixin Wen Student ID: 1202056 Module Code: EEE339 Instructor: Dr. Ming Xu November 25, 2015 Contents Contents 1 1 Introduction 2 2 Methodology 2.1 Verilog code . . . . . . . . . . 2.1.1 Frequency divider . . . 2.1.2 counter unit & counter 2.1.3 display . . . . . . . . . 2.2 Symbols . . . . . . . . . . . . 2.2.1 frequency divider . . . 2.2.2 counter . . . . . . . . 2.2.3 display . . . . . . . . . 2.3 Vector waveform simulation . 2.3.1 frequency divider . . . 2.3.2 counter unit & counter 2.3.3 display . . . . . . . . . 2.4 Block diagram . . . . . . . . . . . . . . . ten . . . . . . . . . . . . . . . . . . . . . . tens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 4 6 11 12 12 13 13 13 13 14 16 16 3 Simulation Result 20 4 Conclusion 23 Appendices 24 1 Chapter...

Words: 4223 - Pages: 17

Premium Essay

Operations

...exclusively for stamps and stationery. Around 15 customers, who came for accountable services, usually stood in line thrice: once to find out what they need to do and the value of the stamps needed; then to buy the stamps and finally to do the accountable transaction. About half of the customers coming to the post office for accountable transactions and SB invariably had requirements of stamp and stationery. The post office currently has one SB counter, two counters for accountable transactions, and one counter for stamps and stationery. The average service time in the SB counter, accountable service counters, and the stamp and stationery counter was three minutes, two and a half minutes and one minute respectively. 1 The postmaster usually observed the stamps and stationery line to be the longest. However, he got maximum complaints from the people who came for accountable transactions. While he was wondering what he could do to improve customer service, especially in terms of reducing waiting times, he received a letter from the superintendent of post offices. The letter indicated that this post office branch had been selected as one of the post offices for computerization. Computerization was expected to enable the counters engaged in accountable transactions to reduce the average service times from two and a half minutes to one and a half minutes. It would also eliminate the need for customers to buy stamps for the accountable transactions. The letter also indicated the possibility...

Words: 535 - Pages: 3

Premium Essay

Community Policing: A Counter-Terrorism Analysis

...Community policing as a counter-terrorism strategy The first reaction of most police services was to abandon the community policing philosophy in the so-called “war on terror”. Many returned to the traditional model of policing with its paramilitaristic approach. This phenomenon could in fact be observed in Belgium after the terrorist attacks in Brussels on March 22nd, 2016. Critics however view this approach as counterproductive. It undoes all progress made by community policing in gaining trust from the public (Murray, 2005). In the aftermath of the events on 9/11, authors such as Murray (2005), Rice (2015), Paris (2007) and Pickering et al. (2007), all proposed to explicitly use community policing strategies to counter terrorism. Now...

Words: 1419 - Pages: 6

Premium Essay

When the Great Melting Pot Stopped Melting

...services) and offer no tolerance for criminal activity. Understanding the Problem Many people enter this country through the American Mexican border and usually can do so unchallenged. By not securing the southern border, America has left an opening that anyone can come through. It is not just illegal aliens that cross that border. America is exposed to entry by terrorists, drug smugglers and human trafficking. (Hedgecock, 2010, para 17-19) Another avenue used to enter this country is through Visas. With this process individuals come here through legal channels and then become illegal afterwards by staying on after their Visa expires. Statistically “40% of illegals entered legally and in bad faith overstayed their visas.” (Immigration counters, n.d. para 3) Currently...

Words: 4268 - Pages: 18

Free Essay

Mcitp

...be running the typical performance CPU The Task Manager tabs for monitoring information • Applications—displays currently running applications—lists running processes, as explorer.exe (Windows Explorer) exe (for DNS Server) * Services—lists services and their status, running, stopped, or paused * Performance—displays real-time CPU and memory performance at a glance * Networking—shows real-time network performance in terms of network utilization at all server NICs * User—lists users connected to the server and provides tools to log off or disconnect users, as well as to send users a message Two advantages of Task Manager are that you can start it quickly and it typically requires fewer server re-sources than many other monitoring tools. You might think of it as the Swiss Army knife of your monitoring tools because it has a little bit of everything and it is easy to keep handy. In this activity, you use the features in Task Manager to monitor activity on a server. For all the activities in this chapter, you’ll need to log on to an account with Administrator privileges. Addi-tionally, most of these activities can be completed...

Words: 4058 - Pages: 17

Free Essay

Counter Ads

...Counter Ads Name: Institution: Course: Date: Counter advertisement is made to make the consumers aware of the dangers and the harm a product can cause to them. In most cases, I have witnessed counter-advertisement utilized to create awareness of the possible negative influence that alcohol may cause to the consumers and other related issues. Such action will work effectively if done through the media in the form of printings or video broadcast. They counter advert can also be labeled with the product to make sure that everybody who buys that product has seen that label. The public health departments are increasingly using the counter advertisement to impact the good behavior among the consumers. There are those who argue that creating awareness of the side effects cannot be the appropriate means to pass the information via the mass media. The counter ads communication structure can be used for the promotion of a wide responsibility to perfect the challenges facing health. Initially, the normal advertisement promotes the policies and the product counters ads, on the other hand, promote only the views that are relevant by the health of the public. The key role played by the counter ads is to change the existing views that public health problems are the same as the personal health problems. The counter ads result to conflicts between various parties because they mix up health issues with the political and social issues. The acceptable strategies to carry out such counter advertisement...

Words: 1304 - Pages: 6

Free Essay

Front

...office department is the department that available for guests all the time both all day and all night especially at lobby area. This department is separated to two parts which are lobby area and office so, it needs to use energy at this area 24 hours. The reasons that this department has to available all time are because there are many guests come to check in and out, contact with them and solve the problems for them when they have. Plus, this department has to communicate with others such as housekeeping, reservation and also bell boy. The network resources that they use when contact to others departments and guests which is mobile devices or telephone. One of the duty of front office is bring the guests to their room and advice them about how to use all the equipments and electricity in the room. Moreover, this is the good chance in telling them to save energy in their room. Strength This hotel awareness in saving energy for lighting, air condition, electricity and office material. For lighting, this hotel change all of the light to be lighting Philips to save the energy around counter of front office department and around lobby. The area around lobby of this hotel is not large, so it can save energy due to use the lighting less. Plus, the counter of front office combines to concierge duty, thus it is the good way to save the light because there is only one counter. For air condition, at the lobby area will not turn the air...

Words: 686 - Pages: 3

Premium Essay

Productive and Counter Productive

...The book defines productive behavior, and counter productive behavior as follows. Productive behavior is employee behavior that contributes positively to the goals and objectives of the organization (Jex & Britt, p. Page 96, 2008). Counter productive behavior is employee behavior which explicitly runs counter to the goals of an organization (Jex & Britt, p. Page 168, 2008). In this paper I will be discussing examples of both productive and counter productive behaviors, how both impact an organization and how to increase productive behavior and decrease counter productive behavior. Productive Behavior Productive behavior is generally defined as anything an employee can do to help the organization reach their goals. Productive behavior can help an organization reach the goals that they have set because each productive employee is working toward the same goal. The end results would be that the organization’s goals become the individual employees goals, and they become more motivated to reach those goals. Having an employee be invested in the organization completely is the best way to keep an employee productive. One example of productive behavior would be an employee learning different tasks than what they were originally hired for. For example, someone who was hired to do the accounting for an organization, may step in and take phone calls, or direct a meeting when necessary. This would help the organization save money, because when every productive employee can do multiple...

Words: 841 - Pages: 4

Premium Essay

Prevent Strategy

...the UK comes mainly from sources involved with Al Qaeda’. The Modern Terrorism extremists are more lethal as their aim is to cause mass destruction. * Ideology behind these attacks is more or less deemed as ‘payback time’ and the backlash is linked to the British invasion on Iraq and the insurgency in Afghanistan. * UK legislations to combat terrorism -Terrorism Act 2000; Crime and Security Act 2001; CONTEST | 2. Introduction – Identify either a policy or ideology: * Identify the policy- The Government Prevent strategy – What is Prevent? What is its aim? * The Prevent strategy which was published in 2011. Prevent aim to stop people becoming terrorists or supporting terrorism and is one of the important facets of (CONTEST) --Counter-Terrorism strategy – To reduce risk of terrorism in the UK and its overseas interest. * Terrorism as a global issue and the precaution taken to combat these threats. 9/11 attack in United States and 7/7 attack in the UK. * Origin and development of the Prevent strategy- influenced by (PTA) Prevention Terrorist Act 1974 * Historical background – Britain’s...

Words: 4585 - Pages: 19

Premium Essay

Miss

...the Pilkington Library is definitely one of the busiest place on campus especially when it gets near the examination period. One of the library objective is: "To support and facilitate the research, learning, teaching and administrative activities of the University, by organising, maintaining and providing access to appropriate literature and information resources in such a way as to provide optimum benefit for Library users." (Loughborough Library) Of course, the library is a complex facility providing a range of services which far exceeds our simulation capabilities requiring the support of over 80 staff and use of specialised computer packages to track all items, users, requests and staff resources ensuring the functionality of the whole system. The scope of our research therefore will be limited to the long-loan counter at the 3rd floor of the library which is the main contact point between the users and the library circulation system. Our aim is consistent with the library's own objective of optimizing the service for the benefit of its users. One way of doing this is by finding ways to minimize queuing times and respond to flexibility in demand. Data Collection In order to gain a better understanding of how the issuing desk operate we ran 2 sessions of data...

Words: 9847 - Pages: 40

Free Essay

Game Design

...Games can be very powerful. Spacewar, Counter Strike, and the News Games are examples of three influential games that had powerful and lasting historical impacts. These three games subverted traditional game concepts, representations, or mechanics. Although some people may view video games purely as a casual source of fun and entertainment, a deeper examination of their messages can reveal what different games tell us about our culture, giving us a better understanding of why games are created and sometimes even insights into having a better experience playing those games. In this essay I will analyze three games from the readings and discuss how those games’ movements subverted mainstream culture through their concepts and representation. Spacewar subverted mainstream culture by providing the gamer, for the first time, with visual engagement. Steward Brand wrote a great article on Spacewar. This article takes takes readers back to a time when games were still not popular. I thoroughly enjoyed this reading because it gave me so many great historical facts about Spacewar. He began his article with the declaration, “Ready or not, computers are coming to the people.” This sentence set off a great tone for the article. I was intrigued because I have always wondered about how people in the past lived their lives without access to computers. Nowadays, we use computers for several purposes such as sending emails, surfing webs, and creating beautiful visual works. It was amazing...

Words: 1075 - Pages: 5

Premium Essay

Alcohol

...are many complex factors that affect alcohol consumption by youth. Nevertheless, the most important factor is advertising . This essay will examine the problems of alcohol advertising on adolescents and analyses some possible solutions. It will then evaluate the solution given in order to tackle this issue. Advertising creates favorable climate towards drinking alcohol(Gunter et al, 2010). As Saffer point out (2002) that the role played by alcohol advertising can lead to positive impact on behaviors and attitudes of young people. In United Kingdom, youth who their ages between 10-15 years have more exposed to alcohol advertising per watching 60 minutes than adult who their ages under 25 years(Patil et al,2014) and also such advertising about alcohol encourages underage people to start drinking by an attractive advertisement. Furthermore, alcohol companies has...

Words: 965 - Pages: 4

Premium Essay

The Women

...PQC At one instance in the story, the counter girl wanted to bring joy to the gentleman even though he was being “annoying” and behaving in a disrespectful manner by tasting all the puddings on a daily basis. I believe this quote is interesting since it tells us something about the shop girl and how she is as a person. Based on the girl’s actions and quotations, we receive a positive image of the girl. She seems very polite and caring. This is clearly illustrated in the following quote: “Pardon me sir, will you do me a favor? Let me purchase you one of these puddings. It would give me such pleasure.” (p. 96, paragraph 3, line 1). The counter girl complains about this old man to another costumer and yet she considers buying a pudding for the gentleman. Not only does she offer him a free pudding, but also does she tell him that it gives her “such pleasure” if she could purchase a pudding for him. The fact that it gives her pleasure explains a lot about the girl. We get the sense that the girl is polite and kind at the same time. Offering a stranger a free purchase does not occur normally and one should be praised if done so. Another example of the shop girl’s characteristics is evident in the beginning of the short story. Here we are introduced to her kindheartedness and compassion. The girl at the counter does not only illustrate her kindness when she offers the gentleman a pudding, but she also talks kindly behind his back. This is shown in the following quote: “Well...

Words: 353 - Pages: 2