Chapters & sections

CHAPTER 1 · HARDWARE

Input/Output Unit

Original textbook · pp. 92–111

Choose input and output devices, calculate image sizes and compare I/O control methods and interfaces.

2 related published questions

Input and output connect a computer’s stored representations with people, objects and signals. First identify what a device measures or produces. Then distinguish the device’s role from its interface, transfer-control method and software driver. Those are separate layers of the same operation.

From physical input to outputA document scanner produces image data, memory and the CPU process it, and a printer produces a physical page. Input and output are relative to the computer.Scanner → image dataMemory + CPU processingPrinter → physical page
From physical input to output. A multifunction device can contain all three stages. Scanning supplies image data; recognition or editing is processing; printing is output.Original textbook · p. 92

Input Unit

Original textbook · pp. 92–97

Devices for Entering Characters and Numbers by Using Signals

Original textbook · pp. 92–93

A keyboard turns key actions into signals that system software interprets. A key’s physical position or scan code is not necessarily the final encoded character: modifiers, layout and an input method can change the result. For example, one key can produce a lowercase letter, an uppercase letter or a command shortcut depending on the current state.

Mechanical contacts may bounce briefly after a press, producing several transitions. Debouncing interprets the action as a single intended change. This is distinct from deliberate key-repeat behavior after a key is held. Numeric keypads and specialized button panels use the same general idea of turning user actions into input signals.

One press, several contact transitionsA raw key-contact waveform briefly toggles after the press and then stays high. A debounced waveform changes once after a settling delay. This differs from deliberate held-key repeat.Raw contactAfter debouncingTime → (illustrative delay)
One press, several contact transitions. Contact bounce can create several electrical transitions for one press. A debounce method waits or filters; the exact delay depends on the design.Original textbook · pp. 92, 104

Device for Reading Data Written on Paper

Original textbook · pp. 93–95

Device or technique What it recognizes Suitable example
OCR, optical character recognition/reader Shapes of written or printed characters Turn a photographed invoice’s printed text into character data
OMR, optical mark reader Filled marks at known positions Read answers on a marked response sheet
MICR, magnetic ink character reader Characters printed with magnetic ink Process suitably printed bank documents
Barcode/QR reader An encoded one- or two-dimensional pattern Read an item’s identifier or a QR payload
Image scanner A grid of image samples Capture a document or picture as image data

Scanning an image is not the same as recognizing its text. OCR may process the image afterward and can make recognition errors. OMR usually relies on a prepared layout rather than arbitrary handwriting. A barcode’s encoded identifier may need a database lookup; it does not necessarily contain the full description or price of the product.

Resolution example. Scanning a 2-by-3-inch region at 300 dots per inch gives 600×900 samples. With eight bits per sample and no compression or overhead, storage is 600×900×8/8 = 540,000 bytes. Doubling resolution in both directions gives four times as many samples, not twice as many.

Recognition and capture differOCR recognizes the printed glyph A; OMR reads a filled option position; a barcode reader decodes bars; MICR senses magnetic characters; a scanner captures pixels before any recognition.AOCR → characterOMR → positionBars → codeMagneticMICR → symbolsPixelsScan → image
Recognition and capture differ. OCR reads character shapes; OMR reads marks at known positions; MICR senses magnetic characters. Capturing an image is different from identifying its contents.Original textbook · pp. 93–95

Pointing Device

Original textbook · pp. 95–96

A mouse generally reports relative movement; a touch panel or digitizer can identify an absolute location within a surface. Joysticks indicate direction or displacement for navigation and control. A light pen is a historical pointing device associated with the display technology it was designed to sense. The application’s interpretation turns these physical events into selection, dragging or another action.

Touch panels use different sensing principles. A resistive panel detects contact between layers under pressure. A capacitive panel detects electrical changes associated with a touch. An infrared arrangement detects interrupted or changed light paths. A matrix-switch arrangement identifies an activated row/column location. These mechanisms differ in what they sense; a “touch display” combines a display output with a separate input mechanism.

