ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.

Slides:



Advertisements
Similar presentations
Video Cards CS431 Class Presentation Ashish Bhat ( ) Nilesh Meshram ( )
Advertisements

Lecture 2 Concepts, Terms and Definitions. Display Devices They are divided into a lot of small squares called pixels (“PICture ELements”). Each pixel.
DOS and BIOS Interrupts DOS and BIOS interrupts are used to perform some very useful functions, such as displaying data to the monitor, reading data from.
©annax1 PC-technology Keyboard Graphics Interface cards.
1 Graphic adapters and monitors – the summary. 2 Outline The summary of principles of displaying the information – adapters and monitors. Black and white.
Assembly Language for Intel-Based Computers Chapter 15: BIOS-Level Programming (c) Pearson Education, All rights reserved. You may modify and.
EET Advanced Digital Display Adapters. A vital part to the system provides the visual part of the Human/Computer interface In boot process, goes.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
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.
Screen Display Module M15.2 Sections 9.5, 13.1, 13.2.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphicsIntroduction Dr. Eng. Farag Elnagahy
Lecture 121 Lecture 12: VGA Video ECE 412: Microcomputer Laboratory.
EET Advanced Digital Display Adapters. A vital part to the system provides the visual part of the Human/Computer interface In boot process, goes.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Monitors and Sound Systems section 3A This lesson includes the following sections: · Monitors · PC Projectors · Sound Systems.
Video Monitor Uses raster scanning to display images
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
WHAT IS A COMPUTER??? An electronic device that accepts: n Input n Processes the input n Stores the results of the processing n provides Output Computers.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
BIOS1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
Peripherals The term peripherals refers to all hardware devices that are attached to your computer and are controlled by your computer system Peripherals.
CSCI-235 Micro-Computers in Science Hardware Part II.
ORG ; FOUR INT 21H and INT 10H Programming and Macros Dec Hex Bin
Lecture 11 Last notes on interrupts and exam review Dr. Dimitrios S. Nikolopoulos CSL/UIUC.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Text-mode Video Dr. Dimitrios S. Nikolopoulos CSL/UIUC
Slide 1 Wednesday, October 07, 2015 Low Level Machine.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
1 Screen and Keyboard Operations Suthida Chaichomchuen
EE4OI4 Engineering Design UP1core Library Functions.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Lab 8 Bit-Mapped Graphics Moving from text-based graphics to bit- mapped graphics. Easy to draw graphic points and lines using INT 10h, Function 0Ch (write.
Video Monitor CRT: Cathode Ray Tube
Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?
Lecture 10: BIOS and DOS Programming
Lecture # 4 Output Devices. Output Devices Devices that convert machine language into human understandable form. Output can be in display form, on paper.
Computers Are Your Future Chapter 1 Slide 1 Introduction to the Computers & Internet Chapter 1 Concepts of Information Technology IT.
ECE291 Lecture 12 Mode 13h Graphics. ECE 291 Lecture 12Page 2 of 27 Lecture outline Color theory Video Hardware Mode 13h Graphics File Formats.
ECE291 Computer Engineering II Lecture 15 Josh Potts University of Illinois at Urbana- Champaign.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
8086 Microprocessor Interrupts By: Vijay Kumar. K Reference From Slide Share.
21/11/2005CAP2411 Input & Output Instructions CPU communicates with the peripherals through I/O registers called I/O ports. There are 2 instructions, IN.
3 Types of Video Output for Text DOS-level INT (Int 21) Output can be easily redirected to other devices (printer, disk) Slow Speed Cannot control the.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
CS1372: HELPING TO PUT THE COMPUTING IN ECE CS1372 Some Basics.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
Video Card CES Industries, Inc. Lesson 10.  Translates computer information of binary digital data into visual information that the monitor can understand.
10H Interrupt. Option 0H – Sets video mode. Registers used: – AH = 0H – AL = Video Mode. 3H - CGA Color text of 80X25 7H - Monochrome text of 80X25 Ex:
Computer Fundamentals MSCH 233 Lecture 5. The Monitor A Monitor is a video screen that looks like a TV. It displays both the input data and instructions,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
4. Kernel and VGA ENGI 3655 Lab Sessions. Richard Khoury2 Textbook Readings  None.
Microprocessors Monday, Apr. 16 Dr. Asmaa Farouk Faculty of Engineering, Electrical Department, Assiut University.
ECE291 Lecture 10 Interrupts II. ECE 291 Lecture 9Slide 2 of 22 Lecture outline Installing/Removing ISRsInstalling/Removing ISRs Interrupt SchedulingInterrupt.
Week 9 Monitors and output to the screen. Monitors, also known as Visual display units (V.D.Us) Desktop computers contain a Cathode Ray Tube (C.R.T.)
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Lecture 11 Text mode video
Name Enrolment no.: Dhruti Desai Khushboo Desai Sneha Gangwani Rajul Shah
Direct-Access Color Graphics Chapter 11. Graphics modes C++ provides a different combination of graphics characteristics. These characteristics include.
Computer Graphics Lecture 03 Graphics Systems Cont… Taqdees A. Siddiqi
ECE291 Computer Engineering II Lecture 12 Josh Potts University of Illinois at Urbana- Champaign.
Computer Graphics Lecture 04 Point Taqdees A. Siddiqi
DISPLAY DEVICES CIS 10, Group #1 April 01, 2006 C. X. A. L. K. H. A. V. ((( L. C.
Flowchart of basic interrupt mechanism
Microprocessor and Assembly Language
Chapter 2 Data Representation.
Presentation transcript:

ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign

Friday, October 02, 2015ECE291 – Lecture 9Slide 2 of 18 Outline Video Display Text video mode Controlling and accessing video display using –DOS functions –BIOS functions

Friday, October 02, 2015ECE291 – Lecture 9Slide 3 of 18 Basic Forms of Input and Output I/O-mapped I/O –uses special instructions to transfer data between the computer system and the outside world Memory-mapped I/O –uses special memory locations in the normal address space of the CPU to communicate with real-world devices Direct memory access (DMA) –special form of memory-mapped I/O where the peripheral device reads and writes the memory without going through the CPU –Note that the CPU and DMA device cannot both use the address and data buses at the same time –concurrent processing only occurs if the CPU has a cache and is executing code and accessing data found in the cache (so the bus is free)

Friday, October 02, 2015ECE291 – Lecture 9Slide 4 of 18 Video Output Video is the primary form of communication between a computer and a human. The monochrome (single color) monitor uses one wire for video data, one for horizontal sync, and one for vertical sync. A color video monitor uses three video signals: red, green, & blue –these monitors are called RGB monitors and convert the analog RGB signals to an optical image. The RGB monitor is available as either an analog or TTL monitor.

Friday, October 02, 2015ECE291 – Lecture 9Slide 5 of 18 TTL RGB monitor Uses TTL level signals (0 or 5V) as video inputs (RGB) and an extra signal called intensity to allow change in intensity Used in the CGA (Color Graphics adaptor) system found in older computers Can display a total of 16 different colors (eight are generated at high intensity and eight at low intensity) Example: Intensity Red Green BlueColor Black Gray Light green Light red Bright white

Friday, October 02, 2015ECE291 – Lecture 9Slide 6 of 18 The Analog RGB Monitor Uses analog signals - any voltage between 0.0 V and 0.7 V This allow infinite number of colors to be displayed In practice a finite number of levels is generated (256K, 16M, or 24M colors depending on the standard) Analog displays use a digital-to-analog converter (DAC) to generate each color video voltage A common standard uses a 6-bit DAC to generate 64 different video levels between 0 V and 0.7 V –this allows 64x64x64 different colors to be displayed or 262,144 (256 K) colors 8-bit DACs allow 256x256x256 or 16M colors

Friday, October 02, 2015ECE291 – Lecture 9Slide 7 of 18 The Analog RGB Monitor The Video Adapter converts digital information from the CPU to analog signals for a monitor. VRAM/DRAM Video/Dynamic Random Access Memory –Stores screen content Video BIOS –Stores character mappings Palette registers –Defines R/G/B color values Graphic accelerator –Hardware implemented graphic routines DAC –Generates analog Red/Green/Blue signals

Friday, October 02, 2015ECE291 – Lecture 9Slide 8 of 18 The Analog RGB Monitor Example of Video Generation Example: video generation used in video standards such as EGA (enhance graphic adapter) and VGA (variable graphics array) A high-speed palette SRAM (access time less than 40ns) stores 256 different codes that represent 256 different hues (18-bit codes) This 18-bit code is applied to the DACs The SRAM is addressed by 8-bit code that is stored in the computer VRAM to specify color of the pixel Once the color code is selected, the three DACs convert it to three video voltages for the monitor to display a picture element (pixel)

Friday, October 02, 2015ECE291 – Lecture 9Slide 9 of 18 The Analog RGB Monitor Example of Video Generation (cont.) Any change in the color codes is accomplished during retrace (moving the electron beam to the upper left-hand corner for vertical retrace and to the left margin of the screen for horizontal retrace) The resolution and color depth of the display (e.g., 640x400) determines the amount of memory required for the video interface card 640x400 resolution with 256 colors (8 bit per pixel) 256K bytes of memory are required to store all the pixels for the display

Friday, October 02, 2015ECE291 – Lecture 9Slide 10 of 18 Text-Video Mode There is not a single common device for supporting video display There are numerous display adapter cards available for the PC Each supports several different display modes We discuss the 80x25 text display mode which is supported by most of display adapters The 80x25 text display is a two dimensional array of words with each word in the array corresponding a character on the screen Storing the data into this array affects the characters appearing on the display

Friday, October 02, 2015ECE291 – Lecture 9Slide 11 of 18 Text-Video Mode Each text page occupies under 4K bytes of memory 80(columns) x 25 (rows) x 2 (bytes) = 4000bytes The LO byte contains the ASCII code of the character to display The HO byte contains the attribute byte The color display adapters provide 32 K for text displays and let you select one of eight different pages Each display begins on a 4K boundary, at address: –B800:0, B800:1000, B800:2000, …. B800:7000 You can address the memory on the video display like ordinary RAM, but it is never a good idea to do this –access to the display adapter is much slower than to the main memory

Friday, October 02, 2015ECE291 – Lecture 9Slide 12 of 18 Text-Video Mode The attribute byte controls underlying background and foreground colors, intensity and blinking video Choose your colors with care (some combinations of foreground and background colors are not readable) Do not overdo blinking text on the screen

Friday, October 02, 2015ECE291 – Lecture 9Slide 13 of 18 Using DOS and BIOS Functions to Control Display DOS (disk operating system) and BIOS (basic I/O system) provide functions to control and to access the I/O environment of the computer including the display. DOS provides INT 21h, which is called the DOS function dispatcher and supports functions such as: read from the keyboard, write to the screen, write to the printer, read and write to disk files ….. INT 21 must be told which function is being requested –this information is passed by placing the function number in the AH register –depending on the function being used, other information may be needed

Friday, October 02, 2015ECE291 – Lecture 9Slide 14 of 18 Displaying A Single Character Using DOS INT 21h Example: suppose that the letter ‘A’ is to be printed to the screen at the current cursor position can use function 02h, or 06h (this function can also be used to read a key) INT 21h must also be told which letter to print – the ASCII code must be placed into DL register MOVDL, ‘A’ MOVAH, 06h INT21h

Friday, October 02, 2015ECE291 – Lecture 9Slide 15 of 18 Displaying A Character String Using DOS INT 21h DOS function 09h displays a character string that ends with $ MSGDB‘This is a test line’,’$’ …... MOVDX, MSG MOVAH, 09h INT21h The string will be printed at the current cursor position

Friday, October 02, 2015ECE291 – Lecture 9Slide 16 of 18 Using BIOS to Control Display The DOS function calls allow a key to be read and a character to be displayed but the cursor is difficult to position at a specific location on the screen. The BIOS function calls allow more control over the video display and require less time to execute than the DOS function calls BIOS provides interrupt INT 10h, known as the video interrupt, which gives access to various functions to control video screen Before we place information on the screen we should get the position of the cursor: function 03h reads cursor position (DH = Row, DL = Column, BH =Page # function 02h sets cursor position (DH = Row, DL = Column, BH =Page #

Friday, October 02, 2015ECE291 – Lecture 9Slide 17 of 18 Using BIOS to Control Display Function 0Fh finds the number of the active page –the page number is returned in BH register The cursor position assumes that –the left hand page column is column 0 progressing across a line to column 79 –the row number corresponds to the character line number on the screen, the top line being line 0

Friday, October 02, 2015ECE291 – Lecture 9Slide 18 of 18 Using BIOS to Control Display