Experiment 8 Fall 2012

Similar documents
Experiment 7 Fall 2012

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

A Combined Combinational-Sequential System

Sequential Logic Basics

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Implementing a Rudimentary Oscilloscope

Counters

EECS145M 2000 Midterm #1 Page 1 Derenzo

A Motor can be in many groups, by assigning additional channel# on it.

NS8050U MICROWIRE PLUSTM Interface

Point System (for instructor and TA use only)

Operating Manual Ver.1.1

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

EE 367 Lab Part 1: Sequential Logic

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

UNIVERSITI TEKNOLOGI MALAYSIA

Chapter 4. Logic Design

Final Project [Tic-Tac-Toe]

Logic Design. Flip Flops, Registers and Counters

16 Stage Bi-Directional LED Sequencer

Serial Peripheral Interface

ECE 372 Microcontroller Design

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

Chapter 5 Flip-Flops and Related Devices

Laboratory 8. Digital Circuits - Counter and LED Display

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

Serial In/Serial Left/Serial Out Operation

Marks and Grades Project

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Lab #10: Building Output Ports with the 6811

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

CHAPTER 6 COUNTERS & REGISTERS

EKT 121/4 ELEKTRONIK DIGIT 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Chapter 7 Counters and Registers

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

1. Synopsis: 2. Description of the Circuit:

CSCB58 - Lab 4. Prelab /3 Part I (in-lab) /1 Part II (in-lab) /1 Part III (in-lab) /2 TOTAL /8

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

INC 253 Digital and electronics laboratory I

Logic Design II (17.342) Spring Lecture Outline

University of Pennsylvania Department of Electrical and Systems Engineering. Digital Design Laboratory. Lab8 Calculator

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

CSE 352 Laboratory Assignment 3

EE 357 Lab 4 Stopwatch

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

ASYNCHRONOUS COUNTER CIRCUITS

Although the examples given in this application note are based on the ZX-24, the principles can be equally well applied to the other ZX processors.

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

IT T35 Digital system desigm y - ii /s - iii

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

Experiment # 4 Counters and Logic Analyzer

Digital Circuits I and II Nov. 17, 1999

Comfort System T-32-P Universal Thermostat. Operation Manual

CprE 281: Digital Logic

LAB #6 State Machine, Decoder, Buffer/Driver and Seven Segment Display

Operating Manual Ver.1.1

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Decade Counters Mod-5 counter: Decade Counter:

LMH0340/LMH0341 SerDes EVK User Guide

Module -5 Sequential Logic Design

Laboratory Exercise 4

TRIMBLE GPS / 10MHz REFERENCE MONITOR DISPLAY V January 2015

Engr354: Digital Logic Circuits

ECE 263 Digital Systems, Fall 2015

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

FPGA Laboratory Assignment 4. Due Date: 06/11/2012

Lab #11: Register Files

TV Synchronism Generation with PIC Microcontroller

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

ECE 4510/5530 Microcontroller Applications Week 3 Lab 3

Scanned by CamScanner

Kramer Electronics, Ltd. USER MANUAL. Models: VS-162AV, 16x16 Audio-Video Matrix Switcher VS-162AVRCA, 16x16 Audio-Video Matrix Switcher

FLIP-FLOPS AND RELATED DEVICES

SXT SXGA TFT NEMA 4/12 Flat Panel Monitor. User s Guide

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

Digital Logic Design ENEE x. Lecture 19

ECE 545 Digital System Design with VHDL Lecture 1B. Digital Logic Refresher Part B Sequential Logic Building Blocks

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Sequential Circuit Design: Principle

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Embedded Systems Lab. Dynamic Traffic and Street Lights Controller with Non-Motorized User Detection

Transcription:

