SlideShare a Scribd company logo
1 of 42
Download to read offline
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
1
DEVICES AND COMMUNICATION
BUSES FOR DEVICES NETWORK
Lesson-1: IO port types- Serial and
parallel IO ports
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
2
1. IO Port
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
3
Port
A port a device
1. to receive the bytes from external
peripheral(s) [or device(s) or processor(s) or
controllers] for reading them later using
instructions executed on the processor or
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
4
Port
A port a device
2. to send the bytes to external peripheral or
device or processor using instructions
executed on processor
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
5
Port
 Connects to the processor using address
decoder and system buses
 Processor uses the addresses
 Port-Register addresses for programming
the port functions or modes, reading port
status and for writing or reading bytes.
 Port-Buffer addresses
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
6
Examples
 SI serial interface in 8051
 SPI serial peripheral interface in 68HC11
 PPI parallel peripheral interface 8255
 Ports P0, P1, P2 and P3 in 8051 or PA, PB,
PC and PD in 68HC11
 COM1 and COM2 ports in an IBM PC
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
7
2. IO Port Types
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
8
Types of Serial ports
 Synchronous Serial Input
 Synchronous Serial Output
 Asynchronous Serial UART input
 Asynchronous Serial UART output
 Both as input and as output, for example,
modem.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
9
Types of parallel ports
 Parallel port one bit Input
 Parallel one bit output
 Parallel Port multi-bit Input
 Parallel Port multi-bit Output
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
10
Synchronous Serial Input Example
 Inter-processor data transfer, reading from
CD or hard disk, audio input, video input,
dial tone, network input, transceiver input,
scanner input, remote controller input, serial
I/O bus input, writing to flash memory
using SDIO (Secure Data Association IO
based card)
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
11
Synchronous Serial Input Device (Serial Bits and a clock
signal used for synchronisation of a port input)
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
12
Synchronous Serial Input
 The sender along with the serial bits also sends the
clock pulses SCLK (serial clock) to the receiver
port pin. The port synchronizes the serial data-
input bits with clock bits. Each bit in each byte as
well as each byte in synchronization
 Synchronization means separation by a constant
interval or phase difference. If clock period = T,
then each byte at the port is received at input in
period = 8T.
 The bytes are received at constant rates. Each byte
at input port separates by 8T and data transfer rate
for the serial line bits is (1/T) bps. [1bps = 1 bit
per s]
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
13
Serial data and clock pulse-inputs
 On same input line  when clock pulses either
encode or modulate serial data input bits suitably.
Receiver detects the clock pulses and receives data
bits after decoding or demodulating.
 On separate input line  When a separate SCLK
input is sent, the receiver detects at the middle or
+ ve edge or –ve edge of the clock pulses that
whether the data-input is 1 or 0 and saves the bits
in an 8-bit shift register. The processing element at
the port (peripheral) saves the byte at a port
register from where the microprocessor reads the
byte.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
14
Master output slave input (MOSI) and Master
input slave output (MISO)
 MOSI when the SCLK is sent from the sender to
the receiver and slave is forced to synchronize sent
inputs from the master as per the inputs from
master clock.
 MISO when the SCLK is sent to the sender (slave)
from the receiver (master) and slave is forced to
synchronize for sending the inputs to master as per
the master clock outputs.
 Synchronous serial input is used for inter-
processor transfers, audio inputs and streaming
data inputs.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
15
Synchronous Serial Output Device (Device Serial Bits and
synchronisation clock signal at a port output)
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
16
Example Synchronous Serial Output
 Inter-processor data transfer, multiprocessor
communication, writing to CD or hard disk,
audio Input/output, video Input/output,
dialer output, network device output, remote
TV Control, transceiver output, and serial
I/O bus output or writing to flash memory
using SDIO
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
17
Synchronous Serial Output
 Each bit in each byte sent in
synchronization with a clock.
 Bytes sent at constant rates. If clock period
= T, then data transfer rate is (1/T) bps.
 Sender either sends the clock pulses at
SCLK pin or sends the serial data output
and clock pulse-input through same output
line with clock pulses either suitably
modulate or encode the serial output bits.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
18
Synchronous serial output using shift register
 The processing element at the port
(peripheral) sends the byte through a shift
register at the port to where the
microprocessor writes the byte.
 Synchronous serial output is used for inter-
processor transfers, audio outputs and
streaming data outputs.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
19
Synchronous Serial Input/Output
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
20
Synchronous Serial Input/Output
 Each bit in each byte is in synchronization at input
and each bit in each byte is in synchronization at
output with the master clock output .
 The bytes are sent or received at constant rates.
