<?xml version="1.0" encoding="utf-8"?>
<?sc-transform-do-oumusic-to-unicode?>
<?sc-transform-do-oxy-pi?>
<Item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Autonumber="false" id="X-t312_1" TextType="CompleteItem" SchemaVersion="2.0" PageStartNumber="0" Template="Generic_A4_Unnumbered" Module="default" DiscussionAlias="Discussion" ExportedEquationLocation="" SessionAlias="" SecondColour="None" ThirdColour="None" FourthColour="None" Logo="colour" ReferenceStyle="OU Harvard" Rendering="OpenLearn" xsi:noNamespaceSchemaLocation="http://www.open.edu/openlearn/ocw/mod/oucontent/schemas/v2_0/OUIntermediateSchema.xsd" x_oucontentversion="2020051800">
        <meta name="vle:osep" content="false"/><meta name="equations" content="mathjax"/><meta name="aaaf:olink_server" content="http://www.open.edu/openlearn/ocw"/><!--ADD CORRECT OPENLEARN COURSE URL HERE:<meta name="dc:source" content="http://www.open.edu/openlearn/education/educational-technology-and-practice/educational-practice/english-grammar-context/content-section-0"/>-->
        <CourseCode>T312_1</CourseCode><CourseTitle><!--can be blank--></CourseTitle><ItemID><!--leave blank--></ItemID><ItemTitle>Electronic applications</ItemTitle><FrontMatter>
                <Imprint>
                        <Standard>
                                <GeneralInfo>
                                        <Paragraph><b>About this free course</b></Paragraph>
                                        <Paragraph>This free course is an adapted extract from the Open University course T312 <i>Electronics: signal processing, control and communications</i> - <a href="http://www.open.ac.uk/courses/modules/t312">http://www.open.ac.uk/courses/modules/t312</a><!--[MODULE code] [Module title- Italics] THEN LINK to Study @ OU page for module. Text to be page URL without http;// but make sure href includes http:// (e.g. <a href="http://www3.open.ac.uk/study/undergraduate/course/b190.htm">www3.open.ac.uk/study/undergraduate/course/b190?utm_source=openlearn&amp;utm_campaign=ou&amp;utm_medium=ebook</a>)] -->.</Paragraph>
                                        <Paragraph>This version of the content may include video, images and interactive content that may not be optimised for your device. </Paragraph>
                                        <Paragraph>You can experience this free course as it was originally designed on OpenLearn, the home of free learning from The Open University –</Paragraph>
                                        <Paragraph><a href="https://www.open.edu/openlearn/science-maths-technology/electronic-applications/content-section-0?utm_source=openlearn&amp;utm_campaign=ol&amp;utm_medium=ebook"><i>Electronic applications</i></a></Paragraph>
                                        <!--[course name] hyperlink to page URL make sure href includes http:// with trackingcode added <Paragraph><a href="http://www.open.edu/openlearn/money-management/introduction-bookkeeping-and-accounting/content-section-0?utm_source=openlearn&amp;utm_campaign=ol&amp;utm_medium=ebook">www.open.edu/openlearn/money-management/introduction-bookkeeping-and-accounting/content-section-0</a>. </Paragraph>-->
                                        <Paragraph>There you’ll also be able to track your progress via your activity record, which you can use to demonstrate your learning.</Paragraph>
                                </GeneralInfo>
                                <Address>
                                        <AddressLine/>
                                        <AddressLine/>
                                </Address>
                                <FirstPublished>
                                        <Paragraph/>
                                </FirstPublished>
                                <Copyright>
                                        <Paragraph>Copyright © 2020 The Open University</Paragraph>
                                </Copyright>
                                <Rights>
                                        <Paragraph/>
                                        <Paragraph><b>Intellectual property</b></Paragraph>
                                        <Paragraph>Unless otherwise stated, this resource is released under the terms of the Creative Commons Licence v4.0 <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_GB">http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_GB</a>. Within that The Open University interprets this licence in the following way: <a href="http://www.open.edu/openlearn/about-openlearn/frequently-asked-questions-on-openlearn">www.open.edu/openlearn/about-openlearn/frequently-asked-questions-on-openlearn</a>. Copyright and rights falling outside the terms of the Creative Commons Licence are retained or controlled by The Open University. Please read the full text before using any of the content. </Paragraph>
                                        <Paragraph>We believe the primary barrier to accessing high-quality educational experiences is cost, which is why we aim to publish as much free content as possible under an open licence. If it proves difficult to release content under our preferred Creative Commons licence (e.g. because we can’t afford or gain the clearances or find suitable alternatives), we will still release the materials for free under a personal end-user licence. </Paragraph>
                                        <Paragraph>This is because the learning experience will always be the same high quality offering and that should always be seen as positive – even if at times the licensing is different to Creative Commons. </Paragraph>
                                        <Paragraph>When using the content you must attribute us (The Open University) (the OU) and any identified author in accordance with the terms of the Creative Commons Licence.</Paragraph>
                                        <Paragraph>The Acknowledgements section is used to list, amongst other things, third party (Proprietary), licensed content which is not subject to Creative Commons licensing. Proprietary content must be used (retained) intact and in context to the content at all times.</Paragraph>
                                        <Paragraph>The Acknowledgements section is also used to bring to your attention any other Special Restrictions which may apply to the content. For example there may be times when the Creative Commons Non-Commercial Sharealike licence does not apply to any of the content even if owned by us (The Open University). In these instances, unless stated otherwise, the content may be used for personal and non-commercial use.</Paragraph>
                                        <Paragraph>We have also identified as Proprietary other material included in the content which is not subject to Creative Commons Licence. These are OU logos, trading names and may extend to certain photographic and video images and sound recordings and any other material as may be brought to your attention.</Paragraph>
                                        <Paragraph>Unauthorised use of any of the content may constitute a breach of the terms and conditions and/or intellectual property laws.</Paragraph>
                                        <Paragraph>We reserve the right to alter, amend or bring to an end any terms and conditions provided here without notice.</Paragraph>
                                        <Paragraph>All rights falling outside the terms of the Creative Commons licence are retained or controlled by The Open University.</Paragraph>
                                        <Paragraph>Head of Intellectual Property, The Open University</Paragraph>
                                </Rights>
                                <Edited>
                                        <Paragraph/>
                                </Edited>
                                <Printed>
                                        <Paragraph/>
                                </Printed>
                                <ISBN><?oxy_insert_start author="al22273" timestamp="20200626T130033+0100"?>978-1-4730-3139-5 (.kdl)<?oxy_insert_end?><br/><?oxy_insert_start author="al22273" timestamp="20200626T130050+0100"?>978-1-4730-3140-1 (.epub)<?oxy_insert_end?><!--INSERT EPUB ISBN WHEN AVAILABLE (.kdl)-->
        <!--INSERT KDL ISBN WHEN AVAILABLE (.epub)--></ISBN>
                                <Edition/>
                        </Standard>
                </Imprint>
                <Introduction>
                        <Title>Introduction</Title>
                        <Paragraph><?oxy_insert_start author="al22273" timestamp="20200522T100410+0100"?>The modern world would not be able to function without electronic systems. Using a variety of teaching material, including videos and interactive activities, this free course, <i>Electronic applications</i>, will show you how electronic systems can be found everywhere in communications, control and signal processing. It focusses on electronic filters, particularly digital filters.<?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200522T100413+0100" type="split"?></Paragraph>
                        <Paragraph><?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200522T100410+0100"?>Note that the interactive activities have been designed to work in the Firefox and Chrome browsers, so you will need to use one of these browsers if you want to access the interactive content.<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T100401+0100" content="&lt;EditorComment&gt;TBC&lt;/EditorComment&gt;"?></Paragraph>
                        <Paragraph xml:space="preserve">This OpenLearn course is an adapted extract from the Open University course <a href="http://www.open.ac.uk/courses/modules/t312">T312 <i>Electronics: signal processing, control and communications</i></a></Paragraph>
                </Introduction>
                <LearningOutcomes>
                        <Paragraph>After studying this course, you should be able to:</Paragraph>
                        <LearningOutcome>understand the mathematical representations and techniques for manipulating of signals in the time and frequency domains</LearningOutcome>
                        <LearningOutcome>explain the application, benefits and limitations of communications, control and signal processing techniques in real world applications</LearningOutcome>
                        <LearningOutcome>select and apply appropriate techniques to the analysis of time-varying signals represented in both the time and frequency domain</LearningOutcome>
                        <LearningOutcome>use a digital filter to remove Gaussian noise from a signal.</LearningOutcome>
                </LearningOutcomes>
                <Covers>
                        <?oxy_attributes src="&lt;change type=&quot;modified&quot; oldValue=&quot;https://openuniv.sharepoint.com/sites/informal-lrning/Documents/ol_ebook_generic_google_w1400xh2240.jpg&quot; author=&quot;al22273&quot; timestamp=&quot;20200715T095703+0100&quot; /&gt;"?>
                        <Cover template="false" type="ebook" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_epub_cover_1400x1200.jpg"/>
                        <?oxy_attributes src="&lt;change type=&quot;modified&quot; oldValue=&quot;https://openuniv.sharepoint.com/sites/informal-lrning/Documents/ol_generic_PDF_A4_image_w2244x1488.jpg&quot; author=&quot;al22273&quot; timestamp=&quot;20200715T095712+0100&quot; /&gt;"?>
                        <Cover template="false" type="A4" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_pdfimage_19x12-6_300d.jpg"/>
                </Covers>
        </FrontMatter><Unit><UnitID><!--leave blank--></UnitID><UnitTitle><!--leave blank--></UnitTitle><Session>
                        <Title>1 Electronics everywhere</Title>
                        <?oxy_insert_start author="al22273" timestamp="20200522T100934+0100"?>
                        <Paragraph>Begin by considering the following situation:</Paragraph>
                        <Quote>
                                <Paragraph>You are sitting at home watching the television, and a woman in a diving suit, surrounded by sharks is speaking directly to you, live on television from the Caribbean (Figure 1).</Paragraph>
                        </Quote>
                        <?oxy_insert_end?>
                        <?oxy_delete author="al22273" timestamp="20200522T100946+0100" content="&lt;Paragraph&gt;I’m sitting at home watching the television, and a woman in a diving suit, surrounded by sharks, is speaking directly to me, live on television, from the Caribbean (Figure 1.1). Sometimes I take this for granted. But sometimes I think, ‘How is this possible? How can someone swimming underwater in the Caribbean be seen and heard by me in my home?’ When I really stop to consider it, I’m amazed by technology and what electronic systems can do. &lt;/Paragraph&gt;"?>
                        <Figure>
                                <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig01.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="d86faba4" x_imagesrc="t312_openlearn_fig01.tif.jpg" x_imagewidth="512" x_imageheight="257"/>
                                <?oxy_insert_start author="al22273" timestamp="20200407T160055+0100"?>
                                <Caption><b>Figure 1</b> Swimming with sharks</Caption>
                                <Description>This figure is a screenshot taken from a live broadcast. It says BBC in the top left corner and Blue Planet LIVE in the top right corner. A woman in a diving suit is shown underwater with her hand touching a shark in the foreground. Several more sharks are shown swimming around behind her.</Description>
                                <?oxy_insert_end?>
                        </Figure>
                        <?oxy_insert_start author="al22273" timestamp="20200522T101007+0100"?>
                        <Paragraph>It is possible to take this type of situation for granted, but when thinking about it more closely you might wonder how this is possible. How can someone swimming underwater in the Caribbean be seen and heard by you in your house in the UK? </Paragraph>
                        <?oxy_insert_end?>
                        <Paragraph><?oxy_delete author="al22273" timestamp="20200402T115305+0100" content="I want you to"?><?oxy_insert_start author="al22273" timestamp="20200402T115307+0100"?>In this course you will<?oxy_insert_end?> start thinking about everything that’s involved in these electronic systems<?oxy_insert_start author="al22273" timestamp="20200522T101024+0100"?> –<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T101024+0100" content=","?> from signal processing to control and communications<?oxy_insert_start author="al22273" timestamp="20200522T101030+0100"?> – which allow you to watch a live broadcast from the Caribbean<?oxy_insert_end?>. </Paragraph>
                        <?oxy_insert_start author="al22273" timestamp="20200522T101113+0100"?>
                        <Paragraph>If you have studied some electronics before, you may be familiar with analogue components such as resistors, capacitors and inductors, as well as more complex components such as the operational amplifier. You may also know something about digital circuits, which include logic gates, microprocessors and even software. And you may be aware of some of the fundamental principles that describe the way that voltages and currents in a circuit are related, including Ohm’s law and Kirchhoff’s voltage and current laws. </Paragraph>
                        <Paragraph>Whilst all of this is necessary to understand electronics, it doesn’t really explain how electronics allows you to watch a live broadcast from the Caribbean. In part, this is due to the sheer scale of electronic systems. A typical computer in 2020 has around 10 000 000 000 (or 10 billion) transistors. Nobody could sit down and design such a computer armed with Ohm’s and Kirchhoff’s laws alone. Electronic systems have to be broken down into subsystems, and these subsystems in turn have to be broken down into further subsystems. Go far enough and you’ll find that you can explain what is going on using Ohm’s and Kirchhoff’s laws, but that’s a long way down. </Paragraph>
                        <Paragraph>At a higher level, when designing subsystems, descriptions like ‘the control subsystem’ or ‘the communications subsystem’ are used. These are designed using principles that describe the function of the subsystem. An electronics engineer would use these system-level principles to design the subsystem, then implement it electronically. </Paragraph>
                        <Paragraph>So, what are the systems and subsystems that allow you to watch someone swimming with sharks live on television?</Paragraph>
                        <?oxy_insert_end?>
                        <?oxy_delete author="al22273" timestamp="20200522T101113+0100" content="&lt;Section&gt;&lt;Title&gt;1.1 The wonderful world of electronics&lt;/Title&gt;&lt;Paragraph&gt;This course is all about electronic systems and in particular the use of electronics in signal processing. You may have studied some electronics before, so you may be familiar with analogue components such as resistors, capacitors and inductors, as well as more complex components such as the operational amplifier. You may also know something about digital circuits, which include logic gates, microprocessors and even software. And you may be aware of some of the fundamental principles that describe the way that voltages and currents in a circuit are related, including Ohm’s law and Kirchhoff’s voltage and current laws. &lt;/Paragraph&gt;&lt;Paragraph&gt;All of this is necessary to understand electronics, but it doesn’t really explain how electronics allows me to watch a live broadcast from the Caribbean. In part, this is due to the sheer scale of electronic systems. A typical computer in 2019 has around 10 000 000 000 (or 10 billion) transistors. Nobody could sit down and design such a computer armed with Ohm’s and Kirchhoff’s laws alone. Electronic systems have to be broken down into subsystems, and these subsystems in turn have to be broken down into further subsystems. Go far enough and you’ll find that you can explain what is going on using Ohm’s and Kirchhoff’s laws, but that’s a long way down. &lt;/Paragraph&gt;&lt;Paragraph&gt;At a higher level, when designing subsystems, we use descriptions like ‘the control subsystem’ or ‘the communications subsystem’. These are designed using principles that describe the function of the subsystem. An electronics engineer would use these system-level principles to design the subsystem, then implement it electronically. &lt;/Paragraph&gt;&lt;/Section&gt;"?>
                        <Section>
                                <Title><?oxy_insert_start author="al22273" timestamp="20200407T160355+0100"?>1.1 <?oxy_insert_end?>Three key subsystems</Title>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T101258+0100" content="Back to the Caribbean (I wish!). What are the systems and subsystems that allow me "?><?oxy_insert_start author="al22273" timestamp="20200522T101259+0100"?>In order <?oxy_insert_end?>to watch someone swimming with sharks live on <?oxy_delete author="al22273" timestamp="20200407T161016+0100" content="my "?>television<?oxy_delete author="al22273" timestamp="20200522T101311+0100" content="?"?> <?oxy_insert_start author="al22273" timestamp="20200522T101314+0100"?>s<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T101312+0100" content="S"?>omebody or something must be operating the camera and recording the sounds. The images and sounds are converted into electronic signals; these signals are then sent as electromagnetic waves, via satellite, to <?oxy_delete author="al22273" timestamp="20200407T161028+0100" content="my "?><?oxy_insert_start author="al22273" timestamp="20200407T161028+0100"?>your <?oxy_insert_end?>satellite dish at home. This then delivers the electronic signals to <?oxy_delete author="al22273" timestamp="20200407T161036+0100" content="my"?><?oxy_insert_start author="al22273" timestamp="20200407T161036+0100"?>your<?oxy_insert_end?> television, which converts them back into images and sounds. <?oxy_insert_start author="al22273" timestamp="20200407T161047+0100"?>As you can see,<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200407T161047+0100" content="So"?> there are several subsystems involved: </Paragraph>
                                <BulletedList>
                                        <ListItem>sensors – converting images and sounds into electronic signals</ListItem>
                                        <ListItem>processors – converting the electronic signals into a form that can be stored and transmitted as radio waves</ListItem>
                                        <ListItem>communication – actually transmitting the waves, and receiving them at the other end</ListItem>
                                        <ListItem>processors – converting the waves back into images and sounds</ListItem>
                                        <ListItem>display – <?oxy_delete author="al22273" timestamp="20200407T161159+0100" content="my"?><?oxy_insert_start author="al22273" timestamp="20200407T161159+0100"?>your<?oxy_insert_end?> television.</ListItem>
                                </BulletedList>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200407T161209+0100" content="We can broadly categorise t"?><?oxy_insert_start author="al22273" timestamp="20200407T161209+0100"?>T<?oxy_insert_end?>hese components <?oxy_insert_start author="al22273" timestamp="20200407T161217+0100"?>can be broadly categorised <?oxy_insert_end?>into signal processing and communications. </Paragraph>
                                <BulletedList>
                                        <ListItem><b>Signal processing</b> explains how <?oxy_delete author="al22273" timestamp="20200407T161238+0100" content="we manipulate "?>signals <?oxy_insert_start author="al22273" timestamp="20200407T161245+0100"?>are manipulated <?oxy_insert_end?>electronically to filter out noise and to alter the signals so that they can be communicated. </ListItem>
                                        <ListItem><b>Communications</b> looks at how the communication subsystems work, showing how the electronic signals are converted to radio waves for transmission and reception. </ListItem>
                                </BulletedList>
                                <Paragraph>Are there any other possible sub-systems?</Paragraph>
                                <Paragraph>Yes, there are many, but the one other major area of electronics is <?oxy_insert_start author="al22273" timestamp="20200522T101439+0100" type="surround"?><b><?oxy_insert_end?>control</b>. In the scenario above, it’s not obvious how control comes into it<?oxy_insert_start author="al22273" timestamp="20200522T101448+0100"?>, however<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T101450+0100" content=". T"?><?oxy_insert_start author="al22273" timestamp="20200522T101451+0100"?> t<?oxy_insert_end?>here are probably control systems involved, carrying out tasks such as the auto-focusing function on the cameras. <?oxy_insert_start author="al22273" timestamp="20200522T101526+0100" type="split"?></Paragraph>
                                <Paragraph><?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T101527+0100" content="However, a"?><?oxy_insert_start author="al22273" timestamp="20200522T101528+0100"?>A<?oxy_insert_end?>nother and perhaps more obvious way <?oxy_delete author="al22273" timestamp="20200407T161408+0100" content="I"?><?oxy_insert_start author="al22273" timestamp="20200407T161408+0100"?>you<?oxy_insert_end?> could introduce control would be to make <?oxy_insert_start author="al22273" timestamp="20200407T161414+0100"?>your<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200407T161416+0100" content="my"?> viewing experience more interactive. What if<?oxy_insert_start author="al22273" timestamp="20200522T101546+0100"?> <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200407T161420+0100" content=" I"?><?oxy_insert_start author="al22273" timestamp="20200407T161420+0100"?>you<?oxy_insert_end?> could control the camera remotely so that <?oxy_delete author="al22273" timestamp="20200407T161425+0100" content="I"?><?oxy_insert_start author="al22273" timestamp="20200407T161425+0100"?>you<?oxy_insert_end?> decide what <?oxy_delete author="al22273" timestamp="20200407T161428+0100" content="I"?><?oxy_insert_start author="al22273" timestamp="20200407T161429+0100"?>you<?oxy_insert_end?> want to see? Is that so far-fetched? <?oxy_delete author="al22273" timestamp="20200522T101555+0100" content="We"?><?oxy_insert_start author="al22273" timestamp="20200522T101559+0100"?>There are<?oxy_insert_end?> already <?oxy_delete author="al22273" timestamp="20200522T101608+0100" content="have "?>systems <?oxy_insert_start author="al22273" timestamp="20200522T101613+0100"?>which allow you to<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T101618+0100" content="that can"?> control your home from your phone – you can adjust the heating, switch on lights, and even see who is at the door. So why not have the full interactive experience of seeing and hearing what <?oxy_delete author="al22273" timestamp="20200407T161449+0100" content="I"?><?oxy_insert_start author="al22273" timestamp="20200407T161449+0100"?>you<?oxy_insert_end?> want to see and hear by controlling the live camera equipment through <?oxy_delete author="al22273" timestamp="20200407T161458+0100" content="my"?><?oxy_insert_start author="al22273" timestamp="20200407T161458+0100"?>your<?oxy_insert_end?> television? </Paragraph>
                                <Paragraph>What <?oxy_delete author="al22273" timestamp="20200407T161713+0100" content="I’ve"?><?oxy_insert_start author="al22273" timestamp="20200407T161713+0100"?>has been<?oxy_insert_end?> described <?oxy_insert_start author="al22273" timestamp="20200407T161718+0100"?>here <?oxy_insert_end?>so far is mainly for entertainment. However, the same principles can be applied to other systems, such as a Mars rover (Figure <?oxy_delete author="al22273" timestamp="20200407T161728+0100" content="1."?>2). This is a vehicle that travels around the surface of Mars semi-autonomously, collecting samples and analysing them, then sending the data back to Earth. Such a system is clearly making use of signal processing and communication, but it is also using control subsystems to move the vehicle around. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig02.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="69ea6893" x_imagesrc="t312_openlearn_fig02.tif.jpg" x_imagewidth="512" x_imageheight="409"/>
                                        <?oxy_insert_start author="al22273" timestamp="20200407T161733+0100"?>
                                        <Caption><b>Figure 2</b><?oxy_insert_end?> Mars Rover<?oxy_insert_start author="al22273" timestamp="20200407T161733+0100"?></Caption>
                                        <Description>This figure is an image of a Mars rover, which is a small robot with six rugged wheels and a body with what appear to be solar panels on top. A ‘neck’ extends from the top of the body, leading to a ‘head’ that appears to contain two cameras. An arm extends from the front of the rover and the body has what looks like an aerial sticking up from it. The rover is positioned on reddish rocky terrain with hills in the background under a pale pink sky.</Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Systems that use signal processing, control and communications are not just found on other planets. <?oxy_delete author="al22273" timestamp="20200522T103812+0100" content="Down o"?><?oxy_insert_start author="al22273" timestamp="20200522T103813+0100"?>O<?oxy_insert_end?>n Earth <?oxy_delete author="al22273" timestamp="20200407T161810+0100" content="we have"?><?oxy_insert_start author="al22273" timestamp="20200407T161810+0100"?>there are<?oxy_insert_end?> similar systems, including semi-autonomous delivery robots that can bring goods to <?oxy_delete author="al22273" timestamp="20200407T161818+0100" content="our "?>homes or places of work (Figure <?oxy_delete author="al22273" timestamp="20200407T161824+0100" content="1."?>3). </Paragraph>
                                <Figure>
                                        <?oxy_attributes src="&lt;change type=&quot;modified&quot; oldValue=&quot;\\esaki\lts-common$\Alyssa Lim\placeholder.jpg&quot; author=&quot;al22273&quot; timestamp=&quot;20200714T162347+0100&quot; /&gt;" src_uri="&lt;change type=&quot;removed&quot; oldValue=&quot;file:////esaki/lts-common$/Alyssa%20Lim/placeholder.jpg&quot; author=&quot;al22273&quot; timestamp=&quot;20200714T162350+0100&quot; /&gt;"?>
                                        <Image width="100%" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_delivery_robot.tif" x_printonly="y" x_folderhash="6a9a09e4" x_contenthash="581915f9" x_imagesrc="t312_delivery_robot.tif.jpg" x_imagewidth="512" x_imageheight="341"/>
                                        <?oxy_insert_start author="al22273" timestamp="20200407T161826+0100"?>
                                        <Caption><b>Figure 3</b> Delivery robot</Caption>
                                        <Description>This figure is a photograph of a delivery robot moving along a pavement. The robot has six thin wheels and a white, rounded body that is large enough to contain a small amount of shopping. The top of the robot is black and gently domed, and it has a long aerial sticking up from one side with a flag on top. At the front of the robot are what look like cameras or sensors, and it also has illuminated headlights. People are walking back and forth on the pavement alongside the robot, and there is a row of shops in the background.</Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T103828+0100" content="T"?><?oxy_insert_start author="al22273" timestamp="20200522T103829+0100"?>For the rest of t<?oxy_insert_end?>his course <?oxy_insert_start author="al22273" timestamp="20200522T103839+0100"?>you will <?oxy_insert_end?>focus<?oxy_delete author="al22273" timestamp="20200522T103843+0100" content="ses"?> on one of these three subsystems: signal processing. <?oxy_delete author="al22273" timestamp="20200522T103853+0100" content="We"?><?oxy_insert_start author="al22273" timestamp="20200522T103853+0100"?>You<?oxy_insert_end?> will <?oxy_delete author="al22273" timestamp="20200522T103909+0100" content="be "?>look<?oxy_delete author="al22273" timestamp="20200522T103911+0100" content="ing"?> at some of the basic principles of signal processing and how it is implemented. </Paragraph>
                                <?oxy_delete author="al22273" timestamp="20200611T111453+0100" content="&lt;Paragraph&gt;&lt;EditorComment&gt;The course has been taken from the module T312 &lt;i&gt;Electronics: Signal Processing, Control and Communication&lt;/i&gt;. Before you continue, I would like you to watch Video 1.1, which summarises what T312 is all about.&lt;/EditorComment&gt;&lt;/Paragraph&gt;"?>
                        </Section>
                </Session><Session>
                        <Title>2 Signal <?oxy_insert_start author="al22273" timestamp="20200407T162117+0100"?>p<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200407T162116+0100" content="P"?>rocessing</Title>
                        <Paragraph>Signal processing is a branch of electronics concerned not just with the properties of signals, but also with the properties of the devices and systems that carry the signals. The objective of signal processing is to optimise the recovery of some particular aspect of the signal that is of most interest, or to optimise the use of a communication medium. <?oxy_insert_start author="al22273" timestamp="20200407T162043+0100" type="split"?></Paragraph>
                        <Paragraph><?oxy_insert_end?>Signal processing <?oxy_delete author="al22273" timestamp="20200522T104110+0100" content="might "?><?oxy_insert_start author="al22273" timestamp="20200522T104111+0100"?>usually <?oxy_insert_end?>mean<?oxy_insert_start author="al22273" timestamp="20200522T104117+0100"?>s<?oxy_insert_end?> filtering <?oxy_delete author="al22273" timestamp="20200522T104124+0100" content="the"?><?oxy_insert_start author="al22273" timestamp="20200522T104124+0100"?>a<?oxy_insert_end?> signal<?oxy_insert_start author="al22273" timestamp="20200522T104129+0100"?>. This could be<?oxy_insert_end?> to reduce or remove interference; it might mean changing the signal so that the communication channel can be used more economically or more efficiently; or it might mean processing a signal so that it can be sampled satisfactorily in an analogue-to-digital converter. </Paragraph>
                        <?oxy_insert_start author="al22273" timestamp="20200407T162731+0100"?>
                        <InternalSection>
                                <Heading>What is filtering?</Heading>
                                <?oxy_insert_end?>
                                <Paragraph>In the context of electronic signals, filtering means altering the signal so that some aspects of the signal are removed while other parts of the signal remain. In this section you will learn about the difference between ‘ideal’ filters and real filters. You will also look at different types of filters and their characteristics and a type of graph used to show the frequency-dependent gain of a filter. </Paragraph>
                                <Paragraph>One of the most common uses of filters is to reduce the intrusion of <i>unwanted</i> signals, or noise, into <i>wanted</i> signals. A common example of filtering is radio and television tuning. Here, the antenna picks up multiple transmissions being broadcast on different frequencies; the tuning circuit ideally passes the wanted broadcast to the output and blocks all the others, which are on different frequencies from the wanted broadcast. </Paragraph>
                                <Paragraph>Filters can be analogue or digital. Analogue filters use components such as inductors, capacitors, resistors, and sometimes <?oxy_insert_start author="al22273" timestamp="20200611T115901+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200611T120716+0100"?>operational amplifiers (op-amps)<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T120716+0100" content="&lt;b&gt;operational amplifiers (op-amps)&lt;/b&gt;"?></GlossaryTerm>. Digital filters are basically computers<?oxy_delete author="al22273" timestamp="20200407T163013+0100" content=","?> and achieve their filtering effects through mathematical operations on the sample values of a digitised signal. <?oxy_delete author="al22273" timestamp="20200407T163030+0100" content="However, I will concentrate in this section on analogue filters"?><?oxy_insert_start author="al22273" timestamp="20200407T163030+0100"?>You will look at these more closely in Section 3. In this section, however, you will focus only on analogue filters<?oxy_insert_end?>. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200407T162731+0100"?>
                        </InternalSection>
                        <?oxy_insert_end?>
                        <Section>
                                <Title>2.1 Frequency-dependent gain</Title>
                                <Paragraph>In Figure <?oxy_delete author="al22273" timestamp="20200407T163134+0100" content="2.1"?><?oxy_insert_start author="al22273" timestamp="20200407T163134+0100"?>4<?oxy_insert_end?>, the box in the middle represents a device with frequency-dependent gain <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>G</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>ω</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> – in other words, a filter. <?oxy_delete author="al22273" timestamp="20200421T160018+0100" content="I am using"?><?oxy_insert_start author="al22273" timestamp="20200421T160018+0100"?>Here<?oxy_insert_end?> the symbol <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>ω</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_insert_start author="al22273" timestamp="20200421T160029+0100"?>is being used to<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200421T160028+0100" content="to"?> represent angular frequency, measured in radians per second. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig04.tif" width="100%" x_printonly="y" x_folderhash="1b694830" x_contenthash="8a631f95" x_imagesrc="t312_openlearn_fig04.tif.jpg" x_imagewidth="512" x_imageheight="128"/>
                                        <?oxy_insert_start author="al22273" timestamp="20200407T163144+0100"?>
                                        <Caption><b>Figure 4</b><?oxy_insert_end?> Filter with input amplitude <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and output amplitude <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation><?oxy_insert_start author="al22273" timestamp="20200407T163144+0100"?></Caption>
                                        <?oxy_insert_end?>
                                        <Description><Paragraph>This figure is a block diagram consisting of a single block with an input of ‘<i>V</i> subscript in’ and an output of ‘<i>V</i> subscript out’. The block itself is labelled ‘<i>G</i> as a function of omega’.</Paragraph></Description>
                                </Figure>
                                <Paragraph>A sinusoidal input signal with amplitude <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is applied to the filter, and the output is a sinusoidal signal with amplitude <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. The <?oxy_insert_start author="al22273" timestamp="20200611T115913+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200611T120719+0100"?>voltage gain<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T120719+0100" content="&lt;b&gt;voltage gain&lt;/b&gt;"?></GlossaryTerm> of the filter at the frequency in question is <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  </math></MathML></InlineEquation> – in other words, it is the ratio of the output voltage amplitude to the input voltage amplitude. So, at any particular frequency, </Paragraph>
                                <Equation>
                                        <MathML>
                                                <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                                                  <mrow>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  <mo>=</mo>
                                                  <mi>G</mi>
                                                  </mrow>
                                                </math>
                                        </MathML>
                                </Equation>
                                <Paragraph>The voltage gain can be expressed simply as a number or fraction (or decimal). For example, a gain of 2 means that the output amplitude is twice the input amplitude. A gain of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>4</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> (or 0.25) means that the amplitude of the output is one-quarter that of the input. </Paragraph>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200421T160326+0100" content="I refer to t"?><?oxy_insert_start author="al22273" timestamp="20200421T160328+0100"?>T<?oxy_insert_end?>he above gain <?oxy_insert_start author="al22273" timestamp="20200421T160331+0100"?>is referred to <?oxy_insert_end?>as ‘voltage gain’ because gain is sometimes expressed as a ratio of output and input <i>powers</i>. I<?oxy_insert_start author="al22273" timestamp="20200522T104345+0100"?>n this course<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T104349+0100" content=" will refer to"?> this way of expressing gain <?oxy_insert_start author="al22273" timestamp="20200522T104402+0100"?>will be referred to <?oxy_insert_end?>as <?oxy_insert_start author="al22273" timestamp="20200611T115917+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200611T120723+0100"?>power gain<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T120723+0100" content="&lt;b&gt;power gain&lt;/b&gt;"?></GlossaryTerm>. <?oxy_insert_start author="al22273" timestamp="20200522T104412+0100"?>As <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T104412+0100" content="P"?><?oxy_insert_start author="al22273" timestamp="20200522T104415+0100"?>p<?oxy_insert_end?>ower ratios can be expressed in decibels, so power gains are almost invariably given in <?oxy_insert_start author="al22273" timestamp="20200611T115920+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?><?oxy_insert_start author="al22273" timestamp="20200611T120727+0100"?>decibels<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T120727+0100" content="&lt;b&gt;decibels&lt;/b&gt;"?></GlossaryTerm>. </Paragraph>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T104444+0100" content="At the moment I am "?><?oxy_insert_start author="al22273" timestamp="20200522T104444+0100"?>For the time being you will only <?oxy_insert_end?>consider<?oxy_delete author="al22273" timestamp="20200626T152508+0100" content="ing only"?> sinusoidal inputs and outputs, as these have a single frequency. This limitation to a single frequency helps to clarify what a filter does. In practice, though, a filter would typically operate on a complex waveform consisting of many frequency components. In such a case, the inputs and outputs would themselves be functions of frequency. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T104511+0100" type="surround"?>
                                <StudyNote>
                                        <?oxy_insert_end?>
                                        <Paragraph>Although <?oxy_delete author="al22273" timestamp="20200522T104523+0100" content="I have specified "?>two <?oxy_insert_start author="al22273" timestamp="20200522T104526+0100"?>different <?oxy_insert_end?>types of gain <?oxy_insert_start author="al22273" timestamp="20200522T104534+0100"?>have been mentioned <?oxy_insert_end?>(voltage gain and power gain), you will often <?oxy_insert_start author="al22273" timestamp="20200522T104541+0100"?>just <?oxy_insert_end?>see the word <?oxy_insert_start author="al22273" timestamp="20200611T115924+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>gain</GlossaryTerm> used by itself. If the gain is given as an ordinary numerical value (such as 2, 10, 3000 or 0.001), voltage gain is almost invariably indicated. If the numerical value is in decibels, power gain is being represented. </Paragraph>
                                </StudyNote>
                                <Paragraph>The output of a filter differs from the input not only in amplitude but (usually) also in phase. <?oxy_insert_start author="al22273" timestamp="20200522T104614+0100"?>You<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T104613+0100" content="I"?> will look more closely at the question of phase later<?oxy_insert_start author="al22273" timestamp="20200522T104626+0100"?> in the course<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T104630+0100" content=". Sections"?>. <?oxy_insert_start author="al22273" timestamp="20200522T104635+0100"?>However, for now you will continue to focus on gain. Complete Activity 1 to test your understanding so far.<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T104711+0100" content="For the moment, the gain is what interests us. "?></Paragraph>
                                <Activity>
                                        <Heading>Activity 1 </Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T104730+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>A passive filter has an input signal of  <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>v</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mn>10</mn>
                                                  <mo>⁢</mo>
                                                  <mtext> </mtext>
                                                  <mi>sin</mi>
                                                  <mo>⁡</mo>
                                                  <mn>200</mn>
                                                  <mi>t</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> volts. The steady-state output is <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>v</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mn>2</mn>
                                                  <mo>⁢</mo>
                                                  <mtext> </mtext>
                                                  <mi>sin</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mn>200</mn>
                                                  <mi>t</mi>
                                                  <mo>−</mo>
                                                  <mn>0.6</mn>
                                                  <mstyle mathvariant="normal">
                                                  <mi>π</mi>
                                                  </mstyle>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> volts. What is the gain as a voltage ratio? </ListItem>
                                                  <ListItem>The input to the filter in part (a) remains unchanged in amplitude, but its frequency changes. The steady-state output is now found to be  <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>v</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mn>5</mn>
                                                  <mo>⁢</mo>
                                                  <mtext> </mtext>
                                                  <mi>sin</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mn>100</mn>
                                                  <mi>t</mi>
                                                  <mo>−</mo>
                                                  <mn>0.2</mn>
                                                  <mstyle mathvariant="normal">
                                                  <mrow>
                                                  <mi>π</mi>
                                                  </mrow>
                                                  </mstyle>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> volts. What is the new gain as a voltage ratio? </ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>Here <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, the amplitude of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>v</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, is 10 V and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, the amplitude of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>v</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, is 2 V. Therefore the gain is <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  <mtext> </mtext>
                                                  <mtext>V</mtext>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>10</mn>
                                                  <mtext> </mtext>
                                                  <mtext>V</mtext>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  </math></MathML></InlineEquation>, or 0.2. </ListItem>
                                                  <ListItem><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is still 10 V and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is now 5 V. Therefore the gain is now <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>5</mn>
                                                  <mtext> </mtext>
                                                  <mtext>V</mtext>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>10</mn>
                                                  <mtext> </mtext>
                                                  <mtext>V</mtext>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  </math></MathML></InlineEquation>, or 0.5. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T104803+0100"?>
                                <Paragraph>In the next section you will discover the characteristics of an ideal filter.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>2.2 Gain functions of ideal filters</Title>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T111815+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T111815+0100"?>5<?oxy_insert_end?> shows some common types of ‘ideal’ filter. Ideal filters are sometimes characterised as ‘brick-wall’ filters because graphs of their gain functions have perfectly horizontal or vertical lines. In practice, such brick-wall gain functions can never be achieved. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig05.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="65562369" x_imagesrc="t312_openlearn_fig05.tif.jpg" x_imagewidth="512" x_imageheight="282"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T111829+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T111823+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T111823+0100"?>5<?oxy_insert_end?></b>  Four types of ideal filter: (a) low-pass filter; (b) high-pass filter; (c) band-pass filter; (d) band-stop (notch) filter </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T111842+0100"?>
                                        <Description><Paragraph>This figure consists of four graphs of gain against frequency, representing four types of filter. In each case, the gain is either at 1 or at 0, depending on the frequency. Areas where the gain is 1 are labelled ‘passband’, while areas where the gain is 0 are labelled ‘stop band’. The transitions between 1 and 0 (or vice versa) are vertical, and labelled ‘cut-off frequency’.</Paragraph><Paragraph>Part (a) is a low-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 1 (passband). At frequencies above the cut-off, the gain is 0 (stop band).</Paragraph><Paragraph>Part (b) is a high-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 0 (stop band). At frequencies above the cut-off, the gain is 1 (passband).</Paragraph><Paragraph>Part (c) is a band-pass filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 0 (stop band). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 1 (passband).</Paragraph><Paragraph>Part (d) is a band-stop filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 1 (passband). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 0 (stop band). Because the stop band is a narrow region between two passbands, the stop band is also known as the notch in this type of filter.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Notice that each of the four types of filter has a name summarising what it does. For example, the low-pass filter (Figure <?oxy_delete author="al22273" timestamp="20200408T111918+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T111918+0100"?>5<?oxy_insert_end?>(a)) passes all frequencies below the cut-off frequency <?oxy_insert_start author="al22273" timestamp="20200408T111929+0100"?><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>f</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>c</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_insert_end?>and blocks all frequencies above it. </Paragraph>
                                <Paragraph>In all the filters, a frequency band where the signal is passed is called a <?oxy_insert_start author="al22273" timestamp="20200611T115927+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>passband</GlossaryTerm>, and a frequency band where the signal is blocked is called a <?oxy_insert_start author="al22273" timestamp="20200611T115930+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>stop band</GlossaryTerm>. All the filters in Figure <?oxy_delete author="al22273" timestamp="20200421T162628+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200421T162628+0100"?>5<?oxy_insert_end?> have one or more passbands, one or more stop bands, and one or more cut-off frequencies. </Paragraph>
                                <Paragraph>In all the passbands shown, the voltage gain is 1, but this is a convention for this type of diagram. The actual passband gain depends on various factors such as whether the filter is passive (that is, consists only of passive components, such as resistors, capacitors and inductors) or active (that is, includes amplification as well as passive components). </Paragraph>
                                <Paragraph>Similarly, all the stop bands are shown with a voltage gain of 0. In practice, the gain is likely to be above 0. However, provided the stop-band gain is several orders of magnitude below the passband gain, the term ‘stop band’ is reasonable. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T104906+0100"?>
                                <Paragraph>In the next section you will see what is meant by interference and noise, which is what is trying to be removed from a signal using a filter. </Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>2.3 Types of interference</Title>
                                <Paragraph>In the same way that Figure <?oxy_delete author="al22273" timestamp="20200408T112040+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T112040+0100"?>5<?oxy_insert_end?> shows simplified models of filters, there exist simplified models of the type of signals and noise we might want to apply filters to. </Paragraph>
                                <Paragraph>A common type of interference is adjacent channel interference, in which the interfering signal is in a frequency band above or below that of the wanted signal, as shown in Figure <?oxy_delete author="al22273" timestamp="20200421T163658+0100" content="2.3"?><?oxy_insert_start author="al22273" timestamp="20200421T163658+0100"?>6<?oxy_insert_end?>. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig06.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="7e13395b" x_imagesrc="t312_openlearn_fig06.tif.jpg" x_imagewidth="512" x_imageheight="115"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T112117+0100"?><b>Figure 6</b> <?oxy_insert_end?>Adjacent channel interference: (a) below wanted signal; (b) above wanted signal </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T112135+0100"?>
                                        <Description><Paragraph>This figure consists of two graphs of signal strength against frequency. Each one has a wider rectangle representing interference and a smaller rectangle of the same height representing the wanted signal; these two rectangles are shown side by side on the horizontal axis with a gap in between them. In graph (a), the interference is at a lower range of frequencies than the wanted signal, while in graph (b), the interference is at a higher range of frequencies than the wanted signal.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>In each case, an appropriate filter can be used to reduce the interference. For example, <?oxy_insert_start author="al22273" timestamp="20200522T105655+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T105655+0100" content="we"?> can see that in the case of Figure <?oxy_delete author="al22273" timestamp="20200421T163847+0100" content="2.3"?><?oxy_insert_start author="al22273" timestamp="20200421T163847+0100"?>6<?oxy_insert_end?>(b), where the adjacent channel interference is above the wanted signal, a low-pass filter can be used, with the passband coinciding with the wanted signal and the stop band coinciding with the interference. With this arrangement an ideal filter could, in principle, remove the interference altogether. (However, as <?oxy_delete author="al22273" timestamp="20200522T105715+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T105715+0100"?>you<?oxy_insert_end?> will see later, the reality is somewhat different.) </Paragraph>
                                <Paragraph>Life is trickier when the signal and interference overlap in frequency, as in the narrowband interference and wideband interference shown in Figure <?oxy_delete author="al22273" timestamp="20200421T163850+0100" content="2.4"?><?oxy_insert_start author="al22273" timestamp="20200421T163850+0100"?>7<?oxy_insert_end?>. Here, no form of filtering can give us what we would like, which is a noise-free signal with no adverse effect on the signal. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig07.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="e82d0905" x_imagesrc="t312_openlearn_fig07.tif.jpg" x_imagewidth="512" x_imageheight="115"/>
                                        <Caption><b>Figure <?oxy_delete author="al22273" timestamp="20200408T112147+0100" content="2.4"?><?oxy_insert_start author="al22273" timestamp="20200408T112147+0100"?>7<?oxy_insert_end?></b>  (a) Narrowband interference; (b) wideband interference </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T112226+0100"?>
                                        <Description><Paragraph>This figure consists of two graphs of signal strength against frequency. Each one shows two rectangles of the same height, a narrow one and a much wider one, with the frequency band of the narrow rectangle completely overlapping with part of the frequency band of the wider rectangle. In graph (a), the wanted signal has a wide bandwidth, and narrowband interference overlaps with part of it. In graph (b), there is a broad spectrum of wideband interference, and a narrow wanted signal overlaps with part of it.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Note that, just as brick-wall filters are unachievable in practice, the brick-wall frequency bands and signal strengths of these various types of interference are not achievable in practice. In real-world situations, the boundaries are less clearly defined. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T105737+0100"?>
                                <Paragraph>Now complete Activity 2 and apply the correct filter to the interference type.</Paragraph>
                                <?oxy_insert_end?>
                                <Activity>
                                        <Heading>Activity 2</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T105800+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>For each of the following types of interference, suggest a suitable filter to improve the signal-to-noise ratio, and say how the passbands and stop bands should be arranged. Explain any drawbacks. </Paragraph>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>Narrowband interference</ListItem>
                                                  <ListItem>Wideband interference</ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>For narrowband interference <?oxy_insert_start author="al22273" timestamp="20200522T121213+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T121212+0100" content="we"?> can use a band-stop filter, with the stop band centred on the interference and of an equal width. This could in principle remove the interference. The drawback is that the stop band also removes some signal power. </ListItem>
                                                  <ListItem>When you have wideband interference, a suitable remedy is to use a band-pass filter with the passband centred on the wanted signal and equal in width to the bandwidth of the signal. However, although this gives the best signal-to-noise ratio, it cannot remove all the interference. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T105814+0100"?>
                                <Paragraph>Having seen the characteristics of ideal filters and the sorts of interference that you want to remove, the next section will look you what real filters are like.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>2.4 First-order filters</Title>
                                <Paragraph>In addition to the filter categories already introduced (low-pass, band-pass, etc.), filters are categorised by their <?oxy_insert_start author="al22273" timestamp="20200611T115538+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>order</GlossaryTerm>. The order of a filter is determined by the form of the <?oxy_insert_start author="al22273" timestamp="20200611T115937+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>differential equation</GlossaryTerm> governing the filter’s behaviour. The simplest type of filter, with the simplest equation, is called a <?oxy_insert_start author="al22273" timestamp="20200611T115939+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>first-order</GlossaryTerm> filter. <b>Higher-order</b> filters are more complex than first-order filters, both in their circuitry and in the differential equation that governs them. The higher the order, the more effective the filter. </Paragraph>
                                <Paragraph>An example of a first-order filter is the simple circuit in Figure <?oxy_delete author="al22273" timestamp="20200408T112255+0100" content="2.5"?><?oxy_insert_start author="al22273" timestamp="20200408T112255+0100"?>8<?oxy_insert_end?>.</Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig08.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="23ef598c" x_imagesrc="t312_openlearn_fig08.tif.jpg" x_imagewidth="512" x_imageheight="187"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T112251+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T112248+0100" content="2.5"?><?oxy_insert_start author="al22273" timestamp="20200408T112248+0100"?>8<?oxy_insert_end?></b>  First-order filter </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T112302+0100"?>
                                        <Description><Paragraph>This figure is a circuit diagram in which the input voltage, <i>V</i> subscript in, is produced by an alternating source. The source is in series with a resistor, <i>R</i>, and a capacitor, <i>C</i>. The output voltage, <i>V</i> subscript out, is taken across the capacitor.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Activity>
                                        <Heading>Activity 3</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T105916+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>Which of the four categories of filter shown in Figure <?oxy_delete author="al22273" timestamp="20200408T112329+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T112329+0100"?>5<?oxy_insert_end?> does the filter in Figure <?oxy_delete author="al22273" timestamp="20200408T112316+0100" content="2.5"?><?oxy_insert_start author="al22273" timestamp="20200408T112316+0100"?>8<?oxy_insert_end?> belong to? You should be able to work it out from the behaviour of the capacitor at low frequencies and high frequencies. Explain your answer.<?oxy_delete author="al22273" timestamp="20200408T112344+0100" content=" "?><?oxy_delete author="al22273" timestamp="20200408T112344+0100" content="End of QuestionEnd of SAQ"?></Paragraph>
                                                <Figure>
                                                  <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig05.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="65562369" x_imagesrc="t312_openlearn_fig05.tif.jpg" x_imagewidth="512" x_imageheight="282"/>
                                                  <Caption><?oxy_insert_start author="al22273" timestamp="20200408T111829+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T111823+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200408T111823+0100"?>5<?oxy_insert_end?> (repeated)</b>  Four types of ideal filter: (a) low-pass filter; (b) high-pass filter; (c) band-pass filter; (d) band-stop (notch) filter </Caption>
                                                  <?oxy_insert_start author="al22273" timestamp="20200408T111842+0100"?>
                                                  <Description><Paragraph>This figure consists of four graphs of gain against frequency, representing four types of filter. In each case, the gain is either at 1 or at 0, depending on the frequency. Areas where the gain is 1 are labelled ‘passband’, while areas where the gain is 0 are labelled ‘stop band’. The transitions between 1 and 0 (or vice versa) are vertical, and labelled ‘cut-off frequency’.</Paragraph><Paragraph>Part (a) is a low-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 1 (passband). At frequencies above the cut-off, the gain is 0 (stop band).</Paragraph><Paragraph>Part (b) is a high-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 0 (stop band). At frequencies above the cut-off, the gain is 1 (passband).</Paragraph><Paragraph>Part (c) is a band-pass filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 0 (stop band). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 1 (passband).</Paragraph><Paragraph>Part (d) is a band-stop filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 1 (passband). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 0 (stop band). Because the stop band is a narrow region between two passbands, the stop band is also known as the notch in this type of filter.</Paragraph></Description>
                                                  <?oxy_insert_end?>
                                                </Figure>
                                        </Question>
                                        <Answer>
                                                <Paragraph>It is a low-pass filter. </Paragraph>
                                                <Paragraph>At 0 Hz, or DC, the capacitor is open circuit. Under those circumstances, all the input voltage would appear on the output. At high frequencies, the capacitor becomes increasingly like a short circuit, and the output voltage decreases as frequency increases. Therefore low frequencies are passed and high frequencies are (to some extent) blocked. </Paragraph>
                                        </Answer>
                                </Activity>
                                <Paragraph>Low-pass and high-pass filters can be first-order, second-order, third-order, and so on. However, band-pass filters and band-stop filters must be second-order or higher, although it is possible to achieve their effect by combining two first-order filters. </Paragraph>
                                <Paragraph>Despite being the simplest type, a first-order filter is not simple to analyse mathematically, as its behaviour is governed by a first-order differential equation. This is what the voltage gain function of the filter in Figure <?oxy_delete author="al22273" timestamp="20200421T165538+0100" content="2.5"?><?oxy_insert_start author="al22273" timestamp="20200421T165540+0100"?>8<?oxy_insert_end?> turns out to be: </Paragraph>
                                <Equation>
                                        <MathML>
                                                <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                                                  <mrow>
                                                  <mi>G</mi>
                                                  <mo>=</mo>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>out</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>V</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mtext>in</mtext>
                                                  </mrow>
                                                  </msub>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  <mo>=</mo>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  <mo>+</mo>
                                                  <msup>
                                                  <mrow>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>ω</mi>
                                                  <mi>R</mi>
                                                  <mi>C</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  </mrow>
                                                  </msup>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  </mrow>
                                                </math>
                                        </MathML>
                                </Equation>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200421T165554+0100" content="We"?><?oxy_insert_start author="al22273" timestamp="20200421T165555+0100"?>You<?oxy_insert_end?> could plot a graph of the gain function against frequency from this equation, but the details would depend on the choice of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>R</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>C</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. However, irrespective of the values chosen for <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>R</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>C</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, the general shape and certain other properties of the gain function would be the same for any first-order low-pass filter. Therefore, rather than show how the gain function changes with frequency for particular values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>R</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>C</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, <?oxy_insert_start author="al22273" timestamp="20200522T110008+0100"?>in the <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200421T165628+0100" content="I"?><?oxy_insert_start author="al22273" timestamp="20200421T165628+0100"?>next section you<?oxy_insert_end?> will look at a ‘normalised’ version of the gain function. (Normalisation is the presentation of information in a generalised way that can easily be adapted to specific cases.) </Paragraph>
                        </Section>
                        <Section>
                                <Title>2.5 Normalised first-order low-pass filters</Title>
                                <Paragraph>A graph of gain function against frequency is called a <?oxy_insert_start author="al22273" timestamp="20200611T115945+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>frequency response</GlossaryTerm> or a <?oxy_insert_start author="al22273" timestamp="20200611T115947+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>Bode plot</GlossaryTerm>. A normalised first-order low-pass frequency response (or Bode plot) is shown in Figure 9. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200626T153123+0100"?>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig09.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="ad736d54" x_imagesrc="t312_openlearn_fig09.tif.jpg" x_imagewidth="512" x_imageheight="324"/>
                                        <Caption><b>Figure 9</b>  Normalised first-order low-pass frequency response </Caption>
                                        <Description><Paragraph>This figure is a graph of gain against normalised frequency. The horizontal axis shows normalised frequency on a logarithmic scale from 0.001 to 1000. Two vertical axes are used for the gain, one showing power gain in decibels from minus 60 to 10, and the other showing the equivalent voltage gain.</Paragraph><Paragraph>The graph line starts at a power gain of 0 decibels (voltage gain of 1) for a normalised frequency of 0.001, and remains at this value up to a normalised frequency of around 0.3.</Paragraph><Paragraph>The graph line then begins to curve gently downwards, reaching a power gain of minus 3 decibels (voltage gain of 0.707) at a normalised frequency of 1. This frequency is the cut-off frequency.</Paragraph><Paragraph>Above the cut-off frequency, the graph line continues to curve downwards until it becomes a diagonally descending straight line. This line has a power gain of minus 20 decibels (voltage gain of 0.1) at a normalised frequency of 10 and a power gain of minus 40 decibels (voltage gain of 0.01) at a normalised frequency of 100, meaning that the slope of the line is minus 20 decibels per decade.</Paragraph><Paragraph>Frequencies below the cut-off frequency of 1 are in the passband, while frequencies above the cut-off frequency are in the stop band.</Paragraph></Description>
                                </Figure>
                                <?oxy_insert_end?>
                                <Paragraph>You can see in the graph that on the horizontal axis, the frequency scale is in a form that <?oxy_delete author="al22273" timestamp="20200421T165731+0100" content="we call"?><?oxy_insert_start author="al22273" timestamp="20200421T165732+0100"?>is known as<?oxy_insert_end?> logarithmic. What this means is that at equally spaced points instead of having 1, 2, 3 Hz etc., <?oxy_delete author="al22273" timestamp="20200421T165746+0100" content="we have"?><?oxy_insert_start author="al22273" timestamp="20200421T165756+0100"?>you have<?oxy_insert_end?> 1 , 10, 100 Hz etc. The frequency increases by a factor of 10 at each interval. <?oxy_insert_start author="al22273" timestamp="20200421T165815+0100" type="split"?></Paragraph>
                                <Paragraph><?oxy_insert_end?>Secondly, the vertical axis shows the power gain, but is measured in decibels. This again is a logarithmic measure which is designed to measure the ratio of powers, but is probably more commonly known in the measurement of sound.</Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T110037+0100" type="surround"?>
                                <StudyNote>
                                        <?oxy_insert_end?>
                                        <Paragraph>The reason <?oxy_delete author="al22273" timestamp="20200522T110042+0100" content="we use these "?>logarithmic axes <?oxy_insert_start author="al22273" timestamp="20200522T110045+0100"?>are used <?oxy_insert_end?>is so that the shape of the graph is very nearly made up o<?oxy_delete author="al22273" timestamp="20200421T165919+0100" content=" "?>f a horizontal straight line in the pass band, and a sloping straight line in the stop band.</Paragraph>
                                </StudyNote>
                                <Paragraph>Just from the shape of the graph, it is clear that this gain function of a real filter is very different from the idealised ones that <?oxy_insert_start author="al22273" timestamp="20200522T110106+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T110105+0100" content="we"?> saw earlier. For example, there is no sharp distinction between the passband and the stop band, and consequently no distinct cut-off frequency. By convention, the frequency at which the power gain drops 3 dB below the passband gain (or, in terms of voltage ratio, falls to 0.707 times the passband gain) is called the cut-off frequency, and this is true also for an active filter where the passband gain is likely to be other than 1. </Paragraph>
                                <?oxy_delete author="al22273" timestamp="20200626T153123+0100" content="&lt;Figure&gt;&lt;Image src=&quot;https://openuniv.sharepoint.com/sites/tmodules/t312/lmimages/t312_openlearn_fig09.tif&quot;/&gt;&lt;Caption&gt;&lt;b&gt;Figure 9&lt;/b&gt;  Normalised first-order low-pass frequency response &lt;/Caption&gt;&lt;Description&gt;&lt;Paragraph&gt;This figure is a graph of gain against normalised frequency. The horizontal axis shows normalised frequency on a logarithmic scale from 0.001 to 1000. Two vertical axes are used for the gain, one showing power gain in decibels from minus 60 to 10, and the other showing the equivalent voltage gain.&lt;/Paragraph&gt;&lt;Paragraph&gt;The graph line starts at a power gain of 0 decibels (voltage gain of 1) for a normalised frequency of 0.001, and remains at this value up to a normalised frequency of around 0.3.&lt;/Paragraph&gt;&lt;Paragraph&gt;The graph line then begins to curve gently downwards, reaching a power gain of minus 3 decibels (voltage gain of 0.707) at a normalised frequency of 1. This frequency is the cut-off frequency.&lt;/Paragraph&gt;&lt;Paragraph&gt;Above the cut-off frequency, the graph line continues to curve downwards until it becomes a diagonally descending straight line. This line has a power gain of minus 20 decibels (voltage gain of 0.1) at a normalised frequency of 10 and a power gain of minus 40 decibels (voltage gain of 0.01) at a normalised frequency of 100, meaning that the slope of the line is minus 20 decibels per decade.&lt;/Paragraph&gt;&lt;Paragraph&gt;Frequencies below the cut-off frequency of 1 are in the passband, while frequencies above the cut-off frequency are in the stop band.&lt;/Paragraph&gt;&lt;/Description&gt;&lt;/Figure&gt;"?>
                                <Paragraph>In this normalised graph, the frequency axis is the normalised part. Notice that the frequency axis has no units, and the numbers on it are relatively low. (In electronics, <?oxy_delete author="al22273" timestamp="20200522T110125+0100" content="we are seldom interested in "?>such apparently low frequencies<?oxy_insert_start author="al22273" timestamp="20200522T110131+0100"?> are seldom of interest<?oxy_insert_end?>; <?oxy_insert_start author="al22273" timestamp="20200522T110139+0100"?>instead <?oxy_insert_end?>typically <?oxy_delete author="al22273" timestamp="20200522T110147+0100" content="we deal with "?>frequencies ranging from hundreds of hertz to gigahertz<?oxy_insert_start author="al22273" timestamp="20200522T110154+0100"?> are more often used<?oxy_insert_end?>.) The normalised frequencies have been calculated by dividing actual frequencies by the cut-off frequency. This is why the cut-off point sits at 1 on the normalised frequency axis. </Paragraph>
                                <Paragraph>Dividing one frequency by another results in a pure number (that is, one without units), which is why the normalised frequency axis has no units. Similarly, dividing an output voltage by an input voltage produces a gain figure that also has no units. If the gain is converted to a decibel value, then strictly speaking that too has no units, although <?oxy_delete author="al22273" timestamp="20200522T110700+0100" content="we add"?><?oxy_insert_start author="al22273" timestamp="20200522T110701+0100"?>in Figure 9<?oxy_insert_end?> ‘dB’ <?oxy_insert_start author="al22273" timestamp="20200522T110718+0100"?>has been added <?oxy_insert_end?>after the number as though it were a unit<?oxy_insert_start author="al22273" timestamp="20200522T110731+0100"?> <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T110729+0100" content=", and "?>as a reminder of the logarithmic nature of the function used. </Paragraph>
                                <Paragraph>As an example of how to translate normalised frequencies to actual frequencies, suppose a practical low-pass filter had a cut-off frequency of 10<sup><font val="inherit">4</font></sup> radians per second. Simply multiplying all the numbers on the horizontal axis of the normalised graph by 10<sup><font val="inherit">4</font></sup> and giving the unit as ‘radians per second’ would transform the graph into one showing gain against actual frequency for that particular filter. If the cut-off frequency were 10<sup><font val="inherit">4</font></sup> Hz (rather than radians per second), the procedure would be just the same: multiply all the numbers on the axis by 10<sup><font val="inherit">4</font></sup> and give the unit as Hz. </Paragraph>
                                <Paragraph>All first-order low-pass filters have a gain function of this shape and with these slopes. The passband gain might differ if the filter is active (that is, if it incorporates amplification). For first-order passive filters (that is, those without amplification) the passband gain cannot exceed 1. </Paragraph>
                                <Activity>
                                        <Heading>Activity 4</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T110746+0100"?>
                                        <Timing>Allow about 10 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>An alternating voltage source is connected to the input of a low-pass filter. What power is drawn from the output of the filter if the voltage source operates: </Paragraph>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>well below the cut-off frequency of the filter and supplies 0.2 W to the input of the filter<?oxy_insert_start author="al22273" timestamp="20200626T153427+0100"?>?<?oxy_insert_end?></ListItem>
                                                  <ListItem>at the cut-off frequency of the filter and supplies 0.1 W to the input of the filter?</ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>Well below the cut-off frequency, the gain of the filter is 0 dB, which is a power ratio of 1:1. Hence the power drawn from the output of the filter is the same as that supplied at the input, 0.2 W. </ListItem>
                                                  <ListItem>At the cut-off frequency, the power gain is −3 dB or a half. Hence the output power is half the input power, or 0.05 W. The difference between the input power and the output power is also 0.05 W, which is dissipated as heat. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <Paragraph>Notice that as <?oxy_insert_start author="al22273" timestamp="20200522T110807+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T110806+0100" content="we"?> move right along the frequency axis, the gain never reaches zero (that is, zero as a voltage ratio rather than as a decibel number). Zero gain would correspond to a negatively infinite number of decibels. </Paragraph>
                                <Paragraph>All real first-order filters (as opposed to ideal ones) lack a sharp cut-off frequency; in addition, low-pass filters never fully cut off, although if the gain is low enough <?oxy_insert_start author="al22273" timestamp="20200522T110833+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T110832+0100" content="we"?> can regard it as having fallen to 0. Higher-order filters can give a sharper cut-off than a first-order filter, but the brick-wall cut-off of an ideal filter can never be achieved in practice. </Paragraph>
                                <Paragraph>As <?oxy_insert_start author="al22273" timestamp="20200522T110842+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T110841+0100" content="we"?> move left along the frequency axis, each division is one-tenth of the one before, and this can continue indefinitely. A logarithmic frequency scale therefore never reaches a frequency of 0. </Paragraph>
                                <Paragraph>The steepness of the <?oxy_delete author="al22273" timestamp="20200522T110858+0100" content="attenuation"?><?oxy_insert_start author="al22273" timestamp="20200522T110859+0100"?>gain<?oxy_insert_end?> in the stop band is referred to as the filter’s <?oxy_insert_start author="al22273" timestamp="20200611T115951+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>roll-off</GlossaryTerm>. All first-order filters have a 20 dB/decade roll-off. The same roll-off can also be specified as 6 dB/octave. An <?oxy_insert_start author="al22273" timestamp="20200611T115954+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>octave</GlossaryTerm> is a term borrowed from music and represents a doubling of frequency. (It is so called because the frequency span in a doubling of frequency is divided into the eight notes of a musical scale.) Higher-order filters have a steeper roll-off. For second-order filters it is 40 dB/decade (or 12 dB/octave) and for third-order filters it is 60 dB/decade (or 18 dB/octave). Each successive order adds a further 20 dB/decade (or 6 dB/octave) to the roll-off. </Paragraph>
                                <Paragraph>Note that at the first decade above the cut-off frequency, the gain of a first-order filter is 20 dB below the passband gain, not 20 dB below the gain at the cut-off frequency. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T110916+0100"?>
                                <Paragraph>Now have a go at Activity 5.</Paragraph>
                                <?oxy_insert_end?>
                                <Activity>
                                        <Heading>Activity 5</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T110929+0100"?>
                                        <Timing>Allow about 10 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>A first-order low-pass filter has a cut-off frequency of 6.28 × 10<sup><font val="inherit">3</font></sup> radians per second. </Paragraph>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>What is the cut-off frequency in hertz? (Round your answer to 2 significant figures.)</ListItem>
                                                  <ListItem>What is the gain at 1 kHz? Express your answer in decibels.</ListItem>
                                                  <ListItem>What is the gain at 100 kHz? Express your answer in decibels.</ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem><Paragraph>Angular frequency <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>ω</mi>
                                                  <mo>=</mo>
                                                  <mn>2</mn>
                                                  <mstyle mathvariant="normal">
                                                  <mi>π</mi>
                                                  </mstyle>
                                                  <mi>f</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, where <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>f</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is the frequency in hertz. So </Paragraph><Paragraph>  <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mtable columnalign="left" width="auto">
                                                  <mtr>
                                                  <mtd>
                                                  <mi>f</mi>
                                                  <mo>=</mo>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mi>ω</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  <mstyle mathvariant="normal">
                                                  <mi>π</mi>
                                                  </mstyle>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  </mtd>
                                                  </mtr>
                                                  <mtr>
                                                  <mtd>
                                                  <mphantom>
                                                  <mi>f</mi>
                                                  </mphantom>
                                                  <mo>=</mo>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>6.28</mn>
                                                  <mo>×</mo>
                                                  <msup>
                                                  <mrow>
                                                  <mn>10</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </msup>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  <mstyle mathvariant="normal">
                                                  <mi>π</mi>
                                                  </mstyle>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  <mtext> Hz</mtext>
                                                  </mtd>
                                                  </mtr>
                                                  <mtr>
                                                  <mtd>
                                                  <mphantom>
                                                  <mi>f</mi>
                                                  </mphantom>
                                                  <mo>=</mo>
                                                  <mn>999.493</mn>
                                                  <mo>…</mo>
                                                  <mtext> Hz</mtext>
                                                  </mtd>
                                                  </mtr>
                                                  </mtable>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></Paragraph><Paragraph>To 2 significant figures, <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>f</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> = 10<sup>3</sup> Hz. So the cut-off frequency is 10<sup>3</sup> Hz or 1 kHz. </Paragraph></ListItem>
                                                  <ListItem><Paragraph>1 kHz is the cut-off frequency, so the gain here is −3 dB.</Paragraph></ListItem>
                                                  <ListItem><Paragraph>100 kHz is two decades above the cut-off frequency, so the power gain is −40 dB.</Paragraph></ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T110944+0100"?>
                                <Paragraph>As you saw earlier, filters affect the gain and phase of a signal. In the next section you will see how you can show this in the Bode plot.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>2.6 The full Bode plot: gain and phase</Title>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T111101+0100" content="I mentioned "?><?oxy_insert_start author="al22273" timestamp="20200522T111106+0100"?>In Section 2.5, <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T111114+0100" content="earlier that"?><?oxy_insert_start author="al22273" timestamp="20200522T111118+0100"?>you heard how<?oxy_insert_end?> a full Bode plot would show not only how the gain changes with frequency, but also how the phase difference between output and input changes with frequency. Conventionally the phase plot is put under the gain plot, with their respective frequency axes aligned, as in Figure <?oxy_delete author="al22273" timestamp="20200408T113800+0100" content="2.7"?><?oxy_insert_start author="al22273" timestamp="20200408T113800+0100"?>10<?oxy_insert_end?>. This example is for a first-order low-pass filter. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig10.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="d656b480" x_imagesrc="t312_openlearn_fig10.tif.jpg" x_imagewidth="410" x_imageheight="512"/>
                                        <Caption><b>Figure 10</b>  Normalised first-order low-pass frequency response showing gain and phase </Caption>
                                        <Description><Paragraph>This figure consists of two graphs, one above the other. They have the same horizontal axis, showing normalised frequency on a logarithmic scale from 0.01 to 100.</Paragraph><Paragraph>The upper graph is gain <i>G</i> against normalised frequency, where the vertical axis for gain is on a logarithmic scale from 0.01 to 1. The graph line is the same shape as the one shown in Figure <?oxy_delete author="al22273" timestamp="20200408T113752+0100" content="2.6"?><?oxy_insert_start author="al22273" timestamp="20200408T113752+0100"?>9<?oxy_insert_end?>. It starts at a gain of 1 for a normalised frequency of 0.01 and remains at this value up to a normalised frequency of just over 0.1. The graph line then begins to curve gently downwards, until it becomes a diagonally descending straight line with a gain of 0.2 at a normalised frequency of 5 and a gain of 0.02 at a normalised frequency of 50.</Paragraph><Paragraph>The lower graph is phase difference against normalised frequency, where the vertical axis for phase difference is on a linear scale from minus 90 degrees to zero. The graph line starts at a phase difference of zero for a normalised frequency of 0.01, then curves down at first gently and then more steeply until it becomes a diagonally descending straight line that reaches a phase difference of minus 45 degrees at a normalised frequency of 1. After this, the graph line continues to curve down at first steeply and then more gently, until it flattens out again at a phase difference of minus 90 degrees for a normalised frequency of 100. The overall shape of the graph line is a flattened, backwards S with rotational symmetry around the central point (the steepest part of the curve) at normalised frequency 1, phase difference minus 45 degrees.</Paragraph></Description>
                                </Figure>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T113815+0100" content="2.7"?><?oxy_insert_start author="al22273" timestamp="20200408T113815+0100"?>10<?oxy_insert_end?> shows that in the passband, the output is virtually in phase with the input. As frequency increases towards the cut-off frequency (1 on the normalised frequency axis), a phase difference opens between the output and the input, with the output lagging the input (the negative values of phase angle indicate lagging phase). At the cut-off frequency, the phase difference is −45°. This means that for a sinusoidal input, the output lags the input by 45°. By the time <?oxy_delete author="al22273" timestamp="20200522T111137+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T111138+0100"?>you<?oxy_insert_end?> are well into the stop band, the phase difference levels off at −90°. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T111152+0100"?>
                                <Paragraph>That concludes the discussion of first-order filters. To end Section 2 you will consider some commonly found higher-order filters and have a look at their characteristics.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>2.<?oxy_insert_start author="al22273" timestamp="20200408T113902+0100"?>7<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200408T113900+0100" content="10"?> Chebyshev and Butterworth filters</Title>
                                <Paragraph>The design of higher-order filters is a specialist area, and mathematically complex, so <?oxy_delete author="al22273" timestamp="20200522T111523+0100" content="I will simply present some "?><?oxy_insert_start author="al22273" timestamp="20200522T111524+0100"?>in this section you will look at <?oxy_insert_end?>gain functions of <?oxy_insert_start author="al22273" timestamp="20200522T111536+0100"?>just <?oxy_insert_end?>two celebrated types. The first is the Butterworth filter. The gain function of a Butterworth filter has the familiar flat passband and roll-off <?oxy_delete author="al22273" timestamp="20200522T111549+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T111550+0100"?>you<?oxy_insert_end?> would expect. However, this filter comes in various orders, such as 2, 4, 6, 8 and 10, depending on how steep the roll-off needs to be. </Paragraph>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T113922+0100" content="2.8"?><?oxy_insert_start author="al22273" timestamp="20200408T113922+0100"?>11<?oxy_insert_end?> shows the normalised responses of first-order, second-order and eighth-order low-pass Butterworth filters. As the order of the filter increases, it approximates more closely the ideal brick-wall response. </Paragraph>
                                <Figure>
                                        <Image width="100%" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig11.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="beecff50" x_imagesrc="t312_openlearn_fig11.tif.jpg" x_imagewidth="512" x_imageheight="266"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T113929+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T113925+0100" content="2.8"?><?oxy_insert_start author="al22273" timestamp="20200408T113925+0100"?>11<?oxy_insert_end?></b>  Normalised Butterworth magnitude response curves </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T113937+0100"?>
                                        <Description><Paragraph>This figure is a graph of gain <i>G</i> against normalised frequency. The ideal brick-wall response is shown as a horizontal line at gain 1 to the left of the cut-off frequency, then a vertical line at the cut-off frequency, with the gain above the cut-off frequency being zero. Three graph lines are shown in comparison to this ideal, representing first-order, second-order and eighth-order filters. Each line starts at a gain of 1 for low frequencies, and curves down first gradually and then more steeply to reach a gain of 1 over root 2 at the cut-off frequency. After this, each line continues to descend steeply and then more gradually, until at high frequencies it approaches zero. The higher the order of the filter, the steeper the descent and the closer the graph line comes to the ideal.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Steeper roll-offs than those of a Butterworth filter can be had if <?oxy_delete author="al22273" timestamp="20200522T111607+0100" content="we are willing to compromise on "?>other desirable features of a filter<?oxy_insert_start author="al22273" timestamp="20200522T111615+0100"?> are compromised<?oxy_insert_end?>. The Chebyshev filter has a steeper roll-off, but at the price of a passband response that is not flat. Figure <?oxy_delete author="al22273" timestamp="20200408T114000+0100" content="2.9"?><?oxy_insert_start author="al22273" timestamp="20200408T114000+0100"?>12<?oxy_insert_end?> compares seventh-order normalised Chebyshev and Butterworth filters. Notice the ripple in the Chebyshev filter’s response in the passband. (There is another type of Chebyshev filter that has a flat response in the passband and ripples in the stop band.) </Paragraph>
                                <Figure>
                                        <Image width="100%" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig12.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="c591e0b1" x_imagesrc="t312_openlearn_fig12.tif.jpg" x_imagewidth="512" x_imageheight="266"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T114012+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T114004+0100" content="2.9"?><?oxy_insert_start author="al22273" timestamp="20200408T114004+0100"?>12<?oxy_insert_end?></b>  Comparison of seventh-order Butterworth and Chebyshev gain</Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T114028+0100"?>
                                        <Description><Paragraph>This figure is a graph of gain <i>G</i> against normalised frequency. Two graph lines are shown, representing the Butterworth and Chebyshev filters.</Paragraph><Paragraph>The Butterworth line follows the shape seen in the previous figure: it starts at gain 1 for low frequencies, and curves down first gradually and then more steeply to reach a gain of 1 over root 2 at the cut-off frequency. After this, the line continues to descend steeply and then more gradually, until at high frequencies it approaches zero.</Paragraph><Paragraph>Below the cut-off frequency, the Chebyshev line oscillates between a gain value of 1 and a gain value of halfway between 1 and 1 over root 2. At the cut-off frequency, it drops very steeply and approaches a gain of zero at lower frequencies than the Butterworth line.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <?oxy_insert_start author="al22273" timestamp="20200522T111644+0100"?>
                                <Paragraph>That concludes the introduction to filters and, in particular, analogue filters. In Section 3 you will learn about digital filtering, which is currently a more popular approach to filtering.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                </Session><Session>
                        <Title>3 <?oxy_delete author="al22273" timestamp="20200522T111833+0100" content="An introduction to d"?><?oxy_insert_start author="al22273" timestamp="20200522T111839+0100"?>D<?oxy_insert_end?>igital signal processing</Title>
                        <Paragraph>Digital signal processing has developed rapidly over the last 50 years: digital signal-processing circuits have become faster and cheaper, and memory storage capabilities have increased dramatically. One result of these developments is a migration from analogue to digital circuits for some types of signal processing, and digital filters are an example of this trend. </Paragraph>
                        <Paragraph>Digital filters have some advantages over analogue filters. They are programmable, so their operation is determined by a program stored in a processor’s memory. This means a digital filter can easily be changed without affecting the hardware. Also, digital filters are extremely stable with respect to both time and temperature. For complex filters, the hardware requirements are relatively simple and compact in comparison to the equivalent analogue circuitry. </Paragraph>
                        <Paragraph>The design of a digital filter is complicated and involves quite advanced mathematics, so software tools that produce a filter design from your specification of filter characteristics are commonly used. However, as you may know from the use of software tools such as circuit simulators, you need to be very wary of using a software design tool to create circuits without having a good understanding of the electrical characteristics of the circuit that you want to create and the parameters used in the design process. A good understanding of how digital filters work will help at every stage of filter design. </Paragraph>
                        <Paragraph>For the remainder <?oxy_insert_start author="al22273" timestamp="20200522T111852+0100"?>of the <?oxy_insert_end?>course you will find out about various aspects of filtering a signal digitally. First you will see how a continuous-time signal is <?oxy_delete author="al22273" timestamp="20200522T111916+0100" content="sampled and quantised"?><?oxy_insert_start author="al22273" timestamp="20200522T111917+0100"?>converted<?oxy_insert_end?> to produce the digital discrete-time signal used as input to the filter. Then you will find out how mathematical operations applied to the discrete-time signal can remove or diminish unwanted aspects of the signal. </Paragraph>
                        <Paragraph><?oxy_insert_start author="al22273" timestamp="20200522T121543+0100"?>To get started, Figure 13 shows the basic set-up of a digital filter. Don’t worry too much about the detail at this point – it will be covered later. <?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T121545+0100" content="&lt;EditorComment&gt;To get started, Figure 3.1 shows the basic set-up of a digital filter. Don’t worry too much about the detail at this point – it will be covered later. &lt;/EditorComment&gt;"?>As part of the filtering process, the continuous input signal must be sampled and digitised using an analogue-to-digital converter (ADC) to produce a sampled discrete signal. The resulting binary numbers, representing successive sampled values of the input signal, are transferred to the processor, which carries out numerical calculations on them. These calculations typically involve multiplying the input values by constants and adding the products together. If necessary, the results of these calculations, which now represent sampled values of the filtered signal, are output through a digital-to-analogue converter (DAC) to convert the signal back to continuous form. Given that the continuous input signal and the filtered continuous output signal are continuous in time, they are often referred to as continuous-time signals. Similarly, the sampled discrete signal and the digitally filtered signal are often referred to as discrete-time signals. (Here the word <?oxy_insert_start author="al22273" timestamp="20200522T112049+0100"?>‘<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112049+0100" content="“"?>discrete<?oxy_insert_start author="al22273" timestamp="20200522T112052+0100"?>’<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112051+0100" content="”"?> means <?oxy_insert_start author="al22273" timestamp="20200522T112054+0100"?>‘<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112053+0100" content="“"?>consisting of separate parts<?oxy_insert_start author="al22273" timestamp="20200522T112057+0100"?>’<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112056+0100" content="”"?> as opposed to the word <?oxy_insert_start author="al22273" timestamp="20200522T112100+0100"?>‘<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112059+0100" content="“"?>discreet<?oxy_insert_start author="al22273" timestamp="20200522T112102+0100"?>’<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112101+0100" content="”"?> which means <?oxy_insert_start author="al22273" timestamp="20200522T112104+0100"?>‘<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112104+0100" content="“"?>unobtrusive<?oxy_insert_start author="al22273" timestamp="20200522T112107+0100"?>’<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T112107+0100" content="”"?>).</Paragraph>
                        <Figure>
                                <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig13.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="944e4552" x_imagesrc="t312_openlearn_fig13.tif.jpg" x_imagewidth="512" x_imageheight="151"/>
                                <Caption><?oxy_insert_start author="al22273" timestamp="20200408T114432+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T114427+0100" content="3.1"?><?oxy_insert_start author="al22273" timestamp="20200408T114427+0100"?>13<?oxy_insert_end?></b>  Digital filtering of a sampled signal </Caption>
                                <?oxy_insert_start author="al22273" timestamp="20200408T114539+0100"?>
                                <Description><Paragraph>This figure is a block diagram showing the four stages that a signal goes through during digital filtering.</Paragraph><Paragraph>The signal starts as a continuous input signal. This has the overall shape of a sine wave but is more jagged, since it is subject to noise that causes it to constantly deviate by small amounts from the smooth curve of the sine wave. The midpoint of the sine wave crosses the horizontal axis.</Paragraph><Paragraph>The input signal enters an analogue-to-digital converter. The output is a sampled discrete signal, which consists of a series of evenly spaced vertical lines along the horizontal axis – some extending above the axis and some below. These represent the samples. Each line has a small filled circle at the end furthest from the axis. The height of each line is equal to the distance, at that point in time, from the horizontal axis to the input signal curve. Therefore if you were to join the filled circles, the resulting shape would be approximately the same as that of the input signal.</Paragraph><Paragraph>The sampled signal enters a processor. The output is a digitally filtered signal, which again consists of a series of evenly spaced vertical lines at the same points along the horizontal axis as for the previous signal. Once again, each line has a small filled circle at the end furthest from the axis. However, the heights of the vertical lines have now been adjusted so that if you were to join the filled circles, the resulting shape would be a sine wave.</Paragraph><Paragraph>The digitally filtered signal enters a digital-to-analogue converter. The output is a filtered continuous signal that has the shape of the same sine wave as the original input signal, but unaffected by noise.</Paragraph></Description>
                                <?oxy_insert_end?>
                        </Figure>
                        <?oxy_insert_start author="al22273" timestamp="20200522T112150+0100"?>
                        <Paragraph>In the next section you will see an example of a digital filter being used as part of a medical system to illustrate the component parts.</Paragraph>
                        <?oxy_insert_end?>
                        <Section>
                                <Title>3.1 Digital filters</Title>
                                <Paragraph>You <?oxy_delete author="al22273" timestamp="20200522T112230+0100" content="have just "?>read about analogue filters<?oxy_insert_start author="al22273" timestamp="20200522T112233+0100"?> in Section 2<?oxy_insert_end?>, so you know that they are electronic circuits made up of components such as resistors, capacitors and inductors connected together to produce the required filtering effect. In comparison, a digital filter uses a digital processor to perform numerical calculations on sampled values of the signal to be filtered. The processor could be a general-purpose computer such as a PC, but it is much more likely to be a specialised digital signal processor (DSP) chip, which is designed to carry out the intensive mathematical operations used in digital signal processing quickly and with low power consumption. The low power consumption is important because it means that purpose-designed DSP chips can be used in mobile devices such as phones and tablets. </Paragraph>
                                <Paragraph>A potential use for a digital filter with low power consumption is described by Asgar and Mehrnia (2017), who propose using a digital filter in an electrocardiogram (ECG) heart-monitoring system. Figure <?oxy_delete author="al22273" timestamp="20200408T114740+0100" content="3.1"?><?oxy_insert_start author="al22273" timestamp="20200408T114740+0100"?>14<?oxy_insert_end?> is a block diagram of the system, taken from their paper. It shows a sensor connected to the surface of the user’s skin to monitor their heart function. This signal is then conditioned. Typical actions here might be to amplify and remove aliases from the signal; then an analogue-to-digital (ADC) converter is used to change the signal from analogue to digital form prior to it being filtered. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig14.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="535900df" x_imagesrc="t312_openlearn_fig14.tif.jpg" x_imagewidth="512" x_imageheight="168"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T114616+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T114612+0100" content="3.2"?><?oxy_insert_start author="al22273" timestamp="20200408T114612+0100"?>14<?oxy_insert_end?></b>  Block diagram of the ECG heart-monitoring system </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200626T124246+0100"?>
                                        <Description>This figure is a block diagram showing how signals from the heart can be detected, processed and displayed. A set of signals from the heart are picked up by an electrode sensor within the wearable ECG device. Still within the device, these signals are sent through an analogue interface with signal conditioning, then an analogue-to-digital converter, then a high-pass filter, and finally a notch filter. The signal then leaves the wearable ECG device and enters a wireless transmitter, from which it is sent to a wireless receiver attached to a computer. The computer carries out signal processing, after which the processed signal may be displayed or stored.</Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>In the paper, the authors describe six different sources that can cause noise to contaminate the measured signal. Three of these sources are as follows: </Paragraph>
                                <BulletedList>
                                        <ListItem>electrode contact noise, which is due to electrode ‘popping’ or a loose contact with the skin</ListItem>
                                        <ListItem>instrumentation noise, which is due to radio-frequency interference from other equipment (e.g. implanted devices such as pacemakers)</ListItem>
                                        <ListItem>electromyographic (EMG) noise, which is induced by electrical activities of skeletal muscles during periods of contraction.</ListItem>
                                </BulletedList>
                                <Paragraph>This shows the variety of noise sources that are associated with specific applications and the insights that are needed to understand the noise sources in any filter application. The filtering solution proposed by the authors uses a low-complexity, linear-phase digital filter design. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T112246+0100"?>
                                <Paragraph>The next section will describe in more detail the signals that are found in digital systems.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.2 Characteristics of discrete-time and continuous-time signals</Title>
                                <Paragraph>A continuous-time signal is shown in Figure <?oxy_delete author="al22273" timestamp="20200408T114826+0100" content="3.2"?><?oxy_insert_start author="al22273" timestamp="20200408T114826+0100"?>15<?oxy_insert_end?>(a). <?oxy_delete author="al22273" timestamp="20200522T112325+0100" content="We can say t"?><?oxy_insert_start author="al22273" timestamp="20200522T112326+0100"?>T<?oxy_insert_end?>he signal is continuous because it has a value at any instance of time – that is, for any value of <?oxy_insert_start author="al22273" timestamp="20200408T114910+0100"?><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>t</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation><?oxy_insert_end?>, <?oxy_delete author="al22273" timestamp="20200522T112359+0100" content="we can"?><?oxy_insert_start author="al22273" timestamp="20200522T112403+0100"?>it is possible<?oxy_insert_end?> read a value of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mi>t</mi>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> from the graph. Most signals in the real world are continuous in time. For example, if you were monitoring the temperature of a room, you would be able to take a measured value of temperature at any time. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200626T160841+0100"?>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig15.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="17495c48" x_imagesrc="t312_openlearn_fig15.tif.jpg" x_imagewidth="512" x_imageheight="219"/>
                                        <Caption><b>Figure 15 </b> (a) Continuous-time signal; (b) discrete-time signal </Caption>
                                        <Description><Paragraph>This figure consists of two graphs.</Paragraph><Paragraph>Graph (a) shows <i>x</i> (as a function of <i>t</i>) against <i>t</i>. The graph line fluctuates randomly up and down, above and below the horizontal axis.</Paragraph><Paragraph>Graph (b) shows <i>x</i>[<i>n</i>] against <i>n</i>. It consists of a series of vertical lines along the horizontal axis at integer values of <i>n</i> – some extending above the axis and some below. Each line has a small filled circle at the end furthest from the axis. The distance between two vertical lines is labelled <i>T</i>.</Paragraph></Description>
                                </Figure>
                                <?oxy_insert_end?>
                                <Paragraph>A discrete-time signal (sometimes referred to as a time-discrete signal or simply a discrete signal) is shown in Figure <?oxy_delete author="al22273" timestamp="20200408T114950+0100" content="3.2"?><?oxy_insert_start author="al22273" timestamp="20200408T114950+0100"?>15<?oxy_insert_end?>(b). In <?oxy_delete author="al22273" timestamp="20200522T112439+0100" content="this module I will use"?><?oxy_insert_start author="al22273" timestamp="20200522T112449+0100"?>the rest of this course<?oxy_insert_end?> the standard convention of drawing the vertical lines in a discrete-time signal with a round dot on the end<?oxy_insert_start author="al22273" timestamp="20200522T112506+0100"?> will be used<?oxy_insert_end?>; these lines-with-dots are often called ‘lollipops’. The signal in Figure <?oxy_delete author="al22273" timestamp="20200408T115008+0100" content="3.2"?><?oxy_insert_start author="al22273" timestamp="20200408T115008+0100"?>15<?oxy_insert_end?>(b) is discrete because it only has a value at fixed points placed at discrete time intervals <?oxy_insert_start author="al22273" timestamp="20200408T115026+0100"?><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>T</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation><?oxy_insert_end?> seconds apart along the <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>-axis. <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>T</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is called the sampling interval. Values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> can be found for the integer values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, such as <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>2</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, etc., but there is no value for the signal at, say, <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>1.5</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. Thus <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> represents the number of the sample. </Paragraph>
                                <?oxy_delete author="al22273" timestamp="20200626T160841+0100" content="&lt;Figure&gt;&lt;Image src=&quot;https://openuniv.sharepoint.com/sites/tmodules/t312/lmimages/t312_openlearn_fig15.tif&quot;/&gt;&lt;Caption&gt;&lt;b&gt;Figure 3.3 &lt;/b&gt; (a) Continuous-time signal; (b) discrete-time signal &lt;/Caption&gt;&lt;Description&gt;&lt;Paragraph&gt;This figure consists of two graphs.&lt;/Paragraph&gt;&lt;Paragraph&gt;Graph (a) shows &lt;i&gt;x&lt;/i&gt; (as a function of &lt;i&gt;t&lt;/i&gt;) against &lt;i&gt;t&lt;/i&gt;. The graph line fluctuates randomly up and down, above and below the horizontal axis.&lt;/Paragraph&gt;&lt;Paragraph&gt;Graph (b) shows &lt;i&gt;x&lt;/i&gt;[&lt;i&gt;n&lt;/i&gt;] against &lt;i&gt;n&lt;/i&gt;. It consists of a series of vertical lines along the horizontal axis at integer values of &lt;i&gt;n&lt;/i&gt; – some extending above the axis and some below. Each line has a small filled circle at the end furthest from the axis. The distance between two vertical lines is labelled &lt;i&gt;T&lt;/i&gt;.&lt;/Paragraph&gt;&lt;/Description&gt;&lt;/Figure&gt;"?>
                                <Paragraph>It is hard to think of examples of real-world discrete-time signals, since most real-world signals are continuous; however, if you took the temperature reading of a room every day at the same time, the result would be a discrete-time signal. Most discrete-time signals come from sampling continuous-time signals to get them into a digitised form that can be processed by digital computers. </Paragraph>
                                <Activity>
                                        <Heading>Activity 6</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T112517+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>State whether the following are discrete-time signals or continuous-time signals, giving a reason for each answer:</Paragraph>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>the wind speed across the blades of a wind turbine</ListItem>
                                                  <ListItem>the position of a robotic arm as it picks items from a conveyor belt</ListItem>
                                                  <ListItem>the total distance travelled by the robotic arm each hour over a 24-hour period.</ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>The wind speed is a continuous-time signal, because you can take a reading at any time.</ListItem>
                                                  <ListItem>The robotic arm always has a position – even if it is in a resting position, <?oxy_insert_start author="al22273" timestamp="20200522T121227+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T121227+0100" content="we"?> know where it is – so this is a continuous-time signal. </ListItem>
                                                  <ListItem>The total distance travelled by the robotic arm is recorded just once in each hour, so this is a discrete-time signal. Over a 24-hour period there will be 24 discrete values recorded. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T112529+0100"?>
                                <Paragraph>In the next section you will learn how a continuous signal is converted to a discrete signal. </Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.3 Sampling a continuous-time signal</Title>
                                <Paragraph>To convert a continuous-time signal into its discrete-time signal equivalent, <?oxy_delete author="al22273" timestamp="20200522T112649+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T112650+0100"?>you<?oxy_insert_end?> need to sample the waveform. <?oxy_delete author="al22273" timestamp="20200522T112659+0100" content="You may recall from your previous studies that t"?><?oxy_insert_start author="al22273" timestamp="20200522T112700+0100"?>T<?oxy_insert_end?>o ensure the discrete-time signal contains the full range of frequencies in the continuous-time signal, the continuous-time signal normally needs to be sampled at a rate that is greater than twice the highest frequency component contained in the signal. The lowest sampling frequency that can fully reconstruct the continuous-time signal is called the Nyquist frequency after Harry Nyquist (1889–1976), a Swedish-born American engineer who made important contributions to communications theory. </Paragraph>
                                <Paragraph>What happens if the sample rate is equal to or less than twice the highest frequency in the signal – or, to express this another way, if the continuous-time signal is sampled twice or less than twice within each cycle of the highest frequency component contained in the signal? Figure <?oxy_delete author="al22273" timestamp="20200408T115347+0100" content="3.3"?><?oxy_insert_start author="al22273" timestamp="20200408T115347+0100"?>16<?oxy_insert_end?>(a) shows a sine wave (solid line) that is being sampled less than twice each cycle. The samples are represented by blobs. However, another sine wave with a lower frequency can be drawn through these samples. It is shown as a dashed sine wave. This lower-frequency wave is called an <?oxy_insert_start author="al22273" timestamp="20200611T120001+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>alias</GlossaryTerm> of the original sine wave. The way to avoid aliases is to sample more frequently, as in Figure <?oxy_delete author="al22273" timestamp="20200408T115357+0100" content="3.3"?><?oxy_insert_start author="al22273" timestamp="20200408T115357+0100"?>16<?oxy_insert_end?>(b). Here there are twice as many samples as in Figure <?oxy_delete author="al22273" timestamp="20200522T112801+0100" content="3.3"?><?oxy_insert_start author="al22273" timestamp="20200522T112803+0100"?>16<?oxy_insert_end?>(a). Now the alias from (a), also shown dashed in (b), misses some of the samples in (b). There is no waveform of a lower frequency than the sampled waveform that can be fitted to all the samples. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig16.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="b116cb05" x_imagesrc="t312_openlearn_fig16.tif.jpg" x_imagewidth="512" x_imageheight="113"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200625T120319+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T115415+0100" content="3.4"?><?oxy_insert_start author="al22273" timestamp="20200408T115415+0100"?>16<?oxy_insert_end?></b>  (a) More than one sine wave can be drawn through these samples, so there is a low-frequency alias of the original wave; (b) with more samples, there is no alias that can be fitted to all the samples </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T115425+0100"?>
                                        <Description><Paragraph>This figure consists of two graphs. Each one shows a sine wave being sampled. The sine wave is drawn above a horizontal axis. A series of evenly spaced vertical lines, representing the samples, extend from this axis to the sine wave. Each line has a small filled circle at the point where the line meets the wave.</Paragraph><Paragraph>In graph (a), seven samples are taken for five cycles of the sine wave. A single cycle of a lower-frequency sine wave is drawn through all seven filled circles, showing that there is an alias.</Paragraph><Paragraph>In graph (b), thirteen samples are taken for five cycles of the sine wave. The lower-frequency sine wave from graph (a) is shown again, but it does not pass through all the filled circles.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>The way to eliminate the possibility of an alias is either to have greater than two samples per cycle or, conversely, to ‘band-limit’ the signal to make sure that there are no frequencies equal to or higher than one half of the sampling frequency. This is done by including an analogue filter before the sampler in the analogue-to-digital converter that removes all frequencies higher than a certain frequency. As such<?oxy_insert_start author="al22273" timestamp="20200626T161133+0100"?>,<?oxy_insert_end?> a filter is designed to stop any chance of aliasing occurring, it is sometimes called an <?oxy_insert_start author="al22273" timestamp="20200611T120006+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>anti-aliasing filter</GlossaryTerm>. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T112831+0100"?>
                                <Paragraph>After sampling the signal, the samples need to be converted to a digital signal. The next section describes how this is done.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.4 Quantisation of a signal</Title>
                                <Paragraph><?oxy_insert_start author="al22273" timestamp="20200714T162436+0100"?>When a continuous-time signal is sampled, the amplitude of each sampled point undergoes quantisation which means that it is forced to have only certain discrete values.<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200714T162454+0100" content="When a continuous-time signal is sampled, the digital sampling quantises the amplitude of each sampled point. "?><?oxy_insert_start author="al22273" timestamp="20200714T162457+0100"?> <?oxy_insert_end?>The amplitude of each sample is represented by a digital binary code, and the word length of the code will be a fixed number of digital bits. Representing the amplitude of the samples in this way means the value is represented by a binary number, so it is truncated or quantised to its closest binary equivalent. </Paragraph>
                                <Paragraph>A 1-bit binary number can represent two levels because it can only take a value of 0 or a value of 1. A 2-bit binary number represents four levels, where each level takes one of the values 00, 01, 10 or 11<?oxy_delete author="al22273" timestamp="20200522T112930+0100" content=" (as you saw in Section 5.5)"?>. Figure <?oxy_delete author="al22273" timestamp="20200408T115554+0100" content="3.4"?><?oxy_insert_start author="al22273" timestamp="20200408T115554+0100"?>17<?oxy_insert_end?> shows a discrete-time signal whose values are limited to a 3-bit binary number, which represents eight possible combinations of 0s and 1s – each possible combination is shown on the <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>-axis of the figure. Note that each sampled, digitised signal is a binary representation of the analogue value, so in conversion to these binary representations some rounding of the signal values has occurred: some sampled values are just above and some just below the continuous-time signal. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig17.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="d0a97c2d" x_imagesrc="t312_openlearn_fig17.tif.jpg" x_imagewidth="512" x_imageheight="436"/>
                                        <Caption><b>Figure <?oxy_delete author="al22273" timestamp="20200408T115559+0100" content="3.5"?><?oxy_insert_start author="al22273" timestamp="20200408T115559+0100"?>17<?oxy_insert_end?></b> Sampled and quantised signal </Caption>
                                        <Description><Paragraph>This figure is a graph of <i>x</i>[<i>n</i>] against <i>n</i>. The vertical axis shows eight evenly spaced levels consisting of three-bit binary numbers ranging from 000 to 111, and horizontal lines are drawn across the graph to indicate these levels. A graph line representing the signal is shown fluctuating up and down. A series of evenly spaced vertical lines, representing the samples, extend from the horizontal axis to the horizontal level line to which the signal is nearest at that time. Each vertical line has a small filled circle at the point where the vertical line meets the horizontal level line.</Paragraph></Description>
                                </Figure>
                                <Paragraph>Any binary word will always give an even number of <?oxy_insert_start author="al22273" timestamp="20200611T120010+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>quantisation</GlossaryTerm> levels. In general, a binary word with <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> bits gives <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <msup>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msup>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> quantisation levels – hence a 3-bit word gives 8 levels, a 4-bit word gives 16 levels, a 5-bit word gives 32 levels, etc. </Paragraph>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T115744+0100" content="3.5"?><?oxy_insert_start author="al22273" timestamp="20200408T115744+0100"?>18<?oxy_insert_end?> shows a sine wave along with a set of quantisation levels. Here the 0 or midpoint of the sine wave occurs at a midpoint between the 011 and 100 levels. The gaps between the quantisation levels are called the quantisation intervals. Sometimes a quantisation level is assigned to the 0 or midpoint, which means that on one side of the 0 there is one more level than on the other side. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig18.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="0a34a616" x_imagesrc="t312_openlearn_fig18.tif.jpg" x_imagewidth="512" x_imageheight="170"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T115753+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T115748+0100" content="3.6"?><?oxy_insert_start author="al22273" timestamp="20200408T115748+0100"?>18<?oxy_insert_end?></b> A sine wave and a set of quantisation levels </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T115805+0100"?>
                                        <Description><Paragraph>This figure is a graph of signal value against time. The horizontal axis extends from 0 to 1 units of time in increments of 0.1. The vertical axis is divided evenly into the same eight levels as in the previous figure, each represented by a three-bit binary number from 000 to 111. The distance between two levels is the quantisation interval.</Paragraph><Paragraph>One cycle of a sine wave is shown on the graph: it starts midway between the 011 and 100 levels at time 0, rises to reach the maximum 111 level at time 0.25, falls to cross the midway point again at time 0.5, falls further to reach the minimum 000 level at time 0.75, then rises back to the midway point at time 1. Overlaid on the sine wave is another line consisting of a series of steps, showing what the sine wave would look like if it were quantised to the eight levels. This stepped line remains at each level until the sine wave crosses the halfway point between that level and the one above or below it, at which point the stepped line rises or falls vertically to the new level.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>The larger the quantisation intervals, the more error will be introduced into the sampled signal. The quantisation error for a sample is the difference between the value of the input signal and the resultant quantised signal, with the maximum quantisation error being half the quantisation interval. Quantisation errors can be reduced by increasing the number of levels; however, as the number of levels increases, so does the number of bits needed to represent each sample. </Paragraph>
                                <Activity>
                                        <Heading>Activity 7</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T112958+0100"?>
                                        <Timing>Allow about 15 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>An electrocardiogram (ECG) signal contains useful information in frequencies up to 400 Hz.</Paragraph>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem><Paragraph>At what rate must the signal be sampled to ensure that no information is lost in sampling?</Paragraph></ListItem>
                                                  <ListItem><Paragraph>If a 3-bit quantiser is used to represent the signal, how many bits of data are generated per second if the sampling rate is set to 1000 Hz? </Paragraph></ListItem>
                                                  <ListItem><Paragraph>If the signal range from the ECG extends from +7 V to −7 V, where 7 V equates to the highest quantisation level and −7 V to the lowest quantisation level, what is the quantisation interval and what is the maximum quantisation error in the system? </Paragraph></ListItem>
                                                  <ListItem><Paragraph>If the quantiser is changed to a 4-bit system, what happens to the maximum quantisation error?</Paragraph></ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem><Paragraph>The signal must be sampled at greater than twice the maximum frequency of the signal, so the minimum sampling rate is 800 Hz.</Paragraph></ListItem>
                                                  <ListItem><Paragraph>With a 3-bit quantiser each sample point uses three bits of data, so the number of bits of data generated is 3 × 1000 = 3000 bits per second. </Paragraph></ListItem>
                                                  <ListItem><Paragraph>With a 3-bit quantiser there are a total of eight levels and seven quantisation intervals in the system. If the voltage range covers 14 V, then each quantisation interval is 2 V. The maximum quantisation error is half this quantisation interval, or 1 V. </Paragraph></ListItem>
                                                  <ListItem><Paragraph>A 4-bit system has 16 quantisation levels and 15 quantisation intervals, so each quantisation interval is</Paragraph></ListItem>
                                                </NumberedList>
                                                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>14</mn>
                                                  <mtext> V</mtext>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>15</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  <mo>=</mo>
                                                  <mn>0.933</mn>
                                                  <mo>…</mo>
                                                  <mtext> V</mtext>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></Paragraph>
                                                <Paragraph>This reduces the maximum quantisation error to</Paragraph>
                                                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mstyle displaystyle="true">
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>0.933</mn>
                                                  <mo>…</mo>
                                                  <mtext> V</mtext>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>2</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </mstyle>
                                                  <mo>=</mo>
                                                  <mn>0.47</mn>
                                                  <mtext> V (to 2 s.f.)</mtext>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></Paragraph>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T113016+0100"?>
                                <Paragraph>In the next section you will return to digital filtering and how they work in the time domain.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.5 Digital filtering in the time domain</Title>
                                <Paragraph>A simple form of digital filter is the three-term averaging filter, in which the output value is equal to the average of three successive signal sample values. In Figure <?oxy_delete author="al22273" timestamp="20200408T120409+0100" content="3.6"?><?oxy_insert_start author="al22273" timestamp="20200408T120409+0100"?>19<?oxy_insert_end?>(a), which shows a discrete-time signal applied to a digital three-term averaging filter, the output <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is given by </Paragraph>
                                <Equation>
                                        <MathML>
                                                <math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mtext> </mtext>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                </math>
                                        </MathML>
                                </Equation>
                                <Paragraph>The signals <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> are spaced <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>T</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> seconds apart in time, where <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>T</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> is the sampling interval. Similarly, <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> are spaced <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>T</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> seconds apart. </Paragraph>
                                <Paragraph>Figure 19(b) shows the values of the input signal <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> that will be applied to the filter input. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig19.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="199ec11b" x_imagesrc="t312_openlearn_fig19.tif.jpg" x_imagewidth="512" x_imageheight="167"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T120617+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T120612+0100" content="3.7"?><?oxy_insert_start author="al22273" timestamp="20200408T120612+0100"?>19<?oxy_insert_end?></b>  (a) Three-term averaging filter; (b) input signal to the three-term averaging filter </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T120632+0100"?>
                                        <Description><Paragraph>This figure consists of two parts.</Paragraph><Paragraph>Part (a) is a simple block diagram showing a three-term averaging filter with input <i>x</i>[<i>n</i>] and output <i>y</i>[<i>n</i>].</Paragraph><Paragraph>Part (b) is a graph of <i>x</i>[<i>n</i>] against <i>n</i>. Input samples <i>x</i>[<i>n</i>], represented as usual as vertical lines extending from the horizontal axis with filled circles at the end, are shown for integer values of <i>n</i> from minus 3 to 5. The values are as follows:</Paragraph><BulletedList><ListItem><Paragraph>when <i>n</i> is minus 3, <i>x</i>[<i>n</i>] is 0</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is minus 2, <i>x</i>[<i>n</i>] is 0</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is minus 1, <i>x</i>[<i>n</i>] is minus 1</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 0, <i>x</i>[<i>n</i>] is 2</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 1, <i>x</i>[<i>n</i>] is 4</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 2, <i>x</i>[<i>n</i>] is 6</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 3, <i>x</i>[<i>n</i>] is 4</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 4, <i>x</i>[<i>n</i>] is 0</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 5, <i>x</i>[<i>n</i>] is 0.</Paragraph></ListItem></BulletedList></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T113125+0100" content="We can list the"?><?oxy_insert_start author="al22273" timestamp="20200522T113126+0100"?>The<?oxy_insert_end?> values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_insert_start author="al22273" timestamp="20200522T113133+0100"?>are listed<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T113136+0100" content="as"?> in <?oxy_insert_start author="al22273" timestamp="20200522T113157+0100"?>Table 1<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T113157+0100" content="&lt;EditorComment&gt;Table 3.1 &lt;/EditorComment&gt;"?>. Assume that <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mn>0</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> for any <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>&lt;</mo>
                                                  <mo>−</mo>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>&gt;</mo>
                                                  <mn>5</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. </Paragraph>
                                <Table>
                                        <TableHead><b>Table <?oxy_delete author="al22273" timestamp="20200522T113150+0100" content="3."?>1</b>  Values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation><?oxy_insert_start author="al22273" timestamp="20200626T161438+0100"?> <?oxy_insert_end?>and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> from Figure 19(b) </TableHead>
                                        <tbody>
                                                <tr>
                                                  <td><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></td>
                                                  <td><font val="Times New Roman">−3</font></td>
                                                  <td><font val="Times New Roman">−2</font></td>
                                                  <td><font val="Times New Roman">−1</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                  <td><font val="Times New Roman">1</font></td>
                                                  <td><font val="Times New Roman">2</font></td>
                                                  <td><font val="Times New Roman">3</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">5</font></td>
                                                </tr>
                                                <tr>
                                                  <td><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">−1</font></td>
                                                  <td><font val="Times New Roman">2</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">6</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                </tr>
                                        </tbody>
                                </Table>
                                <Paragraph>For the output <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> to be calculated, the values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> and <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> must be stored in memory and accessible to the processor performing the calculation. The order of a digital filter is the number of previous inputs (stored in the processor’s memory) used to calculate the current output, so this three-term averaging filter is second-order. </Paragraph>
                                <Paragraph>For values of <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>&lt;</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> the output will be 0, so the calculations below start at <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. </Paragraph>
                                <Paragraph>For <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_delete author="al22273" timestamp="20200522T113307+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T113308+0100"?>you<?oxy_insert_end?> can substitute in values to give <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>0</mn>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>0</mn>
                                                  <mo>=</mo>
                                                  <mo>−</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. </Paragraph>
                                <Paragraph>For <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>0</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_delete author="al22273" timestamp="20200522T113317+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T113318+0100"?>you<?oxy_insert_end?> get <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mn>0</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>2</mn>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>0</mn>
                                                  <mo>⁢</mo>
                                                  <mtext> </mtext>
                                                  <mo>=</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. </Paragraph>
                                <Paragraph>For <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> <?oxy_delete author="al22273" timestamp="20200522T113321+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T113322+0100"?>you<?oxy_insert_end?> get <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>4</mn>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mn>2</mn>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mo>×</mo>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mo>⁢</mo>
                                                  <mtext> </mtext>
                                                  <mo>=</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>5</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>. </Paragraph>
                                <Paragraph><?oxy_insert_start author="al22273" timestamp="20200522T113336+0100"?>Table 2<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T113336+0100" content="&lt;EditorComment&gt;Table 3.2 &lt;/EditorComment&gt;"?> shows the results of all calculations for <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, shown as decimal values to 2 significant figures. Note that <?oxy_insert_start author="al22273" timestamp="20200522T113349+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T113349+0100" content="we"?> can stop at <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  <mo>=</mo>
                                                  <mn>5</mn>
                                                  </mrow>
                                                  </math></MathML></InlineEquation>, since above this the output will be 0 again. </Paragraph>
                                <Table>
                                        <TableHead><b>Table <?oxy_delete author="al22273" timestamp="20200522T113400+0100" content="3."?>2</b>  Results of calculations for <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></TableHead>
                                        <tbody>
                                                <tr>
                                                  <td><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></td>
                                                  <td><font val="Times New Roman">−3</font></td>
                                                  <td><font val="Times New Roman">−2</font></td>
                                                  <td><font val="Times New Roman">−1</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                  <td><font val="Times New Roman">1</font></td>
                                                  <td><font val="Times New Roman">2</font></td>
                                                  <td><font val="Times New Roman">3</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">5</font></td>
                                                </tr>
                                                <tr>
                                                  <td><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">−1</font></td>
                                                  <td><font val="Times New Roman">2</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">6</font></td>
                                                  <td><font val="Times New Roman">4</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                  <td><font val="Times New Roman">0</font></td>
                                                </tr>
                                                <tr>
                                                  <td><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">  0</font></td>
                                                  <td><font val="Times New Roman">−0.33</font></td>
                                                  <td><font val="Times New Roman">0.33</font></td>
                                                  <td><font val="Times New Roman">1.67</font></td>
                                                  <td><font val="Times New Roman">4.00</font></td>
                                                  <td><font val="Times New Roman">4.67</font></td>
                                                  <td><font val="Times New Roman">3.33</font></td>
                                                  <td><font val="Times New Roman">1.33</font></td>
                                                </tr>
                                        </tbody>
                                </Table>
                                <Paragraph>The resulting output discrete-time waveform is given in Figure <?oxy_delete author="al22273" timestamp="20200408T121225+0100" content="3.7"?><?oxy_insert_start author="al22273" timestamp="20200408T121225+0100"?>20<?oxy_insert_end?>.</Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig20.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="fe518d14" x_imagesrc="t312_openlearn_fig20.tif.jpg" x_imagewidth="512" x_imageheight="207"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T121237+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T121231+0100" content="3.8"?><?oxy_insert_start author="al22273" timestamp="20200408T121231+0100"?>20<?oxy_insert_end?></b>  Filter output in response to the input in Figure <?oxy_delete author="al22273" timestamp="20200408T121244+0100" content="3.7"?><?oxy_insert_start author="al22273" timestamp="20200408T121244+0100"?>19<?oxy_insert_end?>(b) </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T121254+0100"?>
                                        <Description><Paragraph>This figure is a graph of <i>y</i>[<i>n</i>] against <i>n</i>. Output samples <i>y</i>[<i>n</i>], represented as usual as vertical lines extending from the horizontal axis with filled circles at the end, are shown for integer values of <i>n</i> from minus 3 to 5. The values are as follows:</Paragraph><BulletedList><ListItem><Paragraph>when <i>n</i> is minus 3, <i>y</i>[<i>n</i>] is 0</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is minus 2, <i>y</i>[<i>n</i>] is 0</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is minus 1, <i>y</i>[<i>n</i>] is minus 0.33</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 0, <i>y</i>[<i>n</i>] is 0.33</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 1, <i>y</i>[<i>n</i>] is 1.67</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 2, <i>y</i>[<i>n</i>] is 4</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 3, <i>y</i>[<i>n</i>] is 4.67</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 4, <i>y</i>[<i>n</i>] is 3.33</Paragraph></ListItem><ListItem><Paragraph>when <i>n</i> is 5, <i>y</i>[<i>n</i>] is 1.33.</Paragraph></ListItem></BulletedList><Paragraph>A note states that the output values are zero beyond <i>n</i> equals 5.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T121312+0100" content="3.8"?><?oxy_insert_start author="al22273" timestamp="20200408T121312+0100"?>21<?oxy_insert_end?> shows the same filter applied to an input <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> that has more noise in the signal and a longer sequence. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig21.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="2c1afd5d" x_imagesrc="t312_openlearn_fig21.tif.jpg" x_imagewidth="512" x_imageheight="301"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T121319+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T121315+0100" content="3.9"?><?oxy_insert_start author="al22273" timestamp="20200408T121315+0100"?>21<?oxy_insert_end?></b>  Longer sequence filtered by the three-term averaging filter (Wickert, 2011, p. 7) </Caption>
                                        <Description><Paragraph>This figure consists of two graphs. In each case, the signal values are represented as vertical lines extending from the horizontal axis with filled circles at the end, and can take any value from minus 0.5 to 0.5. They are shown for integer values of <i>n</i> from minus 5 to 50.</Paragraph><Paragraph>The first graph is <i>x</i>[<i>n</i>] against <i>n</i>. The input values <i>x</i>[<i>n</i>] vary from one to the next by quite large amounts.</Paragraph><Paragraph>The second graph is <i>y</i>[<i>n</i>] against <i>n</i>. The output values <i>y</i>[<i>n</i>] vary less from one to the next; they appear to follow the same overall shape as the input values, but more smoothly and with less extreme values (the largest value is approximately 0.3 in magnitude, rather than 0.5).</Paragraph><Paragraph>For example, on the input graph, the first five values are 0, the sixth is nearly 0.5, the seventh is close to 0 again, the eighth is about 0.4, the ninth is about minus 0.3, and the tenth is 0.5. On the output graph, the first five values are 0, the sixth and seventh are about 0.2, the eighth is about 0.3, the ninth is just above 0, and the tenth is just above 0.2.</Paragraph></Description>
                                </Figure>
                                <Activity>
                                        <Heading>Activity 8</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T113410+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>Looking at Figure <?oxy_delete author="al22273" timestamp="20200408T121419+0100" content="3.8"?><?oxy_insert_start author="al22273" timestamp="20200408T121419+0100"?>21<?oxy_insert_end?>, describe the effect that the three-term averaging filter has on the output. What kind of filter is this? </Paragraph>
                                        </Question>
                                        <Answer>
                                                <Paragraph>The three-term averaging filter has removed the short-term fluctuations in the signal to show the longer-term trend. This is akin to removing higher-frequency noise from a signal, so it is operating like a low-pass filter. </Paragraph>
                                        </Answer>
                                </Activity>
                                <Paragraph>This digital filter is an example of a system that is both linear and time-invariant, sometimes referred to as an <b>LTI </b>system. </Paragraph>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T113423+0100" content="We"?><?oxy_insert_start author="al22273" timestamp="20200522T113424+0100"?>You<?oxy_insert_end?> can see that the three-term averaging filter is a low-pass filter, but it is difficult to characterise its response. For example, what frequencies is the filter eliminating from the signal? Earlier in this course, you saw how analogue filters can be designed to give a desired frequency response; now <?oxy_delete author="al22273" timestamp="20200522T113431+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T113432+0100"?>you<?oxy_insert_end?> will look at how digital filters can also be designed in the frequency domain. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T113443+0100"?>
                                <Paragraph>Filters are usually described in terms that make sense in the frequency domain, e.g. a low pass filter allows the parts of the signal with low frequencies to pass. In the following section you will see how a digital filter is designed in the frequency domain.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.6 Designing a digital filter in the frequency domain</Title>
                                <Paragraph>Most digital filters are designed in the frequency domain. <?oxy_delete author="al22273" timestamp="20200522T113633+0100" content="We characterise i"?><?oxy_insert_start author="al22273" timestamp="20200522T113636+0100"?>I<?oxy_insert_end?>nput signals <?oxy_insert_start author="al22273" timestamp="20200522T113646+0100"?>are characterised <?oxy_insert_end?>by their frequency spectrum and design filters to modify that spectrum by, for example, removing high-frequency noise with a low-pass filter. </Paragraph>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T121520+0100" content="3.9"?><?oxy_insert_start author="al22273" timestamp="20200408T121520+0100"?>22<?oxy_insert_end?> shows the four basic filter structures in the frequency domain. These ideal filters are identical for both analogue and digital filters<?oxy_delete author="al22273" timestamp="20200522T113716+0100" content=", and"?> <?oxy_insert_start author="al22273" timestamp="20200522T113719+0100"?>(<?oxy_insert_end?>you have already seen them<?oxy_insert_start author="al22273" timestamp="20200408T121547+0100"?> earlier in the course in Section 2.2)<?oxy_insert_end?>. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig22.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="7ce1bfc5" x_imagesrc="t312_openlearn_fig22.tif.jpg" x_imagewidth="512" x_imageheight="282"/>
                                        <Caption><b>Figure <?oxy_delete author="al22273" timestamp="20200408T121600+0100" content="3.10"?><?oxy_insert_start author="al22273" timestamp="20200408T121600+0100"?>22<?oxy_insert_end?></b>  Ideal filter responses: (a) low-pass; (b) high-pass; (c) band-pass; (d) band-stop (repeat of Figure <?oxy_delete author="al22273" timestamp="20200522T113756+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200522T113758+0100"?>5<?oxy_insert_end?>) </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200626T124423+0100"?>
                                        <Description><Paragraph>This figure consists of four graphs of gain against frequency, representing four types of filter. In each case, the gain is either at 1 or at 0, depending on the frequency. Areas where the gain is 1 are labelled ‘passband’, while areas where the gain is 0 are labelled ‘stop band’. The transitions between 1 and 0 (or vice versa) are vertical, and labelled ‘cut-off frequency’.</Paragraph><Paragraph>Part (a) is a low-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 1 (passband). At frequencies above the cut-off, the gain is 0 (stop band).</Paragraph><Paragraph>Part (b) is a high-pass filter. There is a single cut-off frequency, <i>f</i> subscript c. At frequencies below the cut-off, the gain is 0 (stop band). At frequencies above the cut-off, the gain is 1 (passband).</Paragraph><Paragraph>Part (c) is a band-pass filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 0 (stop band). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 1 (passband).</Paragraph><Paragraph>Part (d) is a band-stop filter. There are two cut-off frequencies, <i>f</i> subscript c1 and <i>f</i> subscript c2. At frequencies below <i>f</i> subscript c1 and above <i>f</i> subscript c2, the gain is 1 (passband). At frequencies between <i>f</i> subscript c1 and <i>f</i> subscript c2, the gain is 0 (stop band). Because the stop band is a narrow region between two passbands, the stop band is also known as the notch in this type of filter.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>In the design process, the aim is to produce a filter frequency response that best matches the profile of the filter; however, compromises have to be made. You have already seen how the order of the design of the filter affects the roll-off, so decisions are made in the design of these analogue filters to best match the filter to the ideal response. <?oxy_insert_start author="al22273" timestamp="20200522T113834+0100" type="split"?></Paragraph>
                                <Paragraph><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T121704+0100" content="3.10"?><?oxy_insert_start author="al22273" timestamp="20200408T121704+0100"?>23<?oxy_insert_end?> shows some of the characteristics of a typical low-pass digital filter. In comparison to the ideal shape (shown in red), there is a transition region between the passband and stop-band sections, and also a ripple in both the passband and the stop band. These effects can be altered by changing various parameters in the design. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig23.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="b15c1352" x_imagesrc="t312_openlearn_fig23.tif.jpg" x_imagewidth="512" x_imageheight="321"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T121839+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T121835+0100" content="3.11"?><?oxy_insert_start author="al22273" timestamp="20200408T121835+0100"?>23<?oxy_insert_end?></b>  Typical low-pass digital filter response </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T121850+0100"?>
                                        <Description><Paragraph>This figure is a graph of gain against frequency. An ideal low-pass filter line is shown that is horizontal at a gain of 1 for low frequency values, then falls vertically at the cut-off frequency and remains horizontal at a gain of 0 for frequency values above this point. Another line is shown representing the actual response of the digital filter. At low frequencies, it oscillates by a small amount around a gain of 1; this is known as the passband ripple. At a frequency slightly below the cut-off, it descends diagonally until it reaches a frequency slightly above the cut-off; the distance between these two frequency values is known as the transition width. At frequencies above this, the response oscillates by a small amount around a gain of 0; this is known as the stop-band ripple.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>When designing a digital filter in the frequency domain, software tools are most often used to generate the mathematical expression for the filter. This expression is in the form of a <?oxy_insert_start author="al22273" timestamp="20200611T120018+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>difference equation</GlossaryTerm> – an equation involving combinations of samples at specific times. You have already seen a difference equation in this section: the equation  <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> = <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mtext> </mtext>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>1</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>3</mn>
                                                  </mrow>
                                                  </mfrac>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                  </math></MathML></InlineEquation> for the three-term averaging filter. As another example, the following difference equation contains five terms: </Paragraph>
                                <Equation>
                                        <MathML>
                                                <math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mtext> </mtext>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mn>2</mn>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>−</mo>
                                                  <mn>0.5</mn>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mn>2.5</mn>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>3</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>4</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                </math>
                                        </MathML>
                                </Equation>
                                <Paragraph>In a digital filter design, the number of terms in the difference equation is often referred to as the number of <?oxy_insert_start author="al22273" timestamp="20200611T120022+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>taps</GlossaryTerm>, and is specified as a design parameter. A larger number of taps may give a filter design that more closely matches the desired specification; however, more taps will mean that it takes longer to compute the filter outputs. </Paragraph>
                                <Paragraph>There are two main classes of LTI (linear time-invariant) digital filter: the finite impulse response (FIR) filter and the infinite impulse response (IIR) filter. An IIR filter requires fewer computations to achieve the same performance as an FIR filter, so has a speed advantage. However, an IIR can have stability issues and also non-linear phase issues (where signals of different frequencies are delayed by different amounts, resulting in a distortion of the output signal). The difference between an FIR filter and an IIR filter is that the FIR filter uses only the filter inputs when generating its output, whereas an IIR filter uses both the filter inputs and past filter outputs – in other words, it uses feedback. The difference equation above is for an FIR filter. The difference equation below has four terms and the final term is an output value, so it is an IIR filter: </Paragraph>
                                <Equation>
                                        <MathML>
                                                <math xmlns="http://www.w3.org/1998/Math/MathML">
                                                  <mrow>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>=</mo>
                                                  <mtext> </mtext>
                                                  <mn>2</mn>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>−</mo>
                                                  <mn>3</mn>
                                                  <mi>x</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>2</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  <mo>+</mo>
                                                  <mn>3</mn>
                                                  <mi>y</mi>
                                                  <mo>⁡</mo>
                                                  <mrow>
                                                  <mo>[</mo>
                                                  <mi>n</mi>
                                                  <mo>−</mo>
                                                  <mn>1</mn>
                                                  <mo>]</mo>
                                                  </mrow>
                                                  </mrow>
                                                </math>
                                        </MathML>
                                </Equation>
                                <Paragraph>To calculate the output of an IIR filter, both previous input samples and previous output samples are stored in the processor’s memory. The order of the IIR filter is the larger of the number of input values stored and the number of output values stored. In the above example, the filter is second-order, since two previous input values are stored but only one previous output value. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T113852+0100"?>
                                <Paragraph>Before you look at a filter being designed, you need to know a little more about the relationship between the time domain and the frequency domain. You will cover this next.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.7 Fourier transforms and the sinc pulse</Title>
                                <Paragraph>You saw <?oxy_delete author="al22273" timestamp="20200626T161841+0100" content="in "?>earlier (Figure <?oxy_delete author="al22273" timestamp="20200522T114809+0100" content="2.2"?><?oxy_insert_start author="al22273" timestamp="20200522T114809+0100"?>5<?oxy_insert_end?>)<?oxy_delete author="al22273" timestamp="20200522T114804+0100" content="&lt;EditorComment&gt; Check.&lt;/EditorComment&gt;"?> that the ideal frequency responses shown in Figure <?oxy_delete author="al22273" timestamp="20200522T114819+0100" content="3.9"?><?oxy_insert_start author="al22273" timestamp="20200522T114819+0100"?>22<?oxy_insert_end?> <?oxy_delete author="al22273" timestamp="20200522T114817+0100" content="&lt;EditorComment&gt; Check. &lt;/EditorComment&gt;"?>are sometimes referred to as brick-wall filters because of the sharp transitions between passbands and stop bands. In other words, they are rectangular functions. However, whilst <?oxy_delete author="al22273" timestamp="20200522T114828+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T114828+0100"?>it is possible to<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T114835+0100" content=" can"?> use a rectangular function in the frequency domain to specify the filter, <?oxy_delete author="al22273" timestamp="20200522T114911+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T114912+0100"?>you<?oxy_insert_end?> must perform the calculations to implement the filter in the time domain. To do this, <?oxy_insert_start author="al22273" timestamp="20200522T114942+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T114941+0100" content="we"?> need to translate between the time and frequency domains; in particular, for a brick-wall filter, <?oxy_insert_start author="al22273" timestamp="20200522T115819+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115818+0100" content="we"?> need to know what a rectangular function in the frequency domain looks like in the time domain. For a continuous-time system, <?oxy_insert_start author="al22273" timestamp="20200522T115838+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115837+0100" content="we"?> would use a <?oxy_insert_start author="al22273" timestamp="20200611T120026+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>Fourier transform</GlossaryTerm> to do this; for a discrete-time system, <?oxy_insert_start author="al22273" timestamp="20200522T115851+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115849+0100" content="we"?> use a corresponding discrete-time Fourier transform. </Paragraph>
                                <Paragraph>You can perform mathematical calculations on paper to work out the Fourier transform of a signal in either the time or the frequency domain. Under those circumstances, you would use the formula for either the discrete or the continuous transform, depending on the type of system you were dealing with. However, the majority of Fourier transforms will be carried out by a computer system – even if the system is dealing with continuous-time signals as input and output, the signal processing will be happening in the discrete-time domain of the computer. There is a particular algorithm called the fast Fourier transform (FFT) that is used to carry out Fourier transforms efficiently. Such was the need to perform these calculations at great speed that the FFT was included in a list of the top 10 algorithms of the twentieth century by the IEEE journal <i>Computing in Science &amp; Engineering</i> in the year 2000 (Dongarra and Sullivan, 2000). </Paragraph>
                                <Paragraph>Using the discrete-time Fourier transform, <?oxy_insert_start author="al22273" timestamp="20200522T115906+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115905+0100" content="we"?> can see that the time-domain representation of a rectangular function in the frequency domain is the sinc pulse, as shown in Figure <?oxy_delete author="al22273" timestamp="20200408T122200+0100" content="3.11"?><?oxy_insert_start author="al22273" timestamp="20200408T122200+0100"?>24<?oxy_insert_end?>. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig24.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="7e238ae3" x_imagesrc="t312_openlearn_fig24.tif.jpg" x_imagewidth="512" x_imageheight="103"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T122208+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T122203+0100" content="3.12 "?><?oxy_insert_start author="al22273" timestamp="20200408T122203+0100"?>24<?oxy_insert_end?></b><?oxy_insert_start author="al22273" timestamp="20200408T122203+0100"?> <?oxy_insert_end?>Fourier transform pair: a rectangular function in the frequency domain is represented as a sinc pulse in the time domain </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T122236+0100"?>
                                        <Description><Paragraph>This figure consists of two graphs with a double-headed arrow in between them.</Paragraph><Paragraph>The graph on the left shows signal value against time. It is made up of a large number of vertical lines extending from the horizontal axis. If you were to join the ends of the lines, the shape would be a symmetrical curve consisting of a tall central peak with much smaller lobes on each side, alternating below and above the horizontal axis, and reducing in height the further away they are from the centre. This shape is known as the sinc pulse.</Paragraph><Paragraph>The graph on the right shows spectrum against frequency. It starts as a horizontal line close to 0, then rises vertically to a new value, where it stays for a certain range of frequencies before descending vertically back to nearly 0. The overall shape is that of a rectangle.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Mathematically, a sinc pulse or sinc function is defined as sin(x)/x.</Paragraph>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T122432+0100" content="3.12"?><?oxy_insert_start author="al22273" timestamp="20200408T122432+0100"?>25<?oxy_insert_end?>(a) and Figure <?oxy_delete author="al22273" timestamp="20200408T122435+0100" content="3.12"?><?oxy_insert_start author="al22273" timestamp="20200408T122435+0100"?>25<?oxy_insert_end?>(b) show a sinc envelope producing an ideal low-pass frequency response. However, there is an issue because the sinc pulse continues to both positive and negative infinity along the time axis. Whilst mathematically <?oxy_insert_start author="al22273" timestamp="20200522T115923+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115922+0100" content="we"?> can readily take the Fourier transform of a sinc pulse, it can’t be computed because of the extension to infinity. The obvious solution is to truncate the sinc response as in Figure <?oxy_delete author="al22273" timestamp="20200408T122444+0100" content="3.12"?><?oxy_insert_start author="al22273" timestamp="20200408T122444+0100"?>25<?oxy_insert_end?>(c), so that the ripples no longer extend to infinity. Now that the pulse is finite, it can be shifted so that it only has positive sample numbers. The effects of this in the frequency domain are shown in Figure <?oxy_delete author="al22273" timestamp="20200408T122447+0100" content="3.12"?><?oxy_insert_start author="al22273" timestamp="20200408T122447+0100"?>25<?oxy_insert_end?>(d) – ripples in the passband and the stop band. In essence this shows why <?oxy_insert_start author="al22273" timestamp="20200522T115934+0100"?>you<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115934+0100" content="we"?> can never have the perfect ideal or <?oxy_insert_start author="al22273" timestamp="20200522T115941+0100"?>‘<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115940+0100" content="“"?>brick-wall<?oxy_insert_start author="al22273" timestamp="20200522T115943+0100"?>’<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T115943+0100" content="”"?> filter.</Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig25.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="2eabb2af" x_imagesrc="t312_openlearn_fig25.tif.jpg" x_imagewidth="512" x_imageheight="352"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200625T120335+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T122533+0100" content="3.13"?><?oxy_insert_start author="al22273" timestamp="20200408T122533+0100"?>25<?oxy_insert_end?></b>  (a) Ideal sinc function in the time domain; (b) frequency response of the ideal sinc function; (c) abruptly truncated sinc function in the time domain; (d) frequency response of the truncated sinc function </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T122618+0100"?>
                                        <Description><Paragraph>This figure consists of four graphs. Graphs (a) and (c) are time-domain graphs, showing signal value against sample number. Graphs (b) and (d) are frequency-domain graphs, showing spectrum against frequency. Graphs (a) and (b) are paired with a double-headed arrow, as are graphs (c) and (d).</Paragraph><Paragraph>Graph (a) shows samples that can be joined to make the shape of the sinc pulse from the previous figure: a symmetrical curve consisting of a tall central peak with much smaller lobes on each side, alternating below and above the horizontal axis, and reducing in height the further away they are from the centre. The curve is centred on sample number 0.</Paragraph><Paragraph>Graph (b), its frequency-domain equivalent, shows a graph line that takes a value of 1 at frequencies below <i>f</i> subscript c and a value of 0 at frequencies above <i>f</i>subscript c, with a vertical drop from 1 to 0 at <i>f</i> subscript c.</Paragraph><Paragraph>Graph (c) has the same shape as in graph (a), but cut off abruptly after a couple of lobes on each side. It has then been shifted so that the left cut-off point is at sample number 0. All samples above the right cut-off point have a value of 0.</Paragraph><Paragraph>Graph (d), its frequency-domain equivalent, has a similar shape to graph (b), but there are oscillations around 1 below <i>f</i> subscript c and oscillations around 0 above <i>f</i>subscript c. Also, the graph line no longer drops vertically at <i>f</i> subscript c, but falls diagonally from a frequency slightly below the cut-off to a frequency slightly above the cut-off.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>A technique for dealing with the truncated sinc is to apply a <?oxy_insert_start author="al22273" timestamp="20200611T120030+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>window function</GlossaryTerm> that brings the endpoints of the truncated sinc to zero. Figure <?oxy_delete author="al22273" timestamp="20200408T122605+0100" content="3.13"?><?oxy_insert_start author="al22273" timestamp="20200408T124312+0100"?>26<?oxy_insert_end?>(a) shows a suitable shape of window, Figure <?oxy_delete author="al22273" timestamp="20200408T124318+0100" content="3.13"?><?oxy_insert_start author="al22273" timestamp="20200408T124318+0100"?>26<?oxy_insert_end?>(b) shows the effects of applying the window to the truncated sinc and Figure <?oxy_delete author="al22273" timestamp="20200408T122607+0100" content="3.13"?><?oxy_insert_start author="al22273" timestamp="20200408T122607+0100"?>26<?oxy_insert_end?>(c) shows the resultant frequency response. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig26.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="f85b1d2e" x_imagesrc="t312_openlearn_fig26.tif.jpg" x_imagewidth="512" x_imageheight="352"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200625T120341+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T124333+0100" content="3.14"?><?oxy_insert_start author="al22273" timestamp="20200408T124333+0100"?>26<?oxy_insert_end?></b>  Using windowing to compensate for a truncated sinc pulse: (a) suitable window shape; (b) window applied to the truncated sinc; (c) resultant frequency response </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124345+0100"?>
                                        <Description><Paragraph>This figure consists of three graphs. Graphs (a) and (b) are time-domain graphs, showing signal value against sample number. Graph (c) is a frequency-domain graph, showing spectrum against frequency. Graphs (b) and (c) are paired with a double-headed arrow.</Paragraph><Paragraph>Graph (a) shows samples that can be joined to make a smooth, symmetrical bell-shaped curve that starts at 0 for sample number 0, then rises smoothly to a peak at signal value 1, then falls smoothly back down to 0. To the right of the bell-shaped curve, the value is 0 for all sample numbers.</Paragraph><Paragraph>Graph (b) shows samples that can be joined to make the shifted sinc pulse seen in Figure 6.12(c). Again, the left cut-off point is at sample number 0. However, the lobes have been reduced and smoothed out. The same thing has happened on the right-hand side, so that there is no longer an abrupt right cut-off point but a smooth transition from the reduced lobes into the zero values. The peak of the sinc pulse corresponds with the peak of the curve in graph (a).</Paragraph><Paragraph>Graph (c), its frequency-domain equivalent, is at a value of 1 for frequencies below <i>f</i> subscript c, with no oscillations. The graph line then falls diagonally from a frequency slightly below the cut-off to a frequency slightly above the cut-off. It remains at a value of 0 for frequencies above <i>f</i> subscript c, again with no oscillations.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>When a window function is applied, it is effectively ‘multiplied’ with the sinc function. The process used to do this is called <?oxy_insert_start author="al22273" timestamp="20200611T120034+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>convolution</GlossaryTerm>. Convolution is outside the scope of this <?oxy_delete author="al22273" timestamp="20200522T120006+0100" content="module"?><?oxy_insert_start author="al22273" timestamp="20200522T120008+0100"?>course<?oxy_insert_end?>, but when applied, what is left is where the signals overlap. You can think of this as a ‘view’ through the window function. </Paragraph>
                                <Paragraph>There are various shapes of window that can be applied. Two common shapes are the Blackman window and the Hamming window, although there are others (such as Kaiser, Bartlett and Hann). The Hamming window gives a better transition response, but the Blackman window has better stop-band <?oxy_delete author="al22273" timestamp="20200522T120022+0100" content="attenuation"?><?oxy_insert_start author="al22273" timestamp="20200522T120023+0100"?>gain<?oxy_insert_end?> and lower passband ripple. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T120035+0100"?>
                                <Paragraph>You are now ready to design a digital filter and try it out.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.8 A low-pass filter design</Title>
                                <Paragraph><?oxy_delete author="al22273" timestamp="20200522T120102+0100" content="I am now going to show you"?><?oxy_insert_start author="al22273" timestamp="20200522T120106+0100"?>You will now look at<?oxy_insert_end?> a real example of low-pass filter design. <?oxy_delete author="al22273" timestamp="20200522T120159+0100" content="I have used "?><?oxy_insert_start author="al22273" timestamp="20200522T120206+0100"?>For this, <?oxy_insert_end?>a software package called Signal Wizard <?oxy_insert_start author="al22273" timestamp="20200522T120220+0100"?>has been used<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T120219+0100" content="to do this design"?>. <?oxy_insert_start author="al22273" timestamp="20200522T120232+0100"?>You are not required to download<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T120241+0100" content="I don’t expect you to have"?> Signal Wizard, but for information, it is a free package that can be installed on your computer. <?oxy_insert_start author="al22273" timestamp="20200522T124220+0100"?>Details of the Signal Wizard and where to find it are given can be found here: <olink targetdoc="Installing Signal Wizard for use in offline mode">Installing Signal Wizard for use in offline mode</olink>.<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T115324+0100" content="&lt;EditorComment&gt;Details of the Signal Wizard and where to find it are given at the end of this course.&lt;/EditorComment&gt;"?></Paragraph>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T124425+0100" content="3.14"?><?oxy_insert_start author="al22273" timestamp="20200408T124425+0100"?>27<?oxy_insert_end?> shows a screenshot from Signal Wizard which shows the input signal waveform both in the time domain (the ‘Time Waveform’) and in the frequency domain (the ‘Frequency Spectrum’). The aim is to remove any frequencies in this waveform above 5000 Hz, so a low-pass filter with a 5000 Hz cut-off frequency is required. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig27.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="3fb8ab87" x_imagesrc="t312_openlearn_fig27.tif.jpg" x_imagewidth="512" x_imageheight="334"><?oxy_delete author="al22273" timestamp="20200408T124554+0100" content="&lt;b&gt;Figure 3.15&lt;/b&gt;  Characteristics of the input signal "?></Image>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124450+0100"?>
                                        <Caption><b>Figure 27</b>  Characteristics of the input signal </Caption>
                                        <Description><Paragraph>This figure is a screenshot from Signal Wizard. It shows two graphs, one labelled Time Waveform and one labelled Frequency Spectrum. The time waveform fluctuates randomly around a value of 0. Most of the time it stays within the range minus 0.25 to plus 0.25, only occasionally going outside this. The overall shape of the frequency spectrum is a diagonal line that descends steadily from minus 40 at a frequency of 0 to minus 100 at a frequency of just below 20 thousand, but again it fluctuates randomly by a small amount around this line.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>The specification of an FIR low-pass filter with a gain of 1 and a cut-off frequency of 5000 Hz is entered into the filter design interface. The graphical interface windows in Figure <?oxy_delete author="al22273" timestamp="20200408T124614+0100" content="3.15"?><?oxy_insert_start author="al22273" timestamp="20200408T124614+0100"?>28<?oxy_insert_end?> all show the ‘brick-wall’ specification in red with the implementation in black. These designs all use a rectangular window, which gives an abruptly truncated sinc function. The first design uses 15 taps (Figure <?oxy_delete author="al22273" timestamp="20200408T124620+0100" content="3.15"?><?oxy_insert_start author="al22273" timestamp="20200408T124620+0100"?>28<?oxy_insert_end?>(a)), the second uses 63 taps (Figure <?oxy_delete author="al22273" timestamp="20200408T124627+0100" content="3.15"?><?oxy_insert_start author="al22273" timestamp="20200408T124627+0100"?>28<?oxy_insert_end?>(b)) and the third uses 127 taps (Figure <?oxy_delete author="al22273" timestamp="20200408T124633+0100" content="3.15"?><?oxy_insert_start author="al22273" timestamp="20200408T124633+0100"?>28<?oxy_insert_end?>(c)). All other parameters are unchanged. As the number of taps in the design increases from the top image to the bottom, the transition zone narrows and the designed filter more closely matches the filter specification. However, the amplitude of the ripples in the passband and the stop band remains unchanged, although the frequency increases as the number of taps increases. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig28.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="558ab49b" x_imagesrc="t312_openlearn_fig28.tif.jpg" x_imagewidth="309" x_imageheight="512"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T124651+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T124640+0100" content="3.16"?><?oxy_insert_start author="al22273" timestamp="20200408T124640+0100"?>28<?oxy_insert_end?></b>  Digital filter design with a rectangular window: (a) 15 taps; (b) 63 taps; (c) 127 taps </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124701+0100"?>
                                        <Description><Paragraph>This figure consists of three parts, each showing a screenshot from Signal Wizard. In each case, the ideal filter response is shown as a horizontal line at 1 below the cut-off frequency and a horizontal line at 0 above the cut-off frequency, with the cut-off frequency represented as a vertical line at 5000. The actual response is shown as a second line.</Paragraph><Paragraph>In screenshot (a), the actual response oscillates slowly around 1, then descends diagonally between frequencies of approximately 3700 and 6300, then oscillates slowly around 0.</Paragraph><Paragraph>In screenshot (b), the actual response oscillates more rapidly around 1, then descends diagonally between frequencies of approximately 4700 and 5300, then oscillates more rapidly around 0. The oscillations die away more quickly than in screenshot (a).</Paragraph><Paragraph>In screenshot (c), the actual response oscillates very rapidly around 1, then descends diagonally between frequencies of approximately 4900 and 5100, then oscillates very rapidly around 0. The oscillations die away more quickly than in screenshot (b).</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>The next set of designs, in Figure <?oxy_delete author="al22273" timestamp="20200408T124726+0100" content="3.16"?><?oxy_insert_start author="al22273" timestamp="20200408T124726+0100"?>29<?oxy_insert_end?>, keeps the number of taps at 127 and varies the window function used. The design implemented in Figure <?oxy_delete author="al22273" timestamp="20200408T124733+0100" content="3.16"?><?oxy_insert_start author="al22273" timestamp="20200408T124733+0100"?>29<?oxy_insert_end?>(a) uses a Blackman window, while the design implemented in Figure <?oxy_delete author="al22273" timestamp="20200408T124748+0100" content="3.16"?><?oxy_insert_start author="al22273" timestamp="20200408T124748+0100"?>29<?oxy_insert_end?>(b) uses a Hamming window. You can see that both have reduced the ripples in the passband. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig29.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="017e909e" x_imagesrc="t312_openlearn_fig29.tif.jpg" x_imagewidth="468" x_imageheight="512"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200625T120351+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T124722+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124722+0100"?>29<?oxy_insert_end?></b>  Filter designs with different window functions: (a) 127 taps with Blackman window; (b) 127 taps with Hamming window </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124802+0100"?>
                                        <Description><Paragraph>This figure consists of two parts, each showing a screenshot from Signal Wizard. In each case, the ideal filter response is shown as a horizontal line at 1 below the cut-off frequency and a horizontal line at 0 above the cut-off frequency, with the cut-off frequency represented as a vertical line at 5000. The actual response is shown as a second line.</Paragraph><Paragraph>In screenshot (a), the actual response seems to follow the ideal response exactly in the passband and stop band – that is, it does not oscillate but remains horizontal. However, it does not drop vertically between one and the other at the cut-off frequency of 5000, but descends diagonally between frequencies of approximately 4200 and 5800.</Paragraph><Paragraph>In screenshot (b), the actual response is very similar to that in screenshot (a). However, it appears to have a slight ripple in the passband, and to descend slightly more rapidly around the cut-off frequency.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Figure <?oxy_delete author="al22273" timestamp="20200408T124811+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124811+0100"?>30<?oxy_insert_end?> zooms in on sections of the transition band and passband to see the effects in more detail. Comparing Figure <?oxy_delete author="al22273" timestamp="20200408T124815+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124815+0100"?>30<?oxy_insert_end?>(a) and Figure <?oxy_delete author="al22273" timestamp="20200408T124818+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124818+0100"?>30<?oxy_insert_end?>(c) shows that the transition zone of the Hamming window is narrower than that of the Blackman window. Comparing Figure <?oxy_delete author="al22273" timestamp="20200408T124823+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124823+0100"?>30<?oxy_insert_end?>(b) and Figure <?oxy_delete author="al22273" timestamp="20200408T124827+0100" content="3.17"?><?oxy_insert_start author="al22273" timestamp="20200408T124828+0100"?>30<?oxy_insert_end?>(d) shows that the Blackman window has reduced the ripples in the passband more than the Hamming window. These results confirm that the Hamming window gives a better transition response, while the Blackman window has lower passband ripple. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig30.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="cf71b31c" x_imagesrc="t312_openlearn_fig30.tif.jpg" x_imagewidth="512" x_imageheight="282"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T124857+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T124837+0100" content="3.18"?><?oxy_insert_start author="al22273" timestamp="20200408T124837+0100"?>30<?oxy_insert_end?></b> Details of the Blackman and Hamming windows: (a) 127 taps with Blackman window, transition zone; (b) 127 taps with Blackman window, passband; (c) 127 taps with Hamming window, transition zone; (d) 127 taps with Hamming window, passband </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124851+0100"?>
                                        <Description><Paragraph>This figure consists of four parts, each showing a screenshot from Signal Wizard. In each case, the ideal filter response is shown as a horizontal line at 1 below the cut-off frequency and a horizontal line at 0 above the cut-off frequency, with the cut-off frequency represented as a vertical line at 5000. The actual response is shown as a second line.</Paragraph><Paragraph>Screenshot (a) zooms in to the horizontal scale for the first filter in the previous figure, so that the transition zone around the cut-off frequency can be examined. The actual response deviates from the ideal response at a frequency of approximately 4200, descending at first slowly and then more steeply across the cut-off frequency, before easing off again to re-join the ideal response at a frequency of approximately 5800.</Paragraph><Paragraph>Screenshot (b) zooms in to the passband for the filter in screenshot (a). Almost no ripples can be seen.</Paragraph><Paragraph>Screenshot (c) zooms in to the horizontal scale for the second filter in the previous figure, so that the transition zone can be compared to that of the first filter. This time the actual response deviates from the ideal response at a frequency of approximately 4400, descending at first slowly and then more steeply across the cut-off frequency, before easing off again to re-join the ideal response at a frequency of approximately 5600. This shows that the transition zone is narrower.</Paragraph><Paragraph>Screenshot (d) zooms in to the passband for the filter in screenshot (c). In this case, a slight ripple is present.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>The input signal was filtered using the 127-tap Hamming window design, and the output response is shown in the ‘Time Waveform’ and ‘Frequency Spectrum’ charts in Figure <?oxy_delete author="al22273" timestamp="20200408T124917+0100" content="3.18"?><?oxy_insert_start author="al22273" timestamp="20200408T124917+0100"?>31<?oxy_insert_end?>. The frequency spectrum shows that the filter has indeed taken out the redundant higher-order frequencies above 5000 Hz. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig31.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="5222c973" x_imagesrc="t312_openlearn_fig31.tif.jpg" x_imagewidth="512" x_imageheight="334"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T124927+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T124920+0100" content="3.19"?><?oxy_insert_start author="al22273" timestamp="20200408T124920+0100"?>31<?oxy_insert_end?></b>  Filter response output </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T124936+0100"?>
                                        <Description><Paragraph>This figure is a screenshot from Signal Wizard. It shows two graphs, one labelled Time Waveform and one labelled Frequency Spectrum. The time waveform fluctuates randomly around a value of 0. Most of the time it stays in the range minus 0.25 to plus 0.25, only occasionally going outside this. The overall shape of the frequency spectrum is a line that remains at minus 40 for frequencies between 0 and approximately 3000, then drops gradually to minus 60 over the range of frequencies between 3000 and 5000, then drops sharply down to minus 100 at a frequency just above 5000. Again, it fluctuates randomly by a small amount around this line.</Paragraph></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>When a digital filter such as the one above is being implemented, the mathematical calculations will be defined in a software program, which will then run on some digital hardware. The basic processes taking place in the digital hardware are adding and subtracting; these processes will occur thousands, probably millions of times in the filtering of a sampled signal. <?oxy_insert_start author="al22273" timestamp="20200611T120041+0100" type="surround"?><GlossaryTerm><?oxy_insert_end?>Digital signal processor (DSP)</GlossaryTerm> chips are designed specifically to carry out these calculations, and their internal structure (referred to as their architecture) has been optimised to do so – thus it is different from that of a general-purpose processor used in a computer. There are several major DSP chip manufacturers, including Texas Instruments and Analog Devices. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T120414+0100"?>
                                <Paragraph>You’ve therefore seen that usually a digital filter is designed using a software package. To finish this course, you will have a chance to explore digital filtering using an interactive resource. The next section introduces this resource.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.9  Digital filtering in practice</Title>
                                <Paragraph>You are now going to use an interactive resource to add Gaussian noise to a noise-free (or ‘clean’) data signal. The noisy data signal is passed to a detector, which determines whether received samples are binary zeros or ones. The added noise causes the detector to make mistakes; hence there are bit errors. Using a finite impulse response (FIR) digital filter, you will ‘clean up’ the noisy data signal and thereby reduce the bit-error rate. </Paragraph>
                                <Paragraph>Right-click on the image or link below to open Interactive <?oxy_delete author="al22273" timestamp="20200408T152322+0100" content="3."?>1 in a new tab or window<?oxy_insert_start author="al22273" timestamp="20200522T120600+0100"?> so you can continue to work through the course and activities with the interactive alongside<?oxy_insert_end?>. The interface consists of four equally sized zones: top left, top right, bottom left and bottom right. Note that depending on the browser you are using, the sliders and other components in the interface may have a different visual appearance from those shown in the screenshots in this document, but the functionality will be the same. </Paragraph>
                                <MediaContent type="html5" webthumbnail="true" src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_bl01_fir.zip" id="t312_bl01_fir" height="1150" width="*" x_folderhash="1b694830" x_contenthash="fff2790b" x_smallsrc="t312_bl01_fir.zip.jpg" x_smallfullsrc="https://openuniv.sharepoint.com/sites/tmodules/t312/lmimages/t312_bl01_fir.zip.jpg" x_smallwidth="512" x_smallheight="515">
                                        <Caption><b>Interactive 1</b> FIR filter</Caption>
                                </MediaContent>
                                <Paragraph>The top left zone shows the signal, whether it is clean or noisy. When the interactive resource is launched, the noise level is at zero and the signal is clean. The data signal is shown as a single step from 0 to 1, but there are 10 000 samples for this data signal, half of which are from the 0 part of the signal and half of which are from the 1 part. Noise is added by sliding the <b>Noise level (V)</b> slider to the right and clicking on <b>Apply</b>. </Paragraph>
                                <Paragraph>The top right zone displays a histogram of the signal. As there is an equal number of zeros and ones in the signal, the probability of each is 0.5. The detected probabilities of zeros and ones in the received signal are shown by the vertical red lines situated at 0 and 1. Without added noise, perfect detection can be achieved. </Paragraph>
                                <Paragraph>The top right zone allows the decision level at the detector to be set using the <b>Decision level (V)</b> slider, and also the degree of low-pass filtering to be set using the <b>FIR filter width (number of samples)</b> slider. Finally, the top right zone also gives statistics about the number of true and false detections. <?oxy_insert_start author="al22273" timestamp="20200408T153146+0100"?>Figure 32<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200408T152926+0100" content="Figure 3.4"?> explains how to interpret this data. Before noise is added, all samples are correctly identified, so <b>False detections</b> should be at 0 to start with. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig32.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="3bc80ef8" x_imagesrc="t312_openlearn_fig32.tif.jpg" x_imagewidth="512" x_imageheight="266"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T152938+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T152959+0100" content="3.20"?><?oxy_insert_start author="al22273" timestamp="20200408T152959+0100"?>32<?oxy_insert_end?></b>  Interpreting the statistics </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T153802+0100"?>
                                        <Description><Paragraph>This figure shows the four fields from the interactive interface that contain statistics about the number of true and false detections. They are arranged in a two by two grid, with the rows labelled Data 1 and Data 0, and the columns labelled Correct detections and False detections. The four possible combinations of these row and column values have the following meanings.</Paragraph><BulletedList><ListItem>Data 1, Correct detections: samples correctly identified as 1, as a percentage of all samples. Shown as 50 per cent in this example.</ListItem><ListItem>Data 0, Correct detections: samples correctly identified as 0, as a percentage of all samples. Shown as 50 per cent in this example.</ListItem><ListItem>Data 1, False detections: samples originally 0 but incorrectly identified as 1. Shown as 0 per cent in this example.</ListItem><ListItem>Data 0, False detections: samples originally 1 but incorrectly identified as 0. Shown as 0 per cent in this example.</ListItem></BulletedList></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Paragraph>Note in <?oxy_delete author="al22273" timestamp="20200408T152947+0100" content="Figure 3.4"?><?oxy_insert_start author="al22273" timestamp="20200408T153155+0100"?>Figure 32<?oxy_insert_end?> that if the correct detection of data 1s were to drop below 50%, the deficit would appear as an increase in the false detection of data 0s. Similarly, if the correct detection of data 0s drops below 50%, the deficit should appear as an increase in the false detection of data 1s. Thus the diagonal pairs of statistics in <?oxy_delete author="al22273" timestamp="20200408T153009+0100" content="Figure 3.4"?><?oxy_insert_start author="al22273" timestamp="20200522T120701+0100"?>Figure 32<?oxy_insert_end?> should always add up to 50% – or approximately 50%, given the possibility of rounding errors in the calculation. </Paragraph>
                                <Paragraph>The bottom left zone shows the effect of filtering applied to a noisy signal. The bottom right zone is similar to the top right zone, showing a signal histogram and false detection statistics; however, these are after filtering, whereas the top right zone is before filtering. </Paragraph>
                                <?oxy_insert_start author="al22273" timestamp="20200522T120712+0100"?>
                                <Paragraph>In the next section you will have a go at adding noise to the data signal in the interactive.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.10 Adding noise</Title>
                                <Paragraph>After familiarising yourself with the interface<?oxy_insert_start author="al22273" timestamp="20200522T120809+0100"?> in Interactive 1<?oxy_insert_end?>, try adding noise in the top left zone. The <b>Noise level (V)</b> slider is not calibrated, except for having a minimum value of 0 and a maximum of 1. Judging by eye, set the slider to around 0.1 V and click on <b>Apply</b>. You can hear what the noisy signal sounds like by going to <b>Audible signal with noise</b> and clicking on the <b>Play</b> (triangle) icon. The top part of the interface should resemble Figure 3<?oxy_delete author="al22273" timestamp="20200408T153229+0100" content=".5"?><?oxy_insert_start author="al22273" timestamp="20200408T153229+0100"?>3<?oxy_insert_end?>. </Paragraph>
                                <Figure>
                                        <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig33.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="014a8c70" x_imagesrc="t312_openlearn_fig33.tif.jpg" x_imagewidth="512" x_imageheight="272"/>
                                        <Caption><?oxy_insert_start author="al22273" timestamp="20200408T153239+0100" type="surround"?><b><?oxy_insert_end?>Figure 3<?oxy_delete author="al22273" timestamp="20200408T153235+0100" content=".21"?><?oxy_insert_start author="al22273" timestamp="20200408T153235+0100"?>3<?oxy_insert_end?></b>  Noise applied to the data signal </Caption>
                                        <?oxy_insert_start author="al22273" timestamp="20200408T153723+0100"?>
                                        <Description><Paragraph>This figure is a screenshot of the top half of the interactive interface.</Paragraph><Paragraph>On the left, the unfiltered data signal is shown as a noisy signal around 0 volts for 0.625 seconds, followed by a noisy signal around 1 volt for another 0.625 seconds. Below this are the ‘Audible signal with noise’ controls, which allow you to play the signal; a Zoom slider; and the ‘Noise level (V)’ slider, which goes from 0 to 1 and is set at approximately 0.1.</Paragraph><Paragraph>On the right, the probability histogram of the unfiltered signal is shown as two similar overlapping histograms: one centred around 0 and spanning approximately minus 0.8 to plus 0.8, and one centred around 1 and spanning approximately 0.2 to 1.8. Below this is the ‘Decision level (V)’ slider, which is set at the middle of its range; the detection statistics, which will be described shortly; and the ‘FIR filter width’ slider, which is set near the lower end of a scale from 2 to 200. The detection statistics are as follows.</Paragraph><BulletedList><ListItem><Paragraph>Data 1, Correct detections: 49.99 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 0, Correct detections: 24.95 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 1, False detections: 25.05 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 0, False detections: 0.01 per cent.</Paragraph></ListItem></BulletedList></Description>
                                        <?oxy_insert_end?>
                                </Figure>
                                <Activity>
                                        <Heading>Activity 9</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T120828+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>Why has the display in the top right zone changed? What is the display now showing?</Paragraph>
                                        </Question>
                                        <Answer>
                                                <Paragraph>The effect of the added noise is to change the voltages representing 0 and 1 randomly around the mean values of 0 and 1. The display shows a histogram of the probabilities of particular signal voltages. Voltages close to the mean are most likely, so the histogram has peaks at 0 and 1; voltages further away are possible, but less likely the further you go from the mean values. </Paragraph>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T120845+0100"?>
                                <Paragraph>Next you will look at changing the decision level.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.11 Changing the decision level</Title>
                                <?oxy_insert_start author="al22273" timestamp="20200522T120908+0100"?>
                                <Paragraph>Again, using the interactive in Section 3.9 you will now look at changing the decision level. </Paragraph>
                                <?oxy_insert_end?>
                                <Paragraph>The decision level is represented by the right-hand vertical edge of the grey area on the histogram display. Use the <b>Decision level (V)</b> slider to set the decision level midway between 0 and 1. You will have to judge its position by eye. Click on <b>Apply</b> to implement the decision level<?oxy_delete author="al22273" timestamp="20200522T120916+0100" content=","?> and look at the statistics. </Paragraph>
                                <Activity>
                                        <Heading>Activity 10</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T120923+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>Why are there are false detections?</ListItem>
                                                  <ListItem>Why are the detection rates (correct and false) practically the same for 0 and 1?</ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>The effect of noise is to take the signal occasionally over the decision level, so that a 0 is detected as a 1 and vice versa.</ListItem>
                                                  <ListItem>The percentages of correct and false detections are virtually the same for 0s and 1s because of the symmetry of the situation. The noise affects the 0s and 1s equally, and the decision level is symmetrically placed between 0 and 1. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <Paragraph>The symmetrical arrangement that <?oxy_delete author="al22273" timestamp="20200522T120935+0100" content="we"?><?oxy_insert_start author="al22273" timestamp="20200522T120936+0100"?>you<?oxy_insert_end?> have used so far, with the decision level halfway between the two binary symbols, is typical of much practical implementation of binary signal detection, but looking at an asymmetrical arrangement is instructive. </Paragraph>
                                <Paragraph>Use the <b>Decision level (V)</b> slider to place the decision level asymmetrically between 0 and 1 (that is, much closer to 1 than to 0, or vice versa), then click on <b>Apply</b>. </Paragraph>
                                <Activity>
                                        <Heading>Activity 11</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T120943+0100"?>
                                        <Timing>Allow about 10 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <Paragraph>Explain, in general terms, the correct and false detection statistics that have resulted from your asymmetrical placement. You will not be able to give a precise account, but you might be able to explain the relative sizes of the statistics. </Paragraph>
                                        </Question>
                                        <Answer>
                                                <Paragraph><?oxy_delete author="al22273" timestamp="20200626T162752+0100" content="When I did this, I had the arrangement shown in Figure 3.6"?><?oxy_insert_start author="al22273" timestamp="20200626T162758+0100"?>You may have got something similar to Figure 34<?oxy_insert_end?>, with the decision level fairly close to 1.</Paragraph>
                                                <Figure>
                                                  <Image src="https://www.open.edu/openlearn/ocw/pluginfile.php/1881285/mod_oucontent/oucontent/95937/t312_openlearn_fig34.tif" x_printonly="y" x_folderhash="1b694830" x_contenthash="c204f981" x_imagesrc="t312_openlearn_fig34.tif.jpg" x_imagewidth="512" x_imageheight="457"/>
                                                  <Caption><?oxy_insert_start author="al22273" timestamp="20200408T153348+0100" type="surround"?><b><?oxy_insert_end?>Figure <?oxy_delete author="al22273" timestamp="20200408T153343+0100" content="3.22"?><?oxy_insert_start author="al22273" timestamp="20200408T153343+0100"?>34<?oxy_insert_end?></b>  Asymmetrical decision level </Caption>
                                                  <?oxy_insert_start author="al22273" timestamp="20200408T153559+0100"?>
                                                  <Description><Paragraph>This figure is a screenshot of the top right zone in the interactive interface. The probability histogram of the unfiltered signal is shown as two similar overlapping histograms: one centred around 0 and spanning approximately minus 0.75 to plus 0.75, and one centred around 1 and spanning approximately 0.25 to 1.75. Below this is the ‘Decision level (V)’ slider, which is set nearer to 1 than to 0, as indicated by the shading behind the histograms. The detection statistics are as follows.</Paragraph><BulletedList><ListItem><Paragraph>Data 1, Correct detections: 36.21 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 0, Correct detections: 50 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 1, False detections: 0 per cent.</Paragraph></ListItem><ListItem><Paragraph>Data 0, False detections: 13.79 per cent.</Paragraph></ListItem></BulletedList></Description>
                                                  <?oxy_insert_end?>
                                                </Figure>
                                                <Paragraph>Because the decision level is so close to 1, noise-affected 0 signals very rarely go beyond the decision level. This is why false detections of 1 are at 0%, as this statistic reflects 0s that are wrongly detected as 1s. As there are no false detections of 0s, all detections of 0 must be correct, which is why correct detections of 0 are shown at 50%. </Paragraph>
                                                <Paragraph>With the decision level close to 1, noise-affected 1s quite often drop below the decision level and are detected as 0s. This is why the false detection rate for 0 is relatively high, at almost 14%. Correspondingly, the correct detection rate for 1 is relatively low, at just above 36%. These two statistics add to approximately 50%. </Paragraph>
                                        </Answer>
                                </Activity>
                                <?oxy_insert_start author="al22273" timestamp="20200522T121001+0100"?>
                                <Paragraph>Now you have explored how adding noise and changing the decision level affects the data signal, to end this course you will apply the FIR filter.</Paragraph>
                                <?oxy_insert_end?>
                        </Section>
                        <Section>
                                <Title>3.12 Applying the FIR filter</Title>
                                <Paragraph>Use the <b>Decision level (V)</b> slider to return the decision level to midway between 0 and 1, then click on <b>Apply</b>. Confirm that the statistics are as would be expected; that is, correct detections of 1s and 0s are at approximately the same percentage. The correct detection percentages do not need to be identical, but try to get them to within about 1% of each other by adjusting the detection level. </Paragraph>
                                <Paragraph>You are now going to apply the FIR filter. In the top right zone, set the <b>FIR filter width (number of samples)</b> slider by eye to around 30–40 samples, then click on <b>Apply</b>. </Paragraph>
                                <Activity>
                                        <Heading>Activity 12</Heading>
                                        <?oxy_insert_start author="al22273" timestamp="20200522T121040+0100"?>
                                        <Timing>Allow about 5 minutes</Timing>
                                        <?oxy_insert_end?>
                                        <Question>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>Compare the top right zone (histogram and statistics before filtering) to the bottom right zone (histogram and statistics after filtering). What effect has the filter had on the statistics for correct detection? </ListItem>
                                                  <ListItem>Explain any difference in detection statistics between those beneath the unfiltered signal and those beneath the filtered signal. </ListItem>
                                                </NumberedList>
                                        </Question>
                                        <Answer>
                                                <NumberedList class="lower-alpha">
                                                  <ListItem>The filter increases the correct detection rate.</ListItem>
                                                  <ListItem>The filter reduces the spread of values around the mean, which is shown by the fact that the histogram peaks are narrower than in the unfiltered histogram. The reduced spread of values reduces the probability of sample values crossing the decision level. </ListItem>
                                                </NumberedList>
                                        </Answer>
                                </Activity>
                                <Paragraph>Some points to consider as a result of your work with the FIR filter interactive resource are as follows:</Paragraph>
                                <BulletedList>
                                        <ListItem>Noise causes the actual voltages for 1s and 0s to be distributed around the intended voltage.</ListItem>
                                        <ListItem>The distribution of voltages can cause errors when, for example, the voltage representing a 1 is closer to 0 than to 1.</ListItem>
                                        <ListItem>The wider the distribution (that is, the noisier the signal), the more likely errors become.</ListItem>
                                        <ListItem>Filtering can reduce the width of the distribution of voltages, thereby reducing the error rate.</ListItem>
                                </BulletedList>
                        </Section>
                </Session><Session>
                        <Title>Conclusion</Title>
                        <Paragraph>In this <?oxy_insert_start author="al22273" timestamp="20200408T153516+0100"?>course<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200408T153515+0100" content="section"?> you have learned about discrete-time signals and the discrete-time systems that use them. In doing so, you have focused on digital filtering and found out why advances in digital computer processing have allowed digital filtering to be used in scenarios where analogue filters would once have been the only viable solution. You have seen how relatively simple averaging filters can remove high-frequency noise, and also that more complex filters are designed. </Paragraph>
                        <Paragraph>This completes your study. <?oxy_delete author="al22273" timestamp="20200522T121056+0100" content="After studying this, y"?><?oxy_insert_start author="al22273" timestamp="20200522T121058+0100"?>Y<?oxy_insert_end?>ou should <?oxy_insert_start author="al22273" timestamp="20200522T121107+0100"?>now <?oxy_insert_end?>be able to<?oxy_delete author="al22273" timestamp="20200522T121112+0100" content=" do the following"?>:</Paragraph>
                        <BulletedList>
                                <ListItem>understand how filtering of discrete-time signals can be achieved by mathematical processes such as averaging</ListItem>
                                <ListItem>understand how mathematical operations applied to a discrete-time signal in the time domain can result in the removal or reduction of unwanted aspects of the signal </ListItem>
                                <ListItem>explain why filters are designed in the frequency domain, and specify a digital filter to achieve a desired filtering effect.</ListItem>
                        </BulletedList>
                        <?oxy_insert_start author="al22273" timestamp="20200626T162917+0100"?>
                        <Paragraph xml:space="preserve">This OpenLearn course is an adapted extract from the Open University course <a href="http://www.open.ac.uk/courses/modules/t312">T312 <i>Electronics: signal processing, control and communications</i></a></Paragraph>
                        <?oxy_insert_end?>
                </Session></Unit><BackMatter>
                <!--To be completed where appropriate: 
