Lecture 13: DUART serial I/O, part I

Similar documents
HB860H 2-phase Hybrid Servo Drive

ECE 333: Introduction to Communication Networks Fall Lecture 4: Physical layer II

Spread Spectrum Signal for Digital Communications

Encode Decode Sample Quantize [ ] [ ]

Chapter 2: Sample Questions, Problems and Solutions Bölüm 2: Örnek Sorular, Problemler ve Çözümleri

Smart Energy & Power Quality Solutions. ProData datalogger. Datalogger and Gateway

Direct Link Networks - Encoding

Model Display digit Size Output Power supply 24VAC 50/60Hz, 24-48VDC 9999 (4-digit) 1-stage setting

Zonerich AB-T88. MINI Thermal Printer COMMAND SPECIFICATION. Zonerich Computer Equipments Co.,Ltd MANUAL REVISION EN 1.

PRACTICAL FILTER DESIGN & IMPLEMENTATION LAB

Subscriber Pulse Metering (SPM) Detection

Indicator No mark Single preset Dual preset DIN W144 H72mm DIN W48 H96mm No mark DIN W72 H72mm (4 digit) (6 digit) Counter/Timer

A study on the efficient compression algorithm of the voice/data integrated multiplexer

APPLICATION NOTE UNDERSTANDING EFFECTIVE BITS

Concept of Serial Communication

Teridian V.22 bis Linux Softmodem for 73M1822/73M1922 MicroDAA User Guide Rev. 1.5 April 7, 2009 UG_1x22_043

GFM. Typical Aluminum GFM Mass Flow Meter NIST MASS FLOW METERS. Principles of Operation. Design Features. n n n n n n n n n n

Peer-to-Peer Protocols and Data Link Layer

Open Two Radio Switching Protocol (OTRSP)

TMCM BLDC MODULE. Reference and Programming Manual

Chapter 3 Digital Logic Structures

Sampling. Introduction to Digital Data Acquisition: Physical world is analog CSE/EE Digital systems need to

CHAPTER 5 A NEAR-LOSSLESS RUN-LENGTH CODER

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

202 Chapter 9 n Go Bot. Hint

Chapter 12: Digital Modulation and Modems

Analysis of SDR GNSS Using MATLAB

Electronic motor protection relay

Intermediate Information Structures

By: Pinank Shah. Date : 03/22/2006

SELEX Elsag. 5/18/2012 R. Pucci SDR 12 WinnComm 1

Conception and Performance Analysis of Efficient CDMA-Based Full-Duplex Anti-collision Scheme

Technical Explanation for Counters

TECHNICAL DATASHEET Incremental Encoder RI 30-O

Measurement of Equivalent Input Distortion AN 20

x y z HD(x, y) + HD(y, z) HD(x, z)

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

4. INTERSYMBOL INTERFERENCE

Department of Electrical and Computer Engineering, Cornell University. ECE 3150: Microelectronics. Spring Due on April 26, 2018 at 7:00 PM

A New Space-Repetition Code Based on One Bit Feedback Compared to Alamouti Space-Time Code

AME50461 SERIES EMI FILTER HYBRID-HIGH RELIABILITY

General Model :Algorithms in the Real World. Applications. Block Codes

MEASUREMENT AND CONTORL OF TOTAL HARMONIC DISTORTION IN FREQUENCY RANGE 0,02-10KHZ.

MADE FOR EXTRA ORDINARY EMBROIDERY DESIGNS

Lecture 29: Diode connected devices, mirrors, cascode connections. Context

AME28461 SERIES EMI FILTER HYBRID-HIGH RELIABILITY

H(X,Y) = H(X) + H(Y X)

CHAPTER 8 JOINT PAPR REDUCTION AND ICI CANCELLATION IN OFDM SYSTEMS

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Fall Semester, Introduction to EECS 2.

Electronics / Water analogy. Resistor. Inductance. Capacitor. Water Electronics Energy - Energy Pressure - Voltage Flow - Current Volume - Charge

EVB-EMC14XX User Manual

Single Bit DACs in a Nutshell. Part I DAC Basics

AN Interconnection between JESD204A compliant devices. Document information

ELEC 204 Digital Systems Design

PROJECT #2 GENERIC ROBOT SIMULATOR

DigiPoints Volume 1. Student Workbook. Module 2 Modem Overview

Measurements of the Communications Environment in Medium Voltage Power Distribution Lines for Wide-Band Power Line Communications

ECE 4510/5530 Microcontroller Applications Week 6 Lab 5

LIQUIDS AND GAS FLOW REGULATORS. Design Features. n n n n. Regulator Systems. Normally closed (NC) when de-energized.

FibeAir 3200T. SDH Microwave Trunk Network Solution. Product Description

Broadcast Solutions. Professional Antennas and Combiners BROADCAST

