Sender Receiver Sender

Similar documents
8051SERIAL PORT PROGRAMMING

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

4.3 Digital Communication

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

STEP X - Name of Step QUICK START GUIDE SP385A-R3, SP390A-R3 USB TO RS CONVERTER 24/7 TECHNICAL SUPPORT AT OR VISIT BLACKBOX.

PCL Port RS-232 Interface Card

USART. USART stands for Universal Synchronous Asynchronous Receiver Transmitter. Full-duplex NRZ asynchronous serial data transmission

Select a Data Communication Interface

Serial Interfacing. Asynchronous Frame

Hardware Manual. PCMCIA 1 Port RS EDITION APRIL 1999

Hardware Manual PCMCIA DUAL RS EDITION MAY 1999

Real-Time Embedded Systems. CpE-450 Spring 06

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all

RS-232 DATA COMMUNICATIONS WITH THE TANDY COLOR COMPUTER

Cable Specifications. Interface Specifications. Fiber-Optic Specifications APPENDIXB

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Appendix A Cable Pinouts

Cable Pinouts. SRP I/O Module

Section 1 Introduction

USER MANUAL. MODEL 2011 High Speed Asynchronous to Synchronous Converter

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

UNIT-V COMMUNICATION INTERFACE

RS-232 Connector Pin Assignments

Learn how to communicate

MCS-51 Serial Port A T 8 9 C 5 2 1

Universal Asynchronous Receiver Transmitter Communication

RS-232 to Logic Level Adapter with DB9M Connector and Power LED

Miniature Asynchronous 4-Wire High Speed Modems

Hierarchy of I/O Control Devices

Bluetooth to RS-232&RS422/485. EX-9132B/BI Bluetooth Adapter Operation Manual

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)

Homework. Reading. Continue mp1. Labs. Tokheim, Section Questions? Continue labs with your assigned section

Connector and Cable Specifications

The Wireless Connectivity Expert

RS-232 SERIAL INTERFACE PHOTOELECTRIC ISOLATOR

Product Manual. USB to Optical Adapter Industrial Isolated RS- 232/422/485. Coolgear, Inc. Version 2.1 December 2018 Model Number: USB-COMi-Si-M

Integrity Instruments Application Notes. Release 1

The modems are made in industrial 108mm wide aluminium housing for DIN rail mounting. UCM RS232 interface

IML 560 USER GUIDE. Low Power 56Kbps Industrial modem. Version 1.2. December 6, AYANTRA Inc.

8. I/O Buses and Interfaces

(renamed the "EIA232 Standard" in the early 1990 s)

=0 Read/Write IER Interrupt Enable Register =1 Read/Write - Divisor Latch High Byte + 2

Wrenchman, Inc Old Hwy. # 8 Suite # 122 New Brighton, Minnesota (651)

Storage/Control I/O Module

3.1 I-7560 Pin Assignment and Specifications: Introduction

W&T Manual Interface modules W&T

RS-422 Code-Operated Switches

Advanced Electronic Communications Systems Wayne Tomasi Sixth Edition

ICP PANEL-TEC PEX3000 II

Cable and Port Specifications

Practical Hands-on Data Communications, Networking and TCP/IP Troubleshooting for Engineers and Technicians

ELEG3923 Microprocessor Ch.10 Serial Port Programming

ExpressCard Serial Adapters User s Manual SSPXP-100 DSPXP-100 QSPXP-100 SSPXP-200/300 DSPXP-200/300 QSPXP-200/300

TABLE OF CONTENTS. Communication Functions

Cabling Guide for Console and AUX

Model:UT-8814 USB/RS-232 Commercial interface converter. Instruction Manual

Note: For BANDIT II, BANDIT III, or VSR-1200 specifications, see the BANDIT II, BANDIT III, and VSR-1200 Document Set. Function

User Guide. Date Apr BlueEva+C11/G2. Stollmann. E + V GmbH. User Guide

ICD105A 1008 page 1/ r001 ICD105A. Industrial RS-232 to RS-422/485 Converter

PCI Express 16-Port Serial I/O Cards

USER S MANUAL. PH232Ex1. #1 RS-232 Serial Port to Ethernet, Terminal Server/Client. Doc No: PH232Ex1-UM-001 IPEX. (IP Electronix)