<Glossary><GlossaryItem><Term/><Definition/></GlossaryItem>
</Glossary><References><Reference/></References>
<FurtherReading><Reference/></FurtherReading>-->
                <?oxy_insert_start author="al22273" timestamp="20200611T115551+0100"?>
                <Glossary>
                        <GlossaryItem>
                                <Term>alias</Term>
                                <Definition>An error appearing in a sampled signal when the bandwidth of the signal is greater than half the sampling frequency (that is, when the sampling frequency is lower than the Nyquist frequency). Such effects are also referred to as artefacts or ghosts.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>anti-aliasing filter</Term>
                                <Definition>A low-pass filter that is able to remove aliasing in sampled signals by cutting all the spectral components that are greater than or equal to half the sampling frequency.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>Bode plot</Term>
                                <Definition>Loosely, a graph of the frequency response of a device or system. Strictly, a pair of graphs showing frequency response and phase response over the same span of frequencies.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>convolution</Term>
                                <Definition>A mathematical operation that combines two signals to produce a third signal. When two signals are convolved, the resultant third signal expresses how the shape of one signal is modified by the other.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>decibel</Term>
                                <Definition>A logarithmic way of expressing a power ratio. For powers P1 and P2, their ratio in decibels is defined as 10 log10 (P1/P2). The symbol for decibels is dB. Strictly the decibel is not a unit, as any ratio must be a pure (that is, dimensionless) number. However, it is often regarded as a unit.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>difference equation</Term>
                                <Definition>An equation in which all variables have been sampled at fixed intervals, and these variables are multiplied by some coefficient.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>differential equation</Term>
                                <Definition>A mathematical equation in which one or more terms contains a mathematically differentiated variable.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>digital signal processor (DSP)</Term>
                                <Definition>A semiconductor device similar to a microprocessor. Whilst a microprocessor is a general-purpose device, a DSP has been optimised to carry out the computations used for processing discrete signals.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>first-order</Term>
                                <Definition>As applied to a filter, the simplest type of filter, having in its passive form a single reactive element (a capacitor or an inductor) and a roll-off of 20 dB/decade, or 6 dB/octave.
