ENG3640 Review and Exam Question1 ENG3640 Microcomputer Interfacing Review & Final Exam Structure.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Programmable Interval Timer
Analog-to-Digital Converter (ADC) And
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Data Acquisition ET 228 Chapter
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Lecture 9: D/A and A/D Converters
Introduction of Holtek HT-46 series MCU
1 Project supervised by: Dr Michael Gandelsman Project performed by: Roman Paleria, Avi Yona 12/5/2003 Multi-channel Data Acquisition System Mid-Term Presentation.
Design of a Control Workstation for Controller Algorithm Testing Aaron Mahaffey Dave Tastsides Dr. Dempsey.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Astable multivibrators I
ASPPRATECH.
Microcontroller based system design
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
INPUT-OUTPUT ORGANIZATION
Electronic Devices Ninth Edition Floyd Chapter 13.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Input/Output mechanisms
Chapter 13 Linear-Digital ICs. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Electronic Devices.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
MICROPROCESSOR INPUT/OUTPUT
Electronic Troubleshooting Chapter 11 Digital Systems.
AT91 Embedded Peripherals
Digital to Analogue Converter
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
Data Acquisition Systems
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
MICROPROCESSOR AND MICRO CONTROLLER
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
Digital Control CSE 421.
Chapter 11 Data Acquisition and Manipulation The aims of this chapter are to introduce: the main features of a data acquisition system; the characteristics.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
بسم الله الرحمن الرحيم MEMORY AND I/O.
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.
Embedded Systems February 10, Serial Interface - SPI  Serial Peripheral Interface  Synchronous communications  Clock supplied by the Master.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
FOR MORE CLASSES VISIT   ECET 340 Week 1 HomeWork 1  ECET 340 Week 1 iLab 1  ECET 340 Week 2 HomeWork 2  ECET 340 Week 2 iLab.
Electronic Devices and Circuit Theory
Crashcourse Oscilloscope and Logic Analyzer By Christoph Zimmermann.
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Digital Control CSE 421.
LATCHED, FLIP-FLOPS,AND TIMERS
Name & Er. No.:- Patel Rashi I.( ) Patel Jinal B.( ) Patel Priya R.( )
EI205 Lecture 8 Dianguang Ma Fall 2008.
SCADA for Remote Industrial Plant
Chapter 13 Linear-Digital ICs
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Introduction to Microprocessors and Microcontrollers
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
Presentation transcript:

ENG3640 Review and Exam Question1 ENG3640 Microcomputer Interfacing Review & Final Exam Structure

ENG3640 Review and Exam Question2 Topics  Programming  I/O Interfacing  Interfacing Devices  Data Acquisition Systems  Timing Generation  Serial Communication  Busses  Transmission Lines  Memory Interfacing

ENG3640 Review and Exam Question3 Course Objectives Achieves the following goals: 1. Learn about Microcontroller architecture 2. Understand Software Development 3. Program in assembly language 4. Interrupts, DMA, Polling 5. Learn Basic I/O techniques (Parallel, Serial) 6. Learn Serial communication Systems 7. Understand functionality of busses 8. Understand Data Acquisition Systems 9. Learn about Memory Technology and Interfacing

ENG3640 Review and Exam Question4 Q1. Software Development Problem Statement Design Stage Effective Data Structure Modular Design (Procedures) Implementation Instruction Set Addressing Modes Assembly Format Testing Directives

ENG3640 Review and Exam Question5 Analysis

ENG3640 Review and Exam Question6 Software Development

ENG3640 Review and Exam Question7 Program Development

ENG3640 Review and Exam Question8 Q2. General Interfacing  Switch Debouncing  Keyboard Interfacing  LCD +5V A

ENG3640 Review and Exam Question99 Hardware Debouncing: Schmitt Trigger  A Schmitt trigger is a special circuit that uses feedback internally to shift the switching threshold depending on whether the input is changing from low to high or high to low.  The difference between V T+ and V T- is called hysteresis.  A 74LS14 Schmitt Trigger inverter can be used to debounce a switch. V IN V OUT V T+ V T- 5.0 Example: 74LS14

ENG3640 Review and Exam Question10 Liquid Crystal Displays: Operation  An LCD display requires an alternating excitation wave applied to selected electrodes to change selected areas.  A constant (DC) excitation signal will polarize and destroy the crystal. 60 Hz Oscillator Control BP FP XOR V LCD Front Plane Liquid Crystal Material Back Plane

ENG3640 Review and Exam Question11 I/O Interfacing