X-Bar and S-Squared Charts

Color profile: Disabled Composite Default screen BC60XLT. Programmable Hand-Held Scanner OPERATING GUIDE

Chapter 1 The Design of Passive Intermodulation Test System Applied in LTE 2600

10GBASE-T. length of precoding response, and PMA training

Comparison of Frequency Offset Estimation Methods for OFDM Burst Transmission in the Selective Fading Channels

FPGA Implementation of the Ternary Pulse Compression Sequences

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

信號與系統 Signals and Systems

Fitting Signals into Given Spectrum Modulation Methods

Synchronization of the distributed PWM carrier waves for Modular Multilevel Converters

Embedded Microcomputer Systems Lecture 9.1

Permutation Enumeration

INCREASE OF STRAIN GAGE OUTPUT VOLTAGE SIGNALS ACCURACY USING VIRTUAL INSTRUMENT WITH HARMONIC EXCITATION

(2) The MOSFET. Review of. Learning Outcome. (Metal-Oxide-Semiconductor Field Effect Transistor) 2.0) Field Effect Transistor (FET)

信號與系統 Signals and Systems

1 What s in the shipping package?

PERFORMANCE COMPARISON BETWEEN MC-CDMA AND DS-CDMA SYSTEMS FOR AWGN AND RAYLEIGH FADING CHANNEL

A SELECTIVE POINTER FORWARDING STRATEGY FOR LOCATION TRACKING IN PERSONAL COMMUNICATION SYSTEMS

Design of FPGA Based SPWM Single Phase Inverter

Unit 5: Estimating with Confidence

E X P E R I M E N T 13

RMS WIDTH OF PULSES PROPAGATING IN AN ARBITRARY DISPERSIVE MEDIUM

ICM7213. One Second/One Minute Timebase Generator. Features. Description. Ordering Information. Pinout. August 1997

11.11 Two-Channel Filter Banks 1/27

GROUND TESTERS GROUND RESISTANCE TEST TEST EQUIPMENT DET3 CONTRACTOR SERIES WHAT S IN THE DET3T NAME? DIGITAL EARTH TESTER 3 TERMINAL

Grade 6 Math Review Unit 3(Chapter 1) Answer Key

HOW BAD RECEIVER COORDINATES CAN AFFECT GPS TIMING

GPS/TDOA Hybrid Location Algorithm Based on Federal Kalman Filter

Lossless image compression Using Hashing (using collision resolution) Amritpal Singh 1 and Rachna rajpoot 2

32-Channel, 16-/14-Bit, Serial Input, Voltage Output DAC AD5372/AD5373

Beam Pattern Scanning (BPS) versus Space-Time Block Coding (STBC) and Space-Time Trellis Coding (STTC)

Optimizing LC VCO Performances Through a Heuristic

HELIARC. THE FIRST NAME IN TIG.

MIT2500 CAT IV Insulation testers

A Line-Frequency Commutated Rectifier Complying with IEC Standards

A novel adaptive modulation and coding strategy based on partial feedback for enhanced MBMS network

Objectives. Some Basic Terms. Analog and Digital Signals. Analog-to-digital conversion. Parameters of ADC process: Related terms

PHY-MAC dialogue with Multi-Packet Reception

MIT2500 CAT IV Insulation Testers

Transcription:

Lecture 13: DUART serial I/O, part I The bi picture of serial commuicatios Aalo commuicatios Modems Modulatio-demodulatio methods Baud rate Vs. Bits Per Secod Diital serial commuicatios Simplex, half-duplex ad full-duplex Sychroous serial trasmissio Asychroous serial trasmissio The RS-232C stadard Mechaical ad electrical specs Cotrol lies Hadshaki Null modem Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 1

The bi picture of serial commuicatios Diital (RS232C) Aalo (Public Switched Telephoe Network) Diital (RS232C) DTE (Data Termial Equipmet) DCE (Data Commuicatios Equipmet) DCE DTE DTE 68000 CPU TTL 68681 DUART TTL MAX232 driver RS-232 Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 2

Itroductio to modems The POTS (Plai Old Telephoe System) was desied to trasmit voice-bad aalo sials i the rae 300Hz to 3300Hz It is ot appropriate for trasmissio of diital sials due to their hih-frequecy compoets (i.e.: sharp, ede trasitios). If a sequece of biary sials was preseted to oe ed of a telephoe etwork, the diital sials would be so severely distorted that they would be urecoizable at the receivi ed of the circuit I order to trasmit a diital sial, it must be coverted to a aalo sial withi the badwidth of the POTS A bit stream is coverted ito a aalo sial at the seder by Modulatio The aalo sial is coverted back ito a bit stream at the receiver by Demodulatio The D/A ad A/D coversio is performed by a device called modem or modulator-demodulator There are three basic modulatio methods: Amplitude modulatio Frequecy modulatio Phase modulatio Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 3