As applied to a differential equation, such an equation in which the main variable is differentiated once. Any system that can be modelled with such a differential equation would be referred to as a first-order system.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>Fourier transform</Term>
                                <Definition>A transformation that extends the concept of the Fourier series to non-periodic signals. It allows us to estimate the spectrum of a signal and perform a frequency analysis.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>frequency response</Term>
                                <Definition>The response of a system (e.g. a filter) when we input sine waves at different frequencies (but equal amplitude). It tells us how the system will modify the spectrum of any input signal we feed to the system.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>gain</Term>
                                <Definition>In amplification, a measure of how many times the input signal amplitude is increased. It is generally measured as the ratio between the input signal amplitude and the output signal level. If a gain value is given as just a number (i.e. with no units), the gain is likely to be a ratio of voltages; if the value is given in decibels, it is a ratio of powers. See also voltage gain and power gain.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>octave</Term>
                                <Definition>The span of frequencies covered by a doubling of frequency, or by a halving of frequency. For example, the frequency span from 500 Hz to 1000 Hz is an octave, as is the span from 500 Hz to 250 Hz. In music, the eight notes of a diatonic scale (that is, doh, re, me … ti, doh) cover an octave; hence the name ‘octave’ for this span of frequencies.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>operational amplifier</Term>
                                <Definition>A general-purpose analogue amplifier intended to be used as a component in other electronic circuits, and usually supplied as a multi-pin integrated-circuit device with two inputs and a single output. Typically an op-amp is a differential amplifier (that is, it amplifies the difference between its two inputs) and has an unusably high gain and extremely high input impedance. To give useful and predictable behaviour, external feedback circuitry must be applied. This circuitry determines essential parameters such as input impedance, output impedance, overall gain and frequency response, and also whether the circuit operates as a single-input amplifier or a differential amplifier.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>order</Term>
                                <Definition>A numerical classification for filters (e.g. ‘first order’, ‘second order’, ‘third order’, etc.). The order is determined by the differential equation of the filter. For a first-order filter, the highest differential coefficient in the equation is first-order (e.g. dv/dt); for a second-order filter, the highest differential coefficient is second-order (e.g. d2v/dt2). The higher the order, the steeper the roll-off and the sharper the cut-off between passband and stop band. Increasing the order by one adds 20 dB/decade to the filter’s roll-off.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>passband</Term>
                                <Definition>The band or bands of frequencies passed by a filter with least attenuation, or no attenuation. Frequencies outside the passband are cut off, or stopped, by the filter. Passband is the counterpart of stop band.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>power gain</Term>
                                <Definition>The ratio of output power to input power. It is usually expressed in decibels (dB). A power gain of 0 dB means that the output power is the same as the input power. A power gain of 3 dB (or, more exactly, 3.0103 dB) means that the output power is double the input power.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>quantisation</Term>
                                <Definition>Conversion of an analogue quantity, which could take any value within a range, to one of a set of discrete values.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>roll-off</Term>
                                <Definition>The steepness of a filter’s attenuation in a stop band. Also, the steepness of the attenuation of any device that produces attenuation (for example, a linear amplifier at the extremes of its operating-frequency range).</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>stop band</Term>
                                <Definition>The band or bands of frequencies stopped, or cut off, by a filter. The counterpart of the passband.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>taps</Term>
                                <Definition>In a digital filter, the number of taps is the number of terms in the mathematical expression that describes the filter. This expression is given in the form of a difference equation. In digital filter design, the maximum number of taps to be used in the implementation is required as part of the design specification.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>voltage gain</Term>
                                <Definition>For a sinusoidal input and output, voltage gain is the ratio of the output voltage’s amplitude to that of the input voltage. It has no units.</Definition>
                        </GlossaryItem>
                        <GlossaryItem>
                                <Term>window function</Term>
                                <Definition>In signal processing, a mathematical function that is zero-valued outside some chosen interval. When a signal is convolved with a window function, the resultant signal is also zero-valued outside the chosen interval, so it is the original signal viewed through the window function.</Definition>
                        </GlossaryItem>
                </Glossary>
                <?oxy_insert_end?>
                <References>
                        <Reference>Asgari, S. and Mehrnia, A. (2017) ‘A novel low-complexity digital filter design for wearable ECG devices’, <i>PLOS ONE</i>, vol. 12, no. 4 [Online]. Available at https://doi.org/10.1371/journal.pone.0175139 (Accessed 25 March 2019). </Reference>
                        <?oxy_insert_start author="al22273" timestamp="20200626T163322+0100"?>
                        <Reference>Dongarra, J. and Sullivan, F. (2000) ‘Guest editors’ introduction: the top 10 algorithms’, <i>Computing in Science &amp; Engineering</i>, vol. 2, no. 1, pp. 22–3.</Reference>
                        <Reference>Wickert, M. (2011) ‘Chapter 5 FIR Filters’, ECE 2610 <i>Introduction to Signals and Systems</i> [Online], University of Colorado Colorado Springs. Available at www.eas.uccs.edu/~mwickert/ece2610/lecture_notes/ece2610_chap5.pdf (Accessed 3 June 2019).</Reference>
                        <?oxy_insert_end?>
                </References>
                <Acknowledgements>
                        <Paragraph>This free course was written by <?oxy_insert_start author="al22273" timestamp="20200522T121133+0100"?>Allan Jones, Bernie Clarke and Phil Picton<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200522T121130+0100" content="&lt;EditorComment&gt;???&lt;/EditorComment&gt;"?>. It was first published in <?oxy_insert_start author="al22273" timestamp="20200611T115332+0100"?>July 2020<?oxy_insert_end?><?oxy_delete author="al22273" timestamp="20200611T115330+0100" content="&lt;EditorComment&gt;???&lt;/EditorComment&gt;"?>.<!--Author name, to be included if required--></Paragraph>
                        <!--If archive course include following line: 
