ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.

Slides:



Advertisements
Similar presentations
1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
Advertisements

LED Display. LED Typical LED forward bias voltage: 1.5 to 2.0 V Typical currents needed to light LED range from 2 to 15 mA.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
kashanu.ac.ir Microprocessors 6-1 I/O Devices Switches, LED, LCD Lec note 6.
Input/Output (I/O) Ports and Interfacing
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Output Actuators and Drive Techniques by Prof. Bitar.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 12.
ECE 447: Course Organization Instructor:Kris Gaj, S&T II, Room 223 Office hours: T, R 4:30-5:30 PM Lab assistants: Thuy-Tien Nguyen (M)
CMPE 118 MECHATRONICS Digital I/O Transistors and Mosfets.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #5
3.3 CMOS Logic 1. CMOS Logic Levels NextReturn Logic levels for typical CMOS Logic circuits. Logic 1 (HIGH) Logic 0 (LOW) Undefined Logic level 5.0V 3.5V.
ECE 331 – Digital System Design Electrical Characteristics of Logic Gates, Circuit Design Considerations, and Programmable Logic Devices.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
BCD to 7-Segment Display
Digital I/O Connecting to the Outside World
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Lecture – 7 Basic input and output
Week #4 Parallel IO Interfacing
ECE 447 Fall 2009 Lecture 6: TI MSP430 IO Interfacing.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
ENGR 355 Take Home Lecture 2 WRITING CODE Introductory Comments /* Disgruntled Avians Lab 6 ENGR355 by Tim Kyle Rev /1/2014 LM-3551 Tilt Sensor.
Microcomputer & Interfacing Lecture 2
Revised: Aug 1, EE4390 Microprocessors Lessons 29, 30 Welcome to the Real World!
Topic 4: Digital Circuits
Objectives How Microcontroller works
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
Decode 1.1 Decoder, Encoders and Displays ©Paul Godin Updated Aug 2013.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Input/Output Ports and Interfacing
CprE 211 Break-out Board Layout
MCS-51 Hardware Interfacing
Homework Assignment 3 Due date: Tuesday, Wednesday, or Thursday, October 4-6, 2005 input: push-button switch output: seven-segment LED 7 points Menu System.
I/O devices Peripheral devices (also called I/O devices) are pieces of equipment that exchange data with a CPU Examples: switches, LED, CRT, printers,
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
COMP3221: Microprocessors and Embedded Systems Lecture 18: Computer Buses and Parallel Input/Output (II) Lecturer: Hui.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
ECE 331 – Digital System Design Constraints in Logic Circuit Design (Lecture #13) The slides included herein were taken from the materials accompanying.
4. TTL = Transistor-Transistor Logic. Uses bipolar transistors and diodes IN1IN2OUT LLL LHL HLL HHH Vcc OUTIN1 IN2 R Diode Logic AND gate Problem… defined.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices  I/O devices:  serial links  timers and counters  keyboards  displays  analog.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Interfacing Light-Emitting Diodes (LEDs) & Push Buttons to Microcontrollers.
CHAPTER HARDWARE CONNECTION. Pin Description 8051 family members ◦ e.g., 8751, 89C51, 89C52, DS89C4x0) ◦ Have 40 pins dedicated for various functions.
Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Port architecture.
1 ECE 372 – Microcontroller Design Parallel IO Ports - Inputs.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
Spring EE 437 Lillevik 437s06-l5 University of Portland School of Engineering Advanced Computer Architecture Lecture 5 Slave bus agent ROM example.
Chapter 3 Parallel Ports, Power Supply and the Clock Oscillator The aims of this chapter are to introduce: Why we need parallel input/output; How simple.
I/O Devices Switches, LED, LCD
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
A LECTURE ON Arduino Interface With LabVIEW (Used Boards: Arduino UNO & Arduino MEGA 2560) By Satish Kumar Rai Assistant Professor Department of ECE BKBIET,
Electrical Characteristics of Logic Gates
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
Solar Energy Generator: Design Rendering Description
Input/Output Ports and Interfacing
For further information
Lecture 6: TI MSP430 IO Interfacing
Lesson 9: Digital Input-Output Signal Interfacing
82C55 Programmable Peripheral Interface
74LS245: 3-State Octal Bus Transceiver
Presentation transcript:

ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing

ECE 447: 68HC11 Current Limits GND=0 V V DD =5 V Maximum sink current I OLmax = 1.6 mA V OLmax = 0.4 V V OHmin =4.5 V Maximum source current I OHmax = 0.8 mA Sufficient to drive one input of a TTL device and about 10 inputs of an LSTTL device

ECE 447: Light Emitting Diode (LED) IFIF Forward current Forward voltage VFVF Typical values for common LEDs I F = mA V F = V + –

ECE 447: LED Interfacing V DD =5 V I ≈ I F Forward current Forward voltageVFVF V OL buffer Low Level Output Voltage I OL Low Level Output Current (sink current) R=? R ≈ (V DD – V F – V OL ) / I F I ≈ I F  I OLmax V OL V DD – V F – V OL

ECE 447: LED Interfacing V DD =5 V I ≈ I F Forward current Forward voltage VFVF V CE Collector-Emitter Voltage I CE Collector-Emitter Current R 1 =? R 1 ≈ (V DD – V F – V CE ) / I F R 2  (V OH – V BE ) / I OHmax R 2 =? V BE Base-Emitter Voltage V DD – V F – V CE I ≈ I F  I CEmax I OH  I OHmax

ECE 447: MAN-72: 7-Segment LED

ECE 447: LED

ECE 447: Single Switch/Push Button

ECE 447: Switch Key Bouncing key bounce, t BOUNCE typically, t BOUNCE < 10 ms key bounce, t BOUNCE

ECE 447: Key Debounce in Software key bounce, t BOUNCE typically, t BOUNCE < 10 ms debouncing delay key bounce, t BOUNCE update display

ECE 447: Key Debounce in Hardware

ECE 447: Port Multiplexing Allow multiple devices to share the input and output ports of the microcontroller. Additional hardware typically needed to support connection and selection of peripheral devices. Software typically selects the peripheral devices using additional output pins. Some I/O devices have built-in enable signals.

ECE 447: Port Multiplexing Port C Port B I/O device 1 74LS245 DIR OE I/O device 8 74LS245 DIR OE MC68HC11

ECE 447: Port Multiplexing Port C Port B I/O device 1 (e.g., LCD display) I/O device 2 (e.g., keypad) 74LS24574LS244 DIR OE 1G 8 2G MC68HC11

ECE 447: Octal Buffer 74LS245 Note: All 8 outputs controlled by one enable, OE

ECE 447: Octal Buffer 74LS244 Note: Outputs controlled by two enables, 1G & 2G (1G controls 1A1-1A4, 2G controls 2A1-2A4)