Computer Organization (Keyboard & Display Control, and Printers)

Similar documents
Topics. Interfacing chips

ASSIGNMENT The ASCII decimal value 66 represents which of the following characters?

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

UNIT - II PERIPHERAL INTERFACING WITH 8085

9. PERIPHERAL CHIPS 9a

Computer Concepts and C Programming. Unit I 06CCP13

Ink Jet Printers The most common type of computer printer for the consumer market An ink jet printer places an image onto a piece of paper by

Input output and memory devices

Sir Sadiq s computer notes for class IX. Chapter no 3. Input/Output Devices

Printers and Scanners

Computer Organization (Input-output)

Input and Output Devices.

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

Darshan Institute of Engineering & Technology for Diploma Studies

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on PIO 8255 (Programmable Input Output Port).

INPUT-OUTPUT ORGANIZATION

Unit-IV Peripheral Interfacing S.Sayeekumar, AP/RMDEEE

A+ Certification Guide. Chapter 11 Printers

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

Question Bank Microprocessor and Microcontroller

INTRODUCTION. Mechanical Considerations APPLICATION NOTE Z86E21 THERMAL PRINTER CONTROLLER ZILOG

Chapter 8: Input and Output. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V.

Computer Organization

Microprocessors and Microcontrollers (EE-231)

Blog -

Working principle of Membrane Key switch. It is a multi-layer plastic or rubber assembly.

Chapter 7 : Input-Output Organization

CS1101: Lecture 18. Computer Systems Organization: Input/Output. Lecture Outline. Mice. Dot-Matrix Printers. Mice

UNIT-3 PC HARDWARE OVERVIEW PART A

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

4 Multiplexer. Y Fig Keyboard Scan Matrix

Module- 6 I/O Organization and Peripherals

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

The D igital Digital Logic Level Chapter 3 1

EEM336 Microprocessors I. I/O Interface

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

Unit 5. Memory and I/O System

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

The Purpose of Interrupt

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

Input and Output Devices

Organisasi Sistem Komputer

Padasalai.net- Higher Secondary first Year. Quarterly exam answer key-2018 Max Marks : 70

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

82C55. Programmable Peripheral Interface. Interfacing Part III

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

MCQ From PICT College of Engineering

ELE4. ELECTRONICS Unit 4 Electronic Control Systems. General Certificate of Education June 2005 Advanced Level Examination

Computer Architecture CS 355 Busses & I/O System

EC6504-MP&MC, UNIT3 Page 1

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

Q1. Briefly describe the characteristic features of input and output devices of a computer system.

5. a computer which CPU speed around 100 million instruction per second and with the word length of around 64 bits is known as

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1

I/O Organization John D. Carpinelli, All Rights Reserved 1

Computer Organization ECE514. Chapter 5 Input/Output (9hrs)

Ch 4. Standard Single Purpose Processors: Peripherals

Input and output Systems. Peter Rounce - room G06

1. Internal Architecture of 8085 Microprocessor

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Course Description: This course includes concepts of instruction set architecture,

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

INTERFACING THE ISCC TO THE AND 8086

PART B UNIT II PART A

CHAPTER: 3 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING

ELECTRONICS Unit 4 Electronic Control Systems

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

Architecture of 8085 microprocessor

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Microprocessors/Microcontrollers

HANDLING MULTIPLE DEVICES

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

INTRO TO I/O INTERFACE

What is Output? p Fig. 6-1 Next

INTRODUCTION TO COMPUTERS

Chapter 11: Printers. IT Essentials v6.0. ITE v6.0 1

8086 Interrupts and Interrupt Responses:

Chapter 1. Computer Fundamentals-I

Microcomputer Architecture and Programming

Pin Description, Status & Control Signals of 8085 Microprocessor

Memory & Simple I/O Interfacing

Introduction Page 1. Power Supply Requirements & Hardware Options Page 2. External Connectors (Functions & Pinouts) Page 2

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64.

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Microcontroller basics


Week 7. Input/Output Interface Circuits and LSI Peripheral Devices