This free course includes adapted extracts from the course [Module title IN ITALICS]. If you are interested in this subject and want to study formally with us, you may wish to explore other courses we offer in [SUBJET AREA AND EMBEDDED LINK TO STUDY @OU].-->
                        <Paragraph>Except for third party materials and otherwise stated (see <a href="http://www.open.ac.uk/conditions">terms and conditions</a>), this content is made available under a <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_GB">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Licence</a>.</Paragraph>
                        <Paragraph>The material acknowledged below is Proprietary and used under licence (not subject to Creative Commons Licence). Grateful acknowledgement is made to the following sources for permission to reproduce material in this free course: </Paragraph>
                        <?oxy_insert_start author="al22273" timestamp="20200710T141909+0100"?>
                        <Heading>Figures</Heading>
                        <Paragraph>Course image: paulclee / www.pixabay.com </Paragraph>
                        <Paragraph>Figure 1: © BBC</Paragraph>
                        <Paragraph>Figure 2: © NASA</Paragraph>
                        <Paragraph>Figure 3: Courtesy Starship Technologies </Paragraph>
                        <Paragraph>Figure 14: Adapted from: <a href="https://doi.org/10.1371/journal.pone.0175139">https://doi.org/10.1371/journal.pone.0175139</a> </Paragraph>
                        <Paragraph>Installing Signal Wizard for use in offline mode PDF, Figure 1: Taken from: <a href="http://www.signalwizardsystems.com/">http://www.signalwizardsystems.com/</a></Paragraph>
                        <?oxy_insert_end?>
                        <!--The full URLs if required should the hyperlinks above break are as follows: Terms and conditions link  http://www.open.ac.uk/ conditions; Creative Commons link: http://creativecommons.org/ licenses/ by-nc-sa/ 4.0/ deed.en_GB]-->
                        <Paragraph>Every effort has been made to contact copyright owners. If any have been inadvertently overlooked, the publishers will be pleased to make the necessary arrangements at the first opportunity.</Paragraph>
                        <!--<Paragraph>Course image <EditorComment>Acknowledgements provided in production specification or by LTS-Rights</EditorComment></Paragraph>-->
                        <!--<Paragraph>
        <EditorComment>Please include  further acknowledgements as provided in production specification or by LTS-Rights in following order:
