Академический Документы
Профессиональный Документы
Культура Документы
Ans: At its essence, a keyboard is a series of switches connected to a microprocessor that monitors the
state of each switch and initiates a specific response to a change in that state.
The processor in a keyboard has to understand several things that are important to the utility of the
keyboard, such as:
• Position of the key in the key matrix.
• The amount of bounce and how to filter it.
• The speed at which to transmit the typematics.
The key matrix is the grid of circuits underneath the keys. In all keyboards except for capacitive ones,
each circuit is broken at the point below a specific key. Pressing the key bridges the gap in the circuit,
allowing a tiny amount of current to flow through. The processor monitors the key matrix for signs of
continuity at any point on the grid. When it finds a circuit that is closed, compares the location of that
circuit on the key matrix to the character map in its ROM. The character map is basically a comparison
chart for the processor that tells it what the key at x,y coordinates in the key matrix represents. If more
than one key is pressed at the same time, the processor checks to see if that combination of keys has a
designation in the character map. For example, pressing the ‘a’ key by itself would result in a small letter
"a" being sent to the computer. If you press and hold down the Shift key while pressing the ‘a’ key, the
processor compares that combination with the character map and produces a capital letter "A".
Keyboards rely on switches that cause a change in the current flowing through the circuits in the
keyboard. When the key presses the keyswitch against the circuit, there is usually a small amount of
vibration between the surfaces, known as bounce. The processor in a keyboard recognizes that this very
rapid switching on and off is not caused by you pressing the key repeatedly. Therefore, it filters all of the
tiny fluctuations out of the signal and treats it as a single keypress, just like a circuit debouncer (maybe
SR latch).
If you continue to hold down a key, the processor determines that you wish to send that character
repeatedly to the computer. This is known as typematics. In this process, the delay between each instance
of a character can normally be set in software, typically ranging from 30 characters per second (cps) to as
few as two cps.
1.DMA speedups the memory operations by bypassing the involvement of the CPU.
2.The work overload on the CPU decreases.
3.For each transfer, only a few numbers of clock cycles are required
If you zoom into a bitmap image, regardless of the file format, it will look blocky because each
dot will take up more than one pixel. Therefore, bitmap images will appear blurry if they are
enlarged. Vector graphics, on the other hand, are composed of paths instead of dots, and can be
scaled without reducing the quality of the image.
The process of applying bitmap into image is given below:
Vector (also known as "object-oriented") graphics are constructed using mathematical formulas
describing shapes, colors, and placement. Rather than a grid of pixels, a vector graphic consists
of shapes, curves, lines, and text which together make a picture. While a bitmap image contains
information about the color of each pixel, a vector graphic contains instructions about where to
place each of the components. It is even possible to embed a bitmap graphic within a vector
graphic, which is how vector-bitmap hybrid graphics work. It is not possible, however, to embed
vector information within a bitmap. Examples of vector graphic formats are PICT, EPS, and
WMF as well as PostScript and TrueType fonts. These are created with GIS and CAD
applications as well as drawing programs like FreeHand.
SVG, or Scalable Vector Graphics, is a language for describing vector graphics in XML. With
SVG, you can code graphics directly into an XML document.
i)
The parallel port found on computers is for connecting peripherals, where many bits of data are
sent at once, in parallel communication, and requires multiple data lines in their cables and are
also larger than the modern serial ports. Modern computers tend to be manufactured without
serial ports, and require serial-to-USB converters to allow compatibility with Serial / RS-232
serial devices.
The serial port is a serial communication interface, that sends bits of data, one at a time,
requiring one data line and are smaller than the parallel ports. Suprisingly and interestingly,
interfaces such as Ethernet, FireWire, and USB sends data as a serial stream. Serial port
identifies hardware as compliant to the RS-232 standard, intended to interface with a modem or
with a similar communication device.
Serial ports are still used in applications like point of sale systems, scientific instruments,
industrial automation systems, and some industrial and consumer products. Server computers
may use a serial port as a control console for diagnostics. Network equipment (such as routers
and switches) often use serial console for configuration. Serial ports are used in these areas as
they are simple, cheap and their console functions are highly standardized and widespread. A
serial port requires very little supporting software from the host system.
The parallel interface needs many wires to carry 8 or more bits of a byte at a time, adding to the
cable's complexity and cost.
Cables for serial printers use multi-wire cables fitted with nine or 25-pin "D" type miniature
connectors, one pair of wires for sending, one for receiving, an electrical ground and data
signalling wires. It uses two wires to carry data each way, sending data one bit at a time. A
printed document becomes a stream of ones and zeros in single file.
ii)
An impact printer creates an image on paper by striking the paper with a metal, plastic or rubber
impression tool; examples, typewriter, dot matrix printer, letterpress or rubber stamp.
A non-impact printer creates an image on paper by spraying ink on the paper (inkjet),
electrostatic transfer (laser printer or copier) or offset printing transferring the image to paper
from a rubber blanket. Mimeograph and hectograph may also be considered non-impact printing
as they create an image on a stencil or gelatin plate before transferring the image to paper.
iii)
The Light Source:
One of the most notable differences between a optical mouse and laser mouse s the light source
they employ. Usually the optical mice use a red LED or in some cases blue LED as a light
source. But the laser mouse use a infrared laser beam as light source. This infrared light is not
visible to the naked eye so it appears as if there is no illumination on the bottom surface of the
mouse.
The Cost:
Generally, the starting prices of both these types are almost same. But the high end game
supporting laser mice are lot more costlier than the optical mice. This is mainly because of the
wide features they offer their users which include the programmable buttons.
2. Input-Outpt mode –
If MSB of control word (D7) is 1, PPI works in input-output mode. This is further divided
into three modes:
Mode 0 –In this mode all the three ports (port A, B, C) can work as simple input
function or simple output function. In this mode there is no interrupt handling
capacity.
Mode 1 – Handshake I/O mode or strobbed I/O mode. In this mode either port A or
port B can work as simple input port or simple output port, and port C bits are used
for handshake signals before actual data transmission. It has interrupt handling
capacity and input and output are latched.
Example: A CPU wants to transfer data to a printer. In this case since speed of
processor is very fast as compared to relatively slow printer, so before actual data
transfer it will send handshake signals to the printer for synchronization of the speed
of the CPU and the peripherals.
Mode 2 – Bi-directional data bus mode. In this mode only port A works, and port B
can work either in mode 0 or mode 1. 6 bits port C are used as handshake signals. It
also has interrupt handling capacity.
4.b)Briefly describe the Hard Disk Drive Construction and IDE drives
interface.
Ans:
HDD consists of:
1.A head disk assembly (HDA)
2.Data separator and
3.A formatter
4.Use magnetic media to store the information.
5.Have the maximum of 8 rotating disks.
6.Use one head for each surface of a disk.
7.Capacity of HHD is the product of sector size, number of sector per track, number of tracks
and number of surfaces.
8.Typically hard disk have the speed of rotation in the range of 5,400 to 10,000 RPM
IDE drive interface:
1.The Integrated Drive Electronics (IDE) integrates the disk controller into the drive assembly
itself.
2.Drive is connected with the motherboard using a signal carrying cable called IDE connector.
Integrated controller on the drive has the following features:
3.It requires less number of ports.
4.Signal pathways are shorter and hence improved reliability.
5.Integrating the controller is much easier for the manufacturer.
6.AT Attachment IDE interface is the most popular HD interface.
7.Capable of operating two drives connecting in a daisy chain configuration.
8.One drive is specified as master and other drive is specified as slave.
9.The ATA cables has 3 connectors.
Despite the sophistication of the concept, the mechanism of capacitive switching is physically
simple. The movable part ends with a flat foam element about the size of an aspirin tablet,
finished with aluminum foil. Opposite the switch is a PCB with the capacitor pads. When the key
is pressed, the foil tightly clings to the surface of the PCB, forming a daisy chain of two
capacitors between contact pads and itself separated with thin solder mask, and thus "shorting"
the contact pads with an easily detectable drop of capacitive reactance between them. Usually
this permits a pulse or pulse train to be sensed. Because the switch doesn't have an actual
electrical contact, there is no debouncing necessary. The keys do not need to be fully pressed to
be actuated, which enables some people to type faster. The sensor tells enough about the position
of the key to allow the user to adjust actuation point (key sensitivity).
Mechanical-switch keyboard
Each key on a mechanical-switch keyboard contains a complete switch underneath. Each switch
is composed of a housing, a spring, and a stem, and sometimes other parts such as a separate
tactile leaf or a clickbar. Switches come in three variants: linear with consistent resistance; tactile
with a non-audible bump; and clicky, a tactile with an audible click.[4] Depending on the
resistance of the spring, the key requires different amounts of pressure to actuate and to bottom
out. The shape of the stem as well as the design of the switch housing varies the actuation
distance and travel distance of the switch. The amount of sound produced by actuation can also
be changed by the addition of rubber dampeners. Like other types of keyboards, mechanical
keyboards allow for the removal and replacement of keycaps, but replacing them is more
common with mechanical keyboards due to common stem shapes.
Membrane keyboard
Flat-panel membrane keyboards are most often found on appliances like microwave ovens or
photocopiers. A common design consists of three layers. The top layer has the labels printed on
its front and conductive stripes printed on the back. Under this it has a spacer layer, which holds
the front and back layer apart so that they do not normally make electrical contact. The back
layer has conductive stripes printed perpendicularly to those of the front layer. When placed
together, the stripes form a grid. When the user pushes down at a particular position, their finger
pushes the front layer down through the spacer layer to close a circuit at one of the intersections
of the grid. This indicates to the computer or keyboard control processor that a particular button
has been pressed.
Hall-effect keyboard
Hall effect keyboards use magnets and Hall effect sensors instead of switches with mechanical
contacts. When a key is depressed, it moves a magnet that is detected by a solid-state sensor.
Because they require no physical contact for actuation, Hall-effect keyboards are extremely
reliable and can accept millions of keystrokes before failing. They are used for ultra-high
reliability applications such as nuclear power plants, aircraft cockpits, and critical industrial
environments. They can easily be made totally waterproof, and can resist large amounts of dust
and contaminants. Because a magnet and sensor are required for each key, as well as custom
control electronics, they are expensive to manufacture.
Mode 0: In this mode, timer gives only one cycle of square wave, the output remains high for
1/2 count and remain s low for 1/2 count. If count is odd it remains high for (n+1)/2 and low for
(n-1)/2. Where n is count value. Wave width depends on two factor: one is Input clock pulse
frequency, and the other is count loaded in counter.
Mode 1: This mode is similar to single square wave in operation but the when counter becomes
zero, the count value is automatically reloaded. Thus it provides continuous square wave.
Mode 2: This mode gives a single clock pulse as a output of the end of the count.The output is
high normally, but it becomes low for 1 clock pulse and again it will become high and remain
high.
Mode 3: This mode is similar to mode 2 but when the counter becomes zero the count value is
automatically reloaded. Thus it provides continuous pulses.
8.d)Describe the internal command and status registers for 8237 DMA
controller.
Ans:
Internal Command and Programming:
The internal registers used in the 8237 for data transfer are as follows:
Base address register: To store the initial address from where data transfer will take place
Base word count register: To store the number of transfers to be performed
Current address register: To store the current address from where data is being transferred
Current word count register: To store the number of transfers remaining to be performed
Temporary address register: To hold address of data during memory-to-memory transfer
Temporary word count register: To hold number of transfers to be performed in memory-to-
memory transfer
Mode register: 8-bit register which stores the channel to be used, the operating mode, i.e. the
transfer mode, and other transfer parameters
Command register: 8-bit register which initializes the channel to be used for data transfer
Request register: 8-bit register used to indicate which channel is requesting for data transfer
Mask register: 8-bit register used to mask a particular channel from requesting for DMA service
Status register: 8-bit register used to indicate which channel is currently under DMA service and
some other parameters