SlideShare a Scribd company logo
1 of 30
IO PORTS
Session 4
SURYAPRAKASH S
suryaprakash.vsm@gmail.com
The resource for the PPT is made from variety of Books and online
PPT that were available in Internet. The Purpose of the PPT is made
for the Classroom Teaching.
Agenda
• IO PORT TYPES AND EXAMPLES
12-02-2019 suryaprakash.vsm@gmail.com 2
I/O Ports
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
to send the bytes to external peripheral or device
or processor using instructions executed on
processor
A Port connects to the processor using address
decoder and system buses
The processor uses the addresses of the port-
registers for programming the port functions or
modes, reading port status and for writing or
reading bytes.
I/O Ports
Example
• 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
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.
TYPES OF PARALLEL PORTS
Parallel port one
bit Input
Parallel one bit
output
Parallel Port
multi-bit Input
Parallel Port
multi-bit Output
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)
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]
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.
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.
Synchronous Serial Output Device (Device Serial Bits
and synchronisation clock signal at a port output)
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
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.
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.
Synchronous Serial Input/Output
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/O’s 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
Asynchronous Serial input RxD at UART COM
Port
Asynchronous Serial port line D 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
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]
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.
• 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.
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
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.
• 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
Example Serial Asynchronous Output
• Output from modem, output for printer, the output on a serial line
[also called UART output when according to UART]
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.
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
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.
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
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
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
Parallel Port Input- - Output
• PPI 8255
• Touch screen in mobile phone
2/12/2019 suryaprakash.vsm@gmail.com 30
This Photo by Unknown Author is licensed under CC BY-NC-ND
Learn by Doing
Excel Thru Experimentation
Lead by Example
Acquire skills and get employed
Update skills and stay employed

More Related Content

What's hot

Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IOT Academy
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded SystemsSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded SystemsArti Parab Academics
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptxAltafKaroshi
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Timer programming for 8051 using embedded c
Timer programming for 8051 using embedded cTimer programming for 8051 using embedded c
Timer programming for 8051 using embedded cVikas Dongre
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LEDTaha Malampatti
 
Power consumption
Power consumptionPower consumption
Power consumptionsdpable
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1SARALA T
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESDr.YNM
 
8051 Timers / Counters
8051 Timers / Counters8051 Timers / Counters
8051 Timers / CountersPatricio Lima
 

What's hot (20)

Arm processor
Arm processorArm processor
Arm processor
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded SystemsSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
Embedded C - Lecture 1
Embedded C - Lecture 1Embedded C - Lecture 1
Embedded C - Lecture 1
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptx
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Timer programming for 8051 using embedded c
Timer programming for 8051 using embedded cTimer programming for 8051 using embedded c
Timer programming for 8051 using embedded c
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LED
 
I o ports.ppt
I o ports.pptI o ports.ppt
I o ports.ppt
 
8254 PIT
8254 PIT8254 PIT
8254 PIT
 
Power consumption
Power consumptionPower consumption
Power consumption
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1
 
Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
8051 Timers / Counters
8051 Timers / Counters8051 Timers / Counters
8051 Timers / Counters
 
Lcd
LcdLcd
Lcd
 

Similar to Class 4 I/O Ports (20)

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
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
 
Interface
InterfaceInterface
Interface
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Peripheral devices
Peripheral devicesPeripheral devices
Peripheral devices
 
UART
UARTUART
UART
 
Input Output Interfaces
Input Output InterfacesInput Output Interfaces
Input Output Interfaces
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART
8251 USART8251 USART
8251 USART
 
Pci
PciPci
Pci
 
Usart 8251
Usart 8251Usart 8251
Usart 8251
 
io orgnz.ppt
io orgnz.pptio orgnz.ppt
io orgnz.ppt
 

More from SURYAPRAKASH S

Class 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setClass 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setSURYAPRAKASH S
 
Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsSURYAPRAKASH S
 
Class 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformClass 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformSURYAPRAKASH S
 
Class 2 categories of processor
Class 2 categories of processorClass 2 categories of processor
Class 2 categories of processorSURYAPRAKASH S
 
Class 1 introduction to embedded systems
Class 1 introduction to embedded systemsClass 1 introduction to embedded systems
Class 1 introduction to embedded systemsSURYAPRAKASH S
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and DevelopmentSURYAPRAKASH S
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated systemSURYAPRAKASH S
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlSURYAPRAKASH S
 

More from SURYAPRAKASH S (10)

Class 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction setClass 7 an 8 bit embedded platform -instruction set
Class 7 an 8 bit embedded platform -instruction set
 
Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basics
 
Class 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformClass 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platform
 
Class 3 Memory types
Class 3 Memory typesClass 3 Memory types
Class 3 Memory types
 
Class 2 categories of processor
Class 2 categories of processorClass 2 categories of processor
Class 2 categories of processor
 
Class 1 introduction to embedded systems
Class 1 introduction to embedded systemsClass 1 introduction to embedded systems
Class 1 introduction to embedded systems
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and Development
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated system
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical Control
 
Canbus
CanbusCanbus
Canbus
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
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
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 

Recently uploaded (20)

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
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
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 

Class 4 I/O Ports

  • 1. IO PORTS Session 4 SURYAPRAKASH S suryaprakash.vsm@gmail.com The resource for the PPT is made from variety of Books and online PPT that were available in Internet. The Purpose of the PPT is made for the Classroom Teaching.
  • 2. Agenda • IO PORT TYPES AND EXAMPLES 12-02-2019 suryaprakash.vsm@gmail.com 2
  • 3. I/O Ports 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 to send the bytes to external peripheral or device or processor using instructions executed on processor
  • 4. A Port connects to the processor using address decoder and system buses The processor uses the addresses of the port- registers for programming the port functions or modes, reading port status and for writing or reading bytes. I/O Ports
  • 5. Example • 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
  • 6. 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.
  • 7. TYPES OF PARALLEL PORTS Parallel port one bit Input Parallel one bit output Parallel Port multi-bit Input Parallel Port multi-bit Output
  • 8. 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)
  • 9. 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]
  • 10. 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.
  • 11. 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.
  • 12. Synchronous Serial Output Device (Device Serial Bits and synchronisation clock signal at a port output) 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
  • 13. 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.
  • 14. 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.
  • 16. 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/O’s 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
  • 17. Asynchronous Serial input RxD at UART COM Port
  • 18. Asynchronous Serial port line D 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
  • 19. 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]
  • 20. 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. • 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.
  • 21. 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
  • 22. 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. • 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
  • 23. Example Serial Asynchronous Output • Output from modem, output for printer, the output on a serial line [also called UART output when according to UART]
  • 24. 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. 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
  • 25. 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.
  • 26. 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
  • 27. 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
  • 28. 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
  • 29. Parallel Port Input- - Output • PPI 8255 • Touch screen in mobile phone
  • 30. 2/12/2019 suryaprakash.vsm@gmail.com 30 This Photo by Unknown Author is licensed under CC BY-NC-ND Learn by Doing Excel Thru Experimentation Lead by Example Acquire skills and get employed Update skills and stay employed