RS232C and UART COMMUNICATION

Similar documents
RS-232 COMMUNICATIONS

Application Note 83 Fundamentals of RS 232 Serial Communications

RJ45 Shielded (standard) port pinout. CS9000, Jetstream , Lanstream 2000, RTA8/RJX, RRC16, MTA8/RJX & SXDC8/RJX

Cable Specifications and Information

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

Serial Communications

Using Xbee in Serial Communication

Advanced Data Capture and Control Systems

PCMCIA 1 Port RS EDITION OCTOBER 1999

Why you need to monitor serial communication?

LS-101 LAN to Serial Device server. User s Manual

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

Siemens DECT Engine MD32. Product Description. Information and Communication Products

USB TO SERIAL ADAPTER

Appendix A. This Appendix includes the following supplemental material:

2-Port RS232/422/485 Combo Serial PCI Card

When we look at the connector pinout of the RS232 port, we see two pins which are certainly used

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Docklight Pro Monitor User Manual 10/2015

Single channel data transceiver module WIZ2-434

Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information

Manual Serial PCI Cards

Data sheet Wireless UART firmware version 4.02

Date Rev. Details Author

LOW COST GSM MODEM. Description. Part Number

Quectel Cellular Engine

Cable Specifications and Information

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

Cabling Guide for Console and AUX Ports

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

isco Connecting Routers Back to Back Through the AUX P

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Industrial Multi-port Serial Cards

WHQL Certification Approval...2 User Interface...3 SUNIX s COMLab..4

Connecting the Console Port to a PC

2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

16-Port RS232 to USB2.0 High Speed Multi Serial Adapter (w/ Metal Case) Installation Guide

Dial-Up / Leased-Line Modem. User Manual. AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) Manual Rev A + - DLM CTS RTS DTR DSR

UART IP Core Specification. Author: Jacob Gorban

Cable Connection Procedures for Cisco 1900 Series Routers

SyncLink GT2/GT4 Serial Adapter

ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE

What is Easy-Radio? Devices Covered. Frequency Hopping Transceiver. Where x00 denotes frequency of operation. E.g. 400 = 433MHz

a8251 Features General Description Programmable Communications Interface

WHQL Certification Approval...2 User Interface K software FIFO 4 Universal PCI Interface...5 Ready for 64-bit System...5

Future Technology Devices International Ltd

Serial Cables & Adapters

Modbus Communications for PanelView Terminals

Cable Guide Including all PortServer TS, Digi Connect, and Digi One Products

USB to serial chip CH340

How to setup a serial Bluetooth adapter Master Guide

User Manual IC-485AI

Cable Guide For all PortServer TS, Digi Connect, and Digi One Products

Cable Pinouts. SRP I/O Module

LTM-1338B. Plus Communications Manual

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual

TRP-C31M MODBUS TCP to RTU/ASCII Gateway

One Port Serial Server Users Manual Model ESP901, ESP901E

UNIVERSAL POWER-LINE CARRIER SYSTEM TYPE OPU-1

RS232 Programming and Troubleshooting Guide for Turbo Controls

Connector and Cable Specifications

Bluetooth HC-06 with serial port module Easy guide

Cable Guide For all PortServer TS, Digi Connect, and Digi One Products

RS232 Data Interface a Tutorial on Data Interface and cables

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

Hardware Reference. Linux Device Server IGW/922 with DIL/NetPC ADNP/9200

NPort s Ethernet Modem Mode

Access to Data & Computer Networks Physical Level

Using HyperTerminal with Agilent General Purpose Instruments

VSCOM USB PRO Series Industrial I/O Adapters

1 Port FTDI USB to RS232 Null Modem Adapter

Installation & Configuration Manuel. Socket Server. OpenAT application

Serial to Bluetooth Adapter

MODBUS TCP to RTU/ASCII Gateway. User s Manual

INFORMATICA INDUSTRIALE

MODBUS TCP to RTU/ASCII Gateway

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

M2M 3350 GSM/GPRS Modem User s Manual & Reference Guide Revision 1 June 2007

INFORMATICA INDUSTRIALE

Technical Note #14. Phone Modem Device Support. GE ED&C Home Search ED&C GE ED&C Power Management Home GE ED&C PMCS Home

1-Port R422/485 Serial PCIe Card

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

OPERATOR INTERFACE PRODUCTS APPLICATION NOTE. Xycom 4800/2000 OIL (Operator Interface Language)- Series Terminals: Backup and Restore with ProComm

The Clavinova-Computer Connection

RS-232/422/485, Power over Ethernet

Connecting Serial Interface Cards to a Network

2-port RS-232 High Speed Low Profile Universal PCI Serial Board

GX64 APPLICATION NOTE GSM Multiplexer Feature. Reference: WI_DEV_Gx64_APN_006 Revision: 001 Date: 2007/01/30

Data Bulletin. Communications Wiring for POWERLINK G3 Systems Class 1210 ABOUT THIS BULLETIN APPLICATION INTRODUCTION.

GSM Interfacing Board

Stevens Cell-Net CDMA & GSM M2M 3G Data Modem. Product Manual

Bidirectional wireless communication using EmbedRF

USB-to-Serial RS-232 Hub USB-to-Serial RS-422/485 Hub USER MANUAL UC2322 / UC2324 / UC4852 / UC4854

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

s!nus-elektrotechnikai bt. Industrial IT & Automation

Transcription:

DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-4: RS232C and UART COMMUNICATION 1

Exemplary Protocol RS232C For asynchronous communication between two data serial links on a network Between a data communication equipment and data terminal equipment RS232C a standard protocol used in IBM PC COM ports, keyboard, computermice and For the data serial link network in UART bit format 2

