UART Serial Port Programming

Slides:



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

DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Two Ways to Think About Connected Systems Architectures and Connections Architectures range from fully centralized to fully distributed. Centralized are.
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.
EET Advanced Digital Chapter 21 Serial Ports.
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.
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.
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)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
“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
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Universal Asynchronous Receiver/Transmitter (UART)
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.
1 Asynchronous voice band modem for IP data protocols overview features.
Transmission Media II (06.523) Types and properties of physical transmission media II.
8051SERIAL PORT PROGRAMMING
PIC Microcontroller and Embedded Systems 1/e By Muhammad Mazidi, Rolin McKinlay, and Danny Causey © 2008 Pearson Education, Inc. Pearson Prentice Hall.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
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.
Lecture # 14. RS – 232C Standard Standard for physical dimensions of the connectors. PC (DTE) Modem RS – 232C Cable Connected via serial port (DCE)
Chapter 4 UART Serial Port Programming 1. Serial vs. Parallel Data Transfer 2.
EET 2259 Unit 14 Instrument Control
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
EET 2261 Unit 10 Serial Communications Interface
Lecture # 13.
SERIAL PORT PROGRAMMING
RS-232 Communications.
DATA COMMUNICATION Lecture-21.
Serial Communication: RS-232 (IEEE Standard)
Programming Microcontroller
UART Serial Port Programming
STM Arm I/O Programming
EET 2259 Unit 14 Instrument Control
SPI Protocol and DAC Interfacing
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
PIC Serial Port Interfacing
8051SERIAL PORT PROGRAMMING
Figure Serial versus Parallel Data Transfer
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:

UART Serial Port Programming Chapter 4 UART Serial Port Programming

Serial vs. Parallel Data Transfer

Parallel In Serial Out

Serial In Parallel Out

Simplex, Half-, and Full-Duplex Transfers

Framing ASCII "A" (0x41)

MAX232

MAX233

RS232 Pins Pin Description 1 Data carrier detect (DCD) 2 Received data (RxD) 3 Transmitted data (TxD) 4 Data terminal ready (DTR) 5 Signal ground (GND) 6 Data set ready (DSR) 7 Request to send (RTS) 8 Clear to send (CTS) 9 Ring indicator (RI)

9-Pin Male Connector

DTE-DCE and DTE-DTE Connections

Null Modem Connection with Flow Control Signals

ST-Link-V2-1 in Nucleo ST Arm board

ST-Link-V2-1 in Nucleo ST Arm board

St-Link/V2 USART2-USB Port Connection

Partial list of USART Registers and their addresses

A Simplified Block Diagram of USART

RCC_CR (RCC Control Register) to showing the HSI Clock Source

RCC_CFGR (Clock Configuration Register) Clock Select Resgister bit assignment

Clock Generation for USART2

APB1ENR peripheral clock enable register (RCC_APB1ENR) Bit Assignments (Partial Listing)

BAUD (USART_BRR) Register

BAUD Rate Register (BRR) Values for Some Baud Rates using OVER=16 and clock of 16MHz.

BAUD Rate Register (BRR) Values for Some Baud Rates using OVER=8 and clock of 16MHz.

USART CR1 (Control 1 Register) bits definition (Partial Listing)

USART Control 2 (USART_CTR2) register (Partial Listing)

USART_DR, USART Data Register

Status Register (USART_SR)

GPIO_AFRL (GPIO Alternate Function Register Low)

GPIO_AFRH (GPIO Alternate Function Register High)

partial list of STM Arm Pins Used for USART (See Appendix B and Table 4-6)

GPIOx_MODER (GPIO Mode) for Direction Register (x=A, B, C,..)

Alternate Functions (AF) Pin Multiplexing for Port A in STM32F446 Arm Alternate Functions (AF) Pin Multiplexing for Port A in STM32F446 Arm. See Appendix B for other Ports. (See AF table for your device)