USB-TTL-5 PRODUCT IS A COMBINATION OF PRODUCTS USB AND TTL-232-5P BOTH DATASHEETS ARE INCLUDED IN THIS PDF FILE

Bluetooth TO Serial CONVERTER E-P132-B

Serial Communication. Simplex Half-Duplex Duplex

BeagleBone Black USB Expansion RS232 Module Cape Coolgear, Inc. Version 1.1 September 2017 Model Number:

USB Serial Converter Rev. 1.0

Manual Swipe Magnetic Card Reader

EtherSeries. EtherSeries CR-2. CR-2-Opto. User s Guide. Revised October 7, 2013 Firmware Version 1.X

WiFi to RS-232 adapter user manual

Bluetooth to RS-232 Converter. RT-132B Bluetooth Adaptor Operation Manual

Appendix. Specifications

Experiment Number: 02. Title: PC-to-PC communication through RS-232 port

CONNECT WITH RELIABILITY. USB-to-Serial Adapter User s Manual

Cable and Port Specifications

Serial Communications

RocketPort Plus Hardware Installation

PCL-741 Isolated Dual Port RS-232/Current-Loop Interface Card

USB to serial chip CH340

Table 8 shows the pin configuration and function of a standard computer-to-printer parallel cable. Table 8 Parallel Cable Pin Configuration

BLE232: Manual Copyright 2014 taskit GmbH

NOTE: The numbers in the wiring diagrams do not show the order of connection. Follow the written instructions to make the connections.

MincoSoft CT224 Software

SitePORTAL Lite TA-SPL32-R48

PCIe Card Selection Guide. PCIe-CAN Card. PCIe-COM Card. Taiwan Pulse Motion Co.,Ltd. Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T

ISOLATED RS-232 TO RS-422/485 CONVERTER

Bluetooth was originally started as a project by the Ericsson Company.

USB to RS-232/RS422/485. US-101-I USB To Serial Operation Manual

8051 Serial Communication

Parallel-to-Serial and Serial-to-Parallel Converters

RCS/6000. Hardware. Manual

Macintosh Serial Port Connections. David P. Goldenberg December Introduction. 1.1 Disclaimer First Steps References...

E1 and T1 RJ-48 Cable Pinouts on page 208. Fast Ethernet 12-port Cable Pinouts on page 211

Serial communication

MEC-COM-M134. User s Manual

QuVIS CONNECTOR PINOUT GUIDE

Serial Interfacing. Pulse width of 1 bit

LM058 Bluetooth Serial Adapter SMA Antenna 100m m Range SPP GAP + Wireless DTR DSR RTS CTS

Galep-Adapter DIL-40 => ISP-ASYNC/SYNC Article-No.:

Transcription:

EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 19 Outline of the Lecture Interfacing the Serial Port Basics of Serial Communication Asynchronous Data Communication and Data Framing RS232 and other Serial I/O Standards BASICS OF SERIAL COMMUNICATION Computers transfer data in two ways: parallel and serial. Parallel communication is fast and efficient. In parallel communication 8 or more lines (wire conductors) are used to transfer data to a device that only a few feet away. (e.g. printers, hard disks etc.) Parallel communication provides much faster transfer of data with compared to serial communication. However for long distances the number of wires required as well as the distortion on the signals in parallel wires makes parallel communication for long distances not reliable. Also the synchronization of the parallel signals is a big problem. Serial communication sends 1 bit at a time, so it is slower with compared to parallel communication. For long distances serial communication provides robust way of data transfer. Because there is no problem of synchronization. Serial communication requires less number of wires for communication. Serial communication is used in modems, keyboards etc. Serial Data Transfer Parallel Transfer D0 Sender Sender D7 Serial versus Parallel Data transfer. Asynchronous /Synchronous Methods Serial data communication uses two methods: asynchronous and synchronous. Synchronous communication requires common timing signals and common clock for synchronization. This means that as well as the data, the clock signals must also be transmitted along. In synchronous method a block of data at a time is transmitted. In asynchronous method a single byte is transferred at a time. For example, start and stop bits are used to indicate the receipt of a byte. 1