Text



Images



Figures



Illustrations



Tables



AV



Interactive assets</EditorComment>
      </Paragraph>-->
                        <Paragraph/>
                        <Paragraph><b>Don't miss out</b></Paragraph>
                        <Paragraph>If reading this text has inspired you to learn more, you may be interested in joining the millions of people who discover our free learning resources and qualifications by visiting The Open University – <a href="http://www.open.edu/openlearn/free-courses?utm_source=openlearn&amp;utm_campaign=ol&amp;utm_medium=ebook">www.open.edu/openlearn/free-courses</a>.</Paragraph>
                </Acknowledgements>
        </BackMatter>
<settings>
    <numbering>
        <Session autonumber="false"/>
        <Section autonumber="false"/>
        <SubSection autonumber="false"/>
        <SubSubSection autonumber="false"/>
        <Activity autonumber="false"/>
        <Exercise autonumber="false"/>
        <Box autonumber="false"/>
        <CaseStudy autonumber="false"/>
        <Quote autonumber="false"/>
        <Extract autonumber="false"/>
        <Dialogue autonumber="false"/>
        <ITQ autonumber="false"/>
        <Reading autonumber="false"/>
        <StudyNote autonumber="false"/>
        <Example autonumber="false"/>
        <Verse autonumber="false"/>
        <SAQ autonumber="false"/>
        <KeyPoints autonumber="false"/>
        <ComputerDisplay autonumber="false"/>
        <ProgramListing autonumber="false"/>
        <Summary autonumber="false"/>
        <Tables autonumber="false"/>
        <Figures autonumber="false"/>
        <MediaContent autonumber="false"/>
        <Chemistry autonumber="false"/>
    </numbering>
    <discussion_alias>Discussion</discussion_alias>
    <session_prefix/>
<version>2020051800</version></settings></Item>
<?oxy_options track_changes="on"?>
