Lab 5. Binary Counter

Similar documents
Lab 6. Binary Counter

Lab 8. Stepper Motor Controller

Exercise 1: AND/NAND Logic Functions

Schmitt Trigger Inputs, Decoders

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC 180A DIGITAL SYSTEMS I Winter 2015

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

11 Counters and Oscillators

Name EET 1131 Lab #2 Oscilloscope and Multisim

ENGR 210 Lab 12: Analog to Digital Conversion

ANALOG TO DIGITAL CONVERTER

Analog-to-Digital Conversion

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Experiment 5: Basic Digital Logic Circuits

Electronic Instrumentation

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

LABORATORY 6 v3 TIME DOMAIN

TCSS 372 Laboratory Project 2 RS 232 Serial I/O Interface

Technical Information Manual

Laboratory Assignment Number 3 for Mech 143. Pre-Lab: Part 1 Interfacing to a DC Motor and Potentiometer

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

Digital Logic Troubleshooting

Exercise 2: OR/NOR Logic Functions

Experiment # 1 Introduction to Lab Equipment

Microprocessor & Interfacing Lecture Programmable Interval Timer

Digital Electronics 1 (ET181) Laboratory Manual

CONTENTS Sl. No. Experiment Page No

RC Filters and Basic Timer Functionality

Physics 335 Lab 1 Intro to Digital Logic

PHYSICS 536 Experiment 14: Basic Logic Circuits

Lab 2: Combinational Circuits Design

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Lecture 2. Digital Basics

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Lab 5 Timer Module PWM ReadMeFirst

Data Logger by Carsten Kristiansen Napier University. November 2004

ECE 220 Laboratory 3 Thevenin Equivalent Circuits, Constant Current Source, and Inverting Amplifier

EXPERIMENT 1 PRELIMINARY MATERIAL

Digital Debug With Oscilloscopes Lab Experiment

*X025/11/01* X025/11/01 ELECTRONIC AND ELECTRICAL FUNDAMENTALS INTERMEDIATE 2 NATIONAL QUALIFICATIONS 2015 WEDNESDAY, 3 JUNE 9.00 AM 11.

Cornerstone Electronics Technology and Robotics Week 21 Electricity & Electronics Section 10.5, Oscilloscope

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

Logic 0 Logic To provide an output load (or two) 5 Voltage Measurement Point V CC +5 74LS00 GND

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

Lab Exercise 6: Digital/Analog conversion

PRODUCT TEST MANUAL 2SY110K28 SYNCHRONISM CHECK RELAY

EE 210 Lab Exercise #4 D/A & A/D Converters

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Sirindhorn International Institute of Technology Thammasat University at Rangsit

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Use the fixed 5 volt supplies for your power in digital circuits, rather than the variable outputs.

ENGR-4300 Electronic Instrumentation Quiz 3 Spring 2011 Name Section

ENGR-4300 Electronic Instrumentation Quiz 3 Fall 2010 Name Section

EECS 270: Lab 7. Real-World Interfacing with an Ultrasonic Sensor and a Servo

Model 305 Synchronous Countdown System

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

University of California at Berkeley. College of Engineering. J. Wawrzynek and N. Weaver. Lab 7

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Lab 7 (Hands-On Experiment): CMOS Inverter, NAND Gate, and NOR Gate

Section 1. Fundamentals of DDS Technology

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Lab Project #2: Small-Scale Integration Logic Circuits

1 Second Time Base From Crystal Oscillator

Intro To Engineering II for ECE: Lab 7 The Op Amp Erin Webster and Dr. Jay Weitzen, c 2014 All rights reserved.

EE2304 Implementation of a Stepper Motor using CMOS Devices Fall 2004 WEEK -2-

Keyword: Stop Watch, 555 Timer, logic gate IC, Multisim, PSPICE

LABORATORY 6 v2 TIMERS AND OSCILLATORS

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

Sept 13 Pre-lab due Sept 12; Lab memo due Sept 19 at the START of lab time, 1:10pm

ME 461 Laboratory #2 Timers and Pulse-Width Modulation

Yaskawa Electric America Unit Troubleshooting Manual Section Two: Power Checks GPD 506/P5 and GPD 515/G5 (0.4 ~ 160kW)

Project 3 Build a 555-Timer

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems

CHAPTER 6 DIGITAL INSTRUMENTS

DELD MODEL ANSWER DEC 2018

Precalculations Individual Portion Introductory Lab: Basic Operation of Common Laboratory Instruments

Lab 12: Timing sequencer (Version 1.3)

TECH 3232 Fall 2010 Lab #1 Into To Digital Circuits. To review basic logic gates and digital logic circuit construction and testing.

Digital Fundamentals

Introduction to Oscilloscopes Instructor s Guide

Chapter 1: Digital logic

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

ME 461 Laboratory #3 Analog-to-Digital Conversion

Combinational logic: Breadboard adders

Module -18 Flip flops

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

FET Driver, Load, and Switch Circuits

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Sequential Logic Circuits

Light Sensitive Flash Camera

Chemistry Hour Exam 1

Unit 24: Controlling Systems Using IT

Sequential Logic Circuits

Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage)

2 A Simple Logic Gate

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

Transcription:

