Flip Flop BCD Counter

Similar documents
LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

CHAPTER 11: Flip Flops

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

CHAPTER 11 LATCHES AND FLIP-FLOPS

Module 3: Floyd, Digital Fundamental

EXPERIMENT 8. Flip-Flops and Sequential Circuits

A Digital Timer Implementation using 7 Segment Displays

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

3-Digit Counter and Display

Chapter 9 Latches, Flip-Flops, and Timers

Counters and Decoders

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

The components. E3: Digital electronics. Goals:

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

ASYNCHRONOUS COUNTERS

Asynchronous counters, except for the first block, work independently from a system clock.

BINARY CODED DECIMAL: B.C.D.

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Contents COUNTER. Unit III- Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

Operating Manual Ver.1.1

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

6-BIT UNIVERSAL UP/DOWN COUNTER

Cascaded Counters. Page 1 BYU

Chapter 8. Sequential Circuits for Registers and Counters

Upon completion of unit 1.1, students will be able to

Fig1-1 2-bit asynchronous counter

Digital Logic Design Sequential circuits

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Lecture 8: Synchronous Digital Systems

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

DEPARTMENT OF INFORMATION TECHNLOGY

74F168*, 74F169 4-bit up/down binary synchronous counter

Interfacing To Alphanumeric Displays

Decimal Number (base 10) Binary Number (base 2)

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

CS311 Lecture: Sequential Circuits

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Digital to Analog and Analog to Digital Conversion

Interfacing Analog to Digital Data Converters

SN54/74LS192 SN54/74LS193

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Lecture-3 MEMORY: Development of Memory:

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Memory Elements. Combinational logic cannot remember

DS1307ZN. 64 x 8 Serial Real-Time Clock

Counters & Shift Registers Chapter 8 of R.P Jain

ECE380 Digital Logic

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

Lab 17: Building a 4-Digit 7-Segment LED Decoder

DOEPFER MIDI TO SYNC INTERFACE MSY2. User's Guide (English)

Lab Unit 4: Oscillators, Timing and the Phase Locked Loop

Glolab Talking Phone Dial Monitor

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Digital Controller for Pedestrian Crossing and Traffic Lights

Digital Logic Elements, Clock, and Memory Elements

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Low Cost Pure Sine Wave Solar Inverter Circuit

Counters. Present State Next State A B A B

Lesson 12 Sequential Circuits: Flip-Flops

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Asynchronous Counters. Asynchronous Counters

Obsolete Product(s) - Obsolete Product(s)

Counters are sequential circuits which "count" through a specific state sequence.

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Ultrasound Distance Measurement

Copyright Peter R. Rony All rights reserved.

User s Information Guide R1A

GLOLAB Two Wire Stepper Motor Positioner

Wiki Lab Book. This week is practice for wiki usage during the project.

54LS169 DM54LS169A DM74LS169A Synchronous 4-Bit Up Down Binary Counter

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

ADS9850 Signal Generator Module

PLL frequency synthesizer

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Counters. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Tutorial. replace them with cell-phone operated module. The advantages of a cell-phone operated bot are:-

Optical Sensor Interface for AFX Digital LED Timer/Counter by George Warner, Jan

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

GLOLAB Universal Telephone Hold

Figure 8-1 Four Possible Results of Adding Two Bits

BUILD YOUR OWN RC SWITCH (Issue 3)

Transcription:

Flip Flop BCD Counter S k i l l L e v e l : B e g i n n e r OVERVIEW The Flip Flop Counter discussed in this article is a Asynchronous counter and will give an output in BCD (Binary Coded Decimal). The amount of bits will be determined on the number of flip flops cascaded, each flip flop will produce one bit. The first flip flop from the clock input will be the LSB (Least Significant Bit). THE FLIP FLOP Flip Flop counters are extremely fast as it s a basic circuit constructed of logic gates, logic gates are made from transistors connected in specific means to form functions. The counter can count up or down which will be discussed later on. Although a switch could be used for the clock input it often and in most cases will have de-bounce, now since the counter reacts so fast one button push could count 5, 10 or many times, due to this a switch will need a debounce circuit or a NE555 pulse extender (Mono stable) circuit could be used for and digital inputs. If we had an IR beam it would be useful to use the NE555 as it will give a clean signal to the clock input. Figure1: Flip Flop Counter Circuit Figure 2: Flip Flop IC (DIP 16 package) In Figure 2 is a 74LS112 Negative edge triggered Duel flip flop IC we will use 2 IC s as this will give us 4Bits that we can work with and use on the 7 Segment display driver. The Negative edge triggered means that on a Square wave as an example, it will only change states once the clock pin has been changed from a high to a low (5V to 0V). Figure 3: Negative Edge triggering

