Lecture # 14. RS – 232C Standard Standard for physical dimensions of the connectors. PC (DTE) Modem RS – 232C Cable Connected via serial port (DCE)

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
1 Homework Reading (linked from my web page) –S and S Extracts –National Semiconductor UART Data Sheet Machine Projects –mp2 due at start of class 12 Labs.
Review: Interrupts & Timers
Interfacing The Serial/RS-232 Port Hardware Serial Port Registers Programming.
Serial I/O - Programmable Communication Interface
1 מעבדה במבוא לתקשורת מועבר ע ” י דני סיטרון כל החומר על הקורס ( החומר שיילמד, תרגילים, ציונים, שעות קבלה …) נמצא ב :
Eng. Husam Alzaq The Islamic Uni. Of Gaza
COMP3221: Microprocessors and Embedded Systems
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
RS-232 Port Lecture L9.3. Loop feedback RS-232 voltage levels: +5.5 V (logic 0) -5.5 V (logic 1)
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
1 מעבדה במבוא לתקשורת בהתאם לאמונה שלי שתלמיד שאינו שולט באנגלית לא יכול להתהדר בתואר אקדמי במדעי המחשב, אזי : זה השקף האחרון בעברית שתראו בקורס.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
The 8051 Microcontroller and Embedded Systems
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
“Describe the overview of hardware interfacing and the serial communication interface. Describe the PIC18 connections to RS232. Explain the serial port.
Universal Asynchronous Receiver/Transmitter (UART)
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire conductors)
Serial Communications
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
Example. SBUF Register SCON Register(1) SCON Register(2)
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Universal Asynchronous Receiver/Transmitter (UART)
1 Asynchronous voice band modem for IP data protocols overview features.
Extended Uart The High Speed Digital Systems Laboratory, Electrical Engineering Faculty, Technion By: Marganit Fina Supervisor: Rivkin Ina Winter 2007/8.
1 מעבדה במבוא לתקשורת מועבר ע ” י אליעזר גנסבורגר ( מעובד מחומר שנלקט ע " י דניאל סיטרון ) כל החומר על הקורס ( החומר שיילמד, תרגילים, ציונים, שעות קבלה.
8051SERIAL PORT PROGRAMMING
Example 1 Program the divisor Latch for 300 baud. Assume Xin=1.8432MHz The Base Address: 0x3F8 0RX_TX / Divisor.low 1IER: Interrupt Enable Reg. / Divisor.high.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
NARNARAYAN SHASTRI INSTITUTE OF TECHNOLOGY Prepared by: Wasu Ichcha kaur H Bhalani Nidhi M Dhakate Megha D MICROCONTROLLER.
Chapter 4 UART Serial Port Programming 1. Serial vs. Parallel Data Transfer 2.
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Chapter 6 Serial Communications
Serial mode of data transfer
UART Serial Port Programming
RS-232 Communications.
Homework Reading Continue mp1 Labs Tokheim, Section 13-6 Questions?
CS-401 Computer Architecture & Assembly Language Programming
Lecture # 13.
Homework Reading (linked from my web page) Machine Projects Labs
8254 – SOFTWARE PROGRAMMABLE TIMER
SERIAL PORT PROGRAMMING
RS-232 Communications.
UART and UART Driver B. Ramamurthy.
Serial Communication: RS-232 (IEEE Standard)
Programming Microcontroller
Computer Organization and Design
UART Serial Port Programming
UART and UART Driver B. Ramamurthy.
UART Serial Port Programming
Serial Communication Interface: Using 8251
Serial Communication Interface
Преглед Начин функционисања Имплементације
NS Training Hardware.
UART PC16550 (Universal Asynchronous Receiver/Transmitter) By Derwyn Hollobaugh
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
EUSART Serial Communication.
PIC Serial Port Interfacing
8051SERIAL PORT PROGRAMMING
PIC Serial Port Interfacing
AVR UART The UART, or Universal Asynchronous Receiver Transmitter, provides hardware support for a serial port on AVR processors Signaling is compatible.
Presentation transcript:

Lecture # 14

RS – 232C Standard Standard for physical dimensions of the connectors. PC (DTE) Modem RS – 232C Cable Connected via serial port (DCE)

RS – 232C Connectors and Signals DB25 (25 pin connector) 25 pin connector on PC RI DTR CD GND DSR CTS RTS RD T X D

PC MODEM DTEDCE DTR DSR RTS CTS CD RI DTR (SHOULD REMAIN HIGH THROUGH OUT THE SESSION ) CTS (CAN BE USED FOR FLOW CONTROL ) RxD TxD

CD R x D T x D D T R G N D RI CTS RTS DSR DB9 Connector

UART Internals Receiver Buffer Register Interrupt Enable Register Line Status Register Interrupt ID Register Divisor Latch Register Line Control Register Modem Control Register Modem Status Register Transmitter Holding Register Receiver Shift Register Interrupt to Parity LOGIC R x D Transmit Shift Register T x D 1.CTS 2.DSR 3.CD 4.RI 1.RT 2.DTR

Transmitter Holding RegisterTHR0 Receiver DataRBR0 Band Rate Divisor (Low Byte)DLL0 Band Rate Divisor (High Byte)DLM1 Interrupt EnableIER1 FIFO Control RegisterFCR2 Interrupt IDIIR2 Line ControlLCR3 Mode ControlMCR4 Line StatusLSR5 Modem StatusMSR6 Scratch PadSP7 Base +

Served Ports in Standard PC BIOS supports 4 UARTS as COM Ports COM1, COM2, COM3, COM4 PortsMemory Address Port Base COM10040:000003F8H COM20040:00022F8H COM30040:00043E8H COM40040:00062E8H

Text Dump - d 40:0 0040:0000 F8 03 F8 02 E8 03 E8 02-BC C0 9F x.x : C # q. 0040:0020 0D 1C D 1C B 3A 27..q...d 94.0.:' 0040: B 0D 1C :0040 D8 00 C P : A :0060 0F 0C 00 D C9 0B ) : q

Setting the Baud Rate MHZ=frequency generating by UARTS internally Divisor value loaded in DLL ( Base +0 ) and DLM ( Base +1 ) Baud rate = MHZ / (16*Divisor) Divisor = 1, Baud Rate = Divisor = 0CH, Baud Rate = 9600 Divisor = 180H, Baud Rate = 300

Line Control Register Load THR 1Load Divisor Value Word Length 00 = 5 BITS 01 = 6 BITS 10 = 7 BITS 11 = 8 BITS Length of Stop BITS 0 = one BIT 1 =1-5 for 5 bit Word Parity Check and generation on Parity 0 = odd 1 = Even. Stop Communication =1 Resume Communication =0 Constant Parity 0 =NO constant Parity 1 =Constant Parity 0 if bit 4 =1 1 if bit 4 =0

Line Status Register Data Ready =1 Over Run Error = 1 Parity Error =1 Stop Communication Signal from Other end =1 TSR is Empty=1 TSR Contain a Byte=0 THR entry =1 THR contains a BYTE =0 Transfer Error (Framing Error)

Interrupt Enable Register 3210 Trigger Interrupt On Data Ready =1 Trigger Interrupt On change in Modem Status =1 Trigger Interrupt As soon as THR is empty =1 Trigger Interrupt On line status change =1

Interrupt ID Register 210 Trigger Triggered Modem/Line 00 =Change in Modem Status 01 = THR is Empty 10 = Data is Ready 11 =Error in Data