Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSIT 301 (Blum)1 Hardware Overview Continued. CSIT 301 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits.

Similar presentations


Presentation on theme: "CSIT 301 (Blum)1 Hardware Overview Continued. CSIT 301 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits."— Presentation transcript:

1 CSIT 301 (Blum)1 Hardware Overview Continued

2 CSIT 301 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits 1 bit at a time. It is typically used for (external) modems but sometimes used for digital cameras and other devices. The standard was used for keyboard and mouse but they usually have special, designated connectors (unless they’re USB). Serial DB9 connectors

3 CSIT 301 (Blum)3 Parallel to Serial Most of the data in the computer moves around in parallel, so to use the serial port the data must be converted to serial format. This is done by the UART chip associated with the serial port. The chip has a large buffer (some memory) to hold data waiting to be put in serial form. UART chip

4 CSIT 301 (Blum)4 RS 232 and DB-9 RS 232 is the old standard for local serial communication – data is sent bit-by-bit but grouped into bytes with a start bit and stop bit announcing the beginning and end of the byte. (There are newer standards, but the old name has stuck.) The standard serial connector is called the DB-9. Only two of the pins are used for data (receiving and transmitting, full-duplex) the rest are for control flow.

5 CSIT 301 (Blum)5 Pin Purposes 1.Carrier Detect - Determines if the modem is connected to a working phone line. 2.Receive Data - Computer receives information sent from the modem. 3.Transmit Data - Computer sends information to the modem. 4.Data Terminal Ready - Computer tells the modem that it is ready to talk. 5.Signal Ground - Pin is grounded. 6.Data Set Ready - Modem tells the computer that it is ready to talk. 7.Request To Send - Computer asks the modem if it can send information. 8.Clear To Send - Modem tells the computer that it can send information. 9.Ring Indicator - Once a call has been placed, computer acknowledges signal (sent from modem) that a ring is detected.

6 CSIT 301 (Blum)6 COM Port The term COM (communications) port is sometimes used instead of serial port. COM corresponds to a set of addresses (software instead of hardware) that is associated with the serial port. –In particular COM1 corresponds to IRQ 4 and I/O address 03F8

7 CSIT 301 (Blum)7 Stuff to memorize if you plan to take the A+ exam PortI/O Base AddressIRQ COM103F84 COM202F83 COM303E84 COM402E83

8 CSIT 301 (Blum)8 Requesting an interrupt Devices cannot get the immediate attention of the processor. Instead the device makes an interrupt request. The processor only allows itself to be interrupted at certain times. All devices interrupt the processor in the same way, the processor must then trace back to find out which device requested the interrupt.

9 CSIT 301 (Blum)9 IRQ Devices that interrupt the processor are assigned an IRQ (Interrupt Request Line). Typically a device has a set IRQ or finds an available IRQ, occasionally two devices want the same IRQ and a conflict arises. IRQs belong to a category known as System Resources. This category also includes I/O Addresses and DMA.

10 CSIT 301 (Blum)10 To see the IRQ for the serial/COM port Start/Settings/Control Panel

11 CSIT 301 (Blum)11 System

12 CSIT 301 (Blum)12 Hardware Tab/Device Manager

13 CSIT 301 (Blum)13 Expand Ports (COM & LPT)/Double click COM1

14 CSIT 301 (Blum)14 Resources Tab Resource info

15 CSIT 301 (Blum)15 A different view

16 CSIT 301 (Blum)16 IRQs in Device Manager

17 CSIT 301 (Blum)17 More stuff to memorize if you plan to take the A+ exam IRQDefault function 0System timer 1Keyboard 2/9Open for use 3COM2, COM4 4COM1, COM3 5LPT2 6Floppy drive 7LPT1

18 CSIT 301 (Blum)18 More stuff to memorize if you plan to take the A+ exam IRQDefault function 8Real-time clock 10Open for use 11Open for use 12Open for use 13Math coprocessor 14Primary hard-drive controller 15Secondary hard-drive controller

19 CSIT 301 (Blum)19 IRQ Table