The Negative edge triggering of the flip flop can be seen with the little bubble on the clock pin, if no bubble is present it is a Positive edge triggered clock input. Figure 5: 74LS112 Flip Flop Pin Out Next we must have a look at the J and K pins, named after the inventor Jack Kilby. The J K pins determine the state the flip flop should be in. The following truth table will make it more clear. Figure 4: JK-Flip Flop truth table * = Negative Edge * Q (Q Compliment) = Opposite of Q (If Q = 1 then Q = 0) * NC = No Change RST = RESET, Q = 0 SET = PRESET, Q = 1 TOGGLE = Q always changes to its Compliment state, thus if Q = 1, the clock will make it 0, if clocked again it will change it back to 1. INPUTS OUTPUTS STATE J K C Q Q 0 0 Q Q NC 0 1 0 1 RST 1 0 1 0 SET 1 1 Q Q TOGGLE For the flip flop counter we will have to set the flip flop into a toggle state, this state acts as a simple frequency divider. To achieve this we connect the J and K pins to 5V this sets the flip flop into toggle state. For this experiment we will tie the reset and preset pins to 5V as we do not want to use them, the reset and preset pins are active low so 0V to activate the function and 5V to deactivate the function. PIN DEFINITIONS: Pins(1, 13) = clock input pins this is where the pulse will go in and the negative edge gets sampled. Pins(2, 12) = K input pins. Pins(3, 11) = J input pins. Pins(4, 10) = Preset pins (Active Low) sets output Q to 1. Pins(5, 9) = Q outputs. Pins(6, 7) = Q compliment outputs. Pin(8) = GND Pin(14, 15) = Clear pins (Active Low) sets output Q to 0. Pin(16) = VCC Supply Voltage (+5V). BCD COUNT The Flip Flops generate a BCD code due to the frequency division characteristics of the toggle state flip flop. As you can see in the binary truth table the frequency division makes it possible to obtain relevant data from the flip flops.

BCD TRUTH TABLE DOWN COUNTER DATA INPUTS Decimal D (MSB) C B A (LSB) 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 So far we have constructed a counter that s able to count from 0 to 15. The down counter will decrement from 15 to 0 this could be useful for other applications where up and down counters can be used. It is possible to make a UP/DOWN counter from 4 Flip Flops although some external circuitry will be needed to switch in-between. The down counter is the same layout as the up counter in figure 1, all that will change is the clock pin from the proceeding flip flops will receive a signal from the Q compliment not Q pin any more, as you should remember Q compliment is opposite of Q thus causing different patterned effects. Figure 6: Down Counter 10 1 0 1 0 11 1 0 1 1 12 1 1 0 0 13 1 1 0 1 14 1 1 1 0 15 1 1 1 1 Have a look at the binary truth table, the green represents the 1 s. As one can see the LSB has the most changes between 0 and 1, so the LSB (A) has the highest frequency and B will be half that frequency and C will be half of B s frequency and so on. This is how the basis of the flip flop binary counter works. The BCD code can be fed into a display driver etc. to make it show decimal numbers that s counting.

FLIP FLOP UP COUNTER

TROUBLE SHOOTING PARTS LIST Once the circuit has been constructed and any problems arise they could often be solved by a few simple checks as listed: ELECTRONICS 123 Stock codes: Quantity Description Stock Code 1x 74LS112 AC883 Nothings turning on: Make sure the Reset pin is connected to +5V and check connections to LED s. Flip Flop IC 1x 7 Segment Display AA027 C/A 4x LED 5mm AA380 Not counting properly: Try increase the capacitors value on the debounce circuit, or incorporate an NE555 with a low frequency e.g.: 10 Hz to prevent false triggering 4x 470 Ω 1/4 Watt DB049 Resistors 1x Switch GB189 Cnr Codonia and Moulton Avenue Tel: 012 3322356 Moulton Sentrum Fax: 012 3320487 Waverley electronics123.co.za Waverley, Pretoria 0186 Gauteng South Africa