MS_uC / dnd / V08 4- 1 UART - Serial communic. Programming Microcontroller UART – Universal Asynchronous Receiver Transmitter 2007 32K Byte Burst Flash.

Slides:



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

INPUT-OUTPUT ORGANIZATION
MS_uC / dnd / V RTC - Real Time Clock Programming Microcontroller CAN – Analog Digital Converter Autumn term K Byte Burst Flash 64K or 96K.
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
MS_uC / fue1 / V UART - Serial communic. Programming Microcontroller USART Universal Synchronous/Asynchronous Receiver Transmitter Autumn 2012.
DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
1 Homework Reading –Tokheim, Section 13-6 Continue mp1 –Questions? Labs –Continue labs with your assigned section.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
MS_uC / dnd / V RTC - Real Time Clock Programming Microcontroller ADC – Analog Digital Converter Autumn term K Byte Burst Flash 64K or 96K.
MS_uC / dnd / V Programming and GPIO Programming Microcontroller IDE usage, debugger GPIO – General Purpose Input/Output Week 2 - autumn term 2007.
Chapter 2 Data Communication Concepts Code Transmission Signal Modulation Service.
MS_uC / dnd / V TIM - Timer Programming Microcontroller TIM - Timer Autumn term K Byte Burst Flash 64K or 96K Byte SRAM 256K or 512K Byte.
Eng. Husam Alzaq The Islamic Uni. Of Gaza
MS_uC / dnd / V VIC - Vectored Interrupts Programming Microcontroller VIC – Vectored interrupt controller Autumn term K Byte Burst Flash.
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.
MS_uC / dnd / V RTC - Real Time Clock Programming Microcontroller RTC – Real Time Clock Autumn term K Byte Burst Flash 64K or 96K Byte SRAM.
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.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
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.
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
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),
SC200x Peripherals Broadband Entertainment Division DTV Source Applications July 2001.
UART and UART Driver B. Ramamurthy.
Lecture 7 Universal Asynchronous Receiver/Transmitter (UART) NCHUEE 720A Lab Prof. Jichiang Tsai.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Line Coding, Modem, RS232 interfacing sequences.
“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
UART: Universal Asynchronous RX/TX
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
NS Training Hardware. Serial Controller - UART.
Universal Asynchronous Receiver/Transmitter (UART)
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
1 Chapter Overview Modems The Internet and Web Browsers.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
NARNARAYAN SHASTRI INSTITUTE OF TECHNOLOGY Prepared by: Wasu Ichcha kaur H Bhalani Nidhi M Dhakate Megha D MICROCONTROLLER.
Serial mode of data transfer
Homework Reading Continue mp1 Labs Tokheim, Section 13-6 Questions?
CS-401 Computer Architecture & Assembly Language Programming
Programming Microcontroller ADC – Analog Digital Converter
Serial Communications
Programming Microcontroller
Programming Microcontroller
Programming Microcontroller GPIO – General Purpose Input/Output
UART Serial Port Programming
UART Serial Port Programming
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.
PIC Serial Port Interfacing
PIC Serial Port Interfacing
Presentation transcript:

MS_uC / dnd / V UART - Serial communic. Programming Microcontroller UART – Universal Asynchronous Receiver Transmitter K Byte Burst Flash 64K or 96K Byte SRAM 256K or 512K Byte Burst Flash OTP Mem UARTI2CSPI TIMRTC EXT. Bus GPIO USB 2.0FS CAN 2.0B Enet MAC PFQ BC DMA INTR Cntl ARM966 E CORE w/DSP 96 MHz CLK Cntl ADC LVD BOD PLL JTAGETM9 STR912FW44

MS_uC / dnd / V UART - Serial communic. Typical serial communication (low level) Full-duplex interface Device 1 Device 2 -PC -Embedded system -PC -embedded system -modem -barcode reader -printer -display (with terminal emulation software) -data logger -sensor (simple or complex) -dongle (security element) -I/O module (digital, analog, encoder, PT100) -wireless interface Transmit ReceiveTransmit Receive

MS_uC / dnd / V UART - Serial communic. EIA-232-C pin assignments D-Sub male on PC Pin DB9 Pin DB25 SymbolDirectionText OutIn 18DCD  Data Carrier Detect 23Rx  Receive Data 32Tx  Transmit Data 420DTR  Data Terminal Ready 57GndSignal Ground 66DSR  Data Set Ready 74RTS  Request to Send 85CTS  Clear to Send 922RI  Ring Indicator RS-232-C: Radio Sector, American Standard since 1969s Male -> Stecker Female -> Buchse