Serial Data Communication Systems Simplex Transmission: Transmission of data is only possible in one direction (e.g. output only-printers) Half Duplex Transmission: Transmission of data is possible in both directions, but in one direction at a time. Full Duplex Transmission: Transmission of data can be in both directions at a time. Requires to wires as data lines. Simplex Half Duplex Full Duplex Simplex, Half and Full Duplex Transfers UART (Universal Asynchronous -) Chip UART chips are used for serial communication. The 8250 series, which includes the 16450, 16550, 16650, & 16750 UARTS, are the most commonly used. Asynchronous serial communication and data framing The data coming in the receiving end of the data line in a serial data transfer is all 1s and 0s; it is difficult to make sense of data unless the sender and receiver agree on a set of rules, a protocol on how the data is packed, how many bits constitute a character, and when the data begins and ends. Start and Stop bits Asynchronous serial data communication is widely used for character-oriented transmission, and block-oriented data transfers use the Synchronous method. 2

In the Asynchronous method, each character is put between a start and stop bits. This is called framing. In data framing, for asynchronous communications, the data such as ASCII characters are packed in between a start bit and stop bit. The start bit is always one bit, but the stop bit(s) can be one or two bits. The start bit is always a 0 (low) and the stop bit(s) is 1 (high) The example below gives the framing of the ASCII character A, where, binary 0100 0001, is framed in between the start bit and two stop bits. Notice that the LSB is sent out first. Framing of ASCII A (41H) Notice that the transmission begins with a start bit followed by D0, the LSB, then the rest of the bits until the MSB (D7), and finally, the 2 stop bits indicating the end of character A. In asynchronous serial communication, peripheral chips and modems can be programmed for data that is 5, 6, 7 or 8 bits wide. In some systems in order to maintain the data integrity, the parity bit of the character byte is included in the data frame. Data Transfer Rate (Baud Rate) The rate of data transfer in serial communication is stated in bps (bits per second). Another widely used terminology for bps is the baud rate. Typical bps values are: 2,400, 4,800, 9,600, 19,200, 28,800, etc. RS232 and other Serial I/O Standards RS232 is the most widely used serial I/O interfacing standard. However the I/O voltage levels are not TTL compatible. In the RS232 a 1 is represented by 3 to 25 V, while 0 bit is +3 to +25 V, making 3 to +3 undefined. For this reason voltage converter such as MC1488 and MC1489 are used to convert the TTL logic levels to the RS232 voltage levels and vice versa. See Figure below. 3

RS232 Pins Serial Ports come in two "sizes". There are the D-Type 25 pin connector and the D- Type 9 pin connector both of which are male on the back of the PC, thus you will require a female connector on your device. Below is a table of pin connections for the 9 pin and 25 pin D-Type connectors. D-Type 25 pin D-Type 9-pin Serial Port Pinouts (D25 and D9 Connectors) D-Type-25 Pin No. D-Type-9 Pin No. Abbreviation Full Name Pin 2 Pin 3 TD / TxD Transmit Data Pin 3 Pin 2 RD / (RxD) Receive Data Pin 4 Pin 7 RTS Request To Send Pin 5 Pin 8 CTS Clear To Send Pin 6 Pin 6 DSR Data Set Pin 7 Pin 5 SG / (GND) Signal Ground Pin 8 Pin 1 CD / (DCD) Data Carrier Detect Pin 20 Pin 4 DTR Data Terminal Pin 22 Pin 9 RI Ring Indicator Table 1 : D Type 9 Pin and D Type 25 Pin Connectors 4

Pin Functions Abbreviation Full Name Function TD Transmit Data Serial Data Output (TXD) RD Receive Data Serial Data Input (RXD) CTS Clear to Send This line indicates that the Modem is ready to exchange data. DCD Data Carrier Detect When the modem detects a "Carrier" from the modem at the other end of the phone line, this Line becomes active. DSR DTR RTS RI Data Set Data Terminal Request To Send This tells the UART that the modem is ready to establish a link. This is the opposite to DSR. This tells the Modem that the UART is ready to link. This line informs the Modem that the UART is ready to exchange data. Ring Indicator Goes active when modem detects a ringing signal. Data Communication Classification: Devices which use serial cables for their communication are split into two categories. These are DCE (Data Communications Equipment) and DTE (Data Terminal Equipment.) DTE refers to terminals and computers that send and receive data; DCE refers to communication equipment such as modems that are responsible for transferring data. 5