The I/Os can also be on same I/O line when
input/output clock pulses either suitably modulate
or encode the serial input/output, respectively. If
clock period = T, then data transfer rate is (1/T)
bps.
 The processing element at the port (peripheral)
sends and receives the byte at a port register to or
from where the microprocessor writes or reads the
byte
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
21
Asynchronous Serial input RxD at UART
COM Port
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
22
Asynchronous Serial port line RxD (receive
data).
 Does not receive the clock pulses or clock
information along with the bits.
 Each bit is received in each byte at fixed intervals
but each received byte is not in synchronization.
 Bytes separate by the variable intervals or phase
differences
 Asynchronous serial input also called UART input
if serial input is according to UART protocol
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
23
Example Serial Asynchronous Input
 Asynchronous serial input is used for keypad
inputs and modem inputs in computers
 Keypad controller serial data-in, mice, keyboard
controller, modem input, character send inputs on
serial line [also called UART (universal receiver
and transmitter) input when according to UART
mode]
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
24
Format of bits at UART protocol
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
25
UART protocol serial line format
 Starting point of receiving the bits for each
byte is indicated by a line transition from 1
to 0 for a period = T. [T1 called baud rate.]
 If sender’s shift-clock period = T, then a
byte at the port is received at input in period
= 10.T or 11.T due to use of additional bits
at start and end of each byte.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
26
UART protocol serial line format
 Receiver detects n bits at the intervals of T
from the middle of the start indicating bit.
The n = 0, 1, …, 10 or 11 and finds whether
the data-input is 1 or 0 and saves the bits in
an 8-bit shift register.
 Processing element at the port (peripheral)
saves the byte at a port register from where
the microprocessor reads the byte.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
27
Asynchronous Serial Output
 Asynchronous output serial port line TxD
(transmit data).
 Each bit in each byte transmit at fixed
intervals but each output byte is not in
synchronization (separates by a variable
interval or phase difference). Minimum
separation is 1 stop bit interval
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
28
TxD
 Does not send the clock pulses along with
the bits.
 Sender transmits the bytes at the minimum
intervals of n.T. Bits receiving starts from
the middle of the start indicating bit,
 n = 0, 1, …, 10 or 11 and sender sends the
bits through a 10 or 11 -bit shift register.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
29
TxD
 The processing element at the port
(peripheral) sends the byte at a port register
to where the microprocessor is to write the
byte.
 Synchronous serial output is also called
UART output if serial output is according to
UART protocol
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
30
Example Serial Asynchronous Output
 Output from modem, output for printer, the
output on a serial line [also called UART
output when according to UART]
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
31
Half Duplex
 Half duplex means as follows: at an instant
communication can only be one way (input
or output) on a bi-directional line.
 An example of half-duplex mode─
telephone communication. On one
telephone line, the talk can only in the half-
duplex way mode.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
32
Full Duplex
 Full duplex means that at an instant,
the communication can be both ways.
An example of the full duplex
asynchronous mode of communication
is the communication between the
modem and the computer though TxD
and RxD lines or communication using
SI in modes 1, 2 and 3 in 8051
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
33
Parallel Port single bit input
 Completion of a revolution of a wheel,
 Achieving preset pressure in a boiler,
 Exceeding the upper limit of permitted
weight over the pan of an electronic
balance,
 Presence of a magnetic piece in the vicinity
of or within reach of a robot arm to its end
point and
 Filling of a liquid up to a fixed level.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
34
Parallel Port Output- single bit
 PWM output for a DAC, which controls
liquid level, or temperature, or pressure, or
speed or angular position of a rotating shaft
or a linear displacement of an object or a
d.c. motor control
 Pulses to an external circuit
 Control signal to an external circuit
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
35
Parallel Port Input- multi-bit
 ADC input from liquid level measuring
sensor or temperature sensor or pressure
sensor or speed sensor or d.c. motor rpm
sensor
 Encoder inputs for bits for angular position
of a rotating shaft or a linear displacement
of an object
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
36
Parallel Port Output- multi-bit
 LCD controller for Multilane LCD display
matrix unit in a cellular phone to display on
the screen the phone number, time,
messages, character outputs or pictogram
bit-images for display screen or e-mail or
web page
 Print controller output
 Stepper-motor coil driving bits
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
37
Parallel Port Input-Output
 PPI 8255
 Touch screen in mobile phone
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
38
Summary
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
39
We learnt
 Port definition
 Port examples
 Ports in embedded system connects to
external processors, controllers or devices
like keypad, multi-line display unit, printer
or modem
 A serial or parallel I/O port connects and
