SlideShare a Scribd company logo
INPUT/OUTPUT INTERFACES
By
D.Darling Jemima.
Introduction
Embedded Systems talk with the outside world
via peripherals, such as:
• Keyboard
• Displays
• Touch screen
• Discrete IO: General Purpose
Input/Output (GPIO)
• Analog to Digital/Digital to Analog Converters
(ADC/DAC)
Automatic Chocolate Vending Machine
(ACVM)
Automatic Chocolate Vending Machine
(ACVM)
Digital Camera
Digital Camera
Keyboard Interface
Interfacing to a keyboard using
keyboard controller
Contd…
• Two signals generated by the keyboard controller are
– KBINT(Keyboard interrupt)
– TxD (Transmit Data)
• KBINT is the interrupt from the keyboard controller.
• TxRDY is the transmit buffer ready interrupt that has
been sent from controller to the process.
• RxRDY sends the acknowledgement of the interrupt.
Debouncer
• Bounces create on pressing─ Each bounce creates
a false pulse.
• Keyboard controller has hardware debouncer to
the care of bouncing of a key.
Scan Clock
• Keyboard controller has counter driven by a scan
clock, which continuously increments at certain
rate and scans each key whether that is in
pressed or released state.
keyboard
Encoder
• To encode the keyboard output for a ROM.
• ROM generates the ASCII code output for the
pressed key.
• The code accounts the multiple keys
simultaneously pressed.
• Example, Shift key is also pressed then
generate the code for upper case character.
LCD Display
Interfacing to a LCD display controller
LCD controller ─ A processing element
(single purpose processor)
• 3 bits for E, RS and R/W
• 8 output data.
• One 8-bit port is used for output data for
display.
• Another port is used for 3 bits.
Contd…
• Processing element generates all required signals
for LCD matrix displays (multi-lane).
• Interfaces Eight-bit parallel output port B pins
PB0-PB7, which sends commands for
programming the controller and send data for
display.
• Three control signals IO PC0-PC2 as inputs to LCD
controller.
• PB0 to PB7 8 input/output bits for parallel set of
8 IO bits for commands and data
Control bits
• LCD controller is sent control words and data
words for initialization and programming by
setting the PB0-PB7, PC0 and PC1 outputs for
each word to LCD controller.
Register Select Control bit
• One bit PC0 at an output port for RS(register
select).
• When RS is reset as 0, the PB0-PB7
communicates a control word to control
register of the LCD controller.
• When RS is set as 1, the PB0-PB7
communicates data to LCD controller
R/W (read/write) Control bit
• One bit PC1 at an output port
• Set to 1 when status register of LCD controller
is read using PB0-PB7.
• PC1 is reset to 0 when write into LCD
controller using PB0-PB7 bits.
Enable Control bit
• After setting R/W, RS and data-bits the LCD
controller enables
• Enables by setting 1 at E pin.
• LCD controller connects to one bit PC2 at an
output port for E (enable). There is an interval
depending on the LCD controller, the controller is
disabled. This is because during this interval, the
LCD controller cannot accept instructions or data
through output of other port pins.
CGRAM
• M displayed character ROM addresses.
• M = 128 for 128 ASCII codes.
• For Each distinct ASCII character, there is 64-
bit graphic.
• LCD controller has internal CGRAM (Character
graphic RAM).
• For each ASCII character, 8 bytes are sent from
the ROM to the CGRAM.
Digital Analog Converter
DAC Using a DAC external chip
DAC
• DAC─ PWM(Pulse width modulator) circuit
and an integrator.
• PWM─ internal device in a microcontroller
• A pulse width register (PWR) is programmed
according to a required analog output.
PWM functioning
• A counter/timer device, which generates two
internal- interrupts one on timer overflow and
another after an interval proportional to equal
to PWR.
• On first interrupt, the output becomes 1 and
on second interrupt it becomes 0.
Integrator
• Generates the analog output as per the period
of output = 1 (period between first and
interrupts) compared to total period of output
pulses (period between successive first
interrupts).
Analog Digital Converter
ADC
• Start of conversion pulse generator circuit,
• A sample hold amplifier circuit to hold the
signal constant for the conversion period and
signal conditioner
• Voltage references + and − for providing the
reference for conversion of analog input
ADC Using ADC external chip
Thank you

More Related Content

What's hot (20)

Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control Bus
 
UART
UARTUART
UART
 
RISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set ComputingRISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set Computing
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
8259 Operating Modes.pptx
8259 Operating Modes.pptx8259 Operating Modes.pptx
8259 Operating Modes.pptx
 
hardwired control unit ppt
hardwired control unit ppthardwired control unit ppt
hardwired control unit ppt
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
3 STM32's ADC.ppt
3 STM32's ADC.ppt3 STM32's ADC.ppt
3 STM32's ADC.ppt
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Mips
MipsMips
Mips
 