Lab. Binary Counter Overview of this Session In this laboratory, you will learn: Continue to use the scope to characterize frequencies How to count in binary How to use an MC counter Introduction The TA will show you the MC counter and the MC0 quad input NAND gate. Oscilloscope Measurements. Connect the signal from the function generator to the oscilloscope and determine the type of signal present, the frequency, amplitude, and the DC offset. Background Counting: Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be in one of two states, it must use a different counting system than you are accustomed to. Normally we use a decimal counting system; meaning each digit in a number is represented by one of 0 characters (0-). In a binary system, there can only be two characters, 0 and. When counting up in a decimal system, we start with the first digit. When that digit overflows, i.e. gets above, we set it to 0 and add one to the next digit over. The same goes for a binary system. When the count goes above we add one to the next digit over and set the first digit to 0. Here is an example.

Decimal Binary 0 0 0 00 To convert a binary number to a decimal, we use a simple system. Each digit, or bit of the binary number represents a power of two. All you need to do to convert from binary to decimal is add up the applicable powers of. In the example below, we find that the binary number 00 is equal to 8. The diagram also shows that eight bits make up what is called a byte. Nibbles are the upper or lower four bits of that byte. Referring to nibbles and bytes are useful when dealing with other number systems such as hexadecimal which a base instead of base 0 or base two. Byte Upper Nibble Lower Nibble 0 0 0 Binary number 0 + =8 + + + + + +. What are the binary number representations for the numbers through 0?

THE UNTER: Many digital circuits need to be able to count. The most basic element to every single microprocessor, from the one inside your watch to a Pentium, is a counter. So lets see how to use one. Below is a schematic of the MC counter. 0 K TE PE P P P P Q Q Q Q QA-QD P-P K TE, PE = Outputs = Program Input = Clock = Carry out = Counter and program enable = Clear (Master Reset) = Load P-P value onto QA-QD Hook up the following circuit. Then set the function generator to output a square wave, of Hz with a peak-to-peak voltage of volts. However, the DC offset must be set so that the output goes from 0 volts to volts, that is the negative portion of the square wave does not go below zero volts. Have the TA verify that you have created this signal correctly before connecting it to the counter circuit. Use the scope to show the waveform.

V + - 0 K TE PE P P P P Q Q Q Q Some very important things should be noticed about this diagram. First, the pins on the chip diagram are not presented in their actual order! This is a common practice to keep the schematic as neat as possible. Be sure to hook up the pins correctly on the actual circuit! Remember, to locate Pin, orient the chip so that the divot is up, Pin will be to the left of the divot. Subsequent pins go in a counter clockwise fashion. Second, the pin has a little bubble on it and the pin has a line over the label. Both of these mean that this function is activated when this pin goes low (to ground). Third, Power (+Vcc) and Ground (GND) are not shown on the chip in this schematic. It is common practice to leave them out since all chips need to be powered. Most logic chips (these included) have power (+Vcc) at the highest pin number (upper right side, pin in this case) and ground attached to the halfway pin (lower left, pin 8 in this case). Be sure you power your chips or they will not work! Before you power the circuit, verify that your clock signal has an amplitude of volts and a DC offset of. volts. It should oscillate between 0 and volts.. Does the circuit count input pulses from the Function Generator?. What number does it count to?. What is the frequency of the waveforms that come out of each of the Q pins relative to the frequency of the function generator (you may find it easier to increase the frequency of the function generator so that the lower frequency outputs are easier to see on the scope)? Is this what you expect? Why?. Find another group that has completed this much. Attach the Carry out of one circuit to the K of another. What number can you count to now?

UNTING TO A SPECFIC NUMBER What if you only want to count to a specified number? How can we make the circuit above count from 0 to and then restart at 0? For this we will need a logic gate. We need a chip to monitor the output of the counter. When it sees that a is there, it needs to set the counter to 0. Build the following circuit (don t forget the power and ground pins for both chips!): V + - 0 K TE PE P P P P Q Q Q Q Y A B C D V Y A B C D 0-chip 0 Examine this circuit closely. Here, the counter will increment as before. However, when the number (00) is on the outputs, all the inputs to the -input NAND gate will be high (). Therefore the output of the NAND gate will go low, thereby, loading the outputs of the counter with the number present at the inputs (P-P), which, in this case is the number 0. At the next clock cycle, the counter will set the outputs to 0. Assemble the circuit and answer the following questions. Start with the clock at a low frequency, around Hz to verify that the circuit is actually counting from 0 to.. Why are the C and D pins of the NAND gate tied to volts?.8 How can we get the counter to count from 0-? (Hint: you only need to adjust the wires from the output of the counter to the NAND gate). How can we get the counter to count from to? (Hint: The wires between the counter output and the NAND gate need to be changed again, and so does the number on the counter load inputs (A-D).

LAB DATA SHEETS The xx has the same pin out as the MC, which is no longer made.

Lab. Binary Counter Answer Sheet Name: TA init: Section Number: Date. Draw the waveform shown on the oscilloscope. What is the name of this waveform? What is the amplitude, frequency, and DC offset? Show all your calculations.. What are the binary number representations of through 0?. Does the circuit count input pulses from the Function Generator?. What number does the circuit count to?. What frequency comes out of each of the output pins? Why are these the expected values?. What is the maximum number that two circuits can count to?. Why are the C and D pins of the NAND gate tied to volts?.8 How can we get the counter to count from 0-?. How can we get the counter to count from to?