Relative motion or absolute positionA mouse reports a movement of plus 5 in x and minus 2 in y. A touch or digitizer surface identifies a point with absolute x,y coordinates inside its bounds. These are different input models.Mouse: change in positionΔx = +5; Δy = −2Touch: a point (x, y)
Relative motion or absolute position. A mouse normally reports movement relative to a previous position. A touch panel or digitizer can locate a point on its surface; sensing technology and coordinate interpretation are separate.Original textbook · pp. 95–96

Other Input Devices

Original textbook · pp. 96–97

A digitizer/tablet captures pen position and, where supported, pressure or other properties. A card reader may sense magnetic data or communicate with an embedded IC, depending on the card and reader technology. A biometric device samples a physical characteristic such as a fingerprint; matching and access decisions require processing beyond the sensor itself.

A microphone converts sound into an electrical signal. Digital capture requires sampling and quantization, while a camera captures image samples from light. These are input functions even when the camera or microphone is part of a larger device with its own display or speakers. A 3D scanner measures an existing object’s shape and produces data; it does not manufacture that object.

Check the direction. A temperature sensor produces readings for a controller. A heater receives a control output and changes the physical world. A single control system can therefore contain both input and output devices without making the sensor an actuator.

Output Unit

Original textbook · pp. 97–103

Display

Original textbook · pp. 97–100

A raster display organizes output as pixels. Resolution gives the horizontal and vertical pixel counts; color depth gives bits used to represent each pixel’s color in a particular format. They describe different quantities. If b bits independently select a pixel value, there are up to 2b possible codes.

For an uncompressed packed image with no padding, headers or additional buffers:

bytes = width × height × bits per pixel ÷ 8

An 800×600 image with 24-bit RGB uses 800×600×24/8 = 1,440,000 bytes. Eight bits for each of red, green and blue provide 256 choices per channel and 256³ = 16,777,216 RGB combinations. A framebuffer format that stores an additional eight-bit channel uses 32 bits per pixel instead; use the stated format.

CRT displays use an electron beam and phosphor. LCD panels modulate light and typically use a backlight. PDP refers to plasma display panels. OLED pixels emit light from organic light-emitting elements. These technologies do not change the basic distinction between pixel count, color depth and the rate at which images are refreshed. A higher resolution alone does not specify a larger physical screen or better rendering of every image.

A glyph is a grid of samplesA five-by-seven binary pixel grid forms an A from 35 samples. RGB pixels can use eight bits each for red, green and blue, totaling 24 bits or three bytes per pixel.5 columns × 7 rowsR: 8 bitsG: 8 bitsB: 8 bits
A glyph is a grid of samples. This original 5 × 7 glyph contains 35 samples. Resolution counts samples; color depth counts bits per sample. At 24 bits/pixel, a packed RGB image uses three bytes per pixel.Original textbook · pp. 98, 100

Printer

Original textbook · pp. 100–102

Method How an image is formed Useful distinction
Dot impact Pins strike a ribbon against paper Physical impact can support suitable multipart forms
Line printer Prints a line using its mechanism Historically suited to high-volume character output
Direct thermal Heat changes suitable heat-sensitive paper Requires a compatible recording medium
Thermal transfer / dye sublimation Heat transfers recording material Differs from directly darkening thermal paper
Inkjet Deposits small ink droplets Places color on the recording surface
Laser/electrophotographic An electrostatic image attracts toner, which is fixed Forms a page image using toner rather than ink droplets

Printer resolution may be expressed in dpi, and speed in pages or characters per unit time. A page description language specifies how a page should be rendered; it is software information, not a printing mechanism. A spooler queues print jobs so applications need not directly manage every physical step.

Modern exam connection. 3D printing ↗ · 1 question fabricates a physical object from a digital model, often layer by layer. Fused filament fabrication deposits material to build those layers. This differs from a scanner measuring an existing object, thermal printing on paper, or projection mapping light onto a surface. The digital-to-physical direction identifies the output role even though the result is not a sheet of paper.