Interconnecting Components

Basic Computer Hardware Notes in PDF

Model Answer paper Guru Ghasidas Vishwavidyalaya (Bilaspur ) B.COM(Third Semester) Examination, 2014 Fundamentals of Computers Paper Code: BC-307

Asynchronous Data Transfer In Computer >>>CLICK HERE<<<

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

Transcription:

Computer Organization (Keyboard & Display Control, and Printers) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com Website:krchowdhary.com Department of Computer Science and Engineering MBM Engineering College, Jodhpur November 15, 2013 kr chowdhary Keyboard & Display Control, Printers 1/ 24

Printing history 1. Printing press 1454 2. Lithography 1796 3. Chromolithography 1837 4. Rotary press 1843 5. Flexography 1873 6. Mimeograph 1876 7. Hot metal typesetting 1886 8. Offset press 1903 9. Screen-printing 1907 10. Dye-sublimation 1957 11. Phototypesetting 1960s 12. Photocopier 1960s 13. Pad printing 1960s 14. Dot matrix printer 1964 15. Laser printer 1969 16. Thermal printer 1970s 17. Inkjet printer 1976 18. 3D printing 1986 19. Stereolithography 1986 20. Digital press 1993 kr chowdhary Keyboard & Display Control, Printers 2/ 24

Classification All printers have three main components: printing mechanism itself, paper feed mechanism, and the control and interface electronics. 1. Impact Printers Line printers 1. Dot matrix: Comb, Multihead 2. Engraved: Drum, Band, Belt Character printers 1. Dot matrix: 9-pin, 24-pin 2. Engraved: Teletype, Daisy wheel 2. Non-impact printers 1. Inkjet 2. Thermal 3. Electrophotographic(Laser) 4. other kr chowdhary Keyboard & Display Control, Printers 3/ 24

Dot matrix printer Print head runs back and forth, on the page and prints by impact, striking an ink-soaked cloth ribbon against the paper, much like the print mechanism on a typewriter. Letters are drawn out of a dot matrix, and thus, varied fonts and arbitrary graphics can be produced. Printing speed: 50-500 cps. Each dot is produced by a tiny metal rod, (called a wire or pin ), driven forward by the power of a tiny electromagnet/solenoid, either directly or through small levers Moving print head, generally prints one line of text at a time. Most dot matrix printers have a single vertical line of dots, others have a few interleaved rows in order to improve dot density. Types: Near Letter Quality (NLQ), 24-pin printers The desktop impact printers were gradually replaced by the Inkjet/Laser printers. kr chowdhary Keyboard & Display Control, Printers 4/ 24

Printer-head driver Electronics (Dot Matrix Printer) kr chowdhary Keyboard & Display Control, Printers 5/ 24

Working of dot matrix printers Concept: Each character is mapped to a matrix of 7 9 columns A matrix can have elements 0 or 1, which maps to white or dark spaces on paper A ROM can be used to produce encoded o/p corresponding to a character into the 8-bytes The ROM stores bytes as per the character and font type Such an arrangement has the advantage that different fonts can be printed Changing the ROM can also print characters other than those in English ROM encoding for Z: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Dot matrix, when not using the ROM encoded outputs, can be used for graphic printing also kr chowdhary Keyboard & Display Control, Printers 6/ 24

Printer Controller Reads the input byte from the encoder and fires an appropriate set of dots The dots in a set are mapped to a column of wires, which are pressed on the ribbon to print a column each and move the print head one step to next column Controls the print head movements on the horizontal axis A stepper motor moves the print head horizontally forward in odd lines and back on the even lines, of a page A line feed character advances a line on the page A vertical-roll stepper-motor rolls the paper on each line feed or page change kr chowdhary Keyboard & Display Control, Printers 7/ 24

Working of dot matrix printers printer parallel /serial port characters printer parallel centronics interface/ serial interface printer buffer char font ROM - print controller to read i/p byte, - fire appropriate dots in a column, of wires, - move print head to next step, - control print heads horiz. movements, - control verti paper move by stepper motor encoded 8 bytes for each char. controller Move head Move paper print a column of dots as per input byte kr chowdhary Keyboard & Display Control, Printers 8/ 24