Amplitude, Frequecy ad Phase Modulatio Amplitude Modulatio (AM) A sile carrier frequecy is used to trasmit data Biary values are coverted to differet amplitudes of the carrier sial Suitable oly for low speed trasmissio Frequecy modulatio (FM) Two carrier frequecies of the same amplitude are used The hiher frequecy is associated with biary 1, the lower frequecy with biary 0 Used for 1200 bps modems or slower speeds FM is widely used because it has a better tolerace to oise tha AM Phase modulatio (PM) A sile carrier frequecy is used to trasmit data The phase of the sial is chaed accordi to the biary value to be trasmitted PM is widely used ad has fairly similar characteristics to FM Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 4

Uits for speed of trasmissio Baud rate Measures the switchi speed of a sial (the umber of times per secod that a lie chaes state) Bits per secod (bps) Measures the rate at which iformatio flows across a data lik Bauds ad bps are ot the same For a biary two-level sial, a data rate of 1 bps is equivalet to 1 Baud But suppose a data trasmissio system that uses sials with 16 possible discrete levels. Each sial elemet ca have oe of 16=24 differet values, that is, each discrete level ecodes 4 bits If the 16-level sials are trasmitted at 1200 Baud, the data rate is 4x1200=4800 BPS I eeral, baud rates over the POTS is limited to 2400 Bauds due to badwidth limitatios, so data rates hiher tha 2400 bps are achieved by sophisticated modulatio techiques ad data compressio For example, usi PM with phase shifts multiple of 90 we ca double the data rate, as i differetial phase modulatio Hih-speed modems operate by simultaeously chai the amplitude ad phase of a sial. This modulatio techique is called quadrature amplitude modulatio (QAM) Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 5

Modes of chael operatio Simplex Data i a simplex chael is always oe way Simplex chaels are ot ofte used because it is ot possible to sed back error or cotrol sials to the trasmit ed. Its like a oe way street A example of simplex is televisio Half Duplex A half duplex chael ca sed ad receive, but ot at the same time; oly oe ed trasmits at a time, the other ed receives Its like a oe-lae bride where two way traffic must ive way i order to cross. Full Duplex Data ca travel i both directios simultaeously. There is o eed to switch from trasmit to receive mode like i half duplex Its like a two lae bride o a two-lae hihway simplex half-duplex full-duplex From ow o we will iore how the two computers are physically coected. They could be remote systems coected throuh a telephoe lie, or they could be local systems coected with a simple serial cable Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 6

Sychroous Trasmissio I sychroous trasmissio, the clocks at the trasmissio ad receptio eds must be permaetly sychroized by either Trasmitti the clock sial o a separate wire (too expesive) Embeddi the clock sial i the data stream (preferred). A example of embedded clock is Phase Ecodi Procedure From the received phase-ecoded sial it is possible to recover both the data stream ad the clock sial To iitiate trasmissio, the trasmitter first seds out sychroizatio characters to the receiver The receiver reads the sychroizatio bit patter ad compares it with a kow syc patter. Oce they are idetified as bie4 the same, the receiver beis to read character data off the commuicatios lie Trasfer of data cotiues util the complete block of data is received or sychroizatio is lost If lare blocks of data are bei set, the sychroizatio characters may be periodically reset to assure that sychroizatio is maitaied Sychroous trasmissio is typically used i hihspeed applicatios Phase-ecoded sychroous serial bit trasmissio Data stream before ecodi Clock Phase ecoded sial 0 0 1 1 1 0 1 0 Loical zero represeted by a falli ede Loical oe represeted by a risi ede Trasmit System 1 Clock System 2 (embedded) Directio of trasmissio Receive Groud DATA SYN CHAR #2 SYN CHAR #1 Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 7

Asychroous Trasmissio I asychroous trasmissio there is o eed for the clocks to be sychroized Data to be trasmitted is set oe character at a time At the received ed of the trasmissio sychroizatio is performed by examii sychroizatio bits that are icluded at the beii ad ed of the character The format of a typical asychroous character is the followi Start bit (1 bit): a loical 0 (also called a space) that is used to idicate the beii of a character Data bits (7-8 bits): they cotai the iformatio that is bei trasmitted. The data wordleth ca be either 7 or 8 bits Parity bit (1-0 bits): optioal, used for error checki. If odd parity is used, the parity bit is set to 1 or 0 such that the total umber of 1-bits, icludi the data bits ad the parity bit, is odd. Stop bit (1-2 bits): a loical 1 (also called a mark ) that is used to idicate the ed of the trasmissio Trasmit Receive System 1 System 2 Groud A total of 12 possible formats are possible sice we ca have 7 or 8 data bits eve, odd or o parity bits 1 or 2 stop bits Asychroous data trasmissio is the most popular serial mode, but is hihly iefficiet: for 7 data bits ad 2 stop bits, oly 70% of the trasmissio cotais iformatio is more suited for ASCII text. For 8-bit biary data it is quite difficult to embed cotrol characters (i.e., tape start or stop) withi the data stream Idle state Parity bit Stop bit(s) MSB Directio of trasmissio Data bits LSB Start bit Idle state Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 8

