SlideShare a Scribd company logo
2
Most read
14
Most read
16
Most read
SERIAL
COMMUNICATION
Parallel transmission:
Data is sent 8 bits (byte) at a time over 8 data lines.
A few handshaking lines may be needed. One uses a 25-pin
D-shell connector and cable(DB-25 or equivalent)
Serial transmission:
Data is sent one bit at a time over one data line. In theory and
principle one needs only two lines for data, one for the signal
and the other for ground. A few clock and handshaking lines
are needed and in many PCs a 9-pin connector is used.
Serial communication in LPC2148
Serial Communication Types
Asynchronous
Synchronous
Transfer:
Simplex
Half duplex
Full duplex
Serial communication in LPC2148
Asynchronous Data
Synchronous Data
UART:
UART means Universal Asynchronous Receiver and
Transmitter
8051 have single UART
In LPC2148 have two UART
Serial communication in LPC2148
UART
UART0 block diagram
Pin description
UART0 pin description
Pin Type Description
RXD0 Input Serial Input. Serial receive data.
TXD0 Output Serial Output. Serial transmit data.
UART0 REGISTER MAP
 U0FCR-FIFO CONTROL REG
• 8-BIT Byte Addressable reg
• This reg is used to enable TX & RX FIFO
functionalities
• U0FCR=0x07 is like SCON reg
 U0LCR- Line Control Reg
• 8-BIT byte addressable reg
• Line control reg is used to select the
length of char
• LSB two bits are char length selection
bits.
U0LCR=0x83
baud rate
U0CLR=0x03
 0 0 – 5(xxx00000)
 0 1 – 6(xx000000)
 1 0 – 7(x0000000)
 1 1 – 8(00000000)
DLAB(Divisor Latch Buffer)
 one high-low pulse across DLAB bit indicates
baud rate is successfully loaded.
 DLAB=1 baud rate is loading
 DLAB=0 After loading baud rate DLAB must be
zero.
Baud rate=clk/16*9600
 Divisor Latch Reg
• DLR is 16-bit reg
• Used to load baud rate
• As the baud rate is 8-bit value, divide DLR
into two parts
• DLM & DLL(8-bit each)
• For 9600 baud rate
• U0DLL=0x63(12mhz)
• U0DLM=0x00
 U0THR(Transmit hold reg)
• 8-bit byte addressable reg
• Data can be loading to U0THR, whenever
transmitting data
• U0THR=‘A’----like SBUF
• THR buffer reg is used only for
transmitting
 U0RBR(UART0 Receive buffer reg)
 8-bit byte addressable reg
 Data can be loading into U0RBR,
whenever receiving data.
 a=U0RBR----like SBUF
 U0LSR(UART0 line status reg)
 8-bit byte addressable reg
 Consists of diff flag bits… TI interrupt & RI
interrupt flag bit
 0th bit of LSR is RI flag bit
 6th bit of LSR is TI flag bit
 Monitoring TI bit syntax
 While(!(U0LSR&0x40));
 Monitoring RI bit syntax
 While(!(U0LSR&0x10));
Serial communication in LPC2148
Serial communication in LPC2148

More Related Content

PPT
PPTX
Timer counter in arm7(lpc2148)
PDF
ARM CORTEX M3 PPT
PPTX
Microcontoller and Embedded System
PDF
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
PDF
8051 Architecture and PIN Configuration.pdf
PPTX
Xilinx 4000 series
PPTX
Serial Communication in 8051
Timer counter in arm7(lpc2148)
ARM CORTEX M3 PPT
Microcontoller and Embedded System
EC8392 -DIGITAL ELECTRONICS -II YEAR ECE-by S.SESHA VIDHYA /ASP/ ECE/ RMKCET
8051 Architecture and PIN Configuration.pdf
Xilinx 4000 series
Serial Communication in 8051

What's hot (20)