20 CSIT 301 (Blum)20 IRQ Table

21 CSIT 301 (Blum)21 DIN connector A DIN connector is one that meets the DIN standards. DIN stands for Deutsches Insitut für Normung eV, the German version of ANSI, a organization that determines standards. On PCs DIN connectors are often used for keyboard and mouse. They may also been seen on routers and switches. The DIN connector for keyboard and mouse are actually mini-DIN connectors with 6 pins. The port was developed by IBM and is called PS/2.

22 CSIT 301 (Blum)22 Parallel Port The parallel port is used along with a local communication standard that transmits 8 bits (a byte) at a time. It is typically used for printers or scanners but sometimes used for external CD burner or zip drive. Female parallel port connector

23 CSIT 301 (Blum)23 Pin purposes Pins 2-9 carry the data. The other pins have purposes such as indicating if one is ready for data, indicating that data is being sent, acknowledging that data was received, etc. Pins 18-25 can be used to have full-duplex communication (ability to send data in both directions simultaneously). The parallel-port standards are known as Enhanced Parallel Port (EPP) for non-printing devices and Extended Capabilities Port (ECP) for improved printing. –(I know, it sounds like it should be the other way around.)

24 CSIT 301 (Blum)24 LPT The term LPT (Line Printer Terminal) port is sometimes used instead of parallel port. Like the term COM, LPT corresponds to a set of addresses (software instead of hardware) this time associated with the parallel port. –In particular LPT1 corresponds to IRQ 7 and I/O address 0378

25 CSIT 301 (Blum)25 Still more stuff to memorize if you plan to take the A+ exam PortI/O Base AddressIRQ LPT103787 LPT202785

26 CSIT 301 (Blum)26 USB Universal Serial Bus (USB) is an attempt to have a universal port – a port which has reasonable speed, which many different devices can use at the same time, and which does not require expansion cards. The USB A connector which plugs into the computer

27 CSIT 301 (Blum)27 A USB socket in the back of the computer. Many computers have USB ports in the front. Some users are confused about the number of USB ports they have – assuming the front and back ports are distinct. The USB B connector plugs into the device. Not that it is distinct from the USB A connector that plugs into the computer.

28 CSIT 301 (Blum)28 Connecting a USB device Connecting devices that use the serial port, parallel port or expansion slot require the system to be shut down, the device connected and then the system restarted. USB devices can be added while the system is up. This is known as hot plugging or hot swapping.

29 CSIT 301 (Blum)29 Up to 127 devices The USB standard supports up to 127 devices. A typical PC has one of two USB ports, one can connect more USB devices than there are USB ports by using USB hubs or daisy chaining.

30 CSIT 301 (Blum)30 The USB hub shown allows four devices to be connected to one USB port. One can plug a hub into a hub for even more connections. USB hubs may or may need their power depending on the needs of the devices plugged into them.

31 CSIT 301 (Blum)31 USB Cable A USB connection is simpler hardware than a standard serial connection using a DB9 connector. –It has A two wires for power : +5 volts and ground. So devices that don’t require much power (e.g. a webcam) do not need an independent power source. – It has a twisted pair of wires for carrying the data.

32 CSIT 301 (Blum)32 Enumeration The PC must detect all of the USB devices and assign them addresses. This is known as enumeration. The PC also determines the manner in which it will exchange data with the device. –Interrupt: small amounts of data at intermittent times –Bulk: larger chunks of data with error detection –Isochronous: real-time stream of data without error detection

33 CSIT 301 (Blum)33 Fire Wire The IEEE 1394 standard is for a fast serial cable that allows up to 63 devices to attach to a single port. Its high speed and isochronous data transfer make it useful for real-time data streaming. It supports Plug-and-play and hot plugging. Originally developed by Apple and known as firewire. Other companies have other names including Lynx and i.link.

34 CSIT 301 (Blum)34 Fire Wire Connector The standard supports a set of cables that have varying numbers of pins.

