Laboratory Three Advanced Input and Output Devices

Similar documents
CHAPTER 11: Flip Flops

74HC595; 74HCT General description. 2. Features and benefits. 3. Applications

4 Character 5x7 LED Matrix Display

STEPPER MOTOR SPEED AND POSITION CONTROL

Counters and Decoders

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

74HC595; 74HCT General description. 2. Features and benefits. 3. Applications

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

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

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Gates, Circuits, and Boolean Algebra

GLOLAB Universal Telephone Hold

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

74HC165; 74HCT bit parallel-in/serial out shift register

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

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

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

Digital Logic Elements, Clock, and Memory Elements

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

74HC107; 74HCT107. Dual JK flip-flop with reset; negative-edge trigger

8-bit binary counter with output register; 3-state

Adding Heart to Your Technology

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

74HC4040; 74HCT stage binary ripple counter

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

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

Data Sheet. HCMS-235x CMOS Extended Temperature Range 5 x 7 Alphanumeric Display. Features. Description. Typical Applications

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

74HC377; 74HCT General description. 2. Features and benefits. 3. Ordering information

74HC175; 74HCT175. Quad D-type flip-flop with reset; positive-edge trigger

(Refer Slide Time: 00:01:16 min)

HEF4021B. 1. General description. 2. Features and benefits. 3. Ordering information. 8-bit static shift register

Designing VM2 Application Boards

74HC574; 74HCT574. Octal D-type flip-flop; positive edge-trigger; 3-state

PART B QUESTIONS AND ANSWERS UNIT I

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

CENTRONICS interface and Parallel Printer Port LPT

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

74HC238; 74HCT to-8 line decoder/demultiplexer

Chapter 2 Logic Gates and Introduction to Computer Architecture

74F257A Quad 2-line to 1-line selector/multiplexer, non-inverting (3-State)

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

DEPARTMENT OF INFORMATION TECHNLOGY

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

CM HOST CM CardTransporter Fuel Communication and Management Software Software version up to 3.1

POINTS POSITION INDICATOR PPI4

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

The components. E3: Digital electronics. Goals:

74HC393; 74HCT393. Dual 4-bit binary ripple counter

Programming A PLC. Standard Instructions

74HC154; 74HCT to-16 line decoder/demultiplexer

Sequential Logic Design Principles.Latches and Flip-Flops

Points Position Indicator (PPI1) for Points Motors with Common Ground

LAB4: Audio Synthesizer

Software Manual RS232 Laser Merge Module. Document # SU Rev A

74HC4067; 74HCT channel analog multiplexer/demultiplexer

Interfacing To Alphanumeric Displays

74HC74; 74HCT General description. 2. Features and benefits. 3. Ordering information

RGB for ZX Spectrum 128, +2, +2A, +3

Modeling Latches and Flip-flops

Interfacing Analog to Digital Data Converters

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

PUSH BUTTON START INSTALLATION MANUAL

81110A Pulse Pattern Generator Simulating Distorted Signals for Tolerance Testing

BINARY CODED DECIMAL: B.C.D.

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Technical data. General specifications. Indicators/operating means. Electrical specifications Operating voltage U B Power consumption P 0 Interface

Theory of Logic Circuits. Laboratory manual. Exercise 3

RS-485 Protocol Manual

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

74HC138; 74HCT to-8 line decoder/demultiplexer; inverting

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

74HC02; 74HCT General description. 2. Features and benefits. Ordering information. Quad 2-input NOR gate

M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features

ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering

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.

14-stage ripple-carry binary counter/divider and oscillator

HEF4013B. 1. General description. 2. Features and benefits. 3. Applications. 4. Ordering information. Dual D-type flip-flop

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

6-BIT UNIVERSAL UP/DOWN COUNTER

