Formatted Hardware
Formatted Hardware
1- Define CPU
Central processing unit is the portion of the computers that retrieves and executes
instructions.
2- What are the main 3 components of the CPU
Control unit
Arithmetic and logic unit
Registers and buses
3- What is the name given to computer architecture that we are using now
Von Neumann models
4- Explain stored program concept
Concept brought with von Neumann architecture to
- Store data and instructions in the same memory
- To process data and instructions in a sequential order.
- To allow processor to access the main memory directly
5- What are the stages of fetch executing cycle
-fetch
-decode
-execute
6- Explain the steps of fetch -decode and execute cycle
-PC (program counter fetches the instructions of next instruction from main memory
(RAM)
- The address contained in the PC is then copied to MAR
-the instructions are then copied from the memory location contained in MAR and is
placed in the MDR
- entire instruction is then taken to CIR
- program counter is then incremented, so that next instructions can be fetched
- instructions are then decoded and executed
7- Explain the functions of the following components
Program Counter (PC) - an incrementing counter that keeps track of the memory
address of which instruction is to be executed next.
Memory Address Register (MAR) - the address in main memory that is currently being
read or written
Memory Buffer / Data Register (MBR / MDR) - a two-way register that holds data
fetched from memory (and ready for the CPU to process) or data waiting to be stored in
memory
Current Instruction register (CIR) - a temporary holding ground for the instruction
that has just been fetched from memory
Accumulator - a register used to contain the results of an arithmetical or logical
operation.
Control Unit (CU) - decodes the instruction in the CIR, selecting machine resources
such as a data source register and a particular arithmetic operation, and coordinates
activation of those resources
Arithmetic logic unit (ALU) - performs mathematical and logical operations.
10- Identify the component of the CPU that is responsible for decoding instructions.
Control unit
GHz measures the speed at which electronic components process instructions from
software. For example, a 3.5GHz processor means that the processor can execute 3.5
billion instructions in one second.
a core is a small CPU or processor built into a big CPU or CPU socket. It can
independently perform or process all computational tasks.
The component that stores the frequently used data and instructions
17- Explain the disadvantages you will get if you increase the speed of system clock
Increasing the clock speed will lead to over clocking which will lead to overheating and
crash the system
18- Explain the disadvantage you will get if you use multiple cores
Instruction set is used to instruct the CPU how to carry out an operation
the software (for example, this is used to update the maps on a GPS system
used in a vehicle)
- automatic updates via a Wi-Fi, satellite or cellular (mobile phone network) link
(For example, many modern cars allow updates to engine management systems
It is an integrated circuit that contains all the functions of a central processing unit of a
computer
24- Explain the difference between microprocessor, microcontrollers and system on chips
A microprocessor is a processor where the memory and I/O component are connected
externally.
System on chips: this may contain a microcontroller as one of its components (they
almost always will include CPU, memory, input/output (I/O) ports and secondary storage
on a single microchip.
25- Explain the general make up of an embedded system
User interface
Output
1. It takes the analog/digital input from the user. Examples are Push-button switch, Keypad,
Sensor, Touch Screen.
2. Then, it processes the given input. Processing may be calculation or conversion. For
example, an ADC (Analog to digital converter) converts a sensor analog input to digital
output.
3. After converting the analog value to digital output, you need to control using output
devices. Examples are Motor, LCD, and Touchscreen.
BENEFITS
DRAWBACKS
difficult to upgrade
troubleshooting faults
although interface appear simple, in reality it can be more confusing
Security systems: The security code is set in RAM and the alarm activated or deactivated using
the keypad. Data from sensors is sent to the controller which checks against values stored on the
SSD (these settings are on SSD rather than RAM in case the sensitivity needs to be adjusted). An
output can be a signal to flash lights, sound an alarm or send a message to the home owner via
their mobile phone. Again, the home owner can interface with the system remotely if necessary
Set top box: a set-top box uses an embedded system to allow, for example, recording and
playback of television programs. This can be operated remotely by the user when not at home
using an internet-enabled device or by using the interface panel when at home. The embedded
system will look after many of the functions involving inputs from a number of sources such as a
Solid-State Device (SSD) (where television programs can be stored or retrieved) or a satellite
signal (where it will be necessary to decode the incoming signal).
Vending machines:
- actuators to operate the motors, which drive the helixes (see figure below) to
- give the customers their selected item(s)
- signals to operate the cooling system if the temperature is too high
- item description and any change due shown on an LCD display panel
- data sent back to the vending machine company so that they can remotely
- check sales activity (which could include instructions to refill the machine)
Input/ output
28- define input device
-barcode reader
-QR codes
- digital cameras
-keyboards
-microphones
-mouse
-2D/3Dscanners
-touch screens
A barcode reader or barcode scanner is an optical scanner that can read printed barcodes,
decode the data contained in the barcode to a computer.
customer
- faster checkout queues
- -customer is given item-based bills
- Better tracks of items and expiry dates.
-holds considerably more data than barcodes up to 7089 digits / 4296 characters
- the three large squares at the corners are used to align the QR code
- They will be fewer errors because it allows built in error checking method
- Only one barcode format is available in QR code more than one format is available
- QR code can be used to transmit malicious code/ since there are larger number of free
apps for QR code any one can make it.
- The image through the camera lens is captured on photodiodes (CCD) and converted
in to pixels.
- Each colour has a unique binary value // Each colour has a unique colour code
Advantages
Disadvantages
First, a switch beneath the key closes, and current flows into a small chip in a keyboard.
Each key has a scan code number, which corresponds to its position on the keyboard. The
keyboard transmits this number as binary data to the computer's CPU and identify the
key.
41- List down some types of keyboards being used
Physical keyboard
Advantages
- Easy to input
Disadvantages
Advantages
Disadvantages
Advantages
- User Friendly. A concept keyboard typically takes less time to learn compared to a
standard keyboard.
Disadvantages
-limited functions available if more functions are needed the keyboard has to be upgraded
/ rebuilt
the coil moves relative to a permanent magnet, so a potential difference is induced in the
coil
the coil is part of a complete circuit, so the induced potential difference causes a current
to flow around the circuit
the changing size and direction of the induced current matches the vibrations of the coil
the electrical signals generated match the pressure variations in the sound waves
disadvantages
- the pronunciation of some word might not be easy to understand e.g., there / their
- background noises will affect the input
51- explain how capacitive, resistive and infrared touch screen identify user’s touch
resistive
− uses multiple layers of material ...
− ... that transmit electric currents
− when the top layer/screen is pushed/touched into the lower/bottom layer ...
− ... the electric current changes and location of “touch” is found
capacitive
− current sent/flows out from all 4 corners of the screen
− when finger/stylus touches screen, the current changes
− the location of “touch” is calculated
infra-red
− an “invisible” grid on the screen (pattern of infra-red LED beams)
− sensors detect where the screen has been touched through a break in an infrared
beam(s)
− the position where the screen touched is calculated
52- Give advantages and disadvantages for all the three types of touch screens
Resistive
benefits:
− inexpensive/cheap to manufacture
− can use stylus/finger/gloved finger/pen
drawbacks:
− poor visibility in sunlight
− vulnerable to scratching
− wears through time
− does not allow multi-touch facility
Capacitive
benefits:
− good visibility in sunlight
− (very) durable surface
− allows multi-touch facility
drawbacks:
− screen (glass) will shatter/break/crack (on impact)
− cannot use when wearing (standard) gloves
infra-red
benefits:
− good durability
− allows multi-touch facility
− can use stylus/finger/gloved finger/pen
drawbacks:
− expensive to manufacture
− screen (glass) will shatter/break/crack (on impact)
− sensitive to dust/dirt
53- explain the following two types of capacitive touch screens
- surface capacitive screens, sensors are placed at the corners of a screen. Small voltages are
also applied at the corners of the screen creating an electric field. A finger touching the screen
surface will draw current from each corner reducing the capacitance. A microcontroller measures
the decrease in capacitance and hence determines the point where the finger touched the screen.
This system only works with a bare finger or stylus.
Projective capacitive screens work slightly differently to surface capacitive screens. The
transparent conductive layer is now in the form of an X-Y matrix pattern. This creates a three dimensional
(3D) electrostatic field. When a finger touches the screen, it disturbs the 3D electrostatic field allowing a
microcontroller to determine the coordinates of the point of contact. This system works with bare fingers,
stylus and thin surgical or cotton gloves. It also allows multi-touch facility (for example, pinching or
sliding).
OUTPUT DEVICES
LCD disadvantages
62- Explain the advantages and disadvantages of inkjet and laser printers
Inkjet advantages
Cheaper to buy than laser printer
Takes small footprint
good quality for photo printing
Inkjet disadvantages
Expensive to operate (cartridges will run faster)
Slow printing than laser
Runs quieter than laser
Laser advantages
Cheaper to run / operate (toner will run for longer)
Faster printing / high volume printing
Good quality in printing text
Laser disadvantages
Printer is expensive
Takes large foot print
Louder
63- Modern LCD monitors and televisions use LED back-lit technology.
Give two advantages of using this new technology compared to the older cold cathode
fluorescent lamp (CCFL) method
– no need to warm up
– higher resolution
LED LCD
Placement of light in LED is placed behind the Florescent light of LCD are always placed back of
screen and around its edges the screen
Since it uses backlight more clear, better picture is As it uses florescent light the picture quality in
displayed LCD is noticeable in scenes with high contrast as
dark portions may appear too bright or fadeout
There is no need for a cable or wire for the Bluetooth speakers to connect.
Laptops, tablets, and smartphones all come with built-in speakers.
Because they are extremely portable, they may be relocated from one location to
another.
Disadvantages
Primary Secondary
Processor can directly access to this Processor cannot directly access to this, if
memory any data in the secondary needs to be
read, then it has to be loaded in to RAM
first
RAM ROM
71- Explain the difference between static ram and dynamic ram
Uses flip flops to hold each bit of memory Consists of transistors and capacitors
79- What are the things to consider when choosing an appropriate secondary storage device
• Capacity — The amount of data that can be stored with the medium.
• Transfer speed — The rate at which data can be transferred to and from the medium.
• Portability — How easily the medium can be transported from one location to another
• Durability — How resistant the medium is to data loss and damage from wear, tear and
pressure.
• Cost — How expensive is the medium (this is often calculated as cost per megabyte or cost per
gigabyte).
Non-volatile memory that can only be read from and not written to. ROM
Optical storage media that allows very high storage capacity: blu-ray disc
by using blue/violet laser technology.
Volatile memory that stores data, programs and the parts of RAM
the operating system that are currently in use.
Optical storage media that uses a single spiral track and uses
dual layer technology, allowing high data storage capacity. DVD/ DVD-R(+R)/ DVD-RW(+RW)/
DVD-ROM
90- What are the advantages and disadvantages of using cloud storage
ADVANTAGES
Files stored in cloud can be accessed anytime
No need to carry external storage with them
Provides remote backup
Almost unlimited storage capacity
DISADVANTAGES
Slower / unstable internet connections
Cost can be high if large storage capacity is required
Always possible to loss all backup data
Data security issues
91- Explain the three types of clouds
Public cloud: the client and cloud storage providers are different companies
Private cloud: a dedicated system behind a firewall where the client and storage provider
operate as single entity
Hybrid cloud: a combination of public and private cloud provider, where the most sensitive data
is stored in a private storage.
DISADVANTAGES
Higher cost than public cloud
More maintenance than public cloud
Depends on internet connection
Network hardware
95- Explain NIC Card
A network interface card (NIC) is a hardware component, typically a circuit board or chip, which is
installed on a computer so it can connect to a network.
NIC card contains the MAC address
97- Explain the reasons why MAC address is being administered locally
Due to network restrictions
And some software needs the MAC address to be set in a specific standard
dynamic Static
Changes every time a device connects to a Permanently assigned
network
Greater privacy since it changes every time a Can be fully traceable: because it does not
user log on change
Allows for faster upload and download speed
105- Explain the difference between MAC and IP address
MAC IP ADDRESS
Identifies the physical address of a device on Identifies the global on the internet
the network
Unique for device on the network May not be unique
Assigned by the manufacturer and is part of Assigned by ISP
NIC
Can be universal or local Dynamic ip changes every time device
connects static IP address don’t change
Use 48 bits Use either 32 bits or 128 bits
Can be UAA or LAA Can be static and dynamic