Ch. 3 Hardware
3.1 Computers and their components
- The need for input, output, primary memory and secondary (including removable storage)
Embedded systems
Benefits
- Special-purpose, performing a single function
- Mass production is cheap
- Programs have to be short
Drawbacks
- If errors are found following installation then new chips have to be manufactured and replace faulty ones
Principal operations of hardware devices
Laser printer
- The drum is given an electric charge
- The drum starts to revolve step by step
- At each step a laser beam is directed by the mirror and lends assembly to a sequence of positions across the width of the drum
- At each position the laser is either switched off to leave the charge on the drum or switched on to discharge the position
- This process repeats until a full-page electrostatic image has been created
- The drum is coated with a charged toner that only sticks to positions where the drum has been discharged
- The drum rolls over a sheet of paper which is initially given an electric charge
- The sheet of paper is discharged and then is passed through heated rollers to fuse the toner particles and seal the image on the paper surface
- The drum is discharged before the process starts again for the next page
3D printer
- 3D design is created in a suitable computer-aided-design (CAD) package
- Design is split into layers
- The data for the first layer is transmitted to the 3D printer
- 3D printer uses a nozzle to squirt material on to the printer bed to create a physical layer to match the design
- Process is repeated for successive layers
- When the whole object has been formed, it has to be cured in some way to ensure that the layers are stuck together and the material has been converted to the form required for the finished product
Microphone
- Has a diaphragm
- Incoming sound waves cause vibration of the diaphragm
- Causing a coil to move past a magnet
- An electronic signal is produced
Speakers
- Digital data is converted to analogue by a digital-to-analogue (DAC) converter
- Analogue signal is fed as a varying electrical current to the speaker
- Current flows through a coil suspended within the magnetic field provided by a permanent magnet
- As the size and direction of the current keep changing, the coil moves backwards and forwards
- Movement controls the movement of a diaphragm, which causes sound to be created
Magnetic hard disk
- There is more than one platter
- Each platter has a read-write head for each side
- The platters spin in unison
- The read-write heads are attached to actuator arms which allow the heads to move over the surfaces of the platters
- The motion of each read-write head is synchronised with the motion of the other heads
- A cushion of air ensures that a head does not touch a platter surface
Solid state memory
- NAND-based flash memory
- Consist of a grid of columns and rows that has 2 transistors at each intersection
Optical disc reader/writer
- The optical disc has one spiral track running from the inner extreme of the surface to the outer edge
- During operation, the disc spins
- Simultaneously the laser moves across ensuring that it is continuously focused on the spiral track
- The track on the surface of the disc has what are referred to as “pits” and “lands”
- The laser beam is reflected from the surface of the disc
- The difference between the reflection from a pit compared to that from a land can be detected
- This difference in the intensity of the light the detector receives can be interpreted as either a 1 or 0 to allow a binary code to be read from the disc
Touchscreen
- Resistive touch screen
- Two layers separated by a thin space beneath the screen surface
- When a finger presses on to the screen, the pressure moves the topmost of these two separated layers
- Top layer makes contact with the lower layer
- Point of contact creates a voltage divider in the horizontal and vertical directions
- Capacitive touch screen
- Finger touching a glass screen can cause a capacitance change in a circuit
- Can detect the touch of several fingertips at the same time
Virtual reality headset
- Two eye-pieces that are fed paired images from the controlling system
- Gives the eyes the sensation of being in a 3D environment
- Controlled by moving head or using a controlling device
Use of buffers
- A problem occurs if the data is sent more quickly than it can be received
- The solution is to use a buffer
- Data enters a buffer before being transmitted to its destination
- The buffer functions as a queue so the data emerges in the order that it has entered the buffer
Differences between RAM and ROM
RAM loses content when power off (volatile memory), while ROM does not lose content when power off
Data in RAM can be altered while ROM is read only
RAM stores data currently in use while ROM is used to store pre-set instructions
Differences between SRAM (static) and DRAM (dynamic)
DRAM has to be refreshed // SRAM does not request a refresh
DRAM uses a single transistor and capacitor // SRAM has more complex circuitry
DRAM uses higher power // SRAM uses less power
DRAM is less expensive // SRAM is more expensive
DRAM used in main memory // SRAM used in cache memory
Difference between PROM (programmable), EPROM (erasable programmable) and EEPROM (electrically erasable programmable)
PROM
- Manufacturer of the chip supplies chips to a system builder
- The system builder installs the program or data into the chips
- Allows the system builder to test some samples of programmed chip before committing the whole batch to be programmed
- Program or data once installed cannot be changed
EPROM
- Installed data or program can be erased and new data or a new program can be installed
- Reprogramming requires the chip to be removed from the circuit
EEPROM
- Similar to EPROM except an electrical signal can be used to remove existing data
- Chip can remain in the circuit while the contents are changed
Monitoring and control systems
Monitoring system
- Used to create a record of the condition of a system over a period of time
- Used to detect when a physical property of a system goes outside a desired range
- Sensors
Control systems
- Has monitoring activity plus the capability to control a system
- Requires a device called an actuator, which is an electric motor that is connected to a controlling device
3.2 Logic gates and logic circuits