ServoPAL (#28824): Servo Pulser and Timer

Build A Video Switcher. Reprinted with permission from Electronics Now Magazine September 1997 issue

Flexible Active Shutter Control Interface using the MC1323x

Using The PIC I/O Ports

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

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

INTEGRATED CIRCUITS. 74F153 Dual 4-line to 1-line multiplexer. Product specification 1996 Jan 05 IC15 Data Handbook

Lesson 12 Sequential Circuits: Flip-Flops

Modeling Registers and Counters

Operating Manual Ver.1.1

3.Basic Gate Combinations

Advanced LED Controller (LED Chaser)

User Manual. AS-Interface Programmer

Transcription:

Laboratory Three Advanced Input and Output Devices Objectives: 1. To implement output signal timing sequences. 2. Generating parallel signals to drive external devices 3. To implement a 5x7 Matrix Display. 4. Application of advanced input/output devices (keypads and matrix displays). Note: all programming software should be written in C. If and when assembly language is required, you will be explicitly told to compose assembly language (it will likely be provided). Hardware Build: i. Maintain the LED bars, one DIP switch and keypad based on Lab 2. You may want to use the LED bar as a status display. It can show a cycle count, a state count, or even the status of the output pins. ii. MIC5891 interfacing and operation. iii. 74HCT595 interfacing and operation. iv. ULN2803APG wiring v. Three 5x7 matrix display wiring and operation. Task Note: Tasks one through four are getting the 5x7 matrix display to work. Therefore, any delay timing method you wish to use is adequate. Task five combines the keypad and the display and can be performed with whatever timing that is appropriate. Task six requires that the code be written so that other operations can take place besides the keypad and display, critical signal timing delays for driving logic devices are allowed/required but all other delays should be the result of flags returned from either rti interrupts or counter/timer interrupts. Task One: Developing the outputs to drive the MIC5891. a) Write a program that drives parallel output pins to provide the clocking, data and output enable digital waveforms for the MIC5891. The waveforms must follow the device data sheet, including the required timing for set-up and hold, clock pulse widths, etc. b) Verify that a pattern of alternating 0 s and 1 s is correctly shifted into and through the device. The serial output can be used with a logic analyzer to observe correct operations. Alternately, pull-down resistors can be connected between the outputs and ground to observe when the resister is driven (high) or not driven (low). Task Two: Developing the outputs to drive two series connected 74HCT595. a) Write a program that drives parallel output pins to provide the clocking, data and output enable digital waveforms for the 74HCT595. The waveforms must follow the device data sheet, including the required timing for set-up and hold, clock pulse widths, etc. b) Verify that a pattern of alternating 0 s and 1 s is correctly shifted into and through the device. The serial output can be used with a logic analyzer to observe correct operations. Alternately, pull-up Page 1 of 8

resistors can be connected between the outputs and 5V power to observe when the resister is driven (low) or not driven (high). c) Verify that a walking one can be injected at the DS serial input and transit through all 16 output locations as the clock pins are toggled. Task Three: Driving the 5x7 matrix displays.. a) Complete the hardware build of the components required for the 5x7 matrix display. b) Write an initial test program that uses task 1 code to shift the pattern 0xFF into the MIC5891 and then enable the output enable. Then use task 2 code to provide a walking one to the 74HCT595 so that the walking one is shifted at approximately one step/clock per second with the output enabled. Notes: you may want to initialize the 74HCT595 before loading and enabling the MIC5891. If the 74HCT595 output enable is used, you may need a pull-down resistor, otherwise, the input impedance of the ULN2803APG is the only discharge path. c) Modify the code from the previous example to shift a 0xAA pattern into the MIC5891. d) Modify the code from the previous example to shift a 0x55 pattern into the MIC5891. e) Modify the code so that the walking one is shifted fast enough that the display appears to be on continuously.. Note 1: You can now display the same pattern on all the display columns. Note 2: It may be useful to have one LED bar show the desired row data and the other LED bar to show the walking one location in the first 74HCT595. Task Four: Driving characters and number to the 5x7 matrix displays.. a) Write code that drives the characters ECE to the 5x7 matrix display. This program will require you to serial transfer row data for a column to the MIC5891, set the walking one to the desired column and then enabling the OE of the MIC5891. Prior to shifting in the next row of data for the next column, the OE will have to be disabled. b) Select another character, number or symbol set and repeat part a. c) Use software break-points to stop the program and observe that the row data for each column, one at a time, is correct. Task Five: Keypad to display with dip switch reset. a) Write code that displays the hexadecimal value of the key pressed on the keypad. The most recent key should appear on the least significant display with the previous key on the next highest display and the one before that on the highest display. This collects the keypad key presses in the same way a calculator does. b) Modify the code so that one of dip switches clears the display when toggled. Note: clearing is the process of loading a space (ASCII 0x20) into all three display locations. Page 2 of 8

Task Six: Advanced Keypad to display with dip switch reset. a) Write code that performs keypad sampling and display multiplexing based on either rti interrupts or counter/timer interrupts setting flags and having flagged operations executed in the programs main loop. By construction, this means that the HC12 is free to do other processing the majority of the time. Page 3 of 8

MIC5891YN Data Sheet Information www.micrel.com/_pdf/mic5891.pdf Functional Block Diagram Suggested Connections (non-power or output): Clock Serial Data In Strobe Serial Data Out Output Enable Load Supply tied high (always enabled) no connect (probe to verify shifting) initially 5 V Page 4 of 8

Page 5 of 8

NXP 74HCT595 Data Sheet Information www.nxp.com/documents/data_sheet/74hc_hct595.pdf Functional Block Diagram Suggested Connections (non-power or output): DS SHCP MR STCP Q7S OE (output enable) optional connection to DS of 2nd device, 2nd device no connect Note: it is possible to tie SHCP and STCP to the same pin. Page 6 of 8

See the data sheet for detailed timing requirements. Page 7 of 8

ULN2803APG Data Sheet Information http://www.semicon.toshiba.co.jp/info/docget.jsp?type=datasheet&lang=en&pid=uln2803apg Page 8 of 8