Uart
UartUart
Uart
 
DRAM
DRAMDRAM
DRAM
 
Interrupt
InterruptInterrupt
Interrupt
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 

Viewers also liked

Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devicesmrbennett2009
 
Computer Systems
Computer SystemsComputer Systems
Computer Systemscorb201
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output ArchitectureNew Era University
 
Overview of computer system
Overview of computer systemOverview of computer system
Overview of computer systemrozanadiana
 
Input, Output and Storage Devices
Input, Output and Storage DevicesInput, Output and Storage Devices
Input, Output and Storage Devicesguest30320a
 
Computer Systems - Input, Process, Output
Computer Systems - Input, Process, OutputComputer Systems - Input, Process, Output
Computer Systems - Input, Process, Outputcorb201
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer systemmkhisalg
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. pptNaveen Sihag
 
Introduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationIntroduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationAna Tan
 
Computer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show PresentationComputer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show Presentationsluget
 
Waves (Notes 1) - CP Physics
Waves (Notes 1) - CP PhysicsWaves (Notes 1) - CP Physics
Waves (Notes 1) - CP Physicskharrison11
 
Make Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted CompanyMake Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted CompanyAnnabel Brown
 
10 tips to write engaging facebook posts
10 tips to write engaging facebook posts10 tips to write engaging facebook posts
10 tips to write engaging facebook postsDigital Marketing
 
Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)Felipe Hiago
 
Connecting the dots - SALTISE 2015
Connecting the dots   - SALTISE 2015Connecting the dots   - SALTISE 2015
Connecting the dots - SALTISE 2015drlautman
 
Inscription v. Description
Inscription v. DescriptionInscription v. Description
Inscription v. Descriptionpamlanza
 
makusp
makuspmakusp
makuspmakusp
 

Viewers also liked (20)

computer system
computer system computer system
computer system
 
P.jeet ppt
P.jeet pptP.jeet ppt
P.jeet ppt
 
Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devices
 
Interface
InterfaceInterface
Interface
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output Architecture
 
Overview of computer system
Overview of computer systemOverview of computer system
Overview of computer system
 
Input, Output and Storage Devices
Input, Output and Storage DevicesInput, Output and Storage Devices
Input, Output and Storage Devices
 
Computer Systems - Input, Process, Output
Computer Systems - Input, Process, OutputComputer Systems - Input, Process, Output
Computer Systems - Input, Process, Output
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
 
Introduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationIntroduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts Presentation
 
Computer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show PresentationComputer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show Presentation
 
Waves (Notes 1) - CP Physics
Waves (Notes 1) - CP PhysicsWaves (Notes 1) - CP Physics
Waves (Notes 1) - CP Physics
 
Make Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted CompanyMake Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted Company
 
10 tips to write engaging facebook posts
10 tips to write engaging facebook posts10 tips to write engaging facebook posts
10 tips to write engaging facebook posts
 
Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)
 
Connecting the dots - SALTISE 2015
Connecting the dots   - SALTISE 2015Connecting the dots   - SALTISE 2015
Connecting the dots - SALTISE 2015
 
Inscription v. Description
Inscription v. DescriptionInscription v. Description
Inscription v. Description
 
makusp
makuspmakusp
makusp
 

Similar to Input Output Interfaces

Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandotascmandota
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 
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 communicationsinaankhalil
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converterMohamed Ali
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
TMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCUTMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCUPremier Farnell
 
microcontroller board ppt
microcontroller board pptmicrocontroller board ppt
microcontroller board pptshashank tiwari
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docxmercysuttle
 
MICROCONTROLLER.pptx
MICROCONTROLLER.pptxMICROCONTROLLER.pptx
MICROCONTROLLER.pptxfiqrie mohd
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and RoboticsNIT Raipur
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advancedImran Sheikh
 
39245203 intro-es-iv
39245203 intro-es-iv39245203 intro-es-iv
39245203 intro-es-ivEmbeddedbvp
 

Similar to Input Output Interfaces (20)

ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
tCh12.ppt
tCh12.ppttCh12.ppt
tCh12.ppt
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
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
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
 
Assembler4
Assembler4Assembler4
Assembler4
 
Atmega16
Atmega16Atmega16
Atmega16
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
TMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCUTMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCU
 
microcontroller board ppt
microcontroller board pptmicrocontroller board ppt
microcontroller board ppt
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O Ports
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
 
MICROCONTROLLER.pptx
MICROCONTROLLER.pptxMICROCONTROLLER.pptx
MICROCONTROLLER.pptx
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 
39245203 intro-es-iv
39245203 intro-es-iv39245203 intro-es-iv
39245203 intro-es-iv
 

More from Darling Jemima

Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
Secure group key management based on hyper-sphere
Secure group key management based on hyper-sphereSecure group key management based on hyper-sphere
Secure group key management based on hyper-sphereDarling Jemima
 
