Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "ENG3640 Review and Exam Question1 ENG3640 Microcomputer Interfacing Review & Final Exam Structure."— Presentation transcript:

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

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

3 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

4 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

5 ENG3640 Review and Exam Question5 Analysis

6 ENG3640 Review and Exam Question6 Software Development

7 ENG3640 Review and Exam Question7 Program Development

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

9 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 2.12.95.0 V T+ V T- 5.0 Example: 74LS14

10 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

11 ENG3640 Review and Exam Question11 I/O Interfacing

12 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

13 ENG3640 Review and Exam Question13 Synchronization Techniques

14 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

15 ENG3640 Review and Exam Question15 General Understanding of TIM

16 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

17 ENG3640 Review and Exam Question17 Analysis or Design of Signal Conditioning

18 ENG3640 Review and Exam Question18 Data Acquisition Systems

19 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

20 ENG3640 Review and Exam Question20 Important Circuits in DAS

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

22 ENG3640 Review and Exam Question22 Understanding of the Technology

23 ENG3640 Review and Exam Question23 Serial Communication Systems

24 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

25 ENG3640 Review and Exam Question 25 ENG3640 Fall 200925 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.

26 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

27 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

28 ENG3640 Review and Exam Question28ENG3640 Fall 200928 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.

29 ENG3640 Review and Exam Question29 Why, How to solve Reflections

30 ENG3640 Review and Exam Question30 Q7. Memory

31 ENG3640 Review and Exam Question31 Understanding the Principle of Operation

32 ENG3640 Review and Exam Question32 Address Decoding

33 ENG3640 Review and Exam Question33

34 ENG3640 Review and Exam Question34


Download ppt "ENG3640 Review and Exam Question1 ENG3640 Microcomputer Interfacing Review & Final Exam Structure."

Similar presentations


Ads by Google