The RS232 stadard RS232C (Recommeded Stadard 232 versio C) was published i 1969 Oriially desied for DTE (computer) to DCE (modem) commuicatios Curretly bei used for more eeral applicatios, such as DTE to DTE coectios RS232C specifies Mechaical iterface (DB-25) Female coector is coected to DCE ad male coector to DTE. Short cables of less tha 15 meters (50 feet) are recommeded. The pi assimets detailed above must be used. Electrical iterface All circuits carry bi-polar low-voltae sials, measured at the coector with respect to sial roud, ad may ot exceed ±25 volts. Sials are valid i the rae ±3 volts to ±25 volts. Sials withi the rae -3 volts to +3 volts are cosidered ivalid. Differet from TTL levels (0-5V) Cotrol Lies Need drivers ad receivers to covert voltaes (betwee the ACIA/DUART ad the RS232 lie) MAX232 by Maxim combies driver ad receiver i a sile packae The lies available (ad their fuctio) to coect DTE ad DCE RS232C-to-TTL sial coversio TTL RS232C Loic Voltae Loic Voltae Hih(1) 2.4 to 5 volts MARK -3 to -25 volts Low(0) 0 to 0.8 volts SPACE +3 to +25 volts Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 9

Basic RS232 Cotrol Lies Request To Sed (RTS), Pi 4 This sial lie is asserted by the computer (DTE) to iform the modem (DCE) that it wats to trasmit data. If the modem decides this is okay, it will assert the CTS lie. Typically, oce the computer asserts RTS, it will wait for the modem to assert CTS. Whe CTS is asserted by the modem, the computer will bei to trasmit data. Clear To Sed (CTS), Pi 5 Asserted by the modem after receivi a RTS sial, idicati that the computer ca ow trasmit. Data Termial Ready (DTR), Pi 20 This sial lie is asserted by the computer, ad iforms the modem that the computer is ready to receive data. Data Set Ready (DSR), Pi 6 This sial lie is asserted by the modem i respose to a DTR sial from the computer. The computer will moitor the state of this lie after asserti DTR to detect if the modem is tured o. Data Carrier Detect (DCD), Pi 8 This cotrol lie is asserted by the modem, iformi the computer that it has established a physical coectio to aother modem. It would be poitless a computer trasmitti iformatio to a modem if this sial lie was ot asserted. If the physical coectio is broke, this sial lie will chae state. Trasmit Data (TD), Pi2 The lie where the data is trasmitted from the computer to the modem. Receive Data (RD), Pi 3 The lie where data is received (trasmitted from the modem to the computer.) Computer RTS CTS DSR DTR DCD TD RD Modem RTS CTS DSR DTR DCD TD RD Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 10

Examples of hadshaki Whe the computer wats to trasmit data to the modem RTS is asserted by the DTE (1) to idicate that the DTE wishes to sed data CTS is asserted by the DCE (2) to idicate that the DCE is ready to receive data DTE trasmits data throuh TD (3) DTE completes data trasmissio (4) RTS is eated by the DTE (5) to idicate that the DTE has fiished trasmitti data CTS is eated by DCE (6) RTS CTS TD Computer TD RTS CTS Modem TD RTS CTS 1 2 3 4 5 6 Whe the modem wats to trasmit data to the computer The DCE asserts DCD To idicate that a data carrier is preset ad to trasmit data The DTE must be prepared to receive data ay time DCD is asserted Computer RD DCD Modem RD DCD Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 11

Null modem The RS-232C iterface was desied to coect computers to modems However, may of today s RS-232C applicatios are for coecti a computer (DTE) to a peripheral (such a priter, also cosidered a DTE), rather tha to a modem (DCE) I order to coect a DTE to a DTE we must cross some of the cotrol sials the DTE sials from oe computer are swapped over as iputs to supply the DCE expected sials o the other DTE This DTE-DTE iterface is accomplished with a special coector cable called a ull modem A ull modem simulates a DTE-DCE-DCE-DTE circuit A ull modem has a female DB-25 coector o both eds The cotrol lies are wired as idicated i the fiure DTE Ri idicator Data termial ready Data set ready Carrier detect Clear to sed Request to sed Received data Trasmitted data Protective roud Sial roud DTE Ri idicator Data termial ready Data set ready Carrier detect Clear to sed Request to sed Received data Trasmitted data Protective roud Sial roud Microprocessor-based System Desi Ricardo Gutierrez-Osua Wriht State Uiversity 12