PPT
ARM - Advance RISC Machine
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPTX
LCD Interacing with 8051
PDF
Introduction to arm architecture
PPT
Ch12 microprocessor interrupts
PPTX
FPGA TECHNOLOGY AND FAMILIES
PPSX
LECT 1: ARM PROCESSORS
PDF
Introduction to Embedded Architecture
PDF
Unit II Arm 7 Introduction
PPTX
Watch-dog Timer in LPC1768
PPTX
Msp 430 architecture module 1
PPTX
ARM Exception and interrupts
PPT
8086 microprocessor
PDF
Unit 1 Introduction to Embedded computing and ARM processor
PPTX
Memory Segmentation of 8086
PPTX
Introduction to Embedded System I: Chapter 2 (5th portion)
PPT
Serial Peripheral Interface(SPI)
PDF
Difference Between CISC RISC, Harward & Von-neuman
PDF
Embedded systems basics
PPTX
Memory hierarchy
ARM - Advance RISC Machine
Interrupts on 8086 microprocessor by vijay kumar.k
LCD Interacing with 8051
Introduction to arm architecture
Ch12 microprocessor interrupts
FPGA TECHNOLOGY AND FAMILIES
LECT 1: ARM PROCESSORS
Introduction to Embedded Architecture
Unit II Arm 7 Introduction
Watch-dog Timer in LPC1768
Msp 430 architecture module 1
ARM Exception and interrupts
8086 microprocessor
Unit 1 Introduction to Embedded computing and ARM processor
Memory Segmentation of 8086
Introduction to Embedded System I: Chapter 2 (5th portion)
Serial Peripheral Interface(SPI)
Difference Between CISC RISC, Harward & Von-neuman
Embedded systems basics
Memory hierarchy
Ad

Viewers also liked (20)

PPTX
LPC 2148 ARM MICROCONTROLLER
PDF
SPI Protocol in LPC2148
PPTX
Analog to Digital converter in ARM
PPTX
ARM COMPLETE DETAIL PART 4
PDF
Llpc2148 sci
PDF
Lpc2148 i2c
PPTX
Spi in arm7(lpc2148)
PDF
ARM Processor Tutorial
PDF
PPT
Tikalis
PPTX
Fragrance & Their Types
PPTX
EdTech Europe 2015 [Track 3]: [CodeMonkey Studios], ([Jonathan Schor], [CEO])
PPTX
Vals. kalbos inspekcija
PPTX
Esprit du japon day 12 miyajima & hiro
PDF
Lis 557 powerteacher training 1
PPTX
EdTech Europe 2015 [Track 3]: [MyBlee], ([Jean-Sebastien Grail], [COO])
PPTX
EdTech Europe 2015 [Track 3]: [Platmat], [Andrzej Salamonczyk]
PPTX
Kanada
PPTX
Eating Healthy Food While In A Rush - Dieting Tips
DOC
Chris wiese resume
LPC 2148 ARM MICROCONTROLLER
SPI Protocol in LPC2148
Analog to Digital converter in ARM
ARM COMPLETE DETAIL PART 4
Llpc2148 sci
Lpc2148 i2c
Spi in arm7(lpc2148)
ARM Processor Tutorial
Tikalis
Fragrance & Their Types
EdTech Europe 2015 [Track 3]: [CodeMonkey Studios], ([Jonathan Schor], [CEO])
Vals. kalbos inspekcija
Esprit du japon day 12 miyajima & hiro
Lis 557 powerteacher training 1
EdTech Europe 2015 [Track 3]: [MyBlee], ([Jean-Sebastien Grail], [COO])
EdTech Europe 2015 [Track 3]: [Platmat], [Andrzej Salamonczyk]
Kanada
Eating Healthy Food While In A Rush - Dieting Tips
Chris wiese resume
Ad

Similar to Serial communication in LPC2148 (20)

PDF
Lecture 3 - Serial Communicationkahfag.pdf
PPT
PDF
Serial Port Device Driver
PPT
AN INTRODUCTION TO SERIAL PORT INTERFACING
PDF
Lecture 10 (serial communication)
PPTX
The presentation is about USART and serial communication
PPT
Lecture 10 _serial_communication
PPTX
UART.pptx
PPTX
Universal Serial Communication Interface
PPTX
Micro c lab8(serial communication)
PPTX
Serial data transfer
PPT
Serial Communication In Atmega 16
PPTX
Microcontrollers and microprocessors in electrical communication engineering....
PDF
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
PDF
Universal asynchronous receiver_transmitter_uart_rs232
PPT
12 mt06ped019
PPT
MicrocontrollersIII.ppt
PPT
MicrocontrollersIII.ppt
PPT
MicrocontrollersIII (1).ppt
Lecture 3 - Serial Communicationkahfag.pdf
Serial Port Device Driver
AN INTRODUCTION TO SERIAL PORT INTERFACING
Lecture 10 (serial communication)
The presentation is about USART and serial communication
Lecture 10 _serial_communication
UART.pptx
Universal Serial Communication Interface
Micro c lab8(serial communication)
Serial data transfer
Serial Communication In Atmega 16
Microcontrollers and microprocessors in electrical communication engineering....
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
Universal asynchronous receiver_transmitter_uart_rs232
12 mt06ped019
MicrocontrollersIII.ppt
MicrocontrollersIII.ppt
MicrocontrollersIII (1).ppt

Recently uploaded (20)

PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
PPT on Performance Review to get promotions
PPTX
introduction to high performance computing
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PPTX
UNIT - 3 Total quality Management .pptx
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PDF
737-MAX_SRG.pdf student reference guides
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPT
Total quality management ppt for engineering students
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Artificial Intelligence
PPTX
Safety Seminar civil to be ensured for safe working.
Visual Aids for Exploratory Data Analysis.pdf
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPT on Performance Review to get promotions
introduction to high performance computing
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
UNIT - 3 Total quality Management .pptx
Nature of X-rays, X- Ray Equipment, Fluoroscopy
737-MAX_SRG.pdf student reference guides
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Abrasive, erosive and cavitation wear.pdf
UNIT 4 Total Quality Management .pptx
Categorization of Factors Affecting Classification Algorithms Selection
Total quality management ppt for engineering students
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Information Storage and Retrieval Techniques Unit III
Artificial Intelligence
Safety Seminar civil to be ensured for safe working.

Serial communication in LPC2148

  • 2. Parallel transmission: Data is sent 8 bits (byte) at a time over 8 data lines. A few handshaking lines may be needed. One uses a 25-pin D-shell connector and cable(DB-25 or equivalent) Serial transmission: Data is sent one bit at a time over one data line. In theory and principle one needs only two lines for data, one for the signal and the other for ground. A few clock and handshaking lines are needed and in many PCs a 9-pin connector is used.
  • 7. UART: UART means Universal Asynchronous Receiver and Transmitter 8051 have single UART In LPC2148 have two UART
  • 11. Pin description UART0 pin description Pin Type Description RXD0 Input Serial Input. Serial receive data. TXD0 Output Serial Output. Serial transmit data.
  • 13.  U0FCR-FIFO CONTROL REG • 8-BIT Byte Addressable reg • This reg is used to enable TX & RX FIFO functionalities • U0FCR=0x07 is like SCON reg
  • 14.  U0LCR- Line Control Reg • 8-BIT byte addressable reg • Line control reg is used to select the length of char • LSB two bits are char length selection bits.
  • 15. U0LCR=0x83 baud rate U0CLR=0x03  0 0 – 5(xxx00000)  0 1 – 6(xx000000)  1 0 – 7(x0000000)  1 1 – 8(00000000) DLAB(Divisor Latch Buffer)  one high-low pulse across DLAB bit indicates baud rate is successfully loaded.  DLAB=1 baud rate is loading  DLAB=0 After loading baud rate DLAB must be zero.
  • 16. Baud rate=clk/16*9600  Divisor Latch Reg • DLR is 16-bit reg • Used to load baud rate • As the baud rate is 8-bit value, divide DLR into two parts • DLM & DLL(8-bit each) • For 9600 baud rate • U0DLL=0x63(12mhz) • U0DLM=0x00
  • 17.  U0THR(Transmit hold reg) • 8-bit byte addressable reg • Data can be loading to U0THR, whenever transmitting data • U0THR=‘A’----like SBUF • THR buffer reg is used only for transmitting
  • 18.  U0RBR(UART0 Receive buffer reg)  8-bit byte addressable reg  Data can be loading into U0RBR, whenever receiving data.  a=U0RBR----like SBUF
  • 19.  U0LSR(UART0 line status reg)  8-bit byte addressable reg  Consists of diff flag bits… TI interrupt & RI interrupt flag bit  0th bit of LSR is RI flag bit  6th bit of LSR is TI flag bit  Monitoring TI bit syntax  While(!(U0LSR&0x40));  Monitoring RI bit syntax  While(!(U0LSR&0x10));