Application of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planningApplication of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planningDarling Jemima
 

More from Darling Jemima (6)

Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
Never GIve up
Never GIve upNever GIve up
Never GIve up
 
Secure group key management based on hyper-sphere
Secure group key management based on hyper-sphereSecure group key management based on hyper-sphere
Secure group key management based on hyper-sphere
 
Rope
RopeRope
Rope
 
Application of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planningApplication of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planning
 
Golden bells
Golden bellsGolden bells
Golden bells
 

Recently uploaded

Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfKamal Acharya
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdfKamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineJulioCesarSalazarHer1
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptxfaamieahmd
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturingssuser0811ec
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringDr. Radhey Shyam
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdfKamal Acharya
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfKamal Acharya
 

Recently uploaded (20)

Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptx
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturing
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 

Input Output Interfaces

  • 2. Introduction Embedded Systems talk with the outside world via peripherals, such as: • Keyboard • Displays • Touch screen • Discrete IO: General Purpose Input/Output (GPIO) • Analog to Digital/Digital to Analog Converters (ADC/DAC)
  • 8. Interfacing to a keyboard using keyboard controller
  • 9. Contd… • Two signals generated by the keyboard controller are – KBINT(Keyboard interrupt) – TxD (Transmit Data) • KBINT is the interrupt from the keyboard controller. • TxRDY is the transmit buffer ready interrupt that has been sent from controller to the process. • RxRDY sends the acknowledgement of the interrupt.
  • 10. Debouncer • Bounces create on pressing─ Each bounce creates a false pulse. • Keyboard controller has hardware debouncer to the care of bouncing of a key. Scan Clock • Keyboard controller has counter driven by a scan clock, which continuously increments at certain rate and scans each key whether that is in pressed or released state. keyboard
  • 11. Encoder • To encode the keyboard output for a ROM. • ROM generates the ASCII code output for the pressed key. • The code accounts the multiple keys simultaneously pressed. • Example, Shift key is also pressed then generate the code for upper case character.
  • 13. Interfacing to a LCD display controller
  • 14. LCD controller ─ A processing element (single purpose processor) • 3 bits for E, RS and R/W • 8 output data. • One 8-bit port is used for output data for display. • Another port is used for 3 bits.
  • 15. Contd… • Processing element generates all required signals for LCD matrix displays (multi-lane). • Interfaces Eight-bit parallel output port B pins PB0-PB7, which sends commands for programming the controller and send data for display. • Three control signals IO PC0-PC2 as inputs to LCD controller. • PB0 to PB7 8 input/output bits for parallel set of 8 IO bits for commands and data
  • 16. Control bits • LCD controller is sent control words and data words for initialization and programming by setting the PB0-PB7, PC0 and PC1 outputs for each word to LCD controller.
  • 17. Register Select Control bit • One bit PC0 at an output port for RS(register select). • When RS is reset as 0, the PB0-PB7 communicates a control word to control register of the LCD controller. • When RS is set as 1, the PB0-PB7 communicates data to LCD controller
  • 18. R/W (read/write) Control bit • One bit PC1 at an output port • Set to 1 when status register of LCD controller is read using PB0-PB7. • PC1 is reset to 0 when write into LCD controller using PB0-PB7 bits.
  • 19. Enable Control bit • After setting R/W, RS and data-bits the LCD controller enables • Enables by setting 1 at E pin. • LCD controller connects to one bit PC2 at an output port for E (enable). There is an interval depending on the LCD controller, the controller is disabled. This is because during this interval, the LCD controller cannot accept instructions or data through output of other port pins.
  • 20. CGRAM • M displayed character ROM addresses. • M = 128 for 128 ASCII codes. • For Each distinct ASCII character, there is 64- bit graphic. • LCD controller has internal CGRAM (Character graphic RAM). • For each ASCII character, 8 bytes are sent from the ROM to the CGRAM.
  • 22. DAC Using a DAC external chip
  • 23. DAC • DAC─ PWM(Pulse width modulator) circuit and an integrator. • PWM─ internal device in a microcontroller • A pulse width register (PWR) is programmed according to a required analog output.
  • 24. PWM functioning • A counter/timer device, which generates two internal- interrupts one on timer overflow and another after an interval proportional to equal to PWR. • On first interrupt, the output becomes 1 and on second interrupt it becomes 0.
  • 25. Integrator • Generates the analog output as per the period of output = 1 (period between first and interrupts) compared to total period of output pulses (period between successive first interrupts).
  • 27. ADC • Start of conversion pulse generator circuit, • A sample hold amplifier circuit to hold the signal constant for the conversion period and signal conditioner • Voltage references + and − for providing the reference for conversion of analog input
  • 28. ADC Using ADC external chip