University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
I/O Interfaces.
©annax1 PC-technology Keyboard Graphics Interface cards.
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
Motherboard Further Information Click on the image for details about each component.
Interfacing. This Week In DIG II  Basic communications terminology  Communications protocols  Microprocessor interfacing: I/O addressing  Port and.
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
EET Advanced Digital Parallel Ports. n In contrast to serial ports, parallel ports ‘present’ all bits at one time. n ‘The parallel port reflects.
Chapter 10 Supporting I/O Devices. You Will Learn…  How to install peripheral I/O devices  How to use ports and expansion slots for add- on devices.
1 PC Peripherals for Technicians PC Peripherals for Technicians Chapter Chapter Interfaces: Parallel Port Systems Manufacturing Training.
EE 316 Computer Engineering Junior Lab Lecture on PC Parallel port.
Practical Session No. 10 Input &Output (I/O). I/O Devices Input/output (I/O) devices provide the means to interact with the “outside world”. An I/O device.
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
RS232 Serial and Parallel Interfaces
3/17 Parallel and Serial Ports. Roll Call Lecture: –ports –serial ports –parallel ports –USB ports Group Project Information - Handout.
Parallel Ports of PC Methods of interfacing Examples.
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
CHAPTER 10 Keyboard and Printer Interfacing. Matrix Keyboard.
Identification And Function
Chapter 2 How Computers Work.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Computer Maintenance Introduction to PCs: How Computers Work 1 Copyright © Texas Education Agency, All rights reserved.
1 Chapter Overview Understanding Expansion Buses Configuring Expansion Cards Cables and Connectors.
E0001 Computers in Engineering1 The System Unit & Memory.
… but what parts does it have and how do they work? A computer looks like this...
Organization of a computer: The motherboard and its components.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
The Computer Systems. Computer System CPU Is the brain of the PC. All program instructions are run through the CPU Control Unit This decodes and executes.
COSC 456 Lesson 19: Laboratory 5 IBM PC Interfacing The parallel port is a 25-pin DB-25 (D-shaped) connector accessible from the back of the PC The expansion.
University of Tehran 1 Interface Design Compute Memory Timing Omid Fatemi
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
Itr3 lecture 3: the motherboard Thomas Krichel
I T Essentials I Chapter 1 JEOPARDY HardwareConnector/CablesMemoryAcronymsPotpourri
MICROPROCESSOR AND MICRO CONTROLLER
Practical Session 11 Computer Architecture and Assembly Language Input &Output (I/O)
ECE291 Computer Engineering II Lecture 12 Josh Potts University of Illinois at Urbana- Champaign.
Buses All devices in the computer are connected to the External Data Bus Extension to External Data Bus called Expansion Bus –Used for devices that might.
8086 Microprocessor Interrupts By: Vijay Kumar. K Reference From Slide Share.
COMP 1321 Digital Infrastructure
SET 21 OPERATING SYSTEM USE OF ASSEMBLY LANGUAGE.
Computer Hardware. What is Hardware? Hardware is any part of a computer you can touch There are 2 categories: Inside the computer Peripherals connected.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
PPI-8255.
Basic LED Interface.
KEYBOARD INTERFACING Keyboards are organized in a matrix of rows and columns The CPU accesses both rows and columns through ports. ƒTherefore, with two.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Introduction to PCs: How Computers Work
Practical Session 12 Input &Output (I/O). I/O Device Input / Output (I/O) devices Input / Output (I/O) devices provide the means to interact with the.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
KAASHIV INFOTECH – A SOFTWARE CUM RESEARCH COMPANY IN ELECTRONICS, ELECTRICAL, CIVIL AND MECHANICAL AREAS
Practical Session 11 Computer Architecture and Assembly Language Input &Output (I/O)
8255 Programmable Peripheral Interface
Chapter 6 Input/Output Organization
COMP 1321 Digital Infrastructure
Dr. Rabie A. Ramadan Al-Azhar University Lecture 5
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
C_ITCO011/C_ITCO111 LECTURER: E.DONDO
IRQ, DMA and I/O Ports - Introduction -
Physics 413 Chapter 10.
Chapter Overview Understanding Expansion Buses
Identification And Function
The centronics port Interfacing to a PC.
82C55 Programmable Peripheral Interface
8255 – PROGRAMMABLE PARALLEL
8255 – PROGRAMMABLE PARALLEL
Presentation transcript:

University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi

University of Tehran 2 Typical Interface Design Connect ComputeConveyCooperate Sense Reality Touch Reality Connect Transform Embedded Systems Micros Assembler, C Real-Time Memory Peripherals Timers DMA PC interfaces HCI Busses Protocols Standards PCI IEEE488 SCSI USB & FireWire CAN

University of Tehran 3 Outline Keyboard design Key detection Keyboard buffer Centronics printer interface IO printer ports Parallel port types Interfacing LPT ports to various devices

University of Tehran 4 Keyboard Layout Linear layout –N input ports for N keys Matrix layout –2N ports (N input and N output) for N^2 keys

University of Tehran 5 Scanning and Identifying Micro controller Rows to output ports Columns to input ports Grounding rows Reading the columns Grounding one row Reading the columns

University of Tehran 6 Detection Algorithm

University of Tehran 7 Assembly Code

University of Tehran 8 PC Keyboard Micro controller (8042) –Microprocessor, RAM, EPROM, I/O ports Detection by 8042 Scan code assign Serial communication to motherboard –One start bit (0) –8 bits for scan code –Odd-parity bit –One stop bit (1) 74LS322 (serial-in-parallel-out SR) in motherboard to port A of 8255 (port 60H) In AT and later PCs another 8042 in motherboard

University of Tehran 9 PC Scan Codes Make (0-7FH and break (plus 80H)

University of Tehran 10 Advanced Scan Codes

University of Tehran 11 Status Bytes 0040:0017 H (first) 0040:0018 H (second)

University of Tehran 12 Printer Printer and Printer Interfacing

University of Tehran 13 Centronics printer interface 36-pin Grounds to reduce electrical noise (signal has its own ground return) Data lines Printer status signals Printer control signals Ground signals

University of Tehran 14 Pin Layout

University of Tehran 15

University of Tehran 16 Printer Connector

University of Tehran 17 Printer-PC Communication PC checks busy If not busy, PC puts 8-bit data PC activates #STROBE (.5 micro) Data must stay (.5 micro after STROBE) Printer assert busy After reading data printer asserts #ACKNLG (5 micro) De-assert busy

University of Tehran 18 I/O Base Address for LPT -d 0040:0008 LPT: 03BC, 0378, I/O ports –– LPT data lines –– LPT status lines –– LPT control lines

University of Tehran 19 Printer’s Ports

University of Tehran 20 BIOS: INT 17H AH=0 –Print a character –AL: ASCII –DX: LPT number –AH returns status AH=1 –Initialize AH=2 –Get the status Printer time out? –20 seconds (-d 0040:0078)

University of Tehran 21 Special Characters

University of Tehran 22 Inner Working of INT 17

University of Tehran 23 Printer Timing

University of Tehran 24 Buffering Ports

University of Tehran 25 Using Parallel Ports

University of Tehran 26 Stepper Motor

University of Tehran 27 Selected Problems 5, 6, 8 22, 28, 32, 43

University of Tehran 28 Summary