ENG3640 Review and Exam Question12 General Interfacing  Any MCU would communicate with peripherals through I/O ports.  Types of data 1.Numeric/Alphanumeric 2.Control/Status Information  Basic I/O Transfer alternatives can be classified as 1.MCU Initiated 2.I/O Device Initiated MCU Initiated Device Initiated Unconditional Transfer Polling (Gadfly) Interrupts Direct Memory Access Periodic Polling

ENG3640 Review and Exam Question13 Synchronization Techniques

ENG3640 Review and Exam Question14 Q3. Timer Module  Input Capture: “captures the time at which an external event occurs”. Can be used to: 1. Generate interrupts and 2. Measure period or pulse width  Output Compare: “can generate a periodic pulse with a programmable polarity, duration, and frequency”. Can be used to: 1. Create periodic interrupts, 2. Generate: Pulses, Square waves 3. Measure frequency

ENG3640 Review and Exam Question15 General Understanding of TIM

ENG3640 Review and Exam Question16 Q4. DAQ Real World Measurand Transducer (sensors) Analog Mux Signal Conditioning Sample and Hold Circuit A/D Conv MCU D/A Conv Actuator

ENG3640 Review and Exam Question17 Analysis or Design of Signal Conditioning

ENG3640 Review and Exam Question18 Data Acquisition Systems

ENG3640 Review and Exam Question19 Q5. DACs or ADCs  A/D converters are classified according to several characteristics  Resolution (number of bits) typically 8 bits to 24 bits  Speed (number of samples per second) – several samples/sec to several billion samples/sec  Accuracy – how much error there is in the conversion  Classification 1. Staircase ADC 2. Tracking ADC 3. Successive Approximation Converters 4. Flash A/D Converters 5. Integrating A/D Converters

ENG3640 Review and Exam Question20 Important Circuits in DAS

ENG3640 Review and Exam Question21 Q6. Serial and Parallel Communications TransmitterReceiver CLK

ENG3640 Review and Exam Question22 Understanding of the Technology

ENG3640 Review and Exam Question23 Serial Communication Systems

ENG3640 Review and Exam Question24 Bus Protocols  Protocol refers to the set of rules agreed upon by both the bus master and bus slave  Synchronous bus ­ transfers occur in relation to successive edges of a clock  Asynchronous bus ­ transfers bear no particular timing relationship  Semi ­ synchronous bus ­ Operations/control initiate asynchronously, but data transfer occurs synchronously CPU Device 1Device 2Device 3 Bus

ENG3640 Review and Exam Question 25 ENG3640 Fall Transmission Line Models  When can the R and G terms be ignored in the Z 0 ? w  As w increases, the impact of R and G decreases. w  When the frequency increases above 100 kHz, the terms multiplied by w start to dominate.

ENG3640 Review and Exam Question26 Reflections on the Bus  To reduce reflections, the ends of a transmission line should be terminated by connecting a resistor equal to Z 0 across the line  Connecting a resistor between the bus and V CC will pullup the lower logic level and reduce noise immunity  Classic Solution: connect two resistors to the bus one to the ground and one to V CC  R1//R2 = Z 0 RTRT VTVT R T = R1//R2 = Z 0 Bus

ENG3640 Review and Exam Question27 Lattice Diagram Analysis – Key Concepts Diagram shows the boundaries (x =0 and x=l) and the reflection coefficients Time (in T) axis shown vertically Calculate voltage amplitude for each successive reflected wave Total voltage at any point is the sum of all the waves that have reached that point Vs Rs Zo V(source) V(load) TD = Nps 0 Vs Rt The lattice diagram is a tool/technique to simplify the accounting of reflections and waveforms TimeV(source) V(load) a source  load  b A c A’ B’ d B e 0 Nps 2Nps 3Nps 4Nps 5Nps

ENG3640 Review and Exam Question28ENG3640 Fall What Should Designer do?  Practically there are several ways to mitigate the negative impact of reflections: 1. Wait long enough after each signal transition for the reflection on the line to die out ( OK for low speed but not high speed systems) 2. Decrease the frequency of the system so that reflections reach steady state before another signal is driven onto the line (Low Speed Sys!) 3. Shorten the Bus or (PCB trace) so that reflections will reach steady state in a shorter time (not practical or sometimes impossible!) 4. Terminate the transmission line with an impedance equal to the characteristic impedance of the line: Use a matched termination at far end. Thereby producing no reflections on the line Use a matched termination at source end absorbing the wave reflected from the far end.

ENG3640 Review and Exam Question29 Why, How to solve Reflections

ENG3640 Review and Exam Question30 Q7. Memory

ENG3640 Review and Exam Question31 Understanding the Principle of Operation

ENG3640 Review and Exam Question32 Address Decoding

ENG3640 Review and Exam Question33

ENG3640 Review and Exam Question34