Communication and control: Dot matrix printers Uses Centronics standard 36-pin interface as parallel port Or RS232C serial asynchronous UART based standard interface The printer port gives the input to a print buffer The print buffer stores the ASCII codes (bytes) sent by the computer printer interface The buffer output byte, which gives 8-bytes for the encoded output, is given to the ROM as its address input data ready Printer IO unit acknowledge paper status data bus error busy (located inside the printer) printer interface kr chowdhary Keyboard & Display Control, Printers 9/ 24

Inkjet Printer Uses a droplet, which is ejected through a thin nozzle. It is a non-impact technology Droplets fired through the nozzle as per the character A bubble jet nozzle has a mini-heater, which when it heats, evaporates the ink drop in the jet to mark the paper where it condenses on the colder surface Colour Ink jet printer 1. Three nozzles for three different colors: red,green, and blue kr chowdhary Keyboard & Display Control, Printers 10/ 24

Laser printer functioning A commonly used printer, produces high quality text and graphics on plain paper, at speed Image is produced by the direct scanning of a laser beam across the printer s photoreceptor. A drum is coated with photoconductive material (selenium) that gets positively charged On illumination by a laser beam falling onto tiny areas, the photoconductive material in that area starts electrically conducting The charge in that area annihilates (discharges) The (negatively charged) ink powder particles get attracted only to the area not discharged on illumination by laser beam (photocopier principle) The illumination comes from those areas that are white and therefore the ink powder does not stick there When the laser beam falls only on areas where no prints (white spaces) should be there, the drum prints the page areas where the beam has not fallen Speed: 200 monochrome pages or more per minute kr chowdhary Keyboard & Display Control, Printers 11/ 24

Matrix Keyboard and Multiplexed Display Interface A matrix keyboard is a commonly used input as device when more than eight keys are necessary A matrix keyboard reduces the number of connections and hence reduces the number of interfacing devices The rows and columns do not have any connection and the connection occurs when a key is pressed The interfacing of a matrix keyboard requires one input port and one output port Rows are connected to the output port and columns are connected to the input port (?) kr chowdhary Keyboard & Display Control, Printers 12/ 24

Matrix Keyboard and Multiplexed Display Interface kr chowdhary Keyboard & Display Control, Printers 13/ 24

Matrix Keyboard and Multiplexed Display Interface Steps involved: 1. Check whether all keys are open 2. Check a key closure 3. Identify the key 4. Find the binary key code for the key kr chowdhary Keyboard & Display Control, Printers 14/ 24

Intel 8279 Keyboard/Display Controller Intel 8279 is the keyboard /display controller (used to interface keyboard and display to the microprocessor) It is able to drive the signals for both the keyboard and display and hence it is possible for the microprocessor to concentrate in its routine tasks 8279 provides four scan lines and eight return lines for interfacing keyboards, and a set of eight output lines for interfacing display The keyboard portion can provide a scanned interface to a 64-contact key matrix The keyboard portion interfaces an array of sensors or a strobed interface keyboard Keyboard entries are debounced and strobed in an 8-charcter FIFO If more than 8 characters are entered, overrun status is set Key entries set the interrupt output line to the CPU kr chowdhary Keyboard & Display Control, Printers 15/ 24

Intel 8279 Display Section The display portion provides a scanned display interface for LED, incandescent and other popular display technologies Both numeric and alphanumeric segment displays may be used as well as simple indicators The 8279 has 16*8 display RAM which can be organized into dual 16*4 The RAM can be loaded or interrogated by the CPU Both right entry, calculator and left entry typewriter display formats are possible Both read and write of the display RAM can be done with auto-increment of the display RAM address kr chowdhary Keyboard & Display Control, Printers 16/ 24

