ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/2015 1 ECE265.

Slides:



Advertisements
Similar presentations
DAT2343 Basic Logic Gates © Alan T. Pinck / Algonquin College; 2003.
Advertisements

EMS1EP Lecture 6 Digital Inputs
10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
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.
Seven Segment Display. What's A 7-Segment Display? A 7-segment display is a package with 7 bar-shaped LEDs arranged to allow the display of many useful.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Output Actuators and Drive Techniques by Prof. Bitar.
1 Two ways to think about logic signals Fixed logic convention –High voltage always means 1, TRUE, Asserted –Low voltage always means 0, FALSE, Negated.
Digital I/O Connecting to the Outside World
Introduction.
Lecture – 7 Basic input and output
ECE 447 Fall 2009 Lecture 6: TI MSP430 IO Interfacing.
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
Embedded Programming and Robotics
Designing An Electronic Trigger Mechanism For A Paintball Marker To Allow User Selectable Firing Rates ECE 4884/4007 Fall 2007 Nathan Densmore Matthew.
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
Embedded Systems Design
FIELD EFFECT TRANSISTORS (FETs) Past Paper Questions and Answers.
Lecture 5: Sensors. A sensor is any element that provides information from the to the robot, either about the environment or about the robot itself. Sensing.
Systems Approach Burglar Alarm Project PROBLEM SITUATION DESIGN
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Intro to Digital Electronics. Classifications of Electronic Circuits Switching Circuits – by turning electricity on and off. – Figure 1 – Known as the.
Interfacing Pressure Sensor to logic device input pin Click within the blue frame to access the control panel. Only use the control panel (at the bottom.
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.
Module 1: Introduction to PLC
COMP3221: Microprocessors and Embedded Systems Lecture 18: Computer Buses and Parallel Input/Output (II) Lecturer: Hui.
Control Technology and Automation
ECE 300 Microprocessor Project MSP 430. Group Members Demetric Banahene David Fish Zack Pannell.
ECE 194 S’01 Introduction to Engineering II Arizona State University 1 The operational amplifier, cont.  Has a multitude of circuit applications  Linear.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Interfacing Light-Emitting Diodes (LEDs) & Push Buttons to Microcontrollers.
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
The 3 parts of an electronic system are :
ME456: Mechatronics Systems Design Lecture 3 Chapter 2: Lights On –Lights Off Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University.
Input Interface – Microprocessor
ECE Lecture 1 1 L15 –I/O Part II Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
Final Year Project(EPT4046) Development of an internet controlled Surveillance Mobile Robot By Mimi Madihah Bt Mohd Idris Id: BACHELOR OF ENGINEERING.
RELAY. Relay A relay is an electically operated switch. Many relays use an electromagnet to operate a switching mechanism mechanically, but other operating.
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
LOOP TESTER CALIBRATION Using the 3200 Electrical Test Calibrator.
ECE 102 Engineering Computation Chapter 11 LabJack Photo Resistor & Mechanical Switch Interface Dr. Herbert G. Mayer, PSU Status 9/2/2015 For use at CCUT.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
How do ABI test Digital ICs?. Test principles ABI digital tests are designed to find faults on boards. To do this the following principles are used: Confirm.
Simple Water Level Controller Circuit with Microcontroller and Alarm.
A LECTURE ON Arduino Interface With LabVIEW (Used Boards: Arduino UNO & Arduino MEGA 2560) By Satish Kumar Rai Assistant Professor Department of ECE BKBIET,
 A transistor is the basic building block of electronic components.  The average computer may have millions of them within its circuits.  Essentially,
ISA CLICK CONTROL #38 – FALL 2014 ERIC BRUNNGRABER DRAKE ISABIRYE.
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
Sensors and Actuators Simple Sensors Switches and Pots Other Sensors Simple Actuators LEDs and Buzzers DC Motors MAE 156A.
Embedded Systems Programming (What they do and when / how to use them)
THREE PHASE FAULT ANALYSIS WITH AUTO RESET ON TEMPORARY FAULT AND PERMANENT TRIP OTHERWISE Submitted by:
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Logic Gates.
Lecture 6: TI MSP430 IO Interfacing
AQA GCSE 6 Systems approach to designing Design and Technology 8552
How to avoid catching things on fire.
Transistor & Voltage Divider
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Chapter 2 Push button and Potentiometer
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
UNIT 9 Relays.
Logic Gates AIM: To know the different types of logic gate
Voltage, Current and Resistance
Logic Gates and Memory.
Buttons.
Presentation transcript:

ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265

Lecture Overview  Interfacing to a switch  Debounce a switch  Connection to LEDs.  REF: Chapters 1, 6, and 9 plus the 68HC11 reference manual. 7/3/ ECE265

Switch inputs  In most embedded systems where you use a microcontroller you need to sense the outside world. A lot of this sensing is done by switches activated at specific pressures, temperatures, humidity, etc. or a push button switch momentary swich activated by the user.  Example: An automotive speed control. There is typically a switch on the brake (and clutch) pedal that disengages the speed control when it is pressed.  Debouncing – The output of a switch at open and close is very, very noisy with multiple spikes in voltage. If not correctly debounced, these spikes could be seen as multiple switch closures (openings). 7/3/2015ECE265 3

Debounce  A de-bounce circuit  In a typical application the switch signal is input to the microcontroller pin. Inputs to the chip need to be connected such that they are always driven to either Vdd or GND.  The resistor is needed to current limit the circuit when the switch is closed and the output is a logic 0.  In a system with VDD of ~5V and a limit resistor of 330 ohms this gives a current of Amp 7/3/2015ECE265 4

A note on connection to pins  All input pins on the chip MUST be connected to an input signal, or connected to Vdd or GND as appropriate.  No input pin can be left floating. Why? 7/3/2015ECE265 5

Switch DIP packages  For computer interface there are DIP package switches. 7/3/2015ECE265 6 For these the interface is the same as the switch interface looked at before.

Ouput to a LED device  LEDs are often used as output devices.  Single LED as a status indication.  7-Segment displays –  Each segment of display is a LED  A positive logic circuit for  driving a LED  Ouput is 0 – LED off  Output is 1 – LED on 7/3/2015ECE265 7

LED and other devices  Interface to LED (0=on)  Below  Interface to relay 7/3/2015ECE265 8

LED interface 7/3/2015ECE265 9  Interface structure when interfacing to a switch or LED.  This circuit is one possible output structure to do the interface.  What happens when a 1 is output?  What happens when a 0 is output?  What is the value of Rlm? Why is it needed?

The current limit resistors  Example from the text shows how to size the resistors. 7/3/2015ECE V CE(SAT) ranges from 0.1 to 0.5V Transistor is either in cutoff or saturation

More on Resistor Sizing

Summary  How do you interface a switch to the 68HC11  How do you interface a LED or other device to the 69HC11. 7/3/2015ECE265 12