Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
4 views
Chapter 3
IGCSE AS LEVEL CS CHAPTER 3
Uploaded by
RIYA AMIT MAHATO
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save chapter 3 For Later
Download
Save
Save chapter 3 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
4 views
Chapter 3
IGCSE AS LEVEL CS CHAPTER 3
Uploaded by
RIYA AMIT MAHATO
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save chapter 3 For Later
Carousel Previous
Carousel Next
Save
Save chapter 3 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 39
Search
Fullscreen
Hardware Ree Comet Pe Ce us eed secondary storage [including removable devices) eer Ue eee ecard hardware devices used as input, output and storage COS eC ae Oe) TOS Wa EL Cur enced Dea Rag eeu CeCe roa CLEP LOD MELE eeu eure cd Cee eu eae Cee Cr et eo from a variety of logic information. z 5 g z WHAT YOU SHOULD ALREADY KNOW Try these five questions before you read th chapter. 1. What is the difference between memory and storage? 2. Whyis it necessary to have both internal and external memory/storage devices? 3 Can you recognise the memory/storage devices on the right? 4 What is the difference between online and offline storage? 5 Whatis the difference between data access time and data transfer rate when using memory and storage devices? ‘A Figure 3.1 Memory/storage devices @ 3.1 Computers and their components Key terms ‘Memory cache high speed memory external to processor Dynamic RAM (DRAM) - type of RAM chip that needs which stores data which the processor will need ag: Random access memory (RAM) — primary memory unit that can be written to and read from. Read-only memory (ROM) ~ primary memory unit that. can only be read from, ‘to be constantly refreshed. Static RAM (SRAM) - type of RAM chip that uses flip-flops and does not need refres Refreshed ~ requirement to charge a component to retain its electronic stateProgrammable ROM (PROMI - type of ROM chip that can be programmed once. Erasable PROM (EPROM) ~type of ROM that can be programmed more than once using ultraviolet {UV) light Hard disk drive (HDD) - type of magnetic storage device that uses spinning disks. Latency - the lag in a system: for example, the time to find a track on a hard disk, which depends on the time taken for the disk to rotate around to its read-write head Fragmented - storage of data in non-consecutive sectors: for example, due to editing and deletion of ald data Removable hard disk drive ~ portable hard disk drive that is external to the computer; it can be connected via a USB part when required; often used as a device to back up files and data Solid state drive (SSD) ~ storage media with no moving parts that relies on movement of electrons. Electronically erasable programmable read-only memory (EEPROM) - read-only [ROM) chip that can bbe modified by the user, which can then be erased and written to repeatedly using pulsed voltages. Flash memory - a type of EEPROM, particularly suited touse in drives such as SSDs, memory cards and memory sticks. Optical storage - CDs, DVDs and Blu-ray™ discs that Use laser light to read and write data Dual layering - used in DVDs: uses two recording layers. Birefringence ~ a reading problem with DVDs caused by refraction of laser light into two beams. Binder 30 printing ~ 30 printing method that uses a two-stage pass; the first stage uses dry powder and the second stage uses a binding agent. Direct 3D printing - 30 printing technique where print head moves in the x,y and z directions. Layers of melted material are built up using nozzles like an inkjet printer. Digital to analogue converter (DAC) - needed to convert digital data into electric currents that can drive motors, actuators and relays, for example. ‘Analogue to digital converter (ADC) - needed to convert analogue data [read from sensors, for example] into form understood by a computer. Organic LED (OLED) - uses movement of electrons between cathode and anode to produce an on-screen image. It generates its own light so no back lighting required, ‘Screen resolution - number of pixels in the horizontal ‘and vertical directions on a television/computer screen. ‘Touch screen - screen on which the touch of a finger or stylus allows selection or manipulation of a screen image; they usually use capacitive or resistive technology. Capacitive - type of touch screen technology based on glass layers forming a capacitor, where fingers touching the screen cause a change in the electric field Resistive -type of touch screen technology. When ‘a finger touches the screen, the glass layer touches the plastic layer, completing the circuit and causing a current to flow at that point. Virtual reality headset - apparatus worn on the head that covers the eyes like a pair of goggles. It gives the user the ‘feeling of being there’ by immersing them totally in the virtual reality experience ‘Sensor ~ input device that reads physical data from its surroundings, 3.1.1 Types of memory and storage Computers require some form of memory and storage, Memory is usually referred to as the internal devices which the computer can access directly. This memory can be the user’s workspace, temporary data or data that is key to running the computer. Storage devices allow users to store applications, data and files. The users data is stored permanently and they can change it or read it as they wish. Storage needs to be larger than internal memory since the user may wish to store large files (such as music files or photographic images). Storage devices can also be removable to allow data, for example, to be transferred between computers. Removable devices allow a user to store important data in a different building in case of data loss. However, all of this has become a lot less important with the advent of technology such as ‘data drop’ (which uses Bluetooth) and cloud storage. Internal memory includes components such as registers (which are part of the processor). There is also memory cache (which is external to the processor); this is used to store data which the processor will probably need to use again.3 HARDWARE Figure 3.2 summarises the types of memory and storage devices covered in this chapter. secondary storage hard disk dive (HOD), primary memory RAM o> ROM removable devices: solid state drive (55D) = pyD/cDVBlu-ay = flash memory stick hard isk drive ‘A Figure 3.2 Memory and storage devices Primary memory Primary memory is the part of computer memory which can be accessed directly from the CPU and, as Figure 3.2 shows, contains the random access memory (RAM) and read-only memory (ROM) memory chips. Primary memory allows the processor to access applications and services temporarily stored in memory locations. The structure of primary memory is shown in Figure 3.3. Primary memory FAM ROM T SRAM DRAM prom || cron | | EzPROW A Figure 3.3 Structure of primary memory All computer systems come with some form of RAM. These memory devices are not really random, it refers to the fact that any memory location can be accessed independent of which memory location was last used. Access time to locate data is much faster in RAM than in secondary devices. RAM can also be » written to or read from, and the data stored can be changed by the user or by the computer » used to store data, files, part of an application or part of the operating system currently in use » volatile (memory contents are lost on powering off the computer). In general, the larger the RAM, the faster the computer will operate. In reality, RAM never runs out of memory, it continues to operate but just becomes slower and slower as more data is stored. As RAM becomes ‘full’, the processor has to continually access the secondary data storage devices to overwrite old data on RAM with new data. By increasing the RAM size, the number of times this has to be done is considerably reduced, thus making the computer operate more quickly. There are currently two types of RAM technology, dynamic RAM (DRAM) and static RAM (SRAM).A Figure 3.4 Two pieces of dynamic random access memory (DRAM) A Figure 3.5 Static RAM Dynamic RAM (DRAM) Each DRAM chip consists of a number of transistors and capacitors. Each of i} these parts is tiny since a single RAM chip will contain millions of capacitors and transistors. » Capacitors hold the bits of information (0 or 1). » Transistors act like switches; they allow the chip control circuitry to read the capacitor or change the capacitors value. This type of RAM needs to be constantly refreshed (that is, the capacitor ry needs to be re-charged every 15 microseconds otherwise it would lose its value). IF it is not refreshed, the capacitor’s charge will leak away very quickly, leaving every capacitor with the value 0. DRAMs have a number of advantages over SRAMs. They: » are much less expensive to manufacture than SRAMS >» consume less power than SRAMs » have a higher memory capacity than SRAMs. Static RAM (SRAM) A major difference between SRAM and DRAM is that SRAM does not need to be constantly refreshed. Tt makes use of flip flops (see Chapter 15) which hold each bit of memory. SRAM is much faster than DRAM when it comes to data access (typically, access time for SRAM is 25 nanoseconds and for DRAM is 60 nanoseconds). DRAM is the most common type of RAM used in computers, but where absolute speed is essential, for example in the processor's memory cache, SRAM is the preferred technology. Memory cache is a high speed portion of the memory. Itis effective because most programs access the same data or instructions many times. By keeping as much of this information as possible in SRAM, the computer avoids having to access the slower DRAM. Table 3.1 summarises the differences between DRAM and SRAM. DRAM ‘SRAM ‘= consists of a number of transistors and | m uses flip-flops to hold each bit of capacitors memory sm needs to be constantly refreshed 1m does not need to be constantly sm less expensive to manufacture than SRAM | refreshed 1m has a higher memory capacity than SRAM | m has a faster data access time than DRAM ‘= _main memory is constructed from DRAM | m processor memory cache makes use = consumes more power than SRAM under | of SRAM reasonable levels of access, as it needs | m if accessed at a high frequency, power to be constantly refreshed usage can exceed that of DRAM ‘A Table 3.1 Differences between DRAM and SRAM Another form of primary memory is the read-only memory (ROM). This is similar to RAM in that it shares the same random access properties, but it cannot be written to or changed. As the name suggests, ROM is a read-only memory device. ROMs are » non-volatile (the contents are not lost after powering off the computer) >» permanent memory devices (the contents cannot be changed)3 HARDWARE » often used to store data which the computer needs to access when powering up for the first time for example, the basic input/output system (BIOS). Table 3.2 summarises the main differences between RAM and ROM. RAM ROM. 1m temporary memory device 'm permanent memory device = volatile memory m non-volatile memory device = can be written to and read from wm data stored cannot be altered 1 used to store data, files, programs, part |m sometimes used to store 8105 and other of 0S currently in use data needed at start up = can be increased in size to improve operational speed of a computer A Table 3,2 Differences between RAM and ROM PROM and EPROM A programmable read-only memory (PROM) is a type of ROM chip that can be altered once. A PROM is made up of a matrix of fuses. Programming a PROM requires the use of a PROM writer which uses an electric current to alter specific cells by ‘burning’ fuses in the matrix. Due to the method of programming (writing), a PROM can only be written to once. They are often used in mobile phones and in RFID tags. An erasable programmable read-only memory (EPROM) is different to a PROM because they use floating gate transistors and capacitors rather than fuses. Ultra violet (UV) light is used to program an EPROM through a quartz window. They are used in applications which are under development, such as the programming of new games consoles. Embedded systems Embedded systems involve installing microprocessors into devices to enable operations to be controlled in a more efficient way. Devices such as cookers, refrigerators and central heating systems can now all be activated by a web-enabled device (such as a mobile phone or tablet). The time a central, heating system switches on or off and the temperature can all be set from an app on a mobile phone from anywhere in the world There are pros and cons of devices being controlled in this manner, as shown in Table 3.3. Pros of embedded systems ‘Cons of embedded systems 1 small in size and therefore easy to | m difficult to upgrade devices to take fit into devices advantage of new technology 1 relatively low cost to make = troubleshooting faults in the device 1 usually dedicated to one task, becomes a specialist task making for simple interfaces im although the interface can appear to be and often no requirement of an simple, in realty it can be more confusing ‘operating system (changing the time on a cooker clock can 1m consume very little power require several steps, for example) im very fast reaction to changing input | m any device that can be accessed over the (operate in real time) internet is also open to hackers, viruses, = with mass production comes and so on reliability = due to the difficulty in upgrading and fault finding, devices are often just thrown away rather than being repaired (wasteful) ‘A Table 3.3 Pros and cons of controlling devices with embedded systemstrack A Figure 3.6 Tracks and sectors on a hard disk drive EXTENSION ACTIVITY 3A. Describe how ROM and RAM chips could be used in a) a microwave oven b) refrigerator €) a remote-controlled model aeroplane (the movement of the aeroplane is controlled by @ hand-held device]. Secondary storage devices Secondary storage includes storage devices that are not directly accessible by the CPU. They are non-volatile devices which allow data to be stored as long as required by the user. This type of storage is much larger than primary memory, but data access time is considerably slower than RAM and ROM. All applications, the operating system, device drivers and general files (for example, documents, photos and music) are stored on secondary storage. The following section discusses the various types of secondary storage that can be found on the majority of computers. Secondary storage devices fall into three categories: magnetic, solid state and optical. Hard disk drives (HDD) Hard disk drives (HDD) are still one of the most common methods used to store data on a computer. Data is stored in a digital format on the magnetic surfaces of the disks (or platters, as they are frequently called). The hard disk drive will have a number of platters which can spin at about 7000 times a second. A number of read-write heads can access all of the surfaces in the disk drive. Normally each platter will have two surfaces which can be used to store the data. These read-write heads can move very quickly - typically they can move from the centre of the disk to the edge of the disk (and back again) 50 times a second Data is stored on the surface in sectors and tracks. A sector on a given track will contain a fixed number of bytes. Unfortunately, hard disk drives have very slow data access when compared to, for example, RAM. Many applications require the read-write heads to constantly seek for the correct blocks of data; this means a large number of head movements. The effects of latency then become very significant. Latency is defined as the time it takes for a specific block of data on a data track to rotate around to the read-write head. Users will sometimes notice the effect of latency when they see messages such as, ‘Please wait’ or, at its worst, ‘not responding’. When a file or data is stored on an HDD, the required number of sectors needed to store the data will be allocated. However, the sectors allocated may not be adjacent to each other. Through time, the HDD will undergo numerous deletions and editing, which leads to sectors becoming increasingly fragmented, resulting in a gradual deterioration of the HDD performance (in other words, it takes longer and longer to access data). Defragmentation software can improve on this situation by ‘tidying up’ the disk sectors. ‘An HDD is a direct access device; however, data in a given sector will be read sequentially. i3 HARDWARE Removable hard disk drives are essentially HDDs that are external to the ‘computer and can be connected to the computer using one of the USB ports. In this way, they can be used as back-up devices or as another way of transferring files between computers. EXTENSION ACTIVITY 3B The length of a track on each disk in an HDD disk pack becomes much shorter towards the centre of the disk. Find out how manufacturers have overcome this issue with regards to disk data capacity and data access time. Solid state drives (SSD) Latency is an issue in HDDs, as discussed earlier. Solid state drives (SSD) reduce this issue considerably. They have no moving parts and all data is retrieved at the same rate. They do not rely on magnetic properties. The most common type of solid state storage devices store data by controlling the movement of electrons within NAND chips. The data is stored as Os and 1s in millions of tiny transistors (at each junction one transistor is called a floating gate and the other is called a control gate) within the chip. This effectively produces a non-volatile rewritable memory. However, a number of solid state storage devices sometimes use electronically erasable PROM (EEPROM) technology. The main difference is the use of NOR chips rather than NAND. This makes them faster in operation but devices using EEPROM are considerably more expensive than those that use NAND technology. EEPROM also allows data to be read or erased in single bytes at a time. Use of NAND only allows blocks of data to be read or erased. This makes EEPROM technology more useful in certain applications where data needs to be accessed or erased in byte-size chunks. Because of the cost implications, the majority of solid state storage devices use NAND technology. The two are usually distinguished by the terms flash memory (use NAND) and EEPROM (use NOR). So, what are the main benefits of using an SSD rather than an HDD? Solid state drives » are more reliable (no moving parts to go wrong) » are considerably lighter (which makes them suitable for laptops) » do not have to ‘get up to speed’ before they work properly » have a lower power consumption » tun much cooler than HDDs (both these points again make them very suitable for laptop computers) » are very thin (because they have no moving parts) » access data considerably faster. The main drawback of SSD is the still unknown longevity of the technology. Most solid state storage devices are conservatively rated at only 20GB write operations per day over a three year period - this is known as SSD endurance. For this reason, SSD technology is not commonly used in servers, for example, where a huge number of write operations take place every day. However, this issue is being addressed by a number of manufacturers to improve the durability of these solid state systems and they are rapidly becoming more common in applications such as servers and cloud storage devices. Note that it is also not possible to over-write existing data on a flash memory device; it is necessary to first erase the old data and then write the new data at the same locationMemory sticks/flash memories (also known as pen drives) use solid state technology. They usually connect to the computer through the USB port. Their main advantage is that they are very small, lightweight devices which make i} them suitable for transferring files between computers. They can also be used as small back-up devices for music or photo files, for example. Complex or expensive software, such as an expert system, will often use a memory stick as a dongle. The dongle contains additional files which are needed to run the software. Without this dongle, the software will not work properly. It therefore prevents illegal or unauthorised use of the software, and: « also prevents copying of the software since, without the dongle, it is useless. Optical media: CDs, DVDs and Blu-ray discs Ds and DVDS are described as optical storage devices. Laser light is used to read data from, and write data onto, the surface of a disk. single spiral tack runs from the centre to outer part of dis pits or bumgs ‘A Figure 3.7 CDs and DVDs use a single, spiral track Both CDs and DVDs use a thin layer of metal alloy or light-sensitive organic dye to store the data. As shown in Figure 3.7, both systems use a single, spiral track which runs from the centre of the disk to the edge. When a disk spins, the optical head moves to the point where the laser beam ‘contacts’ the disk surface and follows the spiral track from the centre outwards. As with an HDD, a CD/DVD is divided into sectors allowing direct access of data. Also, as in the case of an HDD, the outer part of the disk runs faster than the inner part of the disk. EXTENSION ACTIVITY 3C The outer part of an optical disk runs faster than the inner part of the disk. Find out how manufacturers have overcome this issue with regards to disk data capacity and data access time. The data is stored in ‘pits’ and ‘bumps’ on the spiral track. A red laser is used to read and write the data. CDs and DVDs can be designated R (write once only) or RW (can be written to or read from many times). DVD technology is slightly different to that used in CDs. One of the main differences is the use of dual layering which considerably increases the storage capacity. This means that there are two individual recording layers. Two layers of a standard DVD are joined together with a transparent (polycarbonate) spacer, and a very thin reflector is sandwiched between the two layers. Reading and writing of the second layer is done by a red laser focusing at a fraction of a millimetre difference compared to the first layer.3 HARDWARE peljarbonate yer J fist yer SSS Se [ peljcarbonate er J secon yer laser reads laser reads layer 1 layer 2 ‘A Figure 3.8 Dual layering in a DVD Standard, single layer DVDs still have a larger storage capacity than CDs because the ‘pit’ size and track width are both smaller. This means that more data can be stored on the DVD surface. DVDs use lasers with a wavelength of 650 nanometres; CDs use lasers with a wavelength of 780 nanometres. The shorter the wavelength of the laser light, the greater the storage capacity of the medium. » Blu-ray discs are another example of optical storage media. However, they are fundamentally different to DVDs in their construction and in the way they carry out read-write operations. » Blu-ray uses a blue laser, rather than a red laser, to carry out read and write operations; the wavelength of blue light is only 405 nanometres (compared to 650 nm for red light). » Using blue laser light means that the ‘pits’ and ‘bumps’ can be much smaller; consequently, a Blu-ray can store up to five times more data than a DVD. » Blu-ray uses a single 1.1mm thick polycarbonate disk; DVDs use a sandwich of two 0.6mm thick disks. » Using two sandwiched layers can cause birefringence (light is refracted into two separate beams causing reading errors); because Blu-ray uses only one layer, the discs do not suffer from birefringence. » Blu-ray discs automatically come with a secure encryption system which helps to prevent piracy and copyright infringement. Table 3.4 summarises the main differences between CDs, DVDs and Blu-ray. ‘track pitch laser | wavelength (distance disk type colour_| of laser light _| disk construction _| between tracks) Co red | 780nm single 1.2mm 1.609m polycarbonate layer DvD red | 650nm ‘two 0.6mm 0.74um polycarbonate layers Blu-ray blue | 405nm single 11mm 0.3m polycarbonate layer rim = 10-?metres um = 10-6metres ‘A Table 3.4 Main differences between CDs, DVDs and Blu-ray All these optical storage media are used as back-up systems (for photos, music and multimedia files). This also means that CDs and DVDs can be used to transfer files between computers. Manufacturers sometimes supply their software (such as printer drivers) on CDs and DVDs. When the software is supplied in this way, the disk is usually in a read-only format. The most common use of DVD and Blu-ray is the supply of movies or games. The memory capacity of CDs is not big enough to store most movies.A Figure 3.9 A laser printer EXTENSION ACTIVITY 3D ‘Arecent development is PRAM (parameter RAM) or PCRAM (phase-change RAM) which utilises chalogenide glass. This is glass containing elements such as sulphur, antimony, selenium, germanium or tellurium. Chalogenide compounds used in PRAMs/PCRAMs can be changed between the amorphous (glass-like] state and crystalline state, which changes the optical and electrical properties allowing the storage of data when used as.a film on the surface of optical media. Find out more about this technology and determine whether this could result in the demise of the current solid state removable devices. 3.1.2 Input and output devices This section will consider laser printers, inkjet printers, 3D printers, speakers, microphones, screens and sensors. Laser printers Laser printers use dry powder ink rather than liquid ink and make use of the properties of static electricity to produce the text and images. Unlike inkjet printers, for example, laser printers print the whole page in one go. Colour laser printers use four toner cartridges - blue, cyan, magenta and black. Although the actual technology is different to monochrome printers, the printing method is similar, but colour dots are used to build up the text and images. When a user wishes to print a document using a laser printer, the following sequence of events takes place. Stage |Description of what happens 1 data from the document is sent to a printer driver 2 printer driver ensures that the data is in a format that the chosen printer can understand 3 check is made by the printer driver to ensure that the chosen printer is available to print (i it busy? is it off-line? is it out of ink? and so on) 4 data is sent to the printer and stored in a temporary memory known as a printer buffer 5 printing drum given a positive charge. As this drum rotates, a laser beam scans across it removing the positive charge in certain areas, leaving negatively charged areas which exactly match the text/images of the page to be printed 6 drum is coated with positively charged toner (powdered ink). Since the toners positively charged, it only sticks to the negatively charged parts of the drum negatively charged sheet of paper is rolled over the drum toner on the drum sticks to the paper to produce an exact copy of the page sent to the printer 9 to prevent the paper sticking to the drum, the electric charge on the paper is removed after one rotation of the drum 10 the paper goes through a fuser (a set of heated rollers), where the heat, melts the ink so that it Fixes permanently to the paper 1 a discharge lamp removes all the electric charge from the drum so itis ready to print the next page ‘A Table 3.5 Sequence to print using a laser printer3 HARDWARE ‘A Figure 3.10 An inkjet printer Inkjet printers Inkjet printers are made up of »> a print head consisting of nozzles that spray droplets of ink onto the paper to form characters » an ink cartridge or cartridges; either one cartridge for each colour (blue, yellow and magenta) and a black cartridge, or one single cartridge containing all three colours and black (note: some systems use six colours) » a stepper motor and belt which moves the print head assembly across the page from side to side » a paper feed which automatically feeds the printer with pages as they are required. The ink droplets are currently produced using one of two technologies: thermal bubble or piezoelectric. Thermal bubble - tiny resistors create localised heat which makes the ink vaporise. This causes the ink to form a tiny bubble, as the bubble expands some of the ink is ejected from the print head onto the paper. When the bubble collapses, a small vacuum is created which allows fresh ink to be drawn into the print head. This continues until the printing cycle is completed Piezoelectric - a crystal is located at the back of the ink reservoir for each nozzle. The crystal is given a tiny electric charge which makes it vibrate. This vibration forces ink to be ejected onto the paper and at the same time more ink is drawn in for further printing. When a user wishes to print a document using an inkjet printer, the following sequence of events takes place. Whatever technology is used, the basic steps in the printing process are the same. Stage __| Description of what happens 1 data from the document is sent to a printer driver 2 printer driver ensures that the data is in a format that the chosen printer can understand 3 check is made by the printer driver to ensure that the chosen printer is available to print (is it busy? is it off-line? is it out of ink? and so on) 4 data is sent to the printer and stored in a temporary memory known as a printer buffer 5 ‘a sheet of paper is fed into the main body of the printer. A sensor detects whether paper is available in the paper feed tray ~ if it is out of paper (or the paper is jammed), an error message is sent back to the computer 6 {as the sheet of paper is fed through the printer, the print head moves from side to side across the paper printing the text or image. The four ink colours. are sprayed in their exact amounts to produce the desired final colour 7 ‘at the end of each full pass of the print head, the paper is advanced very slightly to allow the next line to be printed. This continues until the whole page has been printed 8 if there is more data in the printer buffer, then the whole process from stage 5 is repeated until the buffer is empty 9 ‘once the printer buffer is empty, the printer sends an interrupt to the processor in the computer, which is a request for more data to be sent to the printer. The process continues until the whole of the document has been printed ‘A Table 3.6 Sequence to print using a laser printer‘A Figure 3.12 Artificial bone framework made using an industrial 30 printer 30 printers A Figure 3.11 A3D printer 3D printers are used to produce working, solid objects. They are primarily based on inkjet and laser printer technology. The solid object is built up layer by layer using materials such as powdered resin, powdered metal, paper or ceramic. The artificial bone framework in Figure 3.12 was made from many layers (100m thick) of powered metal using a technology known as binder 3D printing. Various types of 3D printers exist; they range from the size of a microwave oven up to the size of a small car. 30 printers use additive manufacturing (the object is built up layer by layer); this is in contrast to the more traditional method of subtractive manufacturing (removal of material to make the object). For example, making a statue using 2 3D printer would involve building it up layer by layer using powdered stone until the final object was formed. The subtractive method would involve carving the statue out of solid stone (removing the stone not required) until the final item was produced. Similarly, CNC machining removes metal to form an object; 3D printing would produce the same item by building up the object from layers of powdered metal. Direct 3D printing uses inkjet technology; a print head can move left to right as ina normal printer. However, the print head can also move up and down to build up the layers of an object. Binder 3D printing is similar to direct 3D printing. However, this method uses two passes for each of the layers; the first pass sprays dry powder and then on the second pass a binder (a type of glue) is sprayed to form a solid layer. Newer technologies use lasers and UV light to harden liquid polymers; this further increases the diversity of products which can be made.3 HARDWARE Speakers and microphones Speakers Digitised sound stored in a file on a computer can be converted into sound as follows: »» The digital data is first passed through a digital to analogue converter (DAC) where it is converted into an electric current. » This is then passed through an amplifier (since the current generated by the DAC will be small) to create a current large enough to drive a loudspeaker. » This electric current is then fed to a loudspeaker where it is converted into sound, The following schematic shows how this is done. too1o101011 FL »} pac ampliter speaker A Figure 3.13 Digital to analogue conversion As Figure 3.13 shows, if the sound is stored in a computer file, it must first pass through a digital to analogue converter (DAC) to convert the digital data into an electric current which can be used to drive the loudspeaker. Figure 3.14 shows how a loudspeaker can convert electric signals into sound waves. i ome eae = yi electric curent fed to wire A Figure 3.14 Diagram showing how a loudspeaker works » When an electric current flows through a coil of wire that is wrapped around an iron core, the core becomes a temporary electromagnet; a permanent magnet is also positioned very close to this electromagnet. » As the electric current through the coil of wire varies, the induced magnetic field in the iron core also varies. This causes the iron core to be attracted towards the permanent magnet and as the current varies this will cause the iron core to vibrate »» Since the iron core is attached to a cone (made from paper or thin synthetic material), this causes the cone to vibrate, producing sound. The rate at which the DAC can translate the digital output into analogue voltages is known as the sampling rate. If the DAC is a 16-bit device, then itcan accept numbers between +32 767 (26 - 1) and -32768 (2°6); the digital value containing all zeros is ignored. 3 Microphones Microphones are either built into the computer or are external devices connected through the USB port or through wireless connectivity. Figure 3.15 shows how a microphone can convert sound waves into an electric current. The current produced can either be stored as sound (on, for example, a (0), amplified and sent to a loudspeaker, or sent to a computer for storage, i coil wrapped around cone 2 permanent magnet sound wa butput trom ‘he microphone daphragm ‘A Figure 3.15 Diagram of how a microphone works » When sound is created, it causes the air to vibrate. » When a diaphragm in the microphone picks up the air vibrations, the diaphragm also begins to vibrate. » A copper coil is wrapped around a permanent magnet and the coil is connected to the diaphragm using a cone. As the diaphragm vibrates, the cone moves in and out causing the copper coil to move backwards and forwards. » This forwards and backwards motion causes the magnetic field around the permanent magnet to be disturbed, inducing an electric current. » The electric current is then either amplified or sent to a recording device. The electric current is analogue in nature. The electric current output from the microphone can also be sent to a computer where a sound card converts the current into a digital signal which can then be stored in the computer. The following diagram shows what happens when the word ‘hut is picked up by a microphone and is converted into digital values: 1000 o001 2001 1110, slid + {000 110 2001 1100, 109 1100 Horne sound wave for HUT dita vue ater comesion ‘A Figure 3.16 Analogue to digital conversion Look at Figure 3.16. The word ‘hut’ (in the form of a sound wave) has been picked up by a microphone; this is then converted using an analogue to digital converter (ADC) into digital values which can then be stored in a computer or manipulated as required using appropriate software Screens Screens are used to show the output from a computer. Modern screens use an LCD, backlit with LEDs or the newer organic light emitting diode (OLED) technology.3 HARDWARE Figure 3.17 shows a simplified form of how OLED technology works. Fs piss ststicton tyr 6 6. metalic cathode nepati negative charges —ere BL consi tyr pity) fl postive charges O50 6 alss anode (pose charge ES — 32s5 0° plastic bottom layer ‘A Figure 3.17 Simplified form of how OLED technology works OLEDs use organic materials (made up of carbon compounds) to create flexible semiconductors. Organic films are sandwiched between two charged electrodes (one is a metallic cathode and the other a glass anode). When an electric field is applied to the electrodes, they give off light. This means that no form ofF back lighting is required. This allows for very thin screens. It also means that there is no longer a need to use LCD technology, since OLED is a self-contained system. Screen displays are based on the pixel (the smallest picture element) concept where each screen pixel is made up of three sub-pixels, which are red, green and blue. By varying the intensity of the three sub-pixels, it is possible to generate millions of colours. The greater the number of pixels on a screen, the greater is the screen resolution (the number of pixels which can be viewed horizontally and vertically on screen; for example, 1680 x 1080 pixels). LCD and OLED screens use this type of pixel matrix to make up the picture. The ‘purge’ pixels made up ofa combination of tree sul-paels, whieh are ted, green and ble, inthe required intensity, tooo! the ye into seeing a purple dot on the screen. The whole screen sill With thousands ofthese tiny pil ‘A Figure 3.18 The pixel matrix Touch screens (which act as both input and output devices) also make use of LCD and OLED technology. They are particularly used in mobile phones and tablets. We shall now consider LCD capacitive and resistive touch screen technologies. Capacitive »» Made up of many layers of glass that act like a capacitor creating electric fields between the glass plates in layers. » When the top glass layer is touched, the electric current changes and the coordinates where the screen was touched are determined by an on board microprocessor. Benefits » Medium cost technology. » Screen visibility is good even in strong sunlight. » Permits multi-touch capability » Screen is very durable; it takes a major impact to break the glass.Drawbacks » Only allows use of bare fingers as the form of input; although the latest 3 screens permit the use of a special stylus to be used. Resistive >» Makes use of an upper layer of polyester (a form of plastic) and a bottom layer of glass. » When the top polyester layer is touched, the top layer and bottom layer complete a circuit. “ » Signals are then sent out, which are interpreted by a microprocessor : and the calculations determine the coordinates of where the screen was touched. Benefits » Relatively inexpensive technology. » Possible to use bare fingers, gloved fingers or stylus to carry out an input operation. Drawbacks » Screen visibility is poor in strong sunlight. » Does not permit multi-touch capability. » Screen durability is only fair; it is vulnerable to scratches and the screen wears out through time. Virtual headsets Virtual reality has now been around for many years and has many applications. For example, it is possible to ‘walk around’ inside dangerous areas - such as a nuclear power plant - without actually being there. It allows engineers to plan modifications or repairs to a plant in complete safety and to try out different scenarios first before implementing them. One of the devices used is a virtual reality headset which gives the engineer the feeling of being there. We will now describe how these devices work »» Video is sent from a computer to the headset (either using an HDMI cable or a smartphone fitted into the headset). » Two feeds are sent to an LCD/OLED display (sometimes two screens are used, one for the left side of the image and one for the right side of the image); lenses placed between the eyes and the screen allow for focusing and reshaping of the image/video for each eye, thus giving a 3D effect and adding to the realism. » Most headsets use 110° field of view which is enough to give a pseudo 360° surround image/video. » A frame rate of 60 to 120 images per second is used to give a true/realistic image. »» As the user moves their head (up and down or left to right), a series of sensors and/or LEDs measure this movement, which allows the image/'video fn the screen to react to the user's head movements (sensors are usually gyroscopic or accelerometers; LEDs are used in conjunction with mini cameras to further monitor head movements). » Headsets also use binaural sound (surround sound) so that the speaker ‘output appears to come from behind, from the side or from a distance, giving very realistic 3D sound.3 HARDWARE »» Some headsets also use infrared sensors to monitor eye movement (in addition to head movement), which allows the depth of field on the screen to be more realistic; an example of this is to make objects in the foreground appear fuzzy when the user’s eyes indicate they are looking into the distance (and vice versa) Sensors Sensors are input devices which read or measure physical properties, such as temperature, pressure, acidity, and so on. Real data is analogue in nature - this means it is constantly changing and does not have a discrete value. Analogue data usually requires some form of interpretation, for example, the temperature shown on a mercury thermometer requires the user to look at the height of the mercury to work out the temperature. The temperature, therefore, can have an infinite number of values depending on the precision of how the height of the mercury is measured. Equally, an analogue clock requires the user to look at the hands on the clock face. The area swept out by the hands allows the number of hours and minutes to be interpreted. There are many other examples. Computers cannot make any sense of these physical quantities and the data needs to be converted into a digital format. This is usually achieved by an analogue to digital converter (ADC). This device converts physical values into discrete digital values. villi] 0¢ |-~[rae analogue data digital data oo A Figure 3.19 Converting analogue data into digital data When a computer is used to control devices, such as a motor or a valve, it is often necessary to use a digital to analogue converter (DAC), since these devices need analogue data to operate in many cases. Frequently, an actuator is used in these control applications. Although these are technically output devices, they are mentioned here since they are an integral part of the control system. An actuator is an electromechanical device such as a relay, solenoid or motor. Note that a solenoid is an example of a digital actuator as part of the device is connected to a computer which opens and closes a circuit as required. When energized, the solenoid may operate a plunger or armature to control, for example, a fuel injection system. Other actuators, such as motors and valves, may require a DAC so that they receive an electric current rather than a simple digital signal direct from the computer. Notice the importance of (positive) feedback, which is where the output from the system can affect the next input. This is due to the fact that sensor readings may cause the microprocessor to alter a valve or a motor, for example, which will then change the next reading taken by the sensor. So the output from the microprocessor will impact on the next input received as it attempts to bring the system within the desired parameters.Table 3.7 shows a number of common sensors and examples of their applications. Sensor Example applications ‘temperature control a central heating system control/monitor a chemical process moisture/humidity 'm_control/monitor temperature in a greenhouse . control/monitor moisture/humidity levels in soil/air in a greenhouse 1 monitor dampness levels in an industrial application (For example, monitor moisture in a paint spray booth in a car factory) light 1m switch street lighting on at night and off during the day = monitor/control ligt levels in a greenhouse i switch on car headlights when it gets dark infrared/motion wm turn on windscreen wipers on a car when it rains tm detect an intruder in a burglar alarm system m= count people entering or leaving a building pressure = detect intruders in a burglar alarm system vm check weight (such as the weight of a vehicle) 1m monitor/control a process where gas pressure is important acoustic/sound pick up noise levels (such as footsteps or breaking glass) in a burglar alarm system detect noise of liquids dripping from a pipe gas (such as Op or €0;) ‘monitor pollution levels in a river or air measure 0, and CO, levels in a greenhouse check for C0, or NO; leaks in a power station pH ‘monitor/control acidity/alkalinity levels in soil = monitor pollution in rivers magnetic field ‘= detect changes in in cell phones, CD players, and so on, used in anti-lock braking systems in motor vehicles A Table 3.7 Common sensors and examples of applications Sensors are used in both monitoring and control applications. There is a subtle difference between how these two methods work. The flowchart (Figure 3.21 overleaf) shows a simplification of the process.3 HARDWARE sensors send signals to the microprocessor or comptter | ‘he signals ae converted to sdigtal if necessary) using an analogue to digital converter (ao) | the microprocessor or computer analyses the data receved by checking against stored if new datas outsice the acceptable range, awaming message is sent toa screen ‘ran alarm is activated | ifthe new data is outside the acceptable ange, the micopracessor or computer senas signal to contalvalies, rmatars, nd s0.0n ‘the microprocessor or computer has no effect on what is being montored ~itssimaly watching’ the process l rmanitoring stern ‘the output from the system affects the net et of puts ‘om the sensors feedback loop contol system ‘A Figure 3.20 Sensors for monitoring and controlling systems Table 3.8 shows some examples of monitoring and control applications of sensors, Examples of monitoring Examples of control = monitoring a patient in a hospital for vital signs such as heart rate, temperature, and so on 1m checking for intruders in a burglar alarm system 1m checking the temperature levels in a car engine ‘= monitoring pollution levels in a river 1m turning street lights on at night and turning them off again during daylight = controlling the temperature in a central heating/air conditioning system = controlling the traffic lights at a road junction = operating anti-lock brakes on a car when necessary 1m controlling the environment in a greenhouse A Table 3.8 Examples of monitoring and control applications of sensors One of the most common uses of sensors in modern times is in the monitoring and control of a number of functions in motor vehicles and aeroplanes. Look at Figure 3.21 showing a typical modern car and its many sensors used to control or monitor several functions.front aitbag sensors rear lighting conto! calliion ‘avoidance systern ve front lighting control, sjuauoduso2 say) pue s1eynduiog As A Figure 3.21 Sensors on a typical modern car Below is an in-depth look at just one of the sensor systems labelled on Figure 3.21. Anti-lock braking systems (on cars} Anti-lock braking systems (ABS) on cars use magnetic field sensors to stop the wheels locking up on the car if the brakes have been applied too sharply. » When one of the car wheels rotates too slowly (it is locking up), a magnetic field sensor sends data to a microprocessor. » The microprocessor checks the rotation speed of the other three wheels. » If they are different (rotating faster), the microprocessor sends a signal to the braking system and the braking pressure to the affected wheel is reduced, » The wheel's rotational speed is then increased to match the other wheels. » The checking of the rotational speed using these magnetic field sensors is done several times a second and the braking pressure to all the wheels can be constantly changing to prevent any of the wheels locking up under heavy braking. >» This is felt as a “judder’ on the brake pedal as the braking system is constantly switched off and on to equalise the rotational speed of all four wheels. » If one of the wheels is rotating too quickly, braking pressure is increased to that wheel until it matches the other three. ACTIVITY 3A 1 a] |) Describe three differences between RAM and ROM. ii) Compare the relative advantages and disadvantages of SRAM and DRAM. Include examples of where each type of memory would be used in ‘a computer.) Secondary storage can be magnetic, optical or solid state. i} Describe two features of each type of storage which differentiates it from the other two types. 2a) Explain the main differences in operation of a laser printer compared with an inkjet printer b) i) Name one application of a laser printer and one application of an inkjet printer. ji) For each of your named applications in part bl i, give a reason why the chosen printer is the most suitable. 3 Anart gallery took several photographs of a valuable, fragile painting The images were sent to a computer where they were processed by a 3D printing application. A.3D printout of the painting was produced showing the texture of the oil paint, canvas and any flaws in the painting, Give reasons why the art gallery would wish to make this 3D replica 4 The following diagram shows a schematic of a micropracessor-controlled street lighting system, z g z street aoc microprocessor light I 5 The microprocessor is used to control the operation of the street lamp. The lamp is fitted with a light sensor which constantly sends data to the microprocessor. The data value from the sensor changes according to Whether it is sunny, cloudy, raining, night time, and so on. Describe how the microprocessor would be used to automatically switch on the light at night and switch it off again when it becomes light. Include a feature to stop the light constantly flickering on and off when it becomes overcast or cars go past with full headlights at night. EXTENSION ACTIVITY 3E 1 Look at this simplified diagram of akeyboard; 2a) Describe how these types of pointing devices, the letter H has been pressed. Explain: work. a) how pressing the letter H has been i) Mechanical mouse recognised by the computer )/Opticatmouse b] how the computer manages the very slow b] Connectivity between mouse and computer process of inputting data from a keyboard. can be through USB cable or wireless. Explain these two types of connectivity. letter H has been pressed and now makes contact with bottom ‘conductive layer ‘conductive layers —_ letter H > interpreted Insulating layer — by computerKey terms Logic gates - electronic circuits which rely on ‘on/off logic. The most common ones are NOT, AND, (OR, NAND, NOR and XOR. Logic cir EXTENSION ACTIVITY 3F Another new screen technology is known as quantum LED (QLED), which is in direct competition with organic (LED). Look at this statement: “QLED televisions are simply LED televisions that use quantum dots to enhance their overall performance in key picture quality areas. Find out the main differences between QLED and OLED technologies. 3.2 Logic gates and logic circuits cuit. They use all the possible binary input combinations depending on the number of inputs; ~ formed from a combination of logic gates _f0r example, two inputs have 2? (4) possible binary and designed to carry outa particular task. The output combinations, three inputs will have 2*(@) possible from a logic circuit will be 0 of 1 binary combinations, and so on. Boolean algebra ~ a form of algebra linked to logic circuits and based on TRUE and FALSE. 3.2.1 Logic gates Electronic circuits in computers, many memories and controlling devices are made up of thousands of logic gates. Logic gates take binary inputs and produce a binary output. Several logic gates combined together form a logic circuit and these circuits are designed to carry out a specific function. The checking of the output from a logic gate or logic circuit can be done using a truth table. This section will consider the function and role of logic gates, logic circuits and truth tables. A number of possible applications of logic circuits will also be considered. A reference to Boolean algebra will be made throughout this section, although this is covered in more depth in Chapter 15. Six different logic gates will be considered in this section. NOT gate AND gate OR gate NAND gate NOR gate XOR gate ‘A Figure 3.22 Six types of logic gate3 HARDWARE 3.2.2 Truth tables Truth tables are used to trace the output from a logic gate or logic circuit. The NOT gate is the only logic gate with one input; the other five gates have two inputs. When constructing truth tables, all possible combinations of 1s and Os which can be input are considered. For the NOT gate (one input) there are only 21 (2) possible binary combinations. For all other gates (two inputs), there are 22 (4) possible binary combinations. For logic circuits, the number of inputs can be more than 2; for example, three inputs give a possible 22 (8) binary combinations. And for four inputs, the number of possible binary combinations is 2¢ (16). It is clear that the number of possible binary combinations is a multiple of the number 2 in every case. Table 3.9 summarises this. Tnputs inputs Tani a [8 aAle[c| aAleleclo 0 [0 0 | 0 | 0 | o [0 [0 | o ofa o fo [1 | o fo [0 [1 1p o [1 [0] o |e | fe apt ofa [2 | ope [2 [1 te [oe] o [1 [0 fo ~ pe [2 | ofa [oe [1 thot [oe] ofa [2 fe apa bt) Fs ae 1[ofolfo 1[olfol|.2 1[ofi1fe 1 [ela]. 1[1[elfe a[1][o]2 1[1][i1f[e a[1][21 [2 ATable29 3.2.3. The function of the six logic gates NOT gate —p- ‘A Figure 2.23 NOT gate Description Truth table The output, X, is 1 if the input A is NOT 1 Tnput_| Output How to write this A x X= NOT A (logic notation) ° 1 X= A (Boolean algebra) 1 o A Table 3.10AND gate s—>- ‘A Figure 3.24 AND gate Description The output, X, is 1 if input A is 1 and input B ist How to write this X =A AND B (logic notation) X= A.B (Boolean algebra) OR gate A B A Figure 3.25 OR gate Description The output, X, is 1 if input A is 1 of input B ist How to write this X= A ORB (logic notation) X= A+ (Boolean algebra) NAND gate (NOT AND) s—pD>- A Figure 3.26 NAND gate Description The output, X, is 1 if input A is NOT 1 or input B is NOT 1 How to write this X= ANAND B (logic notation) X =KB (Boolean algebra) NOR gate (NOT OR) =D- ‘A Figure 3.27 NOR gate Description The output, X, is 1 if: input A is NOT 1 and input B is NOT 1 How to write this X = ANOR B (logic notation) X=A+B (Boolean algebra) Truth table Inputs ‘Output x 5B x 0 0 0 0 1 0 1 0 0 1 1 1 ATable 3.11 Truth table Inputs Output a x 0 0 0 0 1 1 1 0 1 1 1 1 A Table 3.12 Truth table Inputs Output x 5B x 0 0 1 0 1 1 1 1 1 1 0 A Table 3.13 Truth table Inputs Output x E x 0 0 1 0 1 0 1 0 0 1 2 0 A Table 3.163 HARDWARE XOR gate 3 sb-~ A Figure 3.28 XOR gate Description Truth table The output, X, is 1 if (input A is 1 AND input B iret ‘Output is NOT 1) OR (input A is NOT 1 AND input B rn 5 a #1) 0 ° ° How to write this 0 1 1 AXOR B (logic notation) 1 0 1 (A.B) + (A.B) (Boolean algebra) 1 1 0 (uote: hs sometimes written as: a Table 3.15 +8) .Al EXTENSION ACTIVITY 3G Using truth tables show that X = (A.B] + (A.B) and X= A+B). A.B both represent the XOR logic gate. You will notice, in the Boolean algebra, three new symbols. » A dot () represents the AND operation (it can be written as 4) » Aplus sign (+) represents the OR operation (it can be written as v). » Adash above a letter (for example, A) represents the NOT operation. 3.2.4 Logic circuits When logic gates are combined to carry out a particular function, such as controlling a robot, they form a logic circuit. The output from the logic circuit is checked using a truth table. The following three examples show how to: » produce a truth table » design a logic circuit from a given logic statement/Boolean algebra » design a logic circuit to carry out an actual safety function. Produce a truth table for the following logic circuit (note the use of e at junctions) LD pant pan? pansSolution binary values which can be input ‘To show: step-wise how the truth table is produced, the logic circuit has been split up into three parts and intermediate values are shown as P, Q and R, Part 1 This is the first part of the logic circuit; the first task is to find the intermediate 8 values P and Q. x a————J sy A +?
— "The value of P is found from the AND gate where the inputs are A and B, ‘The value of Q is found from the NOR gate where the inputs are Band C. An. intermediate truth table is produced: Inputs ‘Outputs A B c P qa ° 0 ° 0 1 0 o 1 0 o ° 1 0 0 0 0 1 1 0 ° 1 0 0 0 1 1 0 1 0 ° 1 1 0 1 ° 1 1 1 1 ° Part 2 ‘The second part of the logic circuit has P and Q as inputs and the intermediate output, R. {> ®) Thputs [Output e[aite "This produces che fllowing intermediate of 4 1 truth able (Note: eventhough there are ee only ene the desi ri fae ° 0 o generated eight binary values in Part and these must all be used in this second o ° ° truth table) o 4 4 Ce [oe 4 1 [to foPart 3 i} ‘The final part of the logic circuit has R Inputs Output and C as inputs and the final output, X. =D ‘This gives the third intermediate truth, table. Putting all three intermediate truth tables together produces the final truth table which represents the original 3 HARDWARE logic circuit. Inputs Intermediate values | Output 8 a [rR x alefelelelefelo|> ACTIVITY 3B Produce truth tables for each of the following logic circuits. You are advised to split them up into intermediate parts to help eliminate errors. a » ° A A LD ; a topl SD, . qbA safety system uses three inputs to a logic circuit. An alarm, X, sounds if input A. represents ON and input B represents OFF, or if input B represents ON and input C represents OFF. Produce a logic cizcuit and truth table to show the conditions which cause the output X to be 1 Solution ‘The first thing to do is to write down the logic statement representing the scenario in this example, To do this, itis necessary to recall that ON = 1 and OFF = 0 and also that 0 is considered to be NOT 1. So, we get the following logic statement: X=1if (A=1AND OR (B=1AND B=NOT 1) NOT 1) this equates tothe two parts are this equates to AisONandB connected bythe B is ON AND. is OFF OR gate Cis OFF Part 1 Part 2 Part 3 ‘This statement can also be written in Boolean algebra as AB+@D ‘The logic circuit is made up of three parts as shown in the logic statement. We will produce the logic gate for the Part 1 and Part 3, then join both parts together with the OR gate. ‘ [- ° [D- ot > Part 1 Part3 Now, combining both parts with Part 2 (the OR gate) gives us: ap DF )>-* c f>4 ‘There are two ways to produce the truth table © Trace through the logic circuit using the method described in Example 3.1. © Use the original logic statement; this allows you to check that your logic circuit is correct. K)3 HARDWARE ‘We will use the second method in this example. Inputs Intermediate values | Output a | 8 | C | @=tanp | (tan | x BeNoT 1) | CeNOT 1) o fo fo @ 0 0 o fof: o 0 0 o [ilo @ 1 1 o fafa @ 0 0 1 [ole 1 0 1 1 [oft 1 0 1 a1 [ife @ i 1 1 [1 [2 o 0 0 ACTIVITY 3C Draw the logic circuits and complete the truth tables for these logic statements and Boolean algebra statements. a] X=1if(A=1 OR B= 1] OR (A=0 ANDB=1) b) Y=1if(A=OAND B =0) AND (8 =00RC=1) c) T=1 if (switch K is ON or switch Lis ON) OR (switch K is ON and switch M is OFF] OR [switch M is ON) dl) X= (AB) + (8.0) el if (switch Ais ON and switch B is ON) AND [switch B is ON or switch Cis OFF] A wind turbine has a safety system which uses three inputs to a logic circuit, A certain combination of conditions results in an output, X, from the logic circuit being equal to 1. When the value of X = 1, the wind turbine is shut do. Phe following table shows which parameters are being monitored and form the three inputs to the logie circuit. Parameter description | Parameter | Binary value | Description of condition turbine speed s oO turbine speed < 1000rpm 1 turbine speed > 1000rpm bearing temperature T 0 bearing temperature < 80°C 1 bearing temperature > 80°C wind velocity w o wind velocity = 120kph 1 wind velocity > 120kph The output, X, will have a value of 1 ifany of the following combination of conditions occur © cither turbine speed < 1000xpm and bearing temperature > 80°C © or turbine speed > 1000rpm and wind velocity > 120kph © or bearing temperature < 80°C and wind velocity > 120kphDesign the logic circuit and complete the truth table to produce a value of X = 1 when either of the three conditions occur. 3 Solution This is a different type of problem to those covered in Examples 3.1 and 3.2. This time, a real situation is given and it is necessary to convert the information into a logic statement and then produce the logic circuit and truth table. It is advisable in problems as complex as this to produce the logic circuit and truth table separately (based on the conditions given) and then check them against each other to sceif = « there are any errors. x Stage 1 ‘The first thing to do is to convert each of the three statements into logic statements, Use the information given in the table and the three condition statements to find how the three parameters S, T and W, are linked. We usually look for the key words AND, OR and NOT when converting actual statements into logic ‘We end up with these three logic statements: @® turbine speed = 1000 rpm and bearing temperature > 80°C logic statement: (S = NOT 1 AND T = 1) @ urbine speed > 1000zpm and wind velocity > 120kph logic statement: (S = 1 AND W = 1) ® bearing temperature < 80°C and wind velocity > 120kph logic statement: (T = NOT 1 AND W = 1) Stage 2 ‘This produces three intermediate logic circuits Each of the three original statements were joined together by the word OR. So, we need to join all of the three intermediate logic circuits by two OR gates to get, the final logic circuit. ‘We will start by joining (1) and (2) together using an OR gate. : Pan =pNow, we connect this to logic circuit @) to obtain the final logic circuit. 1 Dy D— 7 tp The final part is to produce the truth table. We will do this using the original logic statement, since this method allows an extra check to be made on the final logic circuit 3 HARDWARE ‘There were three parts to the problem, so the truth table will first evaluate each part. Then, by applying OR gates, as shown below, the final value, X, is obtained: @ (=NOT1ANDT=1) @ (S=1AND W=1) @® (T=NOT1 AND W=1) ‘We find the outputs from @ and @ and then OR these two outputs to obtain a new intermediate, which we will label part @). ‘We then OR parts @) and @) together to get the value of X. Inputs Intermediate values Output ayelc @ @ @ |@/ x (SeNoT 1 | (S=1 AND | (T=NOT4 AND T=1) | Wet) | AND Wat) ACTIVITY 3D There are two scenarios described below. In each case, produce the logic circuit and complete a truth table to represent the scenario. a] Achemical process is protected by a logic circuit, There are three inputs to the logic circuit representing key parameters in the chemical process. An alarm, X, will give an output value of 1 depending on certain conditions in the chemical process.This table describes the process conditions being monitored. Parameter Binary description | Parameter | value _| Description of condition chemical R reaction rate < 40mol/I/sec reaction rate reaction rate = 40mol/l/sec process temperature > 115°C temperature ‘temperature = 115°C concentration concentration = 4mol af chemicals concentration > 4mol An alarm, X, will generate the value 1 if either reaction rate < 40mol/U/sec ‘or concentration > 4mol AND temperature > 115°C or reaction rate = 40mol/\/sec AND temperature > 115°C. A power station has a safety system controlled by a logic circuit. Three inputs to the logic circuit determine whether the output, S, is 1 When S = 1 the power station shuts down. The following table describes the conditions being monitored. Paramet jinary, description Parameter | value _| Description of condition gas temperature 6 0 [gas temperature = 160°C gas temperature > 160°C Teactor pressure reactor pressure = 10bar reactor pressure > 10bar water water temperature = 120°C temperature water temperature > 120°C Output, S, will generate a value of 1, if: either gas temperature > 160°C AND water temperature = 120°C or gas temperature = 160°C AND reactor pressure > 10bar or water temperature > 120°C AND reactor pressure > 10bar. 3.2.5 Logic circuits in the real world The design of logic circuits is considerably more complex than has, so far, been described. We have discussed some of the fundamental theories, providing sufficient coverage of the Cambridge International A Level syllabus. However, it is worth discussing some of the more advanced aspects of logic circuit design, to strengthen understanding. Electronics companies need to consider the cost of components, ease of fabrication and time constraints when designing and building logic circuits. Ways electronics companies review logic circuit design include: » using ‘off-the-shelf’ logic units and building up the logic circuit as a number of ‘building blocks’ » simplifying the logic circuit as far as possible; this may be necessary where room is at a premium (for example, building circuit boards for use in satellites for space exploration).3 HARDWARE Using logic ‘building blocks’ One common ‘building block’ is the NAND gate. It is possible to build up any logic gate, and therefore any logic circuit, by simply linking together a number of NAND gates, such as: » the AND gate *=D—D- ‘A Figure 3.29 AND gate made from NAND gates » the OR gate “>, 8 pS ‘A Figure 3.30 OR gate made from NAND gates »» the NOT gate —— 1 > ‘A Figure 3.31 NOT gate made from NAND gates ACTIVITY 3E By drawing the truth tables, show that the three logic circuits shown above can be used to represent AND, OR and NOT gates. 2. a) Show how the following logic circuit could be built using NAND gates only. Complete truth tables for both logic circuits to show that they produce identical outputs. b) Show how the XOR gate could be built from NAND gates only. Complete a truth table for your final design to show that it produces the same output as a single XOR gate. 3 By drawing a truth table, discover which single logic gate has the same function as the following logic circuit made up of NAND gates only. o— [> >
-Simplification of logic circuits The second method involves the simplification of logic circuits. By reducing 3 the number of components, the cost of production can be less. This can also improve reliability and make it easier to trace faults if they occur. This is covered in more depth in Chapter 15. EXTENSION ACTIVITY 3H By drawing a truth table, show which single logic gate has the same function as the logic circuit drawn below. A p= 1 3.2.6 Multi-input logic gates This section looks at logic gates with more than two inputs (apart from the NOT gate). Students are not expected to answer questions about multi-input logic gates at Cambridge International AS Level, but this information is included here for completeness and for those with an electronics background, This is intended to complete the picture for interested students who may have seen multi-input gates in other textbooks, or online, and it leads neatly into topics covered in Chapter 15. Logic gates (apart from the NOT gate) can have more than two inputs. While it is still acceptable to use two-input logic gates, it is worth considering the mul input option when designing logic circuits; they can simplify the overall result. Multi-input AND gates A 2 -—____D ‘A Figure 3.32 Multi-input AND gate isthe sameas Both sets of AND gates have the output A.B.C and they share identical truth tables. Inputs ‘Output A B c ABC 0 0 0 0 0 e 1 o o 1 o o o 1 1 o 1 e oO o 1 e 1 o 1 1 o o 1 1 1 1 A Table 3.16 i rT)3 HARDWARE Now consider the following: >| > ‘A Figure 3.33 deinput AND gate ner Both sets of AND gates have the output A.8.C.D and they share identical truth tables. Inputs 1 A Table 3.17 Multi-input OR gates =D |p ‘A Figure 3.34 Multi-input OR gate > Both sets of OR gates have the output A + B + C and they share identical truth tables. Inputs Output a B C | A+Bee 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 o 1 1 0 1 1 1 1 0 1 1 1 1 1 A Table 3.18Now consider the following: A Figure 3.35 4-input OR gate Both sets of OR gates have the output A+B + C+D and they share identical truth tables. Inputs Output A+B+C+D o wfefefelefefefefelefelelefelelol> wlefelofefo|-fofelof-felefofelofe A Table 3.19 ACTIVITY 3F 1 a] Draw the following multi-input NAND gate using two-input NAND gates only: b] Construct the truth tables for the above 4-input NAND gate and for your circuit drawn in part al. Confirm that they are identical. 2 a) Draw the following multi-input NOR gates using two-input NOR gates only. a A 8 i) c 5 b] Construct the truth tables for the above 3-input NOR gate and for your equivalent circuit drawn in part al Confirm they are identical.3 HARDWARE End of chapter stions ) Construct the truth tables for the above 4-input NOR gate and for your equivalent circuit drawn in part al. Confirm they are identical. 3. Confirm that the following two logic circuits are identical by constructing the truth tables for each circuit. D—=D a 8 c D>» 1 a) Many mobile phone and tablet manufacturers are moving to OLED screen technology. Give three reasons why this is happening, by) ) A television manufacturer makes the following advertising claim: ‘Our OLED screens allow the user to enjoy over one million vivid colours in true-to-life vision.” ‘Comment on the validity of this claim. ro} 2a) A company is developing a new games console. The game will be stozed on a ROM chip once the program to run the new game has been fully tested and developed, 4). Give two advantages of putting the game's program on a ROM chip. 2 ii) Explain why the manufacturers would use an EPROM chip during development, PB) iii) The manufacturers are also using KAM chips on the internal circuit board Explain why they are doing this. e) iv) The games console will have four USB ports Apart from the need to attach games controllers, give reasons why USB. ports are incorporated, e) b) During development of the games console the plastic parts are being made by 23D printer Give two reasons why the manufacturer would use 3D printers 2 An air conditioning unit in a car is being controlled by a microprocessor and a number of sensors ) Describe the main differences between control and monitoring of a process 1) b) Describe how the sensors and microprocessor would be used to control the air conditioning unit in the car. Name at least two different sensors that might be used and explain the role of positive feedback in your description. You might find drawing a diagram of your intended process to be helpful (6)
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6134)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4973)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1988)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)