Keyboard and Display Controller Simultaneous keyboard and display operations scanned keyboard mode 8-char keyboard buffer FIFO Dual 8/16-numeric display mode programmable from CPU keyboard interface provides 64-contact key matrix Display provides scanned display interface for LED/other disp. 16x8 display RAM connects directly to the BUS of 8085 processor kr chowdhary Keyboard & Display Control, Printers 17/ 24

Pinout Definition 8279 A0: Selects data (0) or control/status (1) for reads and writes between microprocessor and 8279. BD: Output that blanks the displays. CLK: Used internally for timing. Max is 3 MHz. CN/ST: Control/strobe, connected to the control key on the keyboard. CS: Chip select that enables programming, reading the keyboard, etc. DB7-DB0: Consists of bidirectional pins that connect to data bus on micro. IRQ: Interrupt request, becomes 1 when a key is pressed, data is available. OUT A3-A0/B3-B0: Outputs that sends data to the most significant/least significant nibble of display. RD(WR): Connects to micro s IORC or RD signal, reads data/status registers. RESET: Connects to system RESET. RL7-RL0: Return lines are inputs used to sense key depression in the keyboard matrix. Shift: Shift connects to Shift key on keyboard. SL3-SL0: Scan line outputs scan both the keyboard and displays. kr chowdhary Keyboard & Display Control, Printers 18/ 24

Keyboard and Display Controller CPU can program all I/O modes of 8279. Input Modes: Scanned keyboard: 8X8 keyboard scanned lines. Key depression generates 6-bit encoding of key position. Output Modes: 1. 8/16 character multiplexed display 2. Interrupt output to CPU when keyboard/sensor data is available 3. An 8-byte FIFO to store the keyboard data 4. 16-byte internal display RAM for display refresh (can be read by CPU) A 0 : 1 status/command, 0 data (are bidirectional) Control and timing Registers: Stores keyboard and display modes Keyboard scan @ 5.1 msec. kr chowdhary Keyboard & Display Control, Printers 19/ 24

Keyboard and Display Controller kr chowdhary Keyboard & Display Control, Printers 20/ 24

Keyboard and Display Controller kr chowdhary Keyboard & Display Control, Printers 21/ 24

Exercises 1. Specify the data transmission media, data formats, and signalling protocols used for each of the following communication tasks: linking the CPU and memory of a new computer; linking a detached keyboard to a user terminal; connecting terminal to a remote computer via the public telephone network. Provide a brief justification for each of the communication. 2. Compare and contrast synchronous and asynchronous buses from the viewpoints of data bandwidth, interface circuit cost, ans reliability. 3. Explain each of the following in context of bus design: handshaking, lock signal, master unit, skew, tristate, wait-state. 4. Analyze the three bus arbitration bus methods, daisy-chaining, polling, and independent requesting, with respect to communication reliability in the event of hardware failures. 5. What is difference between a subroutine, and an interrupt service routine. kr chowdhary Keyboard & Display Control, Printers 22/ 24

Exercises 6. The devices A, B, and C are connected to the bus of a computer. I/O transfer for all three devices use interrupt control. Interrupt nesting for devices A and B is not allowed, but interrupt requests from C may be accepted while either A or B is being serviced. Suggest different ways in which this can be accomplished in each of the following cases. 6.1 The computer has one interrupt request line. 6.2 Two interrupt request lines, INTR1, and INTR2, are available, with INTR1 having higher priority. Specify when and how interrupts are accepted and disabled in each case. 7. Consider a computer in which several devices are connected to a common interrupt request line. Explain, how you would arrange for interrupts from device j to be accepted before the execution of the interrupt-service routine for device i is completed. Comment in particular on the times at which interrupts must be enabled and disabled at various points in the system. kr chowdhary Keyboard & Display Control, Printers 23/ 24

Bibliography John P. Hayes, Computer Architecture and Organization, 2nd Edition, McGraw-Hill, 1988. William Stalling, Computer Organization and Architecture, 8th Edition, Pearson, 2010. kr chowdhary Keyboard & Display Control, Printers 24/ 24