DTE and DCE RS232C communication is between a DTE (computer) COM (communication) port and a DCE (modem) port. DTE stands for 'Data Terminal Equipment'. DCE stands for 'Data Communication Equipment'. RS232C is a standard for interfacing signals between DCE and DTE. 3

Sequence of serial bits in an RS232C Byte Data Bits RxD and TxD lines As per UART standard formats on RxDand TxDlines 4

Voltage Levels at TxD and RxD lines in RS232C logic 1 Receiver end voltage level from 3 V to 25 V logic 0 Receiver end voltage level from + 3 V to + 25 V logic 1 Transmitter end voltage level from 5 V to 15 V logic 0 Transmitter end voltage level from + 5 V to + 15 V opposite to that of TTL logic wider noise margin to enable long distance communication 5

RS232C Connector 9 pin and 25-pin in case of IBM COM port Can be simpler 6

Handshaking signals on 9 Pin connector Handshaking signals RI, DCD, DSR, DTR, RTS, CTS, DTR 7

Voltage levels at Handshaking signals TTL standard 8

Example: 9-pin 9 Connector Handshaking signals RI to indicate ring available at data communication equipment receiving end When a modem connects, modem sends data carrier detect DCD signal at an instance t0. Communicates data set ready (DSR) signal at an instance t1 when it receives the bytes on the line. Receiving end responds at an instance t2 by data terminal ready (DTR) signal. 9

Example: COM port and Modem Handshaking signals After DTR, request to send (RTS) signal is sent at an instance t3 Receiving end responds by clear to send (CTS) signal at an instance t4. After the response CTS, the data bits are transmitted by modem from an instance t5 to the receiver terminal. Between two sets of bytes sent in asynchronous mode, the handshaking signals RTS and CTS can again be exchanged. This explains why the bytes do not remain synchronized during asynchronous transmission. 10

RS232C port at DTE and DCE handshaking and data Signals 11

RS232C port in a computer Used up to 9600 baud per s asynchronous serial transmission rate with UART mode communication. Generally baud rates set at 300, 600, 1200, 4800 and 9600. When transmitting upto 0.25 m or 1 m on cable (untwisted) the maximum baud rate can be 115.2 k or 38.4k baud per s, respectively 12

RS232C port for keyboard serial communication Communication at 1200 baud per s asynchronous serial transmission rate with UART mode communication at IBM PC COM port. The signals used are RTS, CTS, TxD and RxD for keypad communication. 13

A mice port RS232C COM in the computer A mice port can also be RS232C COM port in the computer (Alternative USB) Handshaking bits are RTS, CTS and data bits are at TxD Draws power from RTS and ground line Voltage levels: TTL logic 1 derived from RTS line itself ground 14

COM Port Emulation Assume a mobile smart phone Bluetooth device for personal area wireless network. Bluetooth device protocol provides for emulation as DCE serial port, which can now communicate in UART mode When computer on the other hand has a serial port called COM port (Example 3.1) 15

Mobile device placed on a cradle. The mobile device port data-pins connects the cradle pins. The cradle connects the computer or laptop COM port. The mobile emulated COM Bluetooth and computer serial port communicate. The data (for example, pictures or address book data) between them synchronizes between COM and emulated Bluetooth serial device ports 16

2. UART 17

UART Bits 18

Idle State A line non-return to zero (NRZ) state. It means in idle state the logic state is 1 at the serial line. 19

Byte start signaling flag bit Compulsory- Start bit 1 to 0 transition, which receiver detect at the middle of bit interval T [T 1 = prefixed baud rate.] 20

Data bits After start bit; 8 bits transmitted on TxD line and received on RxD line during period of 8 T (receiver detect at the middle of each bit interval T ), In earlier circuits, the number of data bits could also be set 5, 6 or 7 in place of 8 Full or half duplex 21

Address bits for destination Not provided Can be indirectly sent by setting a programmable bit P = 0 or 1 as per receivers processing circuit or programming 22

Control or error detect bit One bit- P-bit optional Present in 11T mode P bit can be used to detect parity error P-bit can be used to interpret the preceding byte not as data but as address or command or parity as per the processing circuit for serial bits at receiver 23

Byte end flag bit Compulsory- Minimum one stop bit at Logic 1 [In earlier circuits, the number of stop bits could also be set 1½ or 2 in place of 1] 24

Zero (Z) state Disconnected State Disconnected serial line logic state is 0 25

UART 8250 UART 8250 includes a 8-bit one byte buffer only and was used earlier in original IBM PC COM port, which had 8-bit register UART port and did not include any FIFO buffer for the receiving or transmitting bytes. 26

UART 16550 UART 16550 includes a 16-byte buffer and is nowadays used more commonly as compared to earlier original IBM PC COM port, which had 8-bit register UART port, was based on 8250 and did not include FIFO buffer. 27

Multi-processor communication using UART mode from SI in 8051 TTL logic 1 and 0 No handshaking signals 28

Summary 29

We learnt RS232C serial port communication usually in UART 10-bits or in 11-bits format full duplex using TxD and RxD lines RS232C voltage levels for 0 and 1 opposite to that of TTL logic, Opposite to that of TTL logic, wider noise margin to enable long distance communication Handshaking signals RI, DCD, DSR, DTR, RTS and CTS 30

We learnt 9 or 25 pin connector at IBM PC COM ports using RS232C standard UART serial port communication is usually either in 10-bits or in 11-bits format: one start bit, 8 data bits, one optional bit (Pbit) and one stop bit. UART communication can be full or half duplex using TxD and RxD lines 31

End of Lesson 4 of Chapter 3 32