35 CSIT 301 (Blum)35 Networking Computers Two standard ways to make a computer part of a network are to use an internal modem or an Ethernet network interface card. Both use Unshielded Twisted Pair (UTP) wires. –Twisting reduces interference or cross-talk. –Shielding would reduce it more but is more expensive. The plugs used are the RJ-11 (modem) and the RJ-45 (Ethernet NIC)

36 CSIT 301 (Blum)36 RJ-45 Registered Jack-45, an eight-wire connector used to connect computers to an Ethernet LAN using UTP wire. RJ-45 connectors look similar to the RJ-11 connectors that are used for phones and modems, but RJ-45s are wider. –Additionally there are two sockets associated with an internal modem.

37 CSIT 301 (Blum)37 RJ-45 (LAN) and RJ-11 (phone)

38 CSIT 301 (Blum)38 Modem with socket for two RJ-11 plugs. UTP Ethernet connection with one RJ-45 plug.

39 CSIT 301 (Blum)39 System Resources System Resources are the logical/software way to access various devices. It is a level above the hardware but intimately connected to it as it helps the processor to locate and interface with the hardware. Data is transmitted between the processor and devices using various shared communication channels (the buses). Thus an addressing scheme is required to determine where data is coming from or where it is going, which device is seeking the attention of the processor, and so on.

40 CSIT 301 (Blum)40 Resource Conflicts Addresses must be unique if they are to be used to distinguish various devices. If two devices claim the same resource, there is said to be a conflict. Certain well established devices use a set IRQ.

41 CSIT 301 (Blum)41 No conflicts

42 CSIT 301 (Blum)42 DMA Normally a device interacts with memory (reads or writes data) via the processor. A Direct Memory Access (DMA) channel allows a device to interact with memory without going through the processor. This speeds up data transfers. There are usually fewer conflicts over DMA than over IRQ.

43 CSIT 301 (Blum)43 Floppy Resource with DMA

44 CSIT 301 (Blum)44 Resources by type view (DMA)

45 CSIT 301 (Blum)45 I/O addresses Every PC device has an Input/Output (I/O) Address or port address. Standard devices have standard I/O addresses. These I/O addresses and the memory locations they represent are like mail boxes for devices. Data for a device is sent to that devices I/O Address (mailbox). This scheme of associating memory locations with devices is known as memory-mapped I/O.

46 CSIT 301 (Blum)46 Keyboard’s I/O address range

47 CSIT 301 (Blum)47 Resources by type view (I/O)

48 CSIT 301 (Blum)48 Logical device names The COM and LPT ports can be located using the various addresses associated with them. However, they can also be referred to by using their name COM1, COM2, LPT1 or LPT2. This logically higher naming scheme (known as the logical name) allows these ports to be found even without knowing their assigned I/O addresses and/or IRQ.

49 CSIT 301 (Blum)49 Memory Addresses and BIOS shadowing There is some (ROM) BIOS associated with each device that holds the lowest-level instructions that the PC cannot forget in order to operate. But main memory (RAM) is faster than ROM, so commonly used, but slow parts of the BIOS are placed in memory to improve speed. This is known as BIOS shadowing. A device’s Memory Range are memory locations associated with a device to hold its shadowed BIOS. They are placed in what is called “upper memory.” (Strictly speaking not a system resource.)

50 CSIT 301 (Blum)50 Memory Range for NIC

51 CSIT 301 (Blum)51 Resources by type view (Memory)

52 CSIT 301 (Blum)52 Plug-and-Play System configuration (adding cards, assigning resources used to be technical and tedious). Most modern operating systems support Plug-and-Play (PnP). With PnP, system resources are assigned automatically and in most cases, conflicts are avoided.

53 CSIT 301 (Blum)53 References http://pcguide.com/ref/index.htm http://computer.howstuffworks.com/usb.htm http://computer.howstuffworks.com/parallel- port.htm http://computer.howstuffworks.com/serial- port.htm


Download ppt "CSIT 301 (Blum)1 Hardware Overview Continued. CSIT 301 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits."

Similar presentations


Ads by Google