Pins transfer ink through a ribbonAn impact print head pushes pins toward an ink ribbon, which contacts paper. Pin positions form dots. It contrasts with inkjet droplets and laser-transferred toner.Print headInk ribbonPaper receives dots
Pins transfer ink through a ribbon. Mechanical impact transfers ink from the ribbon to the paper. Inkjet and laser printing form marks by different mechanisms; they do not strike an ink ribbon.Original textbook · p. 100

Other Output Devices

Original textbook · pp. 102–103

A plotter produces drawings along controlled paths; a projector casts an image onto a surface. Electronic paper emphasizes persistent, paper-like display behavior rather than being ordinary printed paper. A voice synthesizer converts a symbolic representation into speech output; a speaker converts the resulting electrical signal into sound.

Different outputs may represent the same underlying result. A navigation instruction can appear as text, a map arrow or synthesized speech. Choosing an output device means considering the required physical result and the user’s environment, not merely counting the bytes of the source data.

A path drawing or a projected imageA plotter pen follows an x-y path to mark a physical surface. A projector sends an image using light onto a screen. Both are output, but they produce different physical results.Plotter: controlled pen pathLightProjector: light on screen
A path drawing or a projected image. A plotter controls a tool path. A projector casts light. A shared digital drawing can be represented by either kind of output without making their mechanisms identical.Original textbook · p. 102

Other Input/Output Units

Original textbook · pp. 103–104

Communication controllers and network interfaces both send and receive data. Storage drive units accept writes and return reads. Imaging systems can combine scanning, processing and printing. Classify the particular operation before deciding its direction: receiving a disk block is input relative to the CPU; sending a new block for storage is output.

A controller can translate system commands into device-specific signals and report completion or errors. This separates low-level physical timing from the application’s request. Mechanical drives and actuators can also turn control outputs into motion. Contact chattering needs filtering when such mechanisms produce repeated electrical transitions for one intended event.

Trace a copy. A scanner first supplies an image as input. Memory stores it, processing may adjust it, and a printer produces output. A multifunction device contains these roles together, but each stage still has a distinct direction and representation.

Input/Output Control Methods

Original textbook · pp. 104–105

Method CPU involvement Why it is used
Program control / direct control CPU issues commands and moves data through program instructions Simple, explicit control; can occupy CPU time waiting or transferring
DMA, direct memory access CPU sets up the operation; a controller transfers a block between device and memory Reduces per-byte CPU involvement for block transfers
Channel control A dedicated I/O processor executes an I/O sequence Offloads more control work as well as data movement

Polling repeatedly checks device status. Interrupt-driven I/O allows a device to notify the CPU when attention is needed. These describe how readiness/completion is detected; DMA describes how data is moved. They are not mutually exclusive: a DMA transfer can interrupt the CPU when the whole block is complete.

A selector channel serves a selected high-speed operation; multiplexer arrangements share channel service among devices, at byte or block granularity under the particular design. The channel is doing more than being an electrically passive cable: it manages work that would otherwise require CPU control.

Worked example. If a CPU must execute one 100 ns transfer instruction per byte for 4,000 bytes, the transfer instructions alone occupy 400,000 ns = 0.4 ms, before any waiting. DMA can avoid that instruction per byte, but still needs setup, memory/bus access and completion handling. It does not make the device’s physical transfer time zero.

Who moves the block?Programmed transfer routes data from device through the CPU to memory. DMA routes data between a device controller and memory after CPU setup, then notifies the CPU on completion.Programmed transferDeviceCPURAMDMA block transferControllerRAMCPUDevice ↔ controller
Who moves the block?. DMA reduces per-byte CPU instructions. The CPU still sets up the transfer and handles completion; bus and memory resources are still used.Original textbook · p. 104

Input/Output Interfaces