MS_uC / dnd / V UART - Serial communic. Serial data format (logical representation) 5-8 data bits Parity bit if enabled 1-2 stop bits msb lsb start 1 n 0 time lsb: least significant bit (2 0 ) msb: most significant bit (2 db-1 ) 1 bit time = 1 / baudrate Example: parity enabled, 2 stop bits Normally one Byte is sent as 8 data bits Or: One Byte is sent as 7 data bits + parity

MS_uC / dnd / V UART - Serial communic. Hyperterminal usage Start -> Zubehör -> Kommunikation -> Hyperterminal Go offline Configure COM-Port: File->Properties Xon/Xoff: Software handshake (Exchange on..) / both sides must implement this software handshake. The sender has to stop almost immediately upon reception of Xoff character Binary data transmission is not possible. Hardware:RTS/CTS hardware handshake garantees loss-free transmission on a byte level and allows binary data transmission

MS_uC / dnd / V UART - Serial communic. Hyperterminal communication (no handshake) a) Reset the controller. It will send a string b) Now type some characters. The controller will echo them (not hyperterminal!)  try BS character ( backspace) The terminal will interprete it properly  try LF character ( line feed, 0x0D). The cursor will move one line down  try CR charcter ( carriage return, 0x0A). The cursor jumps to column 0 View -> Serial Window -> UART #0 Serial ports may be simulated using the Simulator output and the serial window:

MS_uC / dnd / V UART - Serial communic. UART – What is it good for? zSimple serial communication (3-wire) zMultiple physical interfaces: yEIA-232 Peer-to-peer (former RS-232-C 1969). Gnd based ( ,3..15 V) yEIA-485 Party Line, multi-point link (SCSI, ISDN,... yEIA-422 : Balanced lines, no ground link (D+/D-) on drivers up to 100 kbps. Point-to-point or multi-drop. 0-5 V. Twisted-pair cable zEasy setup zDirect programming zByte level only zUSB will not replace cheap and simple communications EIA: Electronic Industry Alliance

MS_uC / dnd / V UART - Serial communic. Hardware flow control RTS will be switched on and off by programmable receiv FIFO watermarks

MS_uC / dnd / V UART - Serial communic. UART features (1/3) zSeparate 16x8 Transmit and 16x12 Receive FIFO zProgrammable FIFO disabling for 1-byte depth zProgrammable Baud rate generator : yBaud rate = UARTCLK / (16 × BRR) zStandard Asynchronous communication bits (start, stop and parity) zIndependent masking of transmit FIFO, receive FIFO, receive timout, modem status, and error condition interrupts zFalse start bit detection zLine Break Generation and Detection zSupport for Modem Control Functions CTS, DCD, DSR, RTS, DTR, and RI zProgrammable hardware flow control FIFO: First In First Out sequential, buffer structure

MS_uC / dnd / V UART - Serial communic. UART features (2/3) zProgrammable word length : y5 bits, 6 bits, 7 bits, 8 bits zProgrammable Stop bits : y1 Stop bit, 2 Stop bits zEven, odd, stick, or no-parity bit generation and detection zSupport for Direct Memory Access (DMA) zSupport for an IrDA Serial Interface (SIR) protocol EnDec zParity control zLoop Back zSupport baud rates of up to Kbits / second subject to UARTCLK reference clock frequency

MS_uC / dnd / V UART - Serial communic. UART features (3/3) z11 Interrupt sources : yOverrun error detected yBreak Error yParity Error yFraming Error yReceive Timeout yData Transmit yData Receive yModem Data Set Ready (DSRMIM) yModem Data Carrier Detect (DCD) yModem Clear to Send (CTS) yModem Ring Indicator (RI)

MS_uC / dnd / V UART - Serial communic. UART Block diagram Ref manual figure 74

MS_uC / dnd / V UART - Serial communic. UART register map

MS_uC / dnd / V UART - Serial communic. Fractional Baud Rate generator  Every baud rate generator has errors. Check the tolerance! BRCLK: baud rate clock

MS_uC / dnd / V UART - Serial communic. UART configuration [Peripherals -> UART]

MS_uC / dnd / V UART - Serial communic. Pin connections of UART STR91x ARM966 manual pdf, 4.1 pin functions page 36 P3.0 UART0_RxD Alternate Input 1 P3.1 UART0_TxD Alternate Output 2  Use COM1 of MCBSTR9. Which port?

MS_uC / dnd / V UART - Serial communic.