15
LAB 3 TA: Hu-Hsi Yeh( 葉葉葉 ) Date: 2005 3/21 E-mail: r9394 [email protected]

LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: [email protected]

Embed Size (px)

Citation preview

Page 1: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

LAB 3

TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21

E-mail: [email protected]

Page 2: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Outline

I/O driven

IRQ

Lab questions

Page 3: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Handshaking

http://rebrown.com/rebrown/handsh.htm

Page 4: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

I/O Driven

Busy waitingDMA (Direct Memory Access)Interrupt

Page 5: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

I/O Driven

Busy waitingKeep asking I/O device if they have data to transfer or not.

會計

封裝

$

$ $

購買接收

出版

運送

$$

司庫

客戶服務

CPU

Page 6: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

I/O Driven

DMA (Direct Memory Access)Short for DMA, a technique for transferring data from main memory to a device without passing it through the CPU.

Page 7: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

I/O Driven

IRQ( Interrupt Request) Some hardware need some methods to call the

process of CPU. But there should be some order and priority.

Page 8: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Page 9: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

IRQ Conflicts

There are few IRQ numbers open, but we still have a lot of devices such as USB, AGP, PCI, RAID, SATA, LAN, 1394.

Solution: We have to share IRQ numbers. It depends on each motherboard.

Page 10: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Assign a IRQ Number

In win98 & win MEclick “ 系統” and open “ 裝置管理員”

In win 2k & win XPthe same but...........

Page 11: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Plug-and-Play (PnP)

Plug-and-Play automatically tells the software (device drivers) where to find various pieces of hardware (devices) such as modems, network cards, sound cards, etc.

Page 12: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Plug-and-Play (PnP)

PnP allocates the following "bus-resources" to both drivers and hardware: I/O addresses, memory regions, IRQs, DMA channels (ISA bus only).

Page 13: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Lab Question1

What are the IRQ numbers for yours devices?

Page 14: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Lab Question2

How to change keyboard’s repeat delay and repeat rate?

Page 15: LAB 3 TA: Hu-Hsi Yeh( 葉護熺 ) Date: 2005 3/21 E-mail: r93943122@ntu.edu.tw

Spring 2005

LaDS, GIEE, NTU

Lab Question3

How to setup/add/switch input methods?