Original textbook · pp. 105–111

Classification of Input/Output Interfaces

Original textbook · pp. 105–106

An interface specifies how connected components communicate. Serial interfaces transfer bits in sequence on a signaling path; parallel interfaces carry several bits concurrently. More parallel wires do not automatically guarantee greater useful throughput: timing, signaling rate, interference and protocol overhead also matter.

Connections may form a star through a hub, a cascade of successive stages, or a daisy chain that connects a device onward to another. The topology determines how traffic and connection limits are shared. Distinguish topology from duplex capability: full duplex can send in both directions at once, while half duplex alternates direction on the relevant shared channel.

Connector, interface and protocol are different. Physical fit alone cannot prove support for every data rate, power level or device function. A controller, cable and peripheral must agree on compatible behavior.

Star, cascade and daisy chainA star connects devices to one hub. A cascade connects a hub to another hub, with devices branching from them. A daisy chain connects onward through devices, with a terminator when that interface requires one.StarHubDeviceDeviceDeviceCascadeHub 1Hub 2DeviceDeviceDaisy chainHostDev 1Dev 2
Star, cascade and daisy chain. These are connection patterns, not interchangeable USB modes. USB uses hubs in a tiered star; a legacy SCSI daisy chain requires termination under its specified rules.Original textbook · p. 106

Types of Input/Output Interfaces and their Characteristics

Original textbook · pp. 106–110

The textbook includes several interfaces that are now mainly encountered in historical equipment or specialized applications. Their names remain useful exam terminology. Rate and distance depend on the particular standard version and implementation; no single generic number describes every device with the same interface name.

Interface Main association
RS-232C Historical serial links to terminals and other devices
SCSI Commands/connections for storage and other peripherals; historical parallel SCSI and later forms differ
USB Host-managed peripheral connections through hubs
IEEE 1394 Serial peripheral communication, historically including audiovisual equipment
Centronics Historical parallel printer connection
GPIB Instrument control and measurement equipment
Serial ATA (SATA) Serial storage-device connection
IrDA Infrared communication requiring a suitable optical path
Bluetooth Short-range radio connections under its defined profiles and modes
HDMI Digital audiovisual signals to compatible displays and receivers

USB interfaces ↗ · 1 question use a host-controlled tiered arrangement. The familiar theoretical limit is 127 addressed devices on a bus, including addressed hubs. Hubs do not create an independent full-bandwidth link for every attached device. Power, bandwidth, supported topology and controller resources impose practical limits before every theoretical address is usable.

Hot plug means devices can be connected or removed under the supported operating conditions without shutting down the whole computer. It does not mean interrupting an outstanding storage write is safe. Bus-powered devices receive power through the connection; that power is finite and must meet the interface and system limits. Wireless interfaces remove a data cable but do not remove the need for power or compatible protocol support.

Device Driver

Original textbook · pp. 110–111

A device driver is software that translates system requests into the operations a device understands and returns status or data to the system. It hides many device-specific details from an application. Installing a driver does not create a missing physical interface or increase a cable’s hardware capabilities.

BIOS is the textbook’s firmware term for initializing hardware and providing basic system services. It has a different role from an operating-system driver, even when both interact with the same device. Plug and Play (PnP) automates discovery and configuration of supported devices and resources. It still depends on compatible hardware, firmware and software; “automatically detected” does not mean “no driver or configuration information is needed.”

Follow one read request. An application asks the operating system for data. The system uses an appropriate driver, the controller issues the hardware operation, data arrives by programmed transfer or DMA, and completion is reported. The user-facing action, software layers, interface and physical device describe different parts of this same chain.

KEEP LEARNING

Ready to test the idea?

Try 2 related published questions. You can return to this exact place.

Your reading and practice progress stay on this device.

Original explanations, worked examples and diagrams. Topic order and printed-page references follow New FE Textbook Vol.1 · IT Fundamentals · First Edition, April 2015. Exam images retain original source attribution.