10/30/12 Experiment 8 Fall 2012 Experiment 8 Fall 2012 Count UP/DOWN Timer Using The SPI Subsystem and LCD Display NOTE: Late work will be severely penalized - (-7 points per day starting directly at the official end time of your lab section. No exceptions! If your lab ends at 10:50 am and you demo and turn in your report at 10:51 am you loose 7 points automatically. Be disciplined, start early, and get the work done on time.) Due: Week 10 lab Sessions (10/30/2011) Design and implement a two-digit one second interval count down/up timer system with the following specification: I. Input: 1. 4X4 Matrix Keypad II. Output: a. Keys 0-9 used for single digit numeric input b. Assign XIRQ pin for START/STOP c. Assign IRQ pin for UP/DOWN d. Assign RESET pin to Reset III. Operation: 1. Display output on a LCD display. Go here for more LCD info The LCD will be driven by a SIPO IC which is driven by the NanoCore12 SPI system pins. At power up the display should give instructions about how to use the Count UP/DOWN timer. 1. When entering digit keys the most significant digit (tens place) should be entered first followed by the units digit. (Like a calculator. 2. Implement a CLEAR key (backspace-delete) so that corrections can be made. 3. Press UP/DOWN to set the count direction. (This key should also function while counting is in progress.) 4. Press the START/STOP key and timer should begin to count down (or up) in one second intervals. If START/STOP is pressed again the counting should pause. The counting should resume when START/STOP is pressed again. So, START/STOP is a toggle function. If the UP/DOWN key is pressed during counting the counting should change directions. So, UP/DOWN is also a toggle function. www.uic.edu/classes/ece/ece367/experiments/exp8.f l12.html 1/2

10/30/12 Experiment 8 Fall 2012 5. When the count reaches 00 (note: count up sequence is 98,99,00) the display should flash the 00 off and on rapidly 3 times and then the display should go blank. 6. The display should continuously display both the counting direction (Counting Up or Counting Down) and the operation mode (Running or Stopped.) You may also display any other information as you see fit. Note: If START/STOP is pressed after only a single digit has been pressed then countdown (or up) should commence from the single digit. We will need to reduce the number of output lines we have been using to make lines available for other purposes. To do do this you are required to use the SPI subsystem of the NanoCore12. We will output serial data to a Serial-In-Parallel-Out (SIPO) IC. The output of the SIPO will go to the LCD display data lines. We need three pins from PortM for the SPI system so the three other PortM pins can be used for the three required control lines. Data sheet for the 74HC595 SIPO IC is here. Some of the special pins on the SIPO: 10 - SCLR' = Serial Clear (active low) Clear all bits of the shift register 11 - SCK = Serial Clock (Shift Clock) Active on rising edge 12 - RCK = Register Transfer Signal. Moves all bits (in parallel) from the Shift register to the Output Latch. Active on rising edge. 13 - G' = Output enable (active Low) 14 - SER = Serial Data Input Line Report: Your lab report must include the following: 1. A cover page with: Experiment Name and number, ECE 367 Spring 2012, Your name, Your UIN, the date submitted, and your TA's name. 2. Your assembler code with your name, course, date, experiment number, program explanation and comments for every line of code. The program explanation should include the NanoCore12 pin assignments and an explanation of the organization of the data table, etc. 3. A logic diagram of the circuit 4. An electric circuit diagram of the complete system 5. A user manual to explain how to use the system. 6. Conclusions: Does your circuit meet the specifications and function properly? What problems did you encounter during the coding or construction of the circuit? How would you do this project differently? What extra features or functionality could you have included? What did you learn from working on this project? Last modified: Mon Oct 22 11:40:30 2012 www.uic.edu/classes/ece/ece367/experiments/exp8.f l12.html 2/2

ECE 367: Experiment 8 Count UP/DOWN Timer Using the SPI Subsystem and LCD Display Semester: Fall 2012 Name: Kai Zhao Signature: UIN: 670720413 Due Date: 2012 October 30 Lab Section: T11 TA: Chenjie Tang

User Manual: This program is a count up/down timer. The user should first supply power to the circuit and then press the reset button to clear the display. On startup, the counter is a slow count up counter that starts at 00. The user has an option of inputting the 2 digits where the counter should begin. The user has an option on pressing 'F' to speed up the counter to pressing 'A' to restore the slow counter speed. The user also has the option to clear ( C ) or backspace ( B ) the current input. The user finally has the option of pressing the up/down button for the counter to count up or down. When the user is ready, the user should press the start/stop key to start the timer. The user may adjust count direction during the counter, but other options require the timer to be paused before adjusting. Conclusion: Yes, my circuit meets the specifications and function properly. I had trouble with the timings because many of the commands on the LCD required delays for the command to execute. Therefore, I had to revise my timers. I had trouble setting up the SPI because I initially had to setup code for the SPI before I set the direction of port M. I also had trouble with getting the LCD to show stopped/running and count direction because I only updated the count direction every so often. I would do this project differently by using a loop to go through the instructions as opposed to manually writing the string for each line and manually traversing through the instructions. The extra feature I have implemented is the speed option and both the clear (clears all digit) and backspace (only backspace one digit) key. I learned about setup code precedence, strings, the LCD display, timing adjustments.