accessed from and to the system-processor
through the system buses and address
decoder.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
40
We learnt
 Synchronous serial inputs and outputs
 Synchronization Clock, MOSI, MISO
 Clock on separate line or encoded or
clock signal modulated or encoded
with I/O bits.
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
41
We learnt
 Asynchronous serial inputs and outputs
 RxD and TxD and UART protocol
format asynchronous IOs
 full duplex or half-duplex
 Examples of serial and parallel IOs
 Examples of single bit and multi-bit
IOs at parallel ports
2015
Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design",
Raj Kamal, Publs.: McGraw-Hill Education
42
End of Lesson 1 of Chapter 5
on
IO port types- Serial and parallel IO
ports

More Related Content

Similar to Chap_5L01Emsys3EIOPortsSerial_Parallel.pdf

8051Architecture_Basics.pptx
8051Architecture_Basics.pptx8051Architecture_Basics.pptx
8051Architecture_Basics.pptxPallaviHailkar
 
siudhai ki marks sheih shuuu kvms jiiiiv
siudhai ki marks sheih shuuu kvms jiiiivsiudhai ki marks sheih shuuu kvms jiiiiv
siudhai ki marks sheih shuuu kvms jiiiivwonderboystarpope
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&busesPavithra S
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsransherraj
 
IRJET- Design of Virtual Channel Less Five Port Network
IRJET- Design of Virtual Channel Less Five Port NetworkIRJET- Design of Virtual Channel Less Five Port Network
IRJET- Design of Virtual Channel Less Five Port NetworkIRJET Journal
 
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptx
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptxMPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptx
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptxRaviKiranVarma4
 
Galil ioc7007 catalog
Galil ioc7007 catalogGalil ioc7007 catalog
Galil ioc7007 catalogElectromate
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
Apresentação feita em 2006 no Annual Simulation Symposium.
Apresentação feita em 2006 no Annual Simulation Symposium.Apresentação feita em 2006 no Annual Simulation Symposium.
Apresentação feita em 2006 no Annual Simulation Symposium.Antonio Marcos Alberti
 

Similar to Chap_5L01Emsys3EIOPortsSerial_Parallel.pdf (20)

Microcontroller 8051 gs
Microcontroller 8051 gsMicrocontroller 8051 gs
Microcontroller 8051 gs
 
8051Architecture_Basics.pptx
8051Architecture_Basics.pptx8051Architecture_Basics.pptx
8051Architecture_Basics.pptx
 
Atmega 16 drdo report
Atmega 16 drdo reportAtmega 16 drdo report
Atmega 16 drdo report
 
siudhai ki marks sheih shuuu kvms jiiiiv
siudhai ki marks sheih shuuu kvms jiiiivsiudhai ki marks sheih shuuu kvms jiiiiv
siudhai ki marks sheih shuuu kvms jiiiiv
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Picmico
PicmicoPicmico
Picmico
 
PLC_1.ppt
PLC_1.pptPLC_1.ppt
PLC_1.ppt
 
ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&buses
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
 
IRJET- Design of Virtual Channel Less Five Port Network
IRJET- Design of Virtual Channel Less Five Port NetworkIRJET- Design of Virtual Channel Less Five Port Network
IRJET- Design of Virtual Channel Less Five Port Network
 
I010315760
I010315760I010315760
I010315760
 
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptx
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptxMPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptx
MPI UNIT 5 - (INTERRUPTS OF 8086, INTRODUCTION TO 8051).pptx
 
Galil ioc7007 catalog
Galil ioc7007 catalogGalil ioc7007 catalog
Galil ioc7007 catalog
 
Plc presentation
Plc presentation Plc presentation
Plc presentation
 
8255 PPI.pptx
8255 PPI.pptx8255 PPI.pptx
8255 PPI.pptx
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
Apresentação feita em 2006 no Annual Simulation Symposium.
Apresentação feita em 2006 no Annual Simulation Symposium.Apresentação feita em 2006 no Annual Simulation Symposium.
Apresentação feita em 2006 no Annual Simulation Symposium.
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 

Chap_5L01Emsys3EIOPortsSerial_Parallel.pdf

  • 1. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 1 DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-1: IO port types- Serial and parallel IO ports
  • 2. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 2 1. IO Port
  • 3. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 3 Port A port a device 1. to receive the bytes from external peripheral(s) [or device(s) or processor(s) or controllers] for reading them later using instructions executed on the processor or
  • 4. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 4 Port A port a device 2. to send the bytes to external peripheral or device or processor using instructions executed on processor
  • 5. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 5 Port  Connects to the processor using address decoder and system buses  Processor uses the addresses  Port-Register addresses for programming the port functions or modes, reading port status and for writing or reading bytes.  Port-Buffer addresses
  • 6. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 6 Examples  SI serial interface in 8051  SPI serial peripheral interface in 68HC11  PPI parallel peripheral interface 8255  Ports P0, P1, P2 and P3 in 8051 or PA, PB, PC and PD in 68HC11  COM1 and COM2 ports in an IBM PC
  • 7. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 7 2. IO Port Types
  • 8. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 8 Types of Serial ports  Synchronous Serial Input  Synchronous Serial Output  Asynchronous Serial UART input  Asynchronous Serial UART output  Both as input and as output, for example, modem.
  • 9. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 9 Types of parallel ports  Parallel port one bit Input  Parallel one bit output  Parallel Port multi-bit Input  Parallel Port multi-bit Output
  • 10. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 10 Synchronous Serial Input Example  Inter-processor data transfer, reading from CD or hard disk, audio input, video input, dial tone, network input, transceiver input, scanner input, remote controller input, serial I/O bus input, writing to flash memory using SDIO (Secure Data Association IO based card)
  • 11. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 11 Synchronous Serial Input Device (Serial Bits and a clock signal used for synchronisation of a port input)
  • 12. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 12 Synchronous Serial Input  The sender along with the serial bits also sends the clock pulses SCLK (serial clock) to the receiver port pin. The port synchronizes the serial data- input bits with clock bits. Each bit in each byte as well as each byte in synchronization  Synchronization means separation by a constant interval or phase difference. If clock period = T, then each byte at the port is received at input in period = 8T.  The bytes are received at constant rates. Each byte at input port separates by 8T and data transfer rate for the serial line bits is (1/T) bps. [1bps = 1 bit per s]
  • 13. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 13 Serial data and clock pulse-inputs  On same input line  when clock pulses either encode or modulate serial data input bits suitably. Receiver detects the clock pulses and receives data bits after decoding or demodulating.  On separate input line  When a separate SCLK input is sent, the receiver detects at the middle or + ve edge or –ve edge of the clock pulses that whether the data-input is 1 or 0 and saves the bits in an 8-bit shift register. The processing element at the port (peripheral) saves the byte at a port register from where the microprocessor reads the byte.
  • 14. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 14 Master output slave input (MOSI) and Master input slave output (MISO)  MOSI when the SCLK is sent from the sender to the receiver and slave is forced to synchronize sent inputs from the master as per the inputs from master clock.  MISO when the SCLK is sent to the sender (slave) from the receiver (master) and slave is forced to synchronize for sending the inputs to master as per the master clock outputs.  Synchronous serial input is used for inter- processor transfers, audio inputs and streaming data inputs.
  • 15. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 15 Synchronous Serial Output Device (Device Serial Bits and synchronisation clock signal at a port output)
  • 16. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 16 Example Synchronous Serial Output  Inter-processor data transfer, multiprocessor communication, writing to CD or hard disk, audio Input/output, video Input/output, dialer output, network device output, remote TV Control, transceiver output, and serial I/O bus output or writing to flash memory using SDIO
  • 17. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 17 Synchronous Serial Output  Each bit in each byte sent in synchronization with a clock.  Bytes sent at constant rates. If clock period = T, then data transfer rate is (1/T) bps.  Sender either sends the clock pulses at SCLK pin or sends the serial data output and clock pulse-input through same output line with clock pulses either suitably modulate or encode the serial output bits.
  • 18. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 18 Synchronous serial output using shift register  The processing element at the port (peripheral) sends the byte through a shift register at the port to where the microprocessor writes the byte.  Synchronous serial output is used for inter- processor transfers, audio outputs and streaming data outputs.
  • 19. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 19 Synchronous Serial Input/Output
  • 20. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 20 Synchronous Serial Input/Output  Each bit in each byte is in synchronization at input and each bit in each byte is in synchronization at output with the master clock output .  The bytes are sent or received at constant rates. The I/Os can also be on same I/O line when input/output clock pulses either suitably modulate or encode the serial input/output, respectively. If clock period = T, then data transfer rate is (1/T) bps.  The processing element at the port (peripheral) sends and receives the byte at a port register to or from where the microprocessor writes or reads the byte
  • 21. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 21 Asynchronous Serial input RxD at UART COM Port
  • 22. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 22 Asynchronous Serial port line RxD (receive data).  Does not receive the clock pulses or clock information along with the bits.  Each bit is received in each byte at fixed intervals but each received byte is not in synchronization.  Bytes separate by the variable intervals or phase differences  Asynchronous serial input also called UART input if serial input is according to UART protocol
  • 23. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 23 Example Serial Asynchronous Input  Asynchronous serial input is used for keypad inputs and modem inputs in computers  Keypad controller serial data-in, mice, keyboard controller, modem input, character send inputs on serial line [also called UART (universal receiver and transmitter) input when according to UART mode]
  • 24. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 24 Format of bits at UART protocol
  • 25. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 25 UART protocol serial line format  Starting point of receiving the bits for each byte is indicated by a line transition from 1 to 0 for a period = T. [T1 called baud rate.]  If sender’s shift-clock period = T, then a byte at the port is received at input in period = 10.T or 11.T due to use of additional bits at start and end of each byte.
  • 26. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 26 UART protocol serial line format  Receiver detects n bits at the intervals of T from the middle of the start indicating bit. The n = 0, 1, …, 10 or 11 and finds whether the data-input is 1 or 0 and saves the bits in an 8-bit shift register.  Processing element at the port (peripheral) saves the byte at a port register from where the microprocessor reads the byte.
  • 27. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 27 Asynchronous Serial Output  Asynchronous output serial port line TxD (transmit data).  Each bit in each byte transmit at fixed intervals but each output byte is not in synchronization (separates by a variable interval or phase difference). Minimum separation is 1 stop bit interval
  • 28. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 28 TxD  Does not send the clock pulses along with the bits.  Sender transmits the bytes at the minimum intervals of n.T. Bits receiving starts from the middle of the start indicating bit,  n = 0, 1, …, 10 or 11 and sender sends the bits through a 10 or 11 -bit shift register.
  • 29. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 29 TxD  The processing element at the port (peripheral) sends the byte at a port register to where the microprocessor is to write the byte.  Synchronous serial output is also called UART output if serial output is according to UART protocol
  • 30. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 30 Example Serial Asynchronous Output  Output from modem, output for printer, the output on a serial line [also called UART output when according to UART]
  • 31. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 31 Half Duplex  Half duplex means as follows: at an instant communication can only be one way (input or output) on a bi-directional line.  An example of half-duplex mode─ telephone communication. On one telephone line, the talk can only in the half- duplex way mode.
  • 32. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 32 Full Duplex  Full duplex means that at an instant, the communication can be both ways. An example of the full duplex asynchronous mode of communication is the communication between the modem and the computer though TxD and RxD lines or communication using SI in modes 1, 2 and 3 in 8051
  • 33. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 33 Parallel Port single bit input  Completion of a revolution of a wheel,  Achieving preset pressure in a boiler,  Exceeding the upper limit of permitted weight over the pan of an electronic balance,  Presence of a magnetic piece in the vicinity of or within reach of a robot arm to its end point and  Filling of a liquid up to a fixed level.
  • 34. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 34 Parallel Port Output- single bit  PWM output for a DAC, which controls liquid level, or temperature, or pressure, or speed or angular position of a rotating shaft or a linear displacement of an object or a d.c. motor control  Pulses to an external circuit  Control signal to an external circuit
  • 35. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 35 Parallel Port Input- multi-bit  ADC input from liquid level measuring sensor or temperature sensor or pressure sensor or speed sensor or d.c. motor rpm sensor  Encoder inputs for bits for angular position of a rotating shaft or a linear displacement of an object
  • 36. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 36 Parallel Port Output- multi-bit  LCD controller for Multilane LCD display matrix unit in a cellular phone to display on the screen the phone number, time, messages, character outputs or pictogram bit-images for display screen or e-mail or web page  Print controller output  Stepper-motor coil driving bits
  • 37. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 37 Parallel Port Input-Output  PPI 8255  Touch screen in mobile phone
  • 38. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 38 Summary
  • 39. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 39 We learnt  Port definition  Port examples  Ports in embedded system connects to external processors, controllers or devices like keypad, multi-line display unit, printer or modem  A serial or parallel I/O port connects and accessed from and to the system-processor through the system buses and address decoder.
  • 40. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 40 We learnt  Synchronous serial inputs and outputs  Synchronization Clock, MOSI, MISO  Clock on separate line or encoded or clock signal modulated or encoded with I/O bits.
  • 41. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 41 We learnt  Asynchronous serial inputs and outputs  RxD and TxD and UART protocol format asynchronous IOs  full duplex or half-duplex  Examples of serial and parallel IOs  Examples of single bit and multi-bit IOs at parallel ports
  • 42. 2015 Chapter-5 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill Education 42 End of Lesson 1 of Chapter 5 on IO port types- Serial and parallel IO ports