Open Collections

UBC Theses and Dissertations

UBC Theses Logo

UBC Theses and Dissertations

Design, implementation and testing of a flexible, intelligent modem architecture for power line communications Buternowsky, Barry 1992

Your browser doesn't seem to have a PDF viewer, please download the PDF to view this item.

Item Metadata

Download

Media
831-ubc_1992_spring_buternowsky_barry.pdf [ 5.58MB ]
Metadata
JSON: 831-1.0064923.json
JSON-LD: 831-1.0064923-ld.json
RDF/XML (Pretty): 831-1.0064923-rdf.xml
RDF/JSON: 831-1.0064923-rdf.json
Turtle: 831-1.0064923-turtle.txt
N-Triples: 831-1.0064923-rdf-ntriples.txt
Original Record: 831-1.0064923-source.json
Full Text
831-1.0064923-fulltext.txt
Citation
831-1.0064923.ris

Full Text

Design, Implementation and Testing of a Flexible, Intelligent Modem Architecture for Power Line Communications by Barry Buternowsky B. Sc. Computer Eng., University of Manitoba, 1989. A THESIS SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF APPLIED SCIENCE  in THE FACULTY OF GRADUATE STUDIES DEPARTMENT OF ELECTRICAL ENGINEERING  We accept this thesis as conforming to the required standard  THE UNIVERSITY OF BRITISH COLUMBIA January 1992 © Barry Buternowsky, 1992.  In presenting this thesis in partial fulfilment of the requirements for an advanced degree at the University of British Columbia, I agree that the Library shall make it freely available for reference and study. I further agree that permission for extensive copying of this thesis for scholarly purposes may be granted by the head of my department or by his or her representatives. It is understood that copying or publication of this thesis for financial gain shall not be allowed without my written permission.  Department of  Electrical Engineering  The University of British Columbia Vancouver, Canada  Date  DE-6 (2/88)  Abstract  Intrabuilding electric power distribution lines provide easy access and universal coverage for data communications. However, power line communication channels exhibit unpredictable levels of impedance, attenuation and noise. To enable effective communications requires appropriate modulation schemes and communication protocols. This thesis describes the design, implementation and testing of a modular, flexible, intelligent modem architecture, based on binary phase-shift keying (BPSK). The modem operates at user selectable baud rates of 2.4, 4.8, 9.6 and 19.2 kbps. Most of the design is digital, to facilitate eventual implementation using VLSI. A microcontroller resident on the modem enables judicious allocation of data link layer functions between modem and host microcomputer. Data link functions performed by the microcontroller include byte and packet synchronization, and control of host-modem communications. The overall data link protocol design results in a flexible, user specified packet format and length, which accommodates to different data rates. The modem architecture is designed for use with various medium access protocols including CSMA, polling or token passing. Addition of forward error correction capability in the form of on-board hardware is also feasible. Evaluation of the modem architecture was performed in a four-storey industrial building which contains good, fair and poor quality communication links. Results for same phase and cross phase transmissions were collected and analyzed for two different test environments: (1) short length links of approximately 30 meters within the same room location; and, (2) moderate to very long links (greater than 60 meters) among different floors. Results from tests (1) indicate that same phase transmission is in general advantageous over cross phase transmission. This advantage for BERs less than 10 -3 for transmission at 19.2 kbps can be large as 27 dBmV. Evaluation of results from tests (2) indicate that power line channel communication characteristics are directly related to the channel's length. The BER was found to be in a range from 10 -1 to 10 -3 for transmission at 19.2 kbps . Comparison of channel throughput for continuous one-way transmission without forward error correction indicates 2.4 kbps would be appropriate for long distance, 4.8 and 9.6 kbps for medium distances, and 19.2 kbps for relatively short distances.  ii  Table of Contents page Abstract ^  ^ii  List of Figures ^  ^vi  List of Tables.  ^ix  Acknowledgements  ^  1 Introduction  1  1.1 1.2 1.3 1.4  1 1 3  MOTIVATION ^ BACKGROUND ^ OVERALL MODEM DESIGN CONSIDERATIONS ^ OUTLINE OF THESIS ^  2 Power Line Channels ^ 2.1 2.2 2.3 2.4 2.5  ELECTRICAL POWER DISTRIBUTION ^ 2.1.1^Power Systems Topology ^ 2.1.2^Building Wiring Plans ^ ATTENUATION ^ 2.2.1^Attenuation in Industrial Buildings ^ 2.2.2^Attenuation in Residential Buildings ^ NOISE ^ SIGNAL FADING ^ POWER LINE LOADING ^  3 Hardware Architecture  Design and Implementation ^  —  4 6 6 6 6 8 8 11 13 16 16  19  3.1 OVERVIEW OF MODEM HARDWARE ARCHITECTURE ^ 19 3.2 TRANSMITTER AND RECEIVER SUPPORT COMPONENTS 19 3.2.1^Power Supply ^ 19 3.2.2^The Clock Generator ^ 20 3.2.3^A Description of the Microcontroller Control Pins ^ 20 3.2.4 The Host/ Modem Interface ^ 22 3.3 MODEM TRANSMITTER HARDWARE ^ 22 3.3.1^BPSK Modulator ^ 22 3.3.2^The Transmit Low Pass Filter^ 24 3.3.3^The Power Amplifier ^ 25  iii  ^  page  Table of Contents (Contd)  3.4 MODEM RECEIVER HARDWARE ^ 3.4.1^Line Coupling Network ^ 3.4.2^Receive Band Pass Filter ^ 3.4.3^The Costas Loop ^ 3.4.4^Bit Synchronization Circuit ^ 3.4.5^Integrate-and-Dump Filter and Host Interface ^ 4 Firmware Design and Implementation ^ ^  25 25 26 26 32 35  4.1 OVERVIEW OF MODEM FIRMWARE ORGANIZATION ^ 4.2 MODEM INITIALIZATION MODULE ^ 4.3 MODEM TRANSMIT MODULE ^ 4.3.1^Transmitted Packet Format: Preamble and Data ^ 4.3.2 Host-Modem Communication ^ 4.3.3 XON/XOFF Host-Modem Flow Control ^ 4.3.4 Synchronous Handshaking for Asynchronous Communication ^ 4.4 MODEM RECEIVE MODULE ^ 4.4.1^Data Link Layer ^ 4.4.2^Discussion of Data Link Layer Parameters ^ 4.4.3^Carrier Detection ^  36 38 38 39 40 42  5 Test Results in Different Environments ^  36  43 44 45 47 50  .54  5.1 DISCUSSION OF TEST PARAMETERS ^ 54 5.2 TEST RESULTS UNDER WHITE NOISE CONDITIONS ^ 57 5.3 TEST ENVIRONMENT AND PROCEDURE ^ 58 5.4 SAME PHASE AND CROSS PHASE TESTS ON LAB SYSTEM ... 60 5.5 TESTS ON GENERAL IN-BUILDING ELECTRICAL DISTRIBUTION SYSTEM ^ 68 5.5.1^Bit^Error^Rate ^ 70 5.5.2^Block Error Rate ^ 70 5.5.3^Percent of Lost Packets ^ 71 5.5.4 Summary ^ 71 5.6 TESTS FOR TRANSMISSIONS FROM LAB TO GENERAL SYSTEM ^ 72 5.6.1^Bit^Error^Rate ^ 72 5.6.2^Block Error Rate ^ 72 5.6.3^Percent of Lost Packets ^ 73 5.6.4^Error-free^Throughput ^ 73 5.6.5 Summary ^ 74  iv  Table of Contents (Contd)^ 6 Conclusions  page ^75  6.1 CONCLUDING REMARKS ^ 75 6.2 SUGGESTIONS FOR FURTHER WORK ^ 76 References ^ 78 A Hardware Schematics^  83  B Firmware Listing^  94  v  List of Figures  page Figure 2.1 Residential electrical power distribution ^ 7 Figure 2.2 Commercial/Industrial three-phase electrical power distribution ^ 9 Figure 2.3 Attenuation during the work day in an industrial building [1] ^ 11 Figure 2.4 Attenuation in an industrial building at night [1] ^ 11 Figure 2.5 Attenuation for residential in-building power line with resistive load [1] ^ 12 Figure 2.6 Attenuation across phases in residential power lines [1] ^ 13 Figure 2.7 Residential power line bandwidth [1] ^ 14 Figure 2.8 Distribution network load profile during one day [50] ^ 17 Figure 2.9 Distribution network load profile during one week [50] ^ 18 Figure 3.1 Output of shift register 74HCT164 in modulator circuit^ 23 24 Figure 3.2 Synthesized sinusoidal carrier ^ Figure 3.3 Second order butterworth LPF ^ 24 Figure 3.4 Second Order Butterworth Band Pass Filter ^ 26 Figure 3.5 BPSK Costas loop demodulator ^ 28 Figure 3.6 Digital Costas loop ^ 28 Figure 3.7 Spectrum of square wave c(t)^ 29 Figure 3.8 Block diagram of loop filter chip ^ 30 Figure 3.9 Inserted and deleted pulses of the loop filter chip ^ 30 Figure 3.10 BER vs loop filter bandwidth ^ 31 Figure 3.11 Percent lost packets vs loop filter bandwidth ^ 31 Figure 3.12 Bit synchronization circuit ^ 33 Figure 3.13 Non-synchronized bit stream ^ 33 Figure 3.14 Perfectly synchronized bit stream ^ 34 Figure 3.15 Bit Sync waveforms for different up /down values^ 34 Figure 3.16 Noisy bit stream ^ 34 Figure 3.17 Integrate and dump matched filter ^ 35 Figure 4.1 Overall view of modem firmware ^ 37  vi  List of Figures (Contd)^  page  37 Figure 4.2 OSI reference model ^ Figure 4.3 Commands sent to the modem by the host during initialization ^ 38 Figure 4.4 Transmit module data link layer functions ^ 39 Figure 4.5 Transmit module physical layer functions ^ 39 Figure 4.6 Transmit module block diagram ^ 41 Figure 4.7 Transmitted packet format ^ 41 Figure 4.8 Circular transmit buffer ^ 42 Figure 4.9 Receive module physical layer functions ^ 44 Figure 4.10 Receive module data link layer functions^ 45 Figure 4.11 Data link layer flow chart ^ 46 Figure 4.12 Packet Sent to Host 47 Figure 4.13 Performance of data link layer ^ 48 Figure 4.14 Correlation of SYNC word ^ 49 Figure 4.15 High and low confidence bits ^ 51 Figure 4.16 Time taken for new _confidence to fall below confidence threshold ^ 53 Figure 4.17 Bits to terminate lock state for cur _conf of 0, 1, & 2 ^ 53 Figure 5.1 Packet format for Bit Error Rate Tester^ 54 Figure 5.2 Noisy and quiet periods on a channel ^ 56 Figure 5.3 Modem performance in white noise: BER and BLKER ^ 58 Figure 5.4 BLKER and percent lost packets vs BER for white noise ^ 58 Figure 5.5 Three phases of a power line ^ 59 Figure 5.6 BER for lab system ^ 61 Figure 5.7 BLKER for lab system ^ 62 Figure 5.8 BER vs BLKER for lab system ^ 63 Figure 5.9 Percent lost packets for lab system ^ 64 Figure 5.10 Variation in BER as plotter location is varied ^ 65 Figure 5.11 Frequency spectrum of output of bandpass filter^ 66 Figure 5.12 Waveforms of output of demodulator and bandpass filter ^ 67 Figure 5.13 BER and BLKER vs time for x to y channel at 63 dBmV ^ 68 ^0  vii  ^  List of Figures (Contd)^  page  69 Electrical engineering building ^ BER for 70 dBmV data signal on General System ^ 70 BLKER for 70 dBmV data signal on General System ^ 71 Percent lost packets for 70 dBmV data signal on general system ^ 71 BER for 70 dBmV data signal on Lab to General System ^ 72 BLKER for 70 dBmV data signal on Lab to General System ^ 73 Percent lost packets for 70 dBmV data signal on lab to general system ^ 73 Figure 5.21 Error-free throughput for 70 dBmV data signal on lab to general system ^ 74 Figure 5.14 Figure 5.15 Figure 5.16 Figure 5.17 Figure 5.18 Figure 5.19 Figure 5.20  vul  List of Tables  page Table 2.1 Error free lengths for 38.4 kbps, industrial building ^14 Table 2.2 Error free lengths for 19.2 kbps, industrial building ^14 Table 2.3 Error free lengths for 4.8 and 19.2 kbps, industrial building^14 Table 2.4 Summary of Tables 2.1-2.3 with single bit errors^ 15 Table 3.1 Shift register waveforms: unweighted and weighted ^23 50 Table 4.1 Mean time between false preambles ^ Table 4.2 new confidence values for different current confidence values^52 69 Table 5.1 Sub-buses in General and Lab Systems ^ Table 5.2 Phases of Power Lines at Test Locations^ 69  ix  Acknowledgements  I would like to express my sincere gratitude to my supervisor Dr. R. W. Donaldson for his support and guidance during the course of this thesis. A special thank-you is extended to my family for their endless supply of love and encouragement throughout this thesis. I would also like to thank Mr. William Cheung for making available the software tools that were used during this research. Partial funding for this thesis was provided by the Natural Sciences and Engineering Council of Canada in the form of an academic scholarship for which I am grateful.  1 Introduction  1 Introduction  1.1 MOTIVATION  The use of intrabuilding communications involving computers and other terminal equipment has increased rapidly over the past few years. The need for interoffice communications, local area networks, security control, and energy use management in buildings is creating a demand for faster, cheaper, and more reliable systems and services. Conventional wireline communications media including twisted pair and coaxial cable are suitable for carrying baseband and broadband communications. For wide area networks, media include fibre optic, microwave, and satellite links which support broadband communications [8]. The driving cost, in networking, after computer and other terminal equipment, is the installation of cables [8]. These installation costs can be substantial even for relatively simple networks. Although a network may have been functioning for an extended period of time, as it expands so do the expenses of installing new lines. Power line communication takes advantage of existing copper lines within the building walls. A natural interface between power lines and the communications device exists in the form of a standard wall plug. There are no extra costs for expanding the network, save the cost of additional modem and terminal devices. In addition, the physical location of terminals can be changed at will, thus creating a network which is flexible in response to terminal locations and user needs. Power lines are not designed for use as communication channels. They exhibit unpredictable and varying levels of impedance, noise, and attenuation. These impairments must be overcome to enable effective communications. 1.2 BACKGROUND  Electric power distribution lines have been used by the power industry for distribution automation including remote meter reading, load management, and other  1  1 Introduction  applications [6]. Because of various degradative factors including large amounts of noise generated by electrical equipment, most of these systems have data rates below 100 bps. Recent developments in local area networks (LANs) and independent microprocessor controlled equipment enhances the benefits of using power lines as a communication medium for local networking inside buildings. By communicating over power lines one has potentially access to a network which encompasses an entire building. With sufficient bandwidth, transmission of digital voice as well as data is feasible. Automated home control is one possibility. Previous home bus systems have been developed [37-43] which use dedicated twisted pair and coaxial cable for communicating at 9600 bps. The features provided by the home bus can be extended to industrial buildings which, because of their considerable size, are excellent candidates for power line communications. Several commercial intrabuilding power line communication systems have been developed during the last few years. These include modems from Signetics, NONWIRE, BSR, ExpertNet, and National Semiconductor [6,12]. These products have data rates ranging from 120 bps to 1.2 kbps and operate at carrier frequencies from 30 kHz to 150 kHz. The modulation schemes include amplitude shift keying and noncoherent frequency shift keying. These schemes are simple to implement, and inexpensive to manufacture. However, their performance capabilities are severely limited. In addition to these commercial products, several research systems have been reported. A pseudonoise spread spectrum modem that operated at 60 bps used the AC crossings of the 60 Hz power signal for synchronization [4]. A spread spectrum minimum shift keyed modem with fixed maximum baud rate of 19.2 kbps was documented in [1]. Channel impairments severely limit the data transmission speed and accuracy achievable on power line networks. At low data rates, power line impulse noise is relatively small, energy per data bit is high, and reliable performance is achievable at relatively low transmitter power levels. As the transmitted bit period decreases (when transmission speed increases), the detrimental effects of impulse noise and fading increase. At moderate to high transmission speeds (9.6 kbps and higher), impulse noise becomes the dominant factor, on some links, in determining the performance of the communication channel. Increasing interest in powerline communications as a cost effective alternative for LAN implementation motivates extensive testing of possible future LAN sites. This 2  1 Introduction testing will provide valuable information concerning the overall potential of the site, and will also provide important information which must be considered in the design of the network. This knowledge is important if future commercial developments are to be realized. A power line LAN must be commercially competitive with other network media. Dedicated wireline or optical communication networks have a very high transmission capacity and reliability. It is therefore necessary that the cost of power line LAN facilities be kept as low as possible, while maintaining adequate reliability and throughput, and low message delay. Although several modems have been developed and tested, there remains an absence of a low-cost, reliable modem architecture and associated data link control protocol with adequate performance capabilities for mediumspeed, in-building applications. In this thesis, a unique microprocessor-based power line modem was developed and tested. This modem uses BPSK (binary phase shift keying) modulation which is superior to DPSK (differential PSK) by 1 dB in additive white Gaussian noise, and is superior to coherent OOK (On-Off shift keying) and coherent FSK (frequency shift keying) by 3 dB [10]. A data link layer protocol which resides on the modem performs byte and packet synchronization. Optimization of channel throughput is provided through variability of packet size and baud transmission rate. Baud rates from 2.4 kbps to 19.2 kbps are dynamically selected through software. An industrial building was selected as the test site. Performance results were recorded for short and long transmission distances and for good and for very poor quality channels. 1.3 OVERALL MODEM DESIGN CONSIDERATIONS Figure A.1 in Appendix A is a block diagram of the modem design. Shown in this schematic are the signals passed to each modem component and the clear interdependence among the components. An important block is the control circuitry which contains a microcontroller. The microcontroller's program is stored in an external EPROM which allows the microcontroller to supervise all aspects of the modem functioning. In part, the modem's maximum baud rate is limited by instruction execution speed. The other overriding restriction in developing high speed modems is hardware complexity which if allowed to proceed unchecked would produce an impractically costly product.  3  I Introduction  The design philosophy of microcontroller-based modems is derived from several motivations. These include flexibility, modem intelligence, and chip count (or cost). A microcontroller-based modem's functionality often can be modified by simply rewriting the microcontroller's firmware. Functions can be added, operational problems resolved, and options expanded with minimal modem service time. As processors become smaller and faster, microcontroller-based systems become smarter. Tasks otherwise performed in host computers are implemented within the modem itself. Because the microcontroller replaces many elementary chips, the overall chip count and physical size are reduced. A smaller number of chips generally results in a less expensive and more reliable system. Some subsystems of the modem developed in this thesis were tested earlier, in preliminary form at 9.6 kbps transmission rate [21]. These subsystems include some parts of the modulator, demodulator, and carrier detector. The modem described herein, goes well beyond earlier work, and is thoroughly tested on various links in a harsh operating environment. Several changes in design philosophy and implementation have enabled an increase in the transmission rate to 19.2 kbps. Appropriate data link control functions are also developed, judiciously partitioned for implementation on the modem or within the PC host. The purpose of this thesis is to design, implement and evaluate a cost-effective power line modem which operates with a high degree of reliability under variable channel conditions, at data rates up to 19.2 kbps. Design simplicity is emphasized. Generally, overly complex schemes are more expensive and less reliable than simpler schemes. Where possible, techniques which lend themselves to all-digital VLSI implementation, or failing that, mixed digital/analog application specific integrated circuits — ASICs, are used. Two very important design criteria are high data rates and baud rate selectivity. The modem must have the ability to change baud rates as needed. Modem architecture should be modular and amenable to the future addition of on-board medium access protocols including CSMA, polling, or both. It is useful to accommodate user-defined packet format and length as dictated by application and channel quality. Testing of the modem on a wide variety of actual power line communication channels is essential. 1.4 OUTLINE OF THESIS  The remainder of this thesis comprises five additional chapters and two appendices. Chapter 2 contains a description of the power line communications channel. This description includes a summary of some previous work by others and provides the 4  1 Introduction  necessary background for understanding power line channel impairments. Signal attenuation and noise characteristics for both industrial and residential buildings are analyzed. These are the two major channel impairments. Chapter 3 describes the overall modem hardware design approach and architecture as well as hardware circuitry within the modem. This description includes analysis concerning choice of parameters for low pass and band pass filters, and the design of a digitally realized modulator and demodulator. Design and analysis of an all-digital symbol synchronization means is also included. Coupling circuitry to enable interfacing of the modem to the power line is described. Chapter 4 describes the design and implementation of the data link layer functions stored in firmware and executed on the modem's microcontroller. The data link layer performs byte and packet synchronization. The firmware also includes a user interface which allows various parameters such as modem baud rate to be changed dynamically. The distribution of data link functions between the modem and the host is designed to enable maximum application flexibility. Chapter 5 describes the results from numerous performance tests based on measurements within an industrial building. These tests determine operating parameters for the power line modem as packets are sent from a transmitting host (IBM-PC compatible 386) to a receiving host. Several different parameters are tabulated including bit error rate, block error rate, percent of lost packets, and throughput. The tests were performed over different times of the day, and different powerline communication channels, at various transmitter power levels. Chapter 6 contains a summary of the thesis work and performance results, and provides suggestions for further research. The appendices provide detailed modem circuitry and firmware listings.  5  2 Power Line Channels  2 Power Line Channels  In this chapter, details of the dominant properties of power lines — attenuation, noise levels, and fading — are described for industrial and residential sites. The information concerning these two factors is derived from various sources including [1] and [6]. In order to understand the characteristics and behavior of intrabuilding power line communication, it is necessary to first understand the way electrical power is distributed within a building. 2.1 ELECTRICAL POWER DISTRIBUTION 2.1.1 Power Systems Topology  Three phase electrical power is distributed from generating plants to consumers over large and complex networks. High voltage transmission lines transmit power from generating plants to electrical substations. The transmission lines vary in length from tens to hundreds of kilometers. Next, a distribution network delivers electrical power from substations to a number of distribution transformers [4]. The distribution network varies in size as well. It is small for villages and extensive for metropolitan areas. The secondary (load) side of a distribution transformer connects to the circuit panels in a building. A single distribution transformer may provide electrical power for many buildings in residential districts, or for single buildings in industrial sectors. 2.1.2 Building Wiring Plans  In residential housing or apartment units, the secondary side of the distribution transformer delivers split-single-phase power to circuit panels by two 120V (180° out of phase) 60 Hz lines and a neutral conductor as shown in Figure 2.1. The neutral conductor is normally connected to the grounded circuit panel. Electrical power is distributed throughout the building on general purpose branch circuits which usually consist of twisted pair copper wiring. One wire of the twisted pair is connected to a 120V line, and the other is connected to neutral. Small loads are interfaced to the branch circuits using standard wall plug-in receptacles.  6  2 Power Line Channels  25 Kv POWER LINE  010.9.00 Q.,  DISTRIBUTION TRANSFORMER TO RESIDENCE B 120V lit NEUTRAL ° 120V L20  r  r 1 1 I  L  RESIDENCE A i•-ME TER ..■-SERVICE PANEL . J  ...r...  CIRCUIT BREAKERS SWITCHES  1 ■ r• 4II ■ • w  LOADS WATER HEATER ^f\Ar--BRANCH CIRCUITS  Figure 2.1 Residential electrical power distribution  7  2 Power Line Channels  Electrical power is supplied to large appliances on special individual dedicated branches. Washing machines, refrigerators, dishwashers, and freezers all have their own 120V branch circuit. Appliances with large heating elements such as electric ranges, water heaters and clothes dryers usually require a 240V branch circuit. These appliances are connected to both 120V lines, and the neutral. The heating element within these appliances is connected directly across the two 120V lines while the motor (in the clothes dryer) is connected to a single 120V line and neutral. Commercial and industrial buildings are typically supplied with three-phase electrical power as indicated in Figure 2.2. In very large buildings, each floor may be supplied by separate three-phase transformers. Standard branch circuits consisting of a 120V line and a neutral line supply small loads. Larger loads are supplied by circuits that deliver either single-phase or polyphase power. 2.2 ATTENUATION  Attenuation is the amount by which a signal decreases in amplitude during transmission. Many resistive loads are normally attached to power lines in buildings; as a result the amount of attenuation will depend on number, types and location of loads. It is expected that industrial buildings will have higher attenuation than residential ones, and as the next two sections show, this is in fact the case. 2.2.1 Attenuation in Industrial Buildings  There have been a number of measurements regarding the attenuation characteristics of power lines [1,5,61 A brief synopsis of the measurements will be given here and only the major observations will be noted. It is agreed that the power line transmission characteristics resemble those of a low pass filter. The cut off frequency is typically located somewhere between 70 kHz and 150 kHz. Where it lies at any particular time is dependent on the loading profile of the line.  8  2 Power Line Channels  DISTRIBUTION TRANSFORMER  0  3 POWER LINES  /METER  I /CIRCUIT PANEL  1-1 i  (  \\■.-^  BRANCH CIRCUITS  Figure 2.2 Commercial/Industrial three-phase electrical power distribution  9  2 Power Line Channels  A set of transmission curves was obtained in [1] for the electrical engineering building at the University of British Columbia, which is classified as an industrial building. Several attenuation curves appear in Figures 2.3 and 2.4 where the symbol "L" means "local", the symbol "R" means "remote", the symbol "0" means phase, and the symbols "A,B,C" denote the three phases of a three phase power line. The measurements for Figure 2.3 were taken during working hours from 8:30-4:00, and the measurements for Figure 2.4 were taken after 6:00 PM. The term "local" refers to the power lines physically wrapped in the same cable, whereas "remote" refers to the power lines not connected to the "local" power cable directly. For each test in Figures 2.3 and 2.4 the receiver was connected to "local" phase B while the transmitter was moved to "local" and "remote" phase locations as indicated in Figures 2.3 and 2.4. There are several interesting observations based on Figures 2.3 and 2.4: (1) There is 5-7 dB attenuation from 30 to 70 kHz on "local" phase B; (2) There is 15-30 dB attenuation on "local" phases A and C; (3) All of the remote phases produce similar attenuation curves except for an underlying attenuation of approximately 25 to 30 dB; (4) There are no strictly narrow band dropouts in any of the curves; and (5) There is no frequency above 30 kHz where all of the power lines exhibit minimal attenuation of 5-7 dB. Overall, the graphs are consistent with expectations and can be segregated into three groups. The power line with the least attenuation is local phase B. Next in terms of attenuation are the local power lines, A and C. The highest attenuation levels are on remote A, B, and C lines. An explanation provided in [1] for the equality of the attenuation for the three "remote" phases A, B, and C is that such equality is due to signal leak-throughs from electrical equipment connected to different phases, and from capacitive coupling on transformer windings. This statement is supported by [43] which states that the impedance of power lines is determined by two parameters, the loads connected to the network and the impedance of the distribution transformer.  10  2 Power Line Channels  10  1^  2^ 10 frequency (kHz)  10 3  Figure 2.3 Attenuation during the work day in an industrial building [1]  ,^•^.^.^. -50,^ •^•^•^•^=^= • 1^ • 2^ 1 10 10 frequency (kHz)  . •  10  3  Figure 2.4 Attenuation in an industrial building at night [1] 2.2.2 Attenuation in Residential Buildings  A residential building is powered by a 110 V split single phase circuit. Because the two circuits are 180 degrees out of phase, one can be denoted as "phase 0," and the other as "phase 180." In the following three figures (Figures 2.5-2.7) the symbol "0 0" denotes a test condition where the receiver and the transmitter are both connected to the "phase 0" power line. Also, the symbol "0 180" denotes a test condition where the receiver is 11  2 Power Line Channels connected to the "phase 0" power line, and the transmitter is connected to the "phase 180" power line. Attenuation measurements for a residential building are shown in Figure 2.5. This figure shows that the cross-phase "0 180" test resulted in higher attenuation than the samephase "0 0" test. Figure 2.5 also shows a same phase test with a resistive load attached to the power line. This test is denoted by the symbol "0 0 R Load." As expected, the attenuation is larger in the "0 0 R Load" test than in the "0 0" test. The change in attenuation is approximately 4 dB.  10 1  ^  2^ 10 frequency (kHz)  10  3  Figure 2.5 Attenuation for residential in-building power line with resistive load [1] Results for cross-phase transmission in a residential building are shown in Figure 2.6. The symbol "0 180 R Path" denotes the cross-phase test with a resistive path connected between the "phase 0" and the "phase 180" power lines. As shown in Figure 2.6 there is a notable improvement of 3-5 dB in signal transmission capability when this resistive path is present. Figure 2.7 shows attenuation results in a residential building for same-phase "0 0" and cross-phase "0 180" tests over an extended frequency range to 600 kHz. The roll off for the "0 0" test occurs at about 400 kHz and at about 200 kHz for the "0 180" test.  12  2 Power Line Channels  10 1  ^  2  10  ^  frequency (kHz)  1 03  Figure 2.6 Attenuation across phases in residential power lines [1] A notable difference between the industrial and residential attenuation graphs is that both the same-phase and cross-phase attenuations have larger bandwidths in a residence than in an industrial building. The residential power lines have less attenuation because the electrical loads draw less power than those in an industrial building. 2.3 NOISE The results of a study of the error characteristics in an industrial setting are summarized in [5] for bit rates from 1.2 kbps to 38.4 kbps using a carrier of 115 kHz. Tables 2.1-2.3 contain statistics on error free lengths using a PSK modem [5]. To interpret Tables 2.1-2.3 consider Table 2.3. This table contains data for 4.8 and 1.2 kbps tests. Under the "1.2 kbps" heading of Table 2.3 are two tests that produced bit error rates of 9.6E-04 and 3.0E-03. The entries under the "9.6E-04" column yield the following conclusions: (1) — 25% of the error free lengths were of lengths at most 550 bits long; (2) — 25% of the error free lengths were of lengths 2000 bits and over; and (3) — 50% of the error free lengths were of lengths between 550 and 2000 bits.  13  2 Power Line Channels  2^ 10 frequency (kHz)  10 3  Figure 2.7 Residential power line bandwidth [11 PerGentile 25% 50% 75%  Error Free Length in Bits 38.4 Cross Phase 38.4 Same Phase 6.60E-04 1.30E-03 5.20E-03 3.50E-04 1.20E-03 5.30E-03 BER 120 900 1100 500 200 2000 270 1900 1500 1200 300 3000 2100 400 3000 500 2000 5000  Table 2.1 Error Free Lengths for 38.4 kbps, Industrial Building Error Free Length in Bits Per19.2 Cross Phase 19.2 Same Phase Gentile 4.9E-04 1.2E-03 2.3E-03 4.8E-03 4.0E-04 1.2E-03 2.8E-03 4.8E-03 BER 170 25% 300 1000 600 650 300 170 1200 500 300 .50% 2000 1000 1000 2100 600 300 75% 3500 500 1900 800 1700 4000 900 500  Table 2.2 Error free lengths for 19.2 kbps, industrial building Error Free Length in Bits Per1.2 kbps 4.8 kbps centile 4.2E-04 1.4E-03 3.0E-03 4.1E-03 9.6E-04 3.0E-03 BER 550 25% 250 600 230 370 220 50% 1300 1100 400 600 400 300 75% 3100 1100 610 500 2000 700  Table 2.3 Error free lengths for 4.8 and 19.2 kbps, industrial building To further interpret this information, Table 2.4 was constructed. It contains all the information from Tables 2.1-2.3 but lists the data in order of bit error rate (BER). It also 14  2 Power Line Channels  includes a column for the percentage of single bit errors (ie. of all the errors that occur: single, double, triple, etc., what percent are single). Note that a single bit error is one which is immediately preceded and followed by at least one correctly received bit.  BER 3.5E-04 4.0E-04 4.2E-04 4.9E-04 6.6E-04 9.6E-04 1.2E-03 1.2E-03 1.2E-03 1.3E-03 1.4E-03 2.3E-03 2.8E-03 3.0E-03 3.0E-03 4.1E-03 4.8E-03 4.8E-03 5.2E-03 5.3E-03  Error Free Lengths and Single Bit Errors Percent of Percentile Single Bit Err 25 50 75 98 5000 3000 2000 96 2100 4000 1200 96 1300 3100 600 99 2000 3500 1000 95 1900 1100 3000 70 550 1100 2000 96 1000 600 1700 94 1900 650 1000 2100 93 1500 900 90 1200 2000 500 91 1100 370 600 900 94 300 600 86 300 500 800 84 220 400 610 55 250 400 700 83 230 300 500 300 170 78 500 76 170 300 500 65 200 300 500 70 120 400 270  Test Condition 38.4 cross 19.2 cross 4.8 19.2 same 38.4 same 1.2 19.2 same 19.2 same 38.4 same 38.4 same 4.8 19.2 same 19.2 cross 4.8 1.2 4.8 19.2 same 19.2 cross 38.4 same 38.4 cross  Table 2.4 Summary of Tables 2.1-2.3 with single bit errors From Table 2.4 it should be noted that the error free lengths for the 25, 50, and 75 percentiles decrease as the BER increases. This is as expected since the larger BER will cause more errors in the data. This larger number of errors implies that any two errors will be separated by a smaller number of bits. The predominant type of error is the single bit error. In some cases single bit errors comprise 98 percent of all errors. In Table 2.4 it is interesting to compare entries 5 and 6. The former (38.4 kbps, BER of 6.6 x 10 -4) has a single bit error percentage approaching 95% and the latter (1.2 kbps, BER of 9.6 x 10 -4 ) has only 70% of single bit errors. This suggests that noise impulses must be of sufficient duration to corrupt the shorter 38.4 kbps bit but not the longer 1.2 kbps bit.  15  2 Power Line Channels  Many different types of appliances produce noise. Relatively low noise levels result from induction motors, florescent lighting, and other appliances at the frequency range up to 100 kHz when compared to the noise levels of light dimmers [6,43] and universal motors. Television receivers produce a significant amount of noise at harmonics of the 15734 Hz horizontal line rate [26]. A solid state light dimmer can be used with up to 100 watts of incandescent lighting to provide continuously variable lamp brightness. The dimmer is wired in series with the incandescent lights and controls lamp brightness by switching on and off rapidly through the use of triacs. Universal motors are found in vacuum cleaners, mixers, blenders, sewing machines, sanders, drills, and saws. Universal motors contain brushes, and their performance is similar to that of do motors: when a load is placed on the motor, the speed decreases; and when the voltage to the motor is increased, the speed increases. The noise generated by motors with brushes has a random amplitude and frequency and can cause radio interference. The noise spectrum of the light dimmer is approximately 25 dB greater than the universal motor at 100 kHz [26,43]. It has been shown that forward error correction is an effective means to combat errors on power line communication channels [23]. 2.4 SIGNAL FADING At times, periodic 120 kHz signal fading is observed on power line channels [6]. Fading occurs on same-phase and cross-phase channels, with cross-phase channels occasionally producing severe fading. One cause of fading is rectifier circuits within power supplies. When a rectifier turns on, either once or twice during a 60 Hz cycle, it places a large capacitance directly across the power circuit. This causes the impedance seen by a power line coupled transmitter or receiver to change at a 60 or 120 Hz rate. Since the signal voltage is developed across this time varying impedance, the signal becomes amplitude modulated at a 60 or 120 Hz rate [43]. 2.5 POWER LINE LOADING The number of appliances connected to an electrical power distribution network constantly changes. Streetlights, air conditioning, electric public transport, and electric steel mills all contribute to the distribution network's loading characteristics. Figure 2.8 shows the loading profile of a distribution network during a typical day [50]. This figure contains curves for industrial, commercial, domestic, and total system electric power 16  2 Power Line Channels  loading. This figure shows periods of increased system power consumption at 12:00 pm, 3:00 pm, and 6:00 pm. Minimum power system power consumption occurs during the night from 2:00 am to 7:00 am.  Industrial Commercial  Figure 2.8 Distribution network load profile during one day [50] Figure 2.8 indicates commercial power loading increases to its maximum at 10:00 am and remains constant until 5:00 pm when it decreases to its minimum. Typical commercial customers include retail businesses, financial institutions, and commercial office real-estate. Industrial customers tend to use the most power at 8:00 am. The industrial load also increases at 12:00 pm and 4:00 pm. Domestic users consume the largest overall amount of power. Figure 2.8 shows increases of load for domestic users at 8:00 am, 12:00 pm, and 6:00 pm which is when it attains its maximum. A daily load profile [50] for Saturday through Friday for a distribution system is contained in Figure 2.9. This figure shows the hourly trends in Figure 2.8 occur consistently throughout the work-week. Power consumption is much less during weekend periods than during Monday to Friday.  17  2 Power Line Channels  SME - storage 7;^A^4^4^A  -:^i^A^■  N.^.^.^■^■ 9 I^1  Y^  Hydro pumped-storage  a.  25  1  ta t So^Su^Mo  we  Tu  Th  Fr  Figure 2.9 Distribution network load profile during one week [50] The amount of noise and attenuation on a power line is generally related to the number and types of loads connected to the power line. An increase in loading will tend to increase the noise level and attenuation [43]. Although Figures 2.8 and 2.9 are loading profiles for entire distribution networks, the loading profiles of individual buildings can be expected to be similar in profile.  18  3 Hardware Architecture  3 Hardware Architecture—Design and Implementation  3.1 OVERVIEW OF MODEM HARDWARE ARCHITECTURE  The microcontroller-based modem designed, implemented and tested as part of this thesis work is conveniently sectioned into two major parts: the receiver and the transmitter. Neither of these two parts can function alone. Each part needs the essential signals supplied by other common components. These support components are described in Section 3.2 and include the power supply, clock generator, control circuitry, and host interface. All schematics are found in Appendix A. The transmitter and receiver hardware design and implementation are described in Sections 3.3 and 3.4, respectively. The modem was designed to facilitate digital implementation and eventual realization using VLSI technology. A modular architecture was developed, to enable selection or variation of important modem parameters, with minimal impact on most components and subsystems. Many operational changes are realizable by changing microcontroller software. The following modem subsystems, described in detail below, are realized digitally: clock generator, microcontroller, host-modem interface, BPSK modulator (exclusive of the operational amplifier), Costas loop, bit synchronizer and integrate and dump detector. Analog subsystems include the line-coupling network, transmit power amplifier, transmit lowpass filter, receive bandpass filter and power supply. Some of these analog subsystems could be realized using ASIC technology. 3.2 TRANSMITTER AND RECEIVER SUPPORT COMPONENTS 3.2.1 Power Supply  The power supply shown in Figure A.9 uses a bridge rectifier to convert the power line AC 110 V to its positive and negative DC components. Three regulators convert these DC values to +5, +12, & -12 V which are appropriate modem power supply voltages.  19  3 Hardware Architecture  3.2.2 The Clock Generator The clock generator is shown in Figure A.4. Two signals are generated by the clock generator: Tx Data Clk and Baud*24. The Tx Data Clk signal is used by the microcontroller to clock the transmit bit into the transmit latch of the modulator. The Baud*24 signal is used as a sampling signal by the integrate-and-dump filter circuitry (Figure 3.17). The clock generator generates the Baud*24 signal by dividing the 14.7456 MHz signal three times: 14.7456 MHz + 16 + 6 (1, 2, 4, or 8). The 74HCT164, 74HCT92, and 74HCT393 function as the three dividers.  3.2.3 A Description of the Microcontroller Control Pins The purpose of this section is to provide an explanation of the control signals which interface to the microcontroller in the control unit. The control unit is shown in Figure A.2 and consists of three chips: an Intel 8-bit microcontroller 80C31BH-1; an 8-bit address latch 74HCT374; and a 128 kbit (16 kbyte) ultra-violet light erasable electrically programmable read only memory, 27128A EPROM. The microcontroller fetches instructions from the EPROM and executes them. The EPROM contains the microcontroller's firmware. The microcontroller is clocked by a 14.7456 MHz oscillator. Hence, the machine cycle of the microcontroller is 14.7456 MHz s 12 = 1.2288 MHz because 12 clock cycles are required for the inner functioning of the microcontroller instruction cycle which involves fetch, decode and execute operations. The microcontroller uses 18 pins to interface with the address latch and EPROM. These pins are: Pins 39-32 (ADO-AD7): contain the lower order byte of the address sent to the EPROM. These 8 lines also function as the microcontroller's data bus. Pins 39-32 are known as port 0 of the microcontroller. Pins 21-28 (A8-A15): contain the higher order byte of the address sent to the EPROM. Pin 30 (ALE/ P ): contains the address line enable signal for the address latch. The address latch will output an address to the EPROM when this signal is high. Pin 29 (PSEN): contains the program store enable. The EPROM will output data onto the data bus when this signal is low.  20  3 Hardware Architecture  The microcontroller uses 12 pins for controlling the modem hardware. These pins Pins 2 & 8 (BaudO & Baudl ): control the baud rate. These two  pins are connected to the multiplexor, 74HCT153, in the clock generator circuit (Figure A.4). BaudO & Baudl can select one of four baud rates: 19.2, 9.6, 4.8, or 2.4 kbps. Pin 1 (Tx Bits): sends the current bit to the modulator. Pin 4 (RxITx*): controls the relay in the coupling network. If the signal is high/low the transmitter is not connected/connected to the channel. In other words if the Rx/Tx* signal is high/low the modem is in receive/transmit mode. Pin 7 (DCD): is set high when the microcontroller detects the BPSK data carrier. (Aside: In our modem the carrier signal is 115.2 kHz.) The DCD signal is sent to the host via the host interface. Thus, the host may implement carrier detection in its communication protocols. Pin 3 (Sync Detect): is set high whenever the microcontroller detects a synchronization sequence. The synchronization sequence is sent at the beginning of every packet as shown in Figure 4.7 in Section 4.3.1. The Sync Detect signal is used for debugging and performance testing purposes. Pin 12 (Rx Bits): receives the demodulated signal from the bit synchronization circuitry. Pin 14 (Baud*24): receives the baud x 24 signal from the clock generator circuitry. The Baud*24 signal is used to sample the Rx Bits signal as shown in Figure 3.17. Pin 13 (Bit Sync): receives the bit synchronization signal from the bit synchronization circuitry. The Bit Sync signal is used to control the integrate and dump filter described in Section 3.4.4. Pin 15 (Tx Data C1k or TxC (DTE)): receives the transmit clock from the clock generator circuitry. This signal provides the bit timing for the modem transmitter. Pin 5 (RTS): is reserved for Request To Send information and is currently unused.  21  3 Hardware Architecture Pin 6 (CTS): is used to send Clear to Send information to the host. The use of the CTS signal is described in Section 4.3.4. The microcontroller uses 2 pins for communications with the host. These pins are: Pin 11 (TxD): is used for transmitting data (bytes) to the host in asynchronous format. Pin 10 (RxD): is used for receiving data (bytes) from the host in asynchronous format. 3.2.4 The Host/ Modem Interface The host and modem are interfaced to each other via a standard RS232 connection. The interface is depicted in Figure A.10. Two microelectronic chips are used to make the TTL-RS232 signal conversion; the 1488 chip converts TTL to RS232, and the 1489 chip converts RS232 to TTL. A DB25 connector is used for external access to the RS232 signals. 3.3 MODEM TRANSMITTER HARDWARE The transmitter consists of several parts, including modulator, transmit lowpass filter, and power amplifier. 3.3.1 BPSK Modulator The modulator, shown in Figure A.4, gets its clocking signal Tx Data Clk from the clock generator, its data Tx Bits from the microcontroller, and the control signal Rx/Tx* from the microcontroller. The modulator sends its output Tx Signal to the transmit low pass filter. The 115.2 kHz BPSK carrier is generated as a staircase sine wave. The serial-in parallel-out shift register chip 74HCT164 receives a 1.8432 MHz clock signal and divides the signal by 16 to produce a set of 8 parallel waveforms. The waveforms are depicted in Figure 3.1. Each of these 115.2 kHz waveforms is passed through a resistor. As shown in Figure A.4 the outputs of the 8 resistors are summed. The output signal of the summing circuit is an approximation to a sine wave.  22  3 Hardware Architecture  A waveforms I  a1 b —I c d e  I  L__  g h  I^I^I^I^I^I^1^I^I^I^I^I^I^I^I II 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 n (time) -  Figure 3.1 Output of shift register 74HCT164 in modulator circuit To select the values of the resistors to generate the sine wave carrier, consider Table 3.1. This table lists in its second column the sum of the unweighted 8 parallel waveforms denoted as sum(a,b,...,h)=a[n]+b[n]+dni i dftd+e[n]+f[n]+g[n]+kni. We notice that sum(a,b,...,h) increases for n=0,...,8 and decreases for n=8,...,15. The third column of Table 3.1 lists the values of a cosine signal: cos(360n/16) + 1. This cosine signal has a behavior similar to sum(a,b,...,h). The cosine signal increases for n=0,...,8 and decreases for n=8,...,15 . If we assign a weight to each of the 8 parallel waveforms a h, we can equate columns two and three of Table 3.1. The appropriate equation is shown below, where A H are the weights assigned to waveforms a h in Figure 3.1. - -  -  -  -  -  Aainl+Bb[n]+Cdni+Dd[n]+Ee[n]+Ff[n]+Gg[n]+Hh[n] = -cos(360n116)+1 n 0 1,15 2,14 3,13 4,12 5,11 6,10 7,9 8  sum(a,b,...,h) 0 1 2 3 4 5 6 7 8  -cos(360n116) + 1 0.000 0.076 0.293 0.617 ^ 1.000 1.383^J 1.707 1.924 2.000  Table 3.1 Shift register waveforms: unweighted and weighted  23  3 Hardware Architecture  Solving for the weights A-H yields: A=H=0.07612, B=G=0 216, C=F=0 3244 , and D=E=0.3827. The values for the resistors R a ,...,R g in Figure A.4 in terms of Rh are as follows: R a =Rh; Rb=R g =AIB=0 .3 5 1Rh; R e =Rf=AIC=0.234Rh; and Rd=R e =AID=0.199Rh. The resistor Rh is set to 100 Ica Figure 3.2 shows the synthesized sinusoidal waveform. ideal . _ _ synthesized  1 0 -1  10 30 50 70 90 110 130 150 170 190 210 230 250  n Figure 3.2 Synthesized sinusoidal carrier 3.3.2 The Transmit Low Pass Filter  Figure 3.3 shows an active second order Butterworth low pass filter which is also referred to as a Sallen-Key circuit [9]. The method used to calculate the values for the capacitors and resistors is described below.  Figure 3.3 Second order Butterworth LPF  24  3 Hardware Architecture For a second order filter R a and Rb must satisfy the equation Q — 2RRac!Rb ' for Q=0.71. A solution to this equation is Ra = 8250 a and Rb = 4870 D. The capacitors Cl and C2 are set to 100 pf. The resistors RI and R2 are frequency scaled to yield the desired cut-off frequency fo using the following relationships: R new = km Rold Cold = km kf Cnew kf = 2xfo where Cold = Rold = 1, fo = 139 kHz, Cnew=100pf. Thus, km = 11842 and Ri=R2=Rnew = 11.8 kQ. The notation "old" in Cold and Rold denotes the values that the resistors and capacitors have before the above frequency scaling, and the notation "new" denotes the values of the components after frequency scaling. Figure A.7 shows the low pass filter with the above calculated values.  3.3.3 The Power Amplifier The power amplifier circuit shown in Figure A.8 is taken from the application notes for the power amplifier LM384 [13]. The amplifier circuit has a variable resistor for changing the gain of the amplifier for performance tests described in Chapter 5. The amplified signal is sent from the amplifier first through the relay, then through the 1:1 transformer, and finally onto the power line. The relay is closed by the Rx/Tx* signal from the microcontroller. Because the relay must be activated by a high current, the Rx/Tx* signal is passed through the 7406 high-current driver chip shown in Figure A.B. 3.4 MODEM RECEIVER HARDWARE The receiver consists of several sections which are described in the order which the signal flows through them from the power line channel. This order is the line coupling network, receive bandpass filter, Costas loop demodulator, bit synchronizer, and modem control unit. 3.4.1 Line Coupling Network The line coupling network is shown in Figure A.B. The received signal enters the modem though the AC plug. The signal passes through the 1:1 transformer to the receive band pass filter in Figure A.6.  25  3 Hardware Architecture 3.4.2 Receive Band Pass Filter The fourth order Butterworth filter [9] shown in Figure A.6 consists of two cascaded second order filters. A second order Butterworth filter is shown in Figure 3.4.  Figure 3.4 Second order Butterworth band pass filter The two criteria used to select the resistor and capacitor values in the second order filter are bandwidth BW=56 kHz and centre frequency fo =115 2 kHz. The capacitors are conveniently fixed at 1 nf. Using the bandwidth and centre frequency criteria, the values R2 =5.6 kS2 and R 1 =31752 can be found from the following equations: BW —  1 2^1 ^2 27r R2C 2 ir R2 10 9 -  ^1^1 "— 27r CVIri - R2 2n 10 -9 -Nil?, R2 f.  The resistors Ra and Rb are connected to the front of the second order BPF and R a Rb implement a voltage divider such that R a Rb = R1 or R1 = Ra Rb . The choices Ra = 2700 D and Rb = 36012 are convenient and satisfy this equation. 3.4.3 The Costas Loop The Costas loop shown in Figure 3.5 is a well-known method of retrieving a BPSK carrier and demodulating the signal simultaneously. Because there is no carrier component in the BPSK signal on which to lock, a conventional phase lock loop cannot be used. The frequency spectrum of the BPSK waveform is symmetric about its carrier frequencyfc and this property is used to synchronize the locally generated carrier [10,25]. The BPSK carrier may also be recovered using a squaring loop [34]. With such a loop the received BPSK signal must be multiplied with the local carrier signal and filtered to obtain the baseband information signal. 26  3 Hardware Architecture  The Costas loop has several variations. One variation involves the use of a hard limiter in the bandpass filter preceding the loop. This hard limiter replaces automatic gain control (AGC) circuits which are used to maintain a constant signal level into the receiver's front end so that linearity of receiver operation is maintained [49]. Another variation involves the use of a hard limiter in the in-phase channel of the Costas loop [47]. This hard limiter allows the designer to replace the third multiplier (shown in Figure 3.5) with a chopper. The variation that was implemented in our modem uses hard limiters in both inphase and quadrature-phase channels of the Costas loop. Before this variation is explained, the workings of the general Costas loop is described briefly. As illustrated in Figure 3.5, quadrature components of the local carrier multiply the received signal which is then passed through a low pass filter to remove the frequency component at 2fc . The resulting quadrature signals are multiplied together to isolate the error signal Oe— Sin(0e). The voltage controlled oscillator (VCO) uses this error signal to adjust the local carrier phase. An aberration of BPSK signalling is that there is a 180° phase ambiguity in the recovered carrier. Because of this uncertainty we cannot be sure whether we are receiving m(t) or -m(t) from the Costas loop. There are two ways of removing this ambiguity [10]. The first way is to send a known test sequence over the channel before the information packet so that a sense of the transmitted signal's polarity can be determined. The second method is to use differential coding and decoding. The BER of differentially encoded BPSK is approximately 1dB worse than uncoded BPSK. Our modem uses a test sequence (or preamble) to determine data polarity and is discussed in Section 4.4.1. The Costas loop demodulator can also be implemented digitally (Figure 3.6), with a digital loop filter chip replacing the LPF and VCO, and with choppers replacing the two multipliers labelled 1 and 2 in Figure 3.5. Multiplier 3 in Figure 3.5 is replaced with an XOR gate as illustrated in Figure 3.6. Figure 3.6 can be termed a digital Costas loop [11]. Figure A.5 contains the fmal implementation of the demodulator.  27  3 Hardware Architecture vl (t) =-f A c A„ m(t) cos(Oe t)  s(t) = m(t) cos(wc t)  I A o sin(wc t + Oe  )  2^v2 (t) = 1 A c A 0 m(t) sin(Oe t) Figure 3.5 BPSK Costas loop demodulator  Figure 3.6 Digital Costas loop In Figure 3.6, we replaced multipliers 1 and 2 with two choppers. It will be shown next that for practical considerations this replacement is valid . A chopper with an input s(t) that is triggered by a square wave c(t) produces an output which is identical to multiplying the signal s(t) by c(t) [101 The square wave c(t) is periodic with period To , and is represented as follows during the time interval [(k-1)To , kTo], where k is any integer: c(t) =  A, (k-1) To < (k-iff) T o -A, (k-2)^< k T o  Function c(t) has Fourier transform nr--00  C(f) = ECn 6(f-nfo) 28  3 Hardware Architecture  where  Cn =  .A ./ "  n=odd  o,  n otherwise  Pi= co  The magnitude /C(/)/ = DC n1 8(f-nfo) is shown in Figure 3.7. n=0  A 2A 2A  2A 3-rr 2A  7; fo  310^S.fo^7.f0  Figure 3.7 Spectrum of square wave c(t) Because the received signal has a bandwidth less than fo , the spectrum W(f) of the output w(t) of the chopper is ^w (t) = c(t) s(t) •=,1V(f) = C(f)*S0 =^n 8(f-nfo) *  It follows that W(f) = CIS(ffo) + C3S(f 3f0) + C5S(f-5f0) + The first term C/ S(flo) is exactly that which occurs when multiplying s(t) by the carrier signal of frequency fo using an analog multiplier. The higher order components are removed by the LPF. Therefore, replacing multipliers 1 and 2 in Figure 3.5 with the two choppers is a valid replacement. The loop filter chip 74HCT297 is the heart of the carrier tracking loop. The functionality of the chip is shown in Figure 3.8. The modulo counter (random walk filter [33]) is triggered by the clock signal and is controlled by the up/ down signal. If the counter overflows, then the ins line is set. If the counter underflows, the del line is set. The insert/delete circuit is triggered by the clock signal. This circuit outputs pulses at a rate of clock ÷ 2. When the ins line goes high the insert/delete circuit inserts an extra pulse in  29  3 Hardware Architecture its output. When the del line goes high the insert/delete circuit deletes a pulse from its output. Figure 3.9 shows the clock/2 pulses signal with an inserted and a deleted pulse.  clock/2 pulses  up/down modulo counter  insert/ delete  from I arm from Q arm  del ^  clock clock Figure 3.8 Block diagram of loop filter chip clock clock/2 pulses deleted pulse  inserted pulse  Figure 3.9 Inserted and deleted pulses of the loop filter chip The bandwidth of the loop filter chip is set by the four input control lines of the counter. These lines are able to set the modulus m of the counter to values between 23 and 2 17 . Because the clock=14.7456 MHz, the maximum number of inserted and deleted pulses is 14.7456 x 106 m  — extra pulsesIsecond.  Therefore the range of pulses generated is clock^ 14.7456 x 10 6 ± 14.7456 x 10 6 2 ± extra pulses/second —^ 2^ Since the output of the the loop filter chip is divided by 64 (Figure A.5), the local carrier square wave will have a frequency range of  2 115.2 • (1 ±— m IcHz Thus, the bandwidth can be chosen within the range of 1.75 Hz to 28.8 kHz. A small (or narrow) bandwidth will track the carrier very closely producing a small phase jitter, and performs well under low SNR conditions. Conversely, a large bandwidth will produce a local carrier with a large amount of phase jitter. There is one disadvantage to a  30  3 Hardware Architecture very narrow bandwidth; a carrier recovery loop with a very narrow bandwidth will take a long time to lock onto the signal. To choose the best bandwidth one must compromise between phase jitter and lock (or acquisition) time. The amount of phase jitter can be estimated by recording the modem's BER performance under noisy conditions. These BER results are shown in Figure 3.10. Similarly, the length of acquisition time can be estimated by tabulating the percentage of packets which are lost (see Section 5.1) as shown in Figure 3.11. 10  0  10  -1  10  -2  10 10 10 - 6 10 -7  •  10  •^•^• 01  0  WI^•^•  10  If • 0-1-11  VI^•^II -•^05'1^r^-0- • 11 • II 11,11^•^• • •  1^102^103^ Bandwidth (Hz)  If • •111  10  5  Figure 3.10 BER vs loop filter bandwidth 70 60 50  k^40 30 20 10 0  •  10  0  If^• • IV  ••^  10  .^  •^•  II • •  1^  V  I^•^•  •••••1  102^103 Bandwidth  If^• •^• • •Iri^•^• •^If • UN  104  Figure 3.11 Percent lost packets vs loop filter bandwidth  31  5  10  3 Hardware Architecture  Figure 3.10 shows that BER stays fairly constant at 8 x 10 -4 until the loop bandwidth is increased above 7200 Hz, at which point the BER increases rapidly with further bandwidth increase. Figure 3.11 shows that bandwidth values between 1800 and 7200 Hz produce minimal lost packet percentages. Based on these two ,results, a bandwidth of 1800 Hz was selected. As shown in Figure 3.5, the in-phase arm of the IQ demodulator will produce the demodulated bit stream. This bit stream (Rx Bits signal) is used as an input to the bit synchronization circuit. 3.4.4 Bit Synchronization Circuit  It is assumed in addition to carrier phase and frequency knowledge that the receiver has accurate knowledge of when an incoming symbol started and when it is finished. This knowledge is required in order to know the proper symbol integration interval. Clearly if the receiver integrates over an interval of an inappropriate length, or over an interval that spans two symbols, the ability to make accurate symbol decisions will be degraded [25]. Timing information is usually derived from the data signal itself and based on some meaningful optimization criterion which determines the steady-state location of the timing instants. A distinction can be made between three different kinds of methods [27]. The first class of synchronizers is transition based. The threshold crossings of the received baseband signal are compared with the sampling phase. A correction of the sampling phase is initiated as a result of this comparison. The mean location of the crossings is estimated and the optimum sampling instant and maximum eye opening are assumed to be halfway between these crossings. These synchronizers are also called early-late or split-gate synchronizers [23]. The second class of synchronizers uses a signal derivative at the sampling instances. This derivative, or at least its sign, is usually correlated with the estimated data to produce the updating information required for the timing loop. These synchronizers include data-directed and decision feedback loops A third class of symbol synchronizers uses nonlinear processing to generate and filter out a spectral line at the clock frequency. The nonlinearity is generally supplied by a square law device.  32  3 Hardware Architecture The early-late gate is one of the most popular symbol synchronizers because of its simplicity and is the synchronizer of choice here. The all-digital bit synchronization circuit appears in block diagram form in Figure 3.12 and is detailed in Figure A.3. Often a sequential filter (also known as a random walk filter) is inserted between the phase detector and counter [28,33] to narrow the synchronizer's bandwidth.  Rx Bits ---110  Phase Detector  Bit Sync 1.--01'  uP ^  down  counter  4. Baud*24  111  Figure 3.12 Bit synchronization circuit Figure 3.13 contains the waveforms of Figure 3.12 when the Rx Bits and Bit Sync signals are not synchronized. The vertical dashed lines denote the local bit boundaries set by the falling edges of the Bit Sync signal. The bit synchronization circuit synchronizes these bit boundaries with transitions in the Rx Bits signal. The left half of Figure 3.13 shows a received bit of the Rx Bits signal that is "early." The bit synchronization circuit will respond to the "early" bit by setting the up signal. When the up signal is high the counter outputs the Bit Sync signal at a slightly higher frequency. Thus, the Bit Sync signal will "move" to the left until the Bit Sync's boundaries match the boundaries of the received bits in the Rx Bits signal. The right half of Figure 3.13 depicts the reverse situation whereby the received bit is "late."  Bit Sync Rx Bits _.J up  early  late  ^71_  down Figure 3.13 Non-synchronized bit stream A perfectly synchronized Bit Sync signal is shown in Figure 3.14.  33  3 Hardware Architecture Bit Sync^ i^: Rx Bits _I bit  L____  up down  Figure 3.14 Perfectly synchronized bit stream The bit synchronization circuit adjusts the Bit Sync signal by stretching or shrinking the high part of the Bit Sync signal. The Bit Sync signal can be one of the waveforms shown in Figure 3.15 (the numbers 11, 12, & 13 represent the number of cycles of the Baud*24 signal shown in Figure 3.12). The Bit Sync signal can be either 23, 24 or 25 cycles of the baud*24 signal which implies that the synchronizer's bandwidth is approximately 0.08 times the bit rate. Thus, the Bit Sync signal will be perfectly synchronized within 12 transitions of the Rx Bits signal. 12  12  12  13  12  11  12 12 12  up=down up=0, down=1 up=1, down=0  Figure 3.15 Bit Sync waveforms for different up/down values Because the Bit Sync signal can be synchronized even under noisy conditions as shown in Figure 3.16, the recovered bit clock should not appreciably degrade the performance of the receiver. Bit Sync  noisy  Rx Bits  Figure 3.16 Noisy bit stream The Rx Bits and the Bit Sync signal are processed by the receiver's final stage which is the integrate-and-dump filter.  34  3 Hardware Architecture  3.4.5 Integrate-and-Dump Filter and Host Interface The digital integrate-and-dump filter [10] is located inside the microcontroller and is shown in Figure 3.17. bit stream or Rx Bits  Sample "received" values & Hold  Integrator  t  reset  Bit Sync  Figure 3.17 Integrate and dump matched filter This filter is all-digital and is implemented via hardware and firmware using the three input signals: Rx Bits, Baud*24, and Bit Sync. The first two signals are connected to Timer O. (Two hardware timers are located in the microcontroller: Timer 0 and Timer 1.) Timer 0 is set to a mode for measuring the length of pulses [18]. This mode causes Timer 0 to be clocked by Baud*24 whenever the Rx Bits signal is high. Timer 0 is read and reset to zero by the firmware on the falling edge of the Bit Sync signal. The effect of this procedure is to sample the Rx Bits signal 24 times per bit interval. Section 4.4 describes the method used to determine whether the "received" value read from Timer 0 is a 1 or O. The microcontroller buffers up eight "received" bits and sends them to the host on the TxD line shown in Figure A.2. The bits are sent at a baud rate of 38.4 kbps using asynchronous serial communication.  35  4 Firmware Design  4 Firmware Design and Implementation  4.1 OVERVIEW OF MODEM FIRMWARE ORGANIZATION  Use of a microcontroller provides flexibility needed to easily vary important modem parameters, without alterations to hardware. Such parameter changes are realizable using software resident in a host microcomputer interfaced to our modem. An important design consideration is the allocation of data link layer functions between the host and microcontroller. Our division of tasks maximizes the flexibility of the packet structure, while keeping communication-related tasks performed by the host to a minimum. Packet flexibility is useful, to enable service of different communication applications. The microcontroller uses random access memory (RAM) and read only memory (ROM). This RAM consists of 128 bytes located on the microcontroller. The microcontroller stores its program variables in this RAM. The ROM, located on the EPROM, consists of 16 kbytes. The microcontroller reads instructions from the EPROM and executes them. These instructions comprise the modem's firmware. The firmware code is separated into the initialization module, the transmit module, and the receive module. The initialization module initializes the modem's parameters, the transmit module sends bits to the modulator, and the receive module receives bits from the demodulator. This chapter describes these three modules in detail. The term "mode" is used to describe the fact that the microcontroller is executing instructions found in a certain module. Figure 4.1 illustrates the three modes in the firmware. The phrases "data is sent up to the host" and "data is sent down from the host" are used throughout this chapter. The phrases originate from the Open Systems Interconnection (OSI) reference model (see Figure 4.2) within which the modem occupies the lowest layer and the host occupies the higher layers [10]. When the host wants to transmit a packet it sends the packet "down" to the modem. The modem receives this packet and transmits it over the power line. Similarly, when the modem receives a packet from the power line, the modem sends the packet "up" to the host. 36  4 Firmware Design  e  ncleodem in ( ive mode  <  received two chars) from the host ( no  two chars = "DLE I" ?  modem in^modem in smit mode^initialization mode) Figure 4.1 Overall view of modem firmware Layer 7 6 5 4 3 2  HOST A  Application Presentation Session Transport Network Data link Physical  logical connections  -41111-  -1111B-  .4111-  - -Ow  +10-  -  HOST B  Layer  Application Presentation Session Transport Network Data link Physical  7 6 5 4 3 2 1  physical channel 1.44-Figure 4.2 OSI reference model Channel communication between transmitter and receiver can be one of three types, asynchronous, synchronous, and intermittent synchronous [24]. An asynchronous bit pipe is one in which individual characters are framed (start, stop bits). This asynchronous technique is not useful for very high data rates. A synchronous bit pipe is one where bits within a character are sent at a fixed rate but successive characters can be separated by variable delays. Dummy bits are sent during idle time. This synchronous technique is useful when high data rates are not important. An intermittent bit pipe is one where the data link layer of the data terminal equipment (DTE) supplies bits synchronously to the modem when it has data to send, but supplies nothing when it has no data. Thus the modem must  37  4 Firmware Design  distinguish between 0, 1, and idle. The capability to transmit nothing is very important for multi-access channels [24]. 4.2 MODEM INITIALIZATION MODULE  The modem contains many parameters which may be initialized from the host computer. This initialization must be performed at the beginning of a communication session. To initialize the modem, the host sends the modem a data link escape character followed by an "I". These two characters are represented as "DLE r. When the modem receives "DLE r it enters the initialization mode. In this mode commands shown in Figure 4.3 are sent between the modem and its host. The command "B", sent from the host, changes the baud rate at which bits are transmitted over the power line by the modem. The rates available are 19.2, 9.6, 4.8, and 2.4 kbps. The parameters accessed by the commands "C", "S", and "K", sent from the host, are explained in later sections of this chapter. The commands "?", "Q", "P", and "V" send information from the modem to the host. When the modem receives the "R" command from the host, the modem leaves the initialization mode and returns to the receive mode. ? -- print help information C -- set data carrier detection threshold S -- set synchronization word L -- set data link escape character Q -- print user selectable parameters K -- set the start of packet indicator B -- set the baud rate P -- print the baud rate ^ -- print the firmware version number Z -- reset the modem R -- leave the initialization mode and go to receive mode Figure 4.3 Commands sent to the modem by the host during initialization 4.3 MODEM TRANSMIT MODULE  Figure 4.1 showed that the modem makes a decision when it receives two characters from the host. If the two received characters are "DLE I", the modem switches to initialization mode. If the two received characters are not "DLE I" the modem switches to transmit mode. 38  4 Firmware Design  The transmit module performs physical layer as well as data link layer functions. The physical layer functions are performed by manipulating hardware signals. The data link layer functions are performed entirely within the microcontroller. Figure 4.4 shows the data link layer functions which the microcontroller performs. Figure 4.5 illustrates the transmit module's physical layer functions. Because the data link functions are much more complex than the physical layer functions, discussion of the transmit module will concentrate on the data link layer. bytes to physical layer  attach preamble  bytes  transmit buffer  packets from host  Figure 4.4 Transmit module data link layer functions bit stream to modulator  byte to bit serialization  bytes from data link layer  Figure 4.5 Transmit module physical layer functions A block diagram of the transmit module is shown in Figure 4.6. As seen in this figure the first function performed by the modem is to reset the RxITx* pin to the low logic level. When the Rx/Tx* pin is low the modem's hardware transmit power amplifier is connected to the power line. The next function performed by the modem is to transmit a preamble data sequence over the power line. While the modem is transmitting the preamble the host sends data bytes down to the modem . These bytes are received by the modem and are stored in its transmit buffer. When the modem finishes transmitting the preamble, it transmits the data stored in its transmit buffer. As shown in Figure 4.4, the host continues to send down bytes to the modem while the modem is transmitting data from the transmit buffer. 4.3.1 Transmitted Packet Format: Preamble and Data  The preamble is modulated onto the powerline with the data following immediately thereafter. A byte is defined to be 8 bits long, and a word is defined to be 16 bits long. In the present version,V2.17, of the firmware, 9 bytes of preamble are sent. These bytes consist of three and one-half synchronization words (SYNC) and one start of packet indicator word (STRT) as shown in Figure 4.7. A word contains two bytes, a most significant (ms) and least significant (ls) byte. The "one-half SYNC word" is the least 39  4 Firmware Design  significant (1s) byte of SYNC. Section 4.4.2 includes more discussion of preamble length and SYNC and STRT sequences. The data field of Figure 4.7 can be any number of bytes in length. The modem does not implement higher data link operations such as CRC, addressing, flags, packet length indicators, and character (or bit) stuffing. These functions are implemented in the host. The data field in Figure 4.7 will contain the packet format implemented by the host. The modem is almost completely transparent to the host. The only restriction of the data field content (Figure 4.7) is the first two bytes. These two bytes are described in Section 4.2. Because of this high degree of transparency, the modem can transmit and receive any type of data including text and binary formats. Transparency is important because the higher the order of transparency the lower the amount of additional overhead on a packet due to character and bit stuffing. 4.3.2 Host-Modem Communication  From Figure 4.4 it was seen that the host sends data down to the modem while the modem transmits data over the power line. The modem buffers the data in its transmit buffer and will transmit this data at a later time. The modem is capable of transmitting data over the power line at rates of 2.4, 4.8 ,9.6, and 19.2 kbps. The host sends data down to the modem at 38.4 kbps using an asynchronous serial communication format. This format consists of one start bit, eight data bits, and one stop bit. Taking this format overhead into consideration, the maximum throughput of the host-modem link is reduced to 30.27 kbps. As was mentioned earlier, the modem contains only 128 bytes of RAM. Of this 128 bytes only 40 are used for the transmit buffer. This buffer is used in a circular fashion as shown in Figure 4.8. The "buffer occupied" portion of the buffer contains bytes that are yet to be transmitted over the power line. The arrow labelled "1" in Figure 4.8 indicates the direction that the "start of data" arrow moves as data is removed from the circular buffer. The arrow labelled "2" in Figure 4.8 shows the direction that the "end of data" arrow moves as data enters the buffer.  40  4 Firmware Design reset RxITx pi)  V  transmit preamble over power line and buffer data received from host in transmit buffer  [  remove byte from transmit buffer  If  C7et bit count =  .4.22‹^1144r^  received byte from host? iyes (buffer byte received from host in) transmit buffer  V' \ -  send bit to modulator on low edge of Tx Data Cik ecrement bit count  no  <  <is bit count = 0? >no *yes is transmit buffer empty? > *yes (set RxITx* pi.)  Figure 4.6 Transmit module block diagram Is byte word word word word  1 or more bytes ^ SYNC I SYNC' SYNCI SYNC' STRT I^DATA PREAMBLE Figure 4.7 Transmitted packet format  41  1  4 Firmware Design  start of  buffer not occupied  data  end of data Figure 4.8 Circular transmit buffer When the circular transmit buffer becomes full, two options are possible. The first option is for the modem to stop placing data in the transmit buffer, and to ignore any data bytes sent down by the host. The second option is for the host to stop sending data bytes down to the modem. Of the two options, the second is preferred. To implement this second option the modem must inform the host whenever the transmit buffer becomes full. This capability called handshaking is discussed in the next section. A useful generalization of this capability results when the modem has complete control over the host-modem link. This generalization is discussed in Section 4.3.4. 4.3.3 XON/XOFF Host-Modem Flow Control The XON/XOFF protocol is a common method of implementing host-modem handshaking. Two control bytes XON and XOFF are sent up to the host by the modem. XON means "transmission ON," and XOFF means "transmission OFF." When the modem's transmit buffer becomes full, the modem sends XOFF up to the host Similarly, when the modem's transmit becomes empty, the modem sends XON up to the host. This protocol has two important disadvantages. The first disadvantage is that the protocol malfunctions whenever the XON/XOFF bytes are not received by the host. The second is that the protocol is not able to alter the transfer rate of the host-modem link. The first disadvantage became evident during testing when it was noticed that the host personal computer did not always receive the XON/XOFF control bytes. A missing XON byte caused the modem's transmit buffer to empty prematurely, and a missing XOFF byte caused the modem's transmit buffer to overflow. The second XON/XOFF protocol disadvantage became evident when the modem was tested at 2400 bps. At 2400 bps the modem missed some of the data bytes sent down from the host. This problem occurs because the host sends data bytes down to the modem faster than the modem can buffer  42  4 Firmware Design  them. The modem is capable of buffering at a rate of 2400 bytes per second. In Section 4.3.2, the host-modem link was calculated to be 30.27 kbps which is equal to 3784 bytes per second. Since the host sends data bytes down to the modem at 3784 bytes per second, and since the modem buffers these bytes at 2400 bytes per second, data bytes are lost and the packet is corrupted. To overcome the XON/XOFF protocol impairments, a new handshaking protocol was developed. This new protocol is described in the next section. 4.3.4 Synchronous Handshaking for Asynchronous Communication The two disadvantages of the XON/XOFF protocol discussed in Section 4.1.3 are  resolved by using a hardwired handshaking protocol. The CTS line was chosen to implement this protocol. In the host computer, there is an indicator bit called Delta Clear to Send (DCTS). This indicator bit is located in the Modem Status Register (MSR) of the host's serial port. The DCTS bit is set whenever the CTS line changes state. The bit is reset whenever the host computer reads the Modem Status Register. There are two rules in the protocol to which the host and modem adhere. The modem toggles the CTS line whenever it is able to receive a data byte from the host. The host must only send a data byte down to the modem if its DCTS bit is set. The hardwired handshaking protocol is able to avoid the two disadvantages of the XON/XOFF protocol. The modem's transmit buffer will never overflow because the host will only send data bytes whenever the CTS line is toggled. Whenever the modem's buffer becomes full, the modem stops toggling the CTS line. The second disadvantage of the XON/XOFF protocol is solved because the modem is able to control the rate at which data is sent down from the host. The modem toggles the CTS line at the same rate at which it is able to buffer data bytes sent down from the host. There are two possible problems which could cause the hardwired protocol to fail. The first problem is a failure by the host of detecting one or more toggles. This is in fact not a problem for the following reason. Whenever the host detects a toggle, the host will send a byte of data down to the modem. If the host does not detect a toggle the host will not send down a data byte. The modem will not notice this lack of data because the modem's buffer already contains several bytes of data which must be transmitted. A 43  4 Firmware Design  second potential problem is the detection by the host of a spurious toggle. This is a more serious problem because the host may send down a byte of data to the modem before the the modem is able to accept it. Thus it is possible for a data byte to be lost on a spurious toggle. The chance of a spurious toggle occurring is very remote and will occur only if the modem/host hardware malfunctions. Neither of these two problems have been detected in testing. The above approach to host-modem communication is advantageous over purely synchronous communication because the timing is not rigid. As long as the host sends data to the modem at a rate high enough to prevent the modem's transmit buffer from emptying, the protocol will work as required. Another advantage is the fact that the host-modem communication rate is much higher than the power line baud rate. For purely synchronous communication the host-modem communication rate is equal to the power line baud rate. This difference in host-modem communication rates would translate into time saved by the host. This time could be used by the host to perform other processing tasks. 4.4 MODEM RECEIVE MODULE As shown in Figure 4.1, the receive module is the default module. This means that after the modem finishes transmitting or initializing, the modem returns to receive mode. Like the transmit mode, the receive module performs physical and data link layer functions. Figure 4.9 shows the receive module's physical layer functions. Figure 4.10 illustrates the data link layer functions performed by the receive module. received signal from demodulator  Integrate and Dump Matched Filter  values  Table Look-Up  bit stream to data link layer No-  confidence to data link layer Figure 4.9 Receive module physical layer functions  44  4 Firmware Design bit stream from physical layer  byte synchronization  bytes  bytes strip preamble  attach packet delimiters  packets to host  confidence from t physical layer Figure 4.10 Receive module data link layer functions The physical layer performs two functions shown in Figure 4.9. The integrate-and-dump matched filter was described from a hardware perspective in Section 3.3.4. In firmware terms, a counter acts as an integrator. The dumping action of the filter is realized by "reading" and subsequently zeroing it. The table look-up function implements thresholding required to translate dump values from the integrate and dump matched filter into "received" bits. The thresholding procedure is bit =  f 1 ,value >12 10, value _1 12  where value is in the range 0 to 25. 4.4.1 Data Link Layer As shown in Figure 4.10, the data link layer receives a bit stream from the physical layer. The bit stream is analyzed in order that bytes and packets can be extracted and sent to the host. To perform these extractions the data link layer was designed as a real-time finite state automata containing four states. The four states are Sync_Search, Sync_Verify, Sync/Strt, and Lock shown in Figure 4.11. Item SR in Figure 4.11 is a 16-bit shift register that contains 16 bits from the received bit stream. The items SYNC and STRT are explained in Section 4.3.1. The complexity of the automata is limited by two microcontroller restrictions. These include microcontroller instruction operand width and instruction execution speed. The microcontroller is only able to process operands which are a byte wide. Thus, any word-wide operations must be converted to byte-wide operations. The microcontroller has an instruction frequency of 1.2288 MHz. When the modem is operating at 19.2 kbps, the microcontroller can execute a maximum of 64 1-cycle instructions. Thus, the automata must perform its functions within 64 instruction cycles.  45  4 Firmware Design  SYNC SEARCH SYNC VERIFY SYNC/STRT  (get bit (put in SR ) no ^* 4—<SR=SYNC> *yes  (get 16 bits)  set or reset) inversion  (  invert necessary  LOCK  g t^t s  ( get 16 bits )  no<^ SR=SYNC> * yes  ^  invert if  <  necessary)  es ^* SR=SYNC"› no carrier detected? no yes no send byte) SR=STRT? to host +yes ^V  (  4(  ^  Figure 4.11 Data link layer flow chart The first state of the automata in Figure 4.11 is Sync_Search. In this state the microcontroller continuously searches for the 16-bit synchronization word SYNC in the bit stream. When SYNC is detected with three or fewer bit errors, the microcontroller switches to state Sync_Verify. In this state the microcontroller buffers 16 bits in shift register SR and compares SR with SYNC. This comparison is to verify that the microcontroller has correctly synchronized itself to the synchronization pattern in the preamble. A single bit error is allowed in this verifying comparison. This state also determines whether the bits are inverted and sets an inversion flag to this effect. Bits may be inverted because of the 180° phase ambiguity discussed in Section 3.4.3. Upon successful SYNC verification, the microcontroller switches to Sync/Strt state. As shown in Figure 4.11 the microcontroller buffers 16 bits in SR. SR is compared against SYNC and STRT while allowing one bit error. If SR contains SYNC the microcontroller stays in Sync/Strt, but if SR contains STRT the microcontroller switches to the Lock state. Upon entering the Lock state, the microcontroller has accomplished the first two functions of Figure 4.10: byte synchronization and preamble stripping. The Lock state performs the final function of packet delimiting. Figure 4.12 shows the received data and its delimiters all of which are sent up to the host. SOP and EOP are the Start of Packet and End of Packet delimiters, respectively, as detailed later in Section 4.4.2. The flow chart of Figure 4.11 does not show the delimiting action of the Lock state. The SOP delimiter is attached when the state switches from Sync/Strt to Lock, and the EOP delimiter is attached when the state switches from Lock to Sync_Search. Otherwise, the functioning of the  46  4 Firmware Design  Lock state is as shown in Figure 4.11. The microcontroller buffers 8 bits in the the lower half of the shift register SR_LOW and sends SR_LOW to the host if the data carrier is detected. I SOP I^DATA^I EOP I word^1 or more bytes^word Figure 4.12 Packet sent to host 4.4.2 Discussion of Data Link Layer Parameters The description of the receive module's data link layer in Section 4.2.1 contains many parameters that were fixed when the finite state automata was being designed. The parameters in the automata were selected such that the functions of the data link layer are as powerful as possible within the limits imposed in Section 4.2.1. The length of the preamble was selected after consideration of several factors. The first consideration is packet overhead. To reduce packet overhead, it is necessary that the preamble contain as few bits as possible. The second consideration is reliable data link layer performance. The data link layer must be able to recognize a high percentage of incoming packets, facilitate byte and packet synchronization, and properly strip the preambles. Any faulty behavior of the data link layer will result in packet corruption and loss of channel throughput. A third consideration is host processing time. The host is busy performing a variety of tasks, of which only one is communication with its modem. The data link layer of the modem must monitor the bit stream coming from the physical layer and must pass only valid packets up to the host. Any random bits in the bit stream which have the appearance of valid data must be deleted. The host will then spend a minimum amount of time processing data arriving from its modem, and will be able to dedicate itself to other tasks. The first consideration in the above paragraph identifies the need for a short preamble. The finite state automata discussed in Section 4.2.1 requires that the preamble contain a minimum of two SYNC words followed by a single STRT word. The data link layer was tested with preambles containing two SYNC words plus incremental numbers of additional bits from 0 to 48. These additional bits are segments of the SYNC words (ie. 4 additional bits means the least significant nibble of the SYNC word is transmitted). A direct relationship was found between the number of additional SYNC bits in the preamble and the probability that the automata is able to synchronize to the preamble as shown in 47  4 Firmware Design  Figure 4.13. Since there is little improvement in the performance of the automata for preambles containing more than 24 additional bits, the preamble as shown in Figure 4.7 was chosen to contain three and a half SYNC words.  0^10^20^30^40  ^  Number of Additional Bits in Preamble  50  Figure 4.13 Performance of data link layer Considerations two and three motivated the use of 16-bit SYNC and STRT identities. Sixteen-bit words are processed as two separate bytes by the microcontroller because of the byte-wide operand restriction discussed in Section 4.2.1. The SYNC word was chosen to be Ox3ca9, where Ox denotes hexadecimal, and the STRT word was chosen to be Ox3c56. The binary representation of SYNC is 0011110010101001 and the binary representation of STRT is 0011110001010110. The SYNC word contains patterns of alternating ones and zeroes which is desirable for demodulator and hardware synchronization circuits. The STRT word has the beneficial property that eight error bits are required to turn STRT into SYNC. The SYNC word was also chosen because of its desirable correlation feature. A good synchronization codeword is one that has the property that the absolute value of its "correlation sidelobes" is small. A correlation sidelobe is the value of the correlation of a codeword with a time-shifted version of itself [23,25]. This correlation is shown in Figure 4.14. The word Ox3ca9 was identified via an exhaustive computer search that selected 16-bit words based on correlation and number of 1-0 and 0-1 transitions.  48  4 Firmware Design 18 16 14  .2  12 10 -  8 8 6 4 0  8^16^24  32  # of bits SYNC word is shifted  Figure 4.14 Correlation of SYNC word Considerations two and three were used to decide on the number of bit errors allowed for a preamble word in each state of the automata. Sync_Search allows three bit errors, Sync_Verify allows 1 bit error, and Sync/Strt allows 1 bit error. Two probabilities characterize the performance of a system using a synchronization word. These are the probability of a missed detection and the probability of false alarm [25]. Clearly, the system designer would wish both probabilities to be as small as possible. These are conflicting objectives. In order to decrease the probability of a miss, the system designer may allow less than perfect correlation of an incoming synchronization word. That is, a word may be accepted even if it contains a small number of errors. This, however, enlarges the number of symbol patterns that will be accepted and thereby increases the probability of a false alarm. We can evaluate the data link layer performance using these considerations. To perform this evaluation, we determine the rate at which the automata falsely triggers on a randomly noisy bit stream. To find this rate we first calculate the total number Ni of random bit error patterns of length 16 bits which can successfully pass through the individual states of the data link layer, as follows:  [( 3 ) + ( 2 ) + 6)4 0 )] (1 = 1394 for Sync_Search State 2  N2= 2 [( 115 )4106 n = 34 for Sync_Verify State 49  4 Firmware Design  [C1 ) Cill  N3= 6 + t = 17 for Sync/Strt State  The total number of patterns which will match the preamble is (1394)(34)(17) = 8 x 10 5 . The total number of patterns possible are (216)(216)(216) =2.8 x 10 14 . Therefore, the probability of a random bit sequence matching the preamble is 2.84 x 10 -9 . Thus, on average the data link layer would detect a false preamble once in 3.5 x 10 8 random bits. The mean time between false preambles for different baud rates is tabulated in Table 4.1. This table shows that a modem operating at 19.2 kbps will produce false preambles every 5 hours, on average. This mean time is large enough to fulfill the reliability requirements described as consideration two above. minutes seconds 303.8 18229.2 36458.3 607.6 1215.3 72916.7 145833.3 2430.6 Table 4.1 Mean time between false alarms  baud rate (kbps) 19.2 9.6 4.8 2.4  hours 5.1 10.1 20.3 40.5  Figure 4.12 shows that two delimiters SOP and EOP are sent up to the host. The host uses the delimiters to identify packets within its own buffers. SOP and EOP were each chosen to be 16 bits long. Because a packet contains random data, it is better in terms of probability of spurious delimiter occurrence to use a 16 bit delimiter instead of an eight bit delimiter. The probability that 16 bits of random data is a delimiter is 2 46 = 0.000015 whereas the probability that 8 bits of random data is a delimiter is 2 -8 = 0.0039. The SOP and EOP were arbitrarily chosen to be 0x3738 and Oxa3a4, respectively. Because SOP and EOP are generated by the modem and are not transmitted over the power line, the probability that a delimiter contains a bit error is very small. In fact, the probability of a delimiter bit error is equal to the probability of a bit error in RS232 communication. 4.4.3 Carrier Detection As shown in Figure 4.11 the finite state automata switches from Lock state to Sync_Search state if a data carrier is not detected. Carrier detection is performed within the Lock state. This detection is based on a computed value called confidence. When  confidence is high the modem is "confident" that a carrier signal is present on the power line. The DCD (Data Carrier Detect) pin is set high whenever confidence is high. The  50  4 Firmware Design DCD signal is connected to the host to enable the host to use protocols that require carrier  detection. Figure 4.9 shows that the physical layer produces a confidence value for every bit sent to the data link layer. A bit's confidence value is calculated from the dump values produced by the integrate and dump matched filter as shown in Figure 4.9. The relationship between confidence and dump values is confidence =112-dumpl. Figure 4.15 shows a bit which has a high confidence value and a bit which has a low confidence value. The confidence value of the high confidence bit in Figure 4.15 is 11=112-231, and the confidence value of the low confidence bit is 1=112-131.  high confidence bit low confidence bit  111111111111111111111111111^ 1^  24  bit sample number  Figure 4.15 High and low confidence bits A low confidence value terminates the Lock state. Because the power line is noisy the packets will contain incorrectly detected bits. These errored bits often have low confidence values. Reception of a single noisy bit may result in termination of the Lock state and consequently in truncation of the packet being sent up to the host. In some applications, it may be advantageous to send some noisy packets up to the host, since some errors may be acceptable. Often, an error correction procedure may be available. An alternative method of terminating the Lock state is to utilize confidence values from many bits. One such formula is new confidence = ROUND (22 21 old–confidence) + current confidence  where function ROUND(X) denotes the closest integer to X. current confidence is the confidence value of the current bit and has a range of 0 to 12. new confidence is the value which is used for deciding on termination of the Lock state. new_confidence has a range  51  4 Firmware Design of 0 to 254. old confidence was the calculated new_confidence for the previous bit. The value for new confidence is calculated for every bit. Previously it was said that the DCD signal is set whenever confidence is "high." The term "high" is subjective. confidence is said to be "high enough" whenever new_confidence exceeds the quantity confidence_threshold. The value for confidence_threshold must be low enough that the Lock state will tolerate some bit errors, and high enough that the Lock state will terminate at the end of a received data packet. To determine a value for confidence_threshold it is useful to calculate the values of new_confidence for different values of current_confidence. Table 4.2 tabulates these calculations. If we subjectively rate the current_confidence values as poor, marginal, good, and excellent as shown in Table 4.2, a selection for the value of confidence_threshold can be made. The value chosen for confidence_threshold is 192 which falls under the "good" category.  category current confidence new confidence  poor  • OOT  0 1  soor 11111111111111111111111 •oor 1111111111.1111.1 4 WM margin al  0 12 34 56 78  lIllrnllIlliIllIllMll111 8 ood • : ood 188 9 food  excellent  excellent  IIIIIIIIIIIIIIII 12 254  Table 4.2 new_confidence values for different current confidence values As mentioned above, the Lock state is terminated whenever the new_confidence value falls below confidence_threshold. The time between the end of a packet and the instant that the Lock state is terminated is the transition time. Bits that are sent up to the host during the transition time are transition bits, illustrated in Figure 4.16.  52  4 Firmware Design end of packet  Rx Bits  packet^  noise  new_confidence Lock state termination  confidence threshold transition time ^NW'  time bits sent^0^1^0^0^1 up to host^data bits transition bits  Figure 4.16 Time taken for new_confidence to fall below confidence threshold The number of transition bits depends on the value of new_confidence at the end of the packet and on the values of current_confidence during the transition time. Figure 4.17 illustrates this dependence for current_confidence values of 0, 1, and 2. Figure 4.17 shows that the number of transition bits produced is at most eight. As mentioned in Section 4.4.1 the microcontroller sends data up to the host in bytes. Therefore the modem will send a maximum of 1 byte to the host during the transition time. 11111111111111.1  9 az 8 o7 6 5 4., o 4  Legend — current confidence=0 — current confidence=1 - - - current confidence=2  \ 23 1 lel^  ^  I^111.111  250^240^230^220^210 new_confidence  200  Figure 4.17 Bits to terminate lock state for cur conf of 0, 1, & 2  53  5 Test Results...  5 Test Results in Different Environments  The 19.2 kbps modem was used to perform many tests in various, actual operating environments. The purpose of the tests was to obtain various communication performance parameters, including bit error rate, block error rate, and percent of lost packets. These tests were carried out in the Electrical Engineering building at the University of British Columbia. This building is known to provide a harsh operating environment for power line communications. Before the modem was tested on power line channels various statistics regarding its operation were collected for tests under white noise conditions. These statistics are described in Section 5.2 and verify the modem's correct operation. 5.1 DISCUSSION OF TEST PARAMETERS  To test modem performance, packets (blocks) are sent from the transmitting host to the receiving host. The receiving host analyzes received packets in real-time and generates results discussed later in this section. The software used to analyze the received packets is called A Bit Error Rate Tester for Power Line Modems [20]. The packets have a format shown in Figure 5.1. I SOB TYPE SEQ ACK NFR DATA TYPE LEN STX CRC1 CRC2 I TEST PATTERN ETX  •^data^I trailer  header  Figure 5.1 Packet format for Bit Error Rate Tester The packet in Figure 5.1 indicates that a packet has three parts, a header, a data field, and a trailer. The header and trailer identify the beginning and end of a packet, respectively. The header is terminated by a cyclic redundancy check (CRC) number. The receiving host calculates its own CRC number for the header. If the transmitted CRC and the locally calculated CRC are identical then the header contains no detected errors and the packet is forwarded for analysis. The analysis is performed on a test pattern within the packet's data field. 54  5 Test Results... The test pattern in the data field consists of 125 characters: "AAAAAAAAAA BBBBBBBBBBCCCCC MMMMM". A bit error occurs whenever a bit within the data field is in error. A block error occurs when one or more bit errors occur within the data field of the packet. Throughput is determined by the following formula.  number of packets received^number of data bytes/packet throughput = bit rate • ( number of packets transmitted) (total number of bytes/packet .  The number of data bytes/packet is the number of bytes within the data field which is 125. The total number of bytes/packet includes all the bytes in Figure 5.1 as well as the preamble. This total comes to 145 bytes. The above formula for throughput is based on continuous single-direction transmission of packets and does not include idle time between packets. Idle time was placed between transmitted packets in order to allow time for the receiver's synchronization circuits to fall into a random state. This is done to simulate actual channel traffic. Also, the calculation for throughput does not take into consideration packets with errors. This can be done by multiplying throughput by (1BLKER). Because of the functionality of the modem's data link layer described in Chapter 4, and the method used to obtain "operating" data, packets can be lost. These lost packets are the reason number of received packets 5 number of transmitted packets. Packets are lost in two ways. If there are many errors within a transmitted preamble (Figure 4.7), the modem's data link layer will not recognize the start of a packet. Although the rest of the packet may not contain any errors, the modem will not send any part of the packet up to the host. Thus, the modem itself loses a packet when it cannot recognize a packet's preamble. A second way in which a packet may be lost is when a packet is discarded by the receiving host. If the packet header contains an error (which is caught by the CRC) the packet is not analyzed. The Bit Error Rate Tester discards the packet and looks for the next packet. Packet discards occur because the Tester does not have any method for determining whether any part of the header is correct. Therefore in both cases, a "lost packet" is a packet whose beginning can not be identified. The parameter percent lost packets is calculated as  ) ^ percent lost packets =(1 - number of packets packetstransmitted received 100 number of Normally, "raw" statistical value is obtained by analyzing all data received from a modem. This can be achieved by using a device called a Data Error Analyzer. An  55  5 Test Results...  "operating" value is calculated by analyzing data after minimal processing of the raw data. This processing is necessary for generating statistics when using packetized data. Errors tend to occur in bursts on power lines [19]. Figure 5.2 shows an illustration of noisy and quiet periods on a power line. The probability of a packet being lost is high if the preamble or header is transmitted during a noisy period. The nature of bursty channels is that a noisy period is followed by a fairly low noise or quiet period. Within a quiet period random errors occur. Depending on the relationship between the lengths of noisy and quiet periods, the data field of a packet which is not lost may fall more often in quiet periods or in noisy periods. If a quiet period is much larger than a noisy period, the data field will fall more often within a quiet period. Therefore, "operating" data is data which is obtained from packets whose preamble and header have a low probability of being in a noisy period. Statistics from tests that produce a small percentage of lost packets can be assumed to not suffer from this noisy-quiet period phenomena. quiet period  noisy period^  noisy period Figure 5.2 Noisy and quiet periods on a channel  BER is calculated for a single packet using the following formula. number of bits in error in data field BER — total number of bits in data field  The total number of bits in data field is equal to 1000. Because BER is a statistical number, its value is most accurate when it is based on a very large number of samples. This can either be achieved by transmitting one extremely long packet or many shorter packets. The solution is to send packets of moderate length (125 data bytes) and calculate the BER based on the total number of data bits for all the received packets. The block error rate (BLKER) is calculated as shown in the following equation. BLKER —  number of received packets with error in the data field total number of packets received  A block is considered to be in error if any of the bits in its data field is in error.  56  5 Test Results... 5.2 TEST RESULTS UNDER WHITE NOISE CONDITIONS  Figures 5.3 and 5.4 contain performance curves for the modem for additive white gaussian noise. Figure 5.3 (a) contains BER results for the modem under white noise conditions. In such a case, bit errors are independent under optimum reception. The method for determining Eb/No is described in [1]. This figure shows that the modem is operating properly and the deviation from theory is approximately 1-2 dB. This deviation can be attributed to carrier and symbol recovery error [25]. The graph in Figure 5.4 (a) shows the relationship between BLKER and BER. The theoretical curve is calculated using the following equation [24]. BLKER = I - (1-BER) 1  where I is the number of bits in a packet (here it is the number of bits in the data field) which is 1000 bits. The graph in Figure 5.4 (b) shows percent lost packets vs BER. The theoretical curve is calculated by determining the probability that the synchronization sequence will contain too many errors and thus will not be recognized by the finite state automata in the data link layer (Chapter 4). The probability of an errored preamble is found by the relationship P(incorrect preamble) = 1 P(correct preamble). P(correct preamble) can be determined from the following relationship, -  P(correct preamble) = P( correct SYNC 1) P(correct SYNC 2) P(correct STRT)  It was stated in Chapter 4 that SYNC 1 can be inverted and have at most 3 errors, SYNC 2 can be inverted and have at most 1 error, and STRT cannot be inverted and can have at most one error. Using these conditions the three probabilities can be calculated. As an example P(correct SYNC 2) is given next where p is the probability of a bit error. P(correct SYNC 2) = g 06 )0_0466 p_py5p 1 + C5 )(1..p)ip t5 + 60p 16.1  Figure 5.4 (b) also contains a "not synced" and a "not analyzed" curve. The not analyzed curve represents the packets not available for analysis by the software (ie. host level). The not synced curve represents the packets lost at the modem level. The difference between the not analyzed and not synced curve represent packets which were passed up to the host by the modem but were discarded by the host because of errors in the packet header detected by the CRC.  57  ^  5 Test Results...  10 0 10 10 ce 10 Lla  -  1  -  2  -3  "  10-4 5  10  6  10 1 -  10-  7  ^•^•^• ^0^2^4^6^8 Eb/No (dB) "  .  10  ^  12  5  ^  •^1-1  6^7^8^9^10 11 12 Eb/No (dB)  (b) Figure 5.3 Modem performance in white noise: BER and BLKER (a)  102 .^  100  80  -0" theory -"P' not analyzed "4- not synced  a  W  1 0 1 ".  20  n" theory ieo "*" AWGN 0  10  -7  10  -6  10  -5  10-4 10  -3  0^  • 11..  INI  -1  ^ -7 -3 -2 -1 0 10 10 -6 10-5 10-4 10 10 10 100 10 - 2 10- 1 10  ^ BER ^  BER  (b) Figure 5.4 BLKER and percent lost packets vs BER for white noise (a)  5.3 TEST ENVIRONMENT AND PROCEDURE  Within the Electrical Engineering building, electrical power is delivered through two systems. One system provides three phase power to all laboratories and machine shops. The other system provides three phase power to wall outlets and lighting fixtures 58  5 Test Results...  in hallways, classrooms, and offices. The first system is called a Lab System and the second system is called a General System (my terminology). Each of these systems has a 1600 amp bus in the Switch Room in the basement (first floor) from which power is distributed. The flow of electrical power consists of a path from the three phase 4160V/120V transformer to the General System bus, across a copper bus bar or "link", and onto the Lab System bus [22]. Sometime in the future, this link may be replaced by a reactor. The reactor would limit the current flowing from the General System bus to the Lab System bus. This current limiting feature would protect the three phase transformer from high current flow whenever a short circuit fault appeared on the Lab System. The three phases of a power line are denoted as Ox, Ø y , and Oz . The relationship between the three phases are shown in Figure 5.5. Volts 120  Figure 5.5 Three phases of a power line Three types of tests were performed on these systems. The first test is composed of same and cross phase tests within the Lab System. A second test is composed of same and cross phase tests within the General System. A third test is same and cross phase tests performed across the link between the Lab System and the General System. The transmitter RMS output voltage VT is used as a parameter in the tests. This parameter is measured at the output of the transmitter's power amplifier and is tabulated in terms of dBmV. This decibel measure is defined as follows [10] where VT is in volts: dBmV = 20 log ( 10 -3 The data signal that appears on the power line channel at the output of the modem is approximately 2 dBmV lower than the signal at the output of the power amplifier. This attenuation is caused by the transformer in the line-coupling network. The length of each test in terms of bits and blocks was selected such that the number of bits in error exceeded 100 and the number of received packets was at least  59  5 Test Results...  1000. For tests that produced BER values better than 1 x 10 -5 , the test was terminated after 10000 packets (1 x 10 7 bits) were received. 5.4 SAME PHASE AND CROSS PHASE TESTS ON LAB SYSTEM  The location of the tests is a communications laboratory which contains approximately 20 computers (or workstations) and other test equipment. The transmitter and receiver are separated by approximately 100 feet of power line. Tests are performed on all three phases of the power line producing nine different channels. Three of the channels are same phase and six of the channels are cross phase. Figure 5.6 shows the BER results for the nine channels. Figure 5.6 (a) shows that channel x to z has an approximate 22 dBmV advantage over x to x and that channel x to y has an approximate 20 dBmV advantage over x to x. Figure 5.6 (b) shows that channel y to z is 6.6 dBmV worse than y to y and channel y to x is 10 dBmV worse than y to y. Figure 5.6 (c) shows that z to x and z to y are 15 dBmV and 27 dBmV worse, respectively, than z to z. Comparing same phase channels only, y to y performs best producing a BER of 1 x 10- 5 at 41 dBmV. For cross phase channels only, y to z performs the best with a BER of 2 x 10 -6 at 46 dBmV. Figure 5.7 shows BLKER results for the nine channels. The BLKER results are consistent with the BER results in Figure 5.6. A more useful method of determining the characteristics of the nine channels is to look at the BER vs BLKER curves in Figure 5.8. Figure 5.8 compares the BER vs BLKER curves of the nine channels against a curve for random (equiprobable) errors. The random curve was discussed in Section 5.2. Figure 5.8 (a) shows that the x to y channel has characteristics similar to a random noise channel. This figure also shows that channel x to z behaves like a random noise channel for BER<10 -5 . Channel x to x does not behave like a random noise channel. Figure 5.8 (b) shows that channel y to x behaves like a random noise channel for BER<10 -6 . Channel y to y behaves similar to a random noise channel. Channel y to z does not behave like a random noise channel but its shape suggests it will at low BER (<10 -7 ). Figure 5.8 (c) shows that channel z to y behaves like a random noise channel (with small deviation) for BER<10 -5 . Channel z to x behaves like a random noise channel for BER<10 -7 . Channel z to z does not behave like a random noise channel but the curve suggests it might at approximately BER<10 -8 . 60  5 Test Results...  1 00  100  10 4  10  10-2  10  cd 10 -3  ct 1 0-  w as  w as  10 -4  10  10 -6  10  10  1^1^1^1^. 25^35^45^55^65 75 Transmitter Voltage (dBmV)  -  10  10-5  -7  -0- y to x -•- y to y —I— y to z  -  -  -  10-7  I^I 25^35^45^55^65 - 75 Transmitter Voltage (dBmV) •^I^'  (a)  (b)  ^ ^ 75 85 Transmitter Voltage (dBmV)  25^35^45^55^65  (c) Figure 5.6 BER for lab system The results in Figures 5.6-5.8 clearly indicate that different communication links have large differences in BER at any given voltage level.  61  5 Test Results...  102  10 -2  102  10 -2 25^35^45^55^65^75^25^35^45^55^65^75 Transmitter Voltage (dBmV) ^Transmitter Voltage (dBmV)  (a)  ^  (b)  25^35^45^55^65^75^85 Transmitter Voltage (dBmV)  (c) Figure 5.7 BLKER for lab system  62  102  r  0 111 1 CO 0-  5 Test Results...  102  i  a  as  -5 Hi7 10 6 10 10-4 10 -3 BER  y to x •-•-• y to y y to z -4- Random 10 -7 10-6 10-5 10 4 10 -3 10 -2 10 -1 10° BER  (a)  (b) 10 10  -0- z to x -0- z to y  z to z -4 Random  10 -2 ^ -1^I^" .".7 • '• 11. 10 -7 10 -6 10 -5 10 4 10-3 10 -2 10 -1 100 BER  (c) Figure 5.8 BER vs BLKER for lab system Figure 5.9 shows results for percent lost packets vs transmitter output voltage. These results are consistent with the results in Figure 5.6.  63  5 Test Results...  10  2  a, 1 10 1 es •  -0- y to x y to y y to z  a 10 1 a.  .  •  1:1 8 10 0 • 0.  -0- x to x x to y x to z  10 -1 ^ _^•^I^•^•^I 10.1 ..1 • 1 . 1•1• 25^35^45^55^65^75^25^35^45^55^65^75 Transmitter Voltage (dBmV)^Transmitter Voltage (dBmV)  (a)  (b) 102 ^ •  Z tO Z Z to X "4" Z to y  1\1 \\\\ 10.1  I^•^1^I^I^• ^ 25^35^45^55^65 75 Transmitter Voltage (dBmV)  (c) Figure 5.9 Percent lost packets for lab system In addition to the above tests a Tektronix plotter was connected to the z to z channel, and the BER was measured and is shown in Figure 5.10. The plotter was connected at the receiver, midway between transmitter and receiver, and at the transmitter. It was stated previously that the distance between transmitter and receiver is approximately 100 feet (30 meters). This figure shows a degradation of approximately 20 dBmV for BER<10 -3 in the normal channel (plotter not attached). Figure 5.11 (a) and 5.11 (b) show the frequency spectrum at the output of the receiver bandpass filter before 64  5 Test Results...  the plotter was connected and after it was connected, respectively. Figure 5.11 (b) shows the distortion of the received signal spectrum caused by the connection of the plotter. Figure 5.12 (a) and 5.12 (b) show two receiver time domain waveforms. The bottom trace is the output of the bandpass filter and the upper trace is the output of the demodulator. Figure 5.12 (b) shows severe fading in the bottom trace which results in a smaller (in amplitude) signal from the demodulator (upper trace). The plotter was chosen for this test because of its clear and drastic effect on the transmitted signal. This effect should not be construed as being indicative of the effects of all electrical equipment. The amount of noise, attenuation, and fading produced by electrical equipment varies over a wide range. The characteristics of the power line and the effects of electrical equipment on the power line are described in Chapter 2 and the references referred to therein. 1 00 ^  10 4 10  -  g 10 -3 ‘,  10  -  1010 -7 ^ 25^35 45^55  -0 - z to z normal -4- plotter at Rx -+- plotter at mid -0- plotter at Tx  65^75^85^95  Transmitter Voltage (dBmV)  Figure 5.10 Variation in BER as plotter location is varied  65  5 Test Results...  LEVEL^ FREQUEACT^ SPAN/DIV REF^-3008i4^CEN^115KHZ^20KHZ^  mom^-6.408^meet^36.2KHZ^  DOH  -so -40  TEK 497P  —50  —  —00  —  —70  —  .  —SO  .,_  111  liff  fill  III  1111  — —  fill  flit  fill  _  —9°  —100  ........o.,  r  —110  1008/^ODB^0-1.8^INT^30HZ^OKHZ  VERTICAL^RF^FRED^REF^VIDEO^RESOLUTION DISPLAY^ATTENUATION^RANGE^DSC^FILTER^BANDWIDTH  (a) f  LEVEL  REF^-3008M^co  i  SPAN/DIV  •  115KHZ^ 115KHZ^20KHZ^am 35.8KHZ^ -so  mem^-14.408^MICR  —40  .. --.  TEK 497P  -so -so  L  lilt  —70  ..., — .... fill  ip  liffr I  . —00  I  I  .....— ...  I  I  II  III  WI  —100  ... 1008/^008 VERT ICAL^IIF  DISPLAY^ATTENUATION  0-1.8^INT  FRED^REF RANGE^DSC  —90  —110  30HZ^OKHZ  VIDEO^RESOLUTION FILTER^BANDWIDTH  (b) Figure 5.11 Frequency spectrum of output of bandpass filter: (a) without, and (b) with plotter connected 66  5 Test Results...  TEKTRONIX 2232 Y&T= 4 .925kHz SAU::_-  AU1= 14.8U Al.)2..-0 --  2`i8l)  \...r,..  t , i^ , ^  ,^, t^i  ,'  i  llaU  ,  .0  II I^tI l'  ICI'  1  I, il I  1^■ li  II^I  I i^I 1  I^I  li  ,  11  I  SAMPLE  0.2U  bi...Y  =0.51M5  0.1ms  0.1n5  (a)  TEKTRONIX^2232 6,U1= ii.  AV2- - 0 0 -,-  1/&,-=4.925k z SAL-7  U  6V  ,-—  --„_, —  i I.,I  01  ,^I,  I^ is  di^i III  •i^114  ■^■^.^i  /I  10U  0.2V  SAMPLE  DL (T) > = 0.1 ms  0 .01M5  a .irns  (b) Figure 5.12 Waveforms of output of demodulator (upper trace) and bandpass filter (lower trace): (a) without , and (b) with plotter connected  67  5 Test Results...  Figure 5.13 shows the variation of BER and BLKER during a work day. Figure 5.13 (a) shows increases in bit errors at 12:00 pm and at 6:00 pm. Figure 5.13 (b) shows block errors approximately double at 6:00 pm. The results in Figure 5.13 are consistent with the trends suggested by Figure 2.6 in Chapter 2.  a oa  1'1'1 'I' 1•1'11'1•1'  02 4 6 8 10 12 14 16 18 20 22 24 time (hours)  02 4 6 8 10 12 14 16 18 20 22 24 time (hours)  (b) (a) Figure 5.13 BER and BLKER vs time for x to y channel at 63 dBmV 5.5 TESTS ON GENERAL IN-BUILDING ELECTRICAL DISTRIBUTION SYSTEM This test determines the modem's performance parameters across a building. A transmitting modem is connected to a wall outlet in Room 458, the communications laboratory. The receiving modem is moved to different locations throughout the building. The dimensions of the building are shown in Figure 5.14 [22]. The physical distance between two modems is not directly proportional to the length of the connecting power line wire. Because wiring is distributed from a circuit breaker panel on each floor, it is possible for wall outlets that are within a few feet of each other to be separated by 200 feet (60 meters) or more of wiring. Also, because the circuit breaker panel distributes single phase power from a three phase power source, wall outlets may be supplied from any one of three phases. The circuit breaker panel on each floor is connected directly to the General System bus (Section 5.3) via a sub-bus. Table 5.1 contains the names of all the General and Lab System sub-buses. This nomenclature follows from [22]. Because physically adjacent floors do not have the shortest powerline communication path, 68  5 Test Results... transmission among adjacent floors will not necessarily be advantageous over nonadjacent floor transmission. For example, a signal transmitted from the fourth floor to the third floor would have the following circuitous route: the signal would travel to the fourth floor circuit panel (panel D); propagate down sub-bus D to the basement; travel across the General System bus to sub-bus C; propagate up sub-bus C to the third floor circuit panel (panel C); and finally, travel on the third floor to reach the receiver. Floor General System Lab System 1 A 1 1 2 B 2,3 C 3 4 4 D Table 5.1 Sub-buses in General and Lab Systems  S  W ^ E  231.2 feet height=50 feet^BIM^Ea N  panel^C El MN^Al21  4  59.4 feet  Legend • Transmitter f21 Receiver A Room 113 B Room 214 C Third Floor North Wing Stairwell ^D Fourth Floor East Wing Stairwell 'IF 59.4^ ll"" E Room 402 feet F Room 458 Communications Lab Figure 5.14 Electrical engineering building t 121.8 feet  The phases for the locations indicated in Figure 5.14 are listed in Table 5.2. It is seen in Table 5.2 that different locations are served by different power phases. Thus, tests encompass both same phase and cross phase conditions. Location .._...^Room 113 Room 214 3rd Floor E. Wing Stairwell 4th Floor N. Wing Stairwell Room 402 Room 458^.  Phase Z Y X X ^  f—  X  Table 5.2 Phases of power lines at test locations  69  5 Test Results... 5.5.1 Bit Error Rate Figure 5.15 shows BER results for a transmitted signal of 10.5 dBmV. Reception in rooms 113 and 214 produce very similar BER values. BER for 19.2 kbps is 3 x 10 -3 and BER for 9.6 kbps is 9 x 10 -4 . Reception on the third floor test produces BER values slightly better than the lower two floors. The BERs for the third floor stairwell are 1 x 10 -3 for 19.2 kbps and 5 x 10 -5 for 9.6 kbps. BER for Room 458 which is the same room as the transmitter and on the same circuit breaker (from panel D) produces BERs for all baud rates less than 10 -6 . BERs for baud rates of 4.8 kbps and 2.4 kbps are less than 10 -6 at all locations. 1.E-02 1.E-03  O  g 1.E-04 as 1.E-05  41 -  2.4 kbps  43'  4.8 kbps  ••- 9.6 kbps 4>-  19.2 kbps  1.E-06 1.E-07  I  a^I^I^1:1^I^4^Cl^I^I^0 Room^Room^Third Floor^Room 113^214^North Wing^458 Stairwell  Figure 5.15 BER for 70 dBmV data signal on General System 5.5.2 Block Error Rate Figure 5.16 shows BLKER results for a 70 dBmV transmitted signal. Almost 100% of the blocks for 19.2 kbps received in Rooms 113 and 214 contained errors. BLKER for 9.6 kbps is 32% for Room 113, 53% for Room 214, and below 5% for the third floor stairwell. BLKER is 0 for baud rates of 2.4 and 4.8 kbps at all locations tested. Figures 5.15 and 5.16 show that the third floor test location has lower error rates than both the first and second floor locations. An explanation for this observation is that the Third Floor Stairwell is connected to the same phase (phase X) as the transmitter. Rooms 113 and 214 are connected to phases Z and Y, respectively.  70  5 Test Results... ^100  ^ 90 — 80 — "IR 70 60 — 50 —^•^• co 40 — 30 — • 20 — 10 — 0 CI I I Q 1 l el I I Room^Room^Third Floor^Room 113^214^North Wing^458 Stairwell  •■- 2.4 kbps CI 4.8 kbps -  '"- 9.6 kbps *- 192 kbps  Figure 5.16 BLKER for 70 dBmV data signal on General System  5.5.3 Percent of Lost Packets Figure 5.17 shows the percent of lost packets for a 70 dBmV transmitted signal. The percent of lost packets for 2.4 kbps varied from 0 to 5%, and the percent of lost packets for 19.2 kbps varied from 0 to 42%. Figure 5.17 suggests that same phase and cross phase considerations are important. 50 ^ ■ 2.4 kbps  30 —^  D 4.8 kbps  20 —^ ^ ■ ^ 10— •^• ^0 Room^Room^Third Floor^Room 113^214^North Wing^458 Stairwell  • 9.6 kbps * 192 kbps  Figure 5.17 Percent lost packets for 70 dBmV data signal on general system  5.5.4 Summary The results show that baud rates of 2.4 and 4.8 kbps should be used for long distance communication within a building in the absence of forward error correction coding. The baud rate of 19.2 kbps is appropriate for short distance communication, and 9.6 kbps should be used for medium distance communication. The results also show that the baud rate of 2.4 kbps is the least affected of the four baud rates by cross phase  71  5 Test Results... impairments. The results indicate the need for a modem with some form of baud rate flexibility. 5.6 TESTS FOR TRANSMISSIONS FROM LAB TO GENERAL SYSTEM  The transmitter is connected to Oy power line of the Lab System as described in Section 5.4. The receiver is connected to various locations in the General System as described in Section 5.5. 5.6.1 Bit Error Rate  Figure 5.18 shows BER results for a transmitted signal of 70 dBmV. Rooms 113 and 402 produced the best and worst BER values, respectively. The BER value for 2.4 kbps in Room 402 is significantly higher than values produced from other locations. It can be implied from this high BER at low data rates that the power line channel between Room 402 and Room 458 is extremely poor. LE+00  O  LE-01  •■• 2.4 kbps .a 4.8 kbps 9.6 kbps -0 19.2 kbps  1.E-02 0  g 1.E-03 Aa LE-04 1.E-05 LE-06 LE-07  -  ■  •  ■  •  Room Room Third Floor Room Fourth Floor 113^214^North Wing 402^East Wing Stairwell^Stairwell  Figure 5.18 BER for 70 dBmV data signal on Lab to General System 5.6.2 Block Error Rate  Figure 5.19 shows BLKER results for a transmitted signal of 70 dBmV. The BLKER values for 9.6 and 19.2 kbps are very high, and exceed 80%. The lowest BLKER for 4.8 kbps is 20% in Room 113. All BLKER values for 2.4 kbps are below 1% except for Room 402 which produced a BLKER of 35%.  72  5 Test Results... 100 90 • 0 70 60 a 50^ a 40 30 20 10 0 Room Room Third Floor ^Room Fourth Floor 113^214^North Wing^402^East Wing Stairwell^Stairwell  -•• 2.4 kbps 0 4.8 kbps  -•• 9.6 kbps + 19.2 kbps  Figure 5.19 BLKER for 70 dBmV data signal on Lab to General System 5.6.3 Percent of Lost Packets Figure 5.20 shows the percent of lost packets for a 70 dBmV transmitted signal. At 19.2 kbps, packet loss ranges from 45% to 95%. At 2.4 kbps packet loss is below 20%. Figure 5.20 does not show any advantage in same phase transmission relative to cross phase transmission. 100 90 80 70 60 -g 50 ., 40 ki 30 Li 20 10 0  4 IA as a,  0^0 • •  •  a  •  4  Room 113  ••• 2.4 kbps  •  0 1---4-11!^I I I^f Room Room^Third Floor 402 214^North Wing Stairwell  0 4.8 kbps -•- 9.6 kbps 0. 19.2 kbps  0 I! Fourth Floor East Wing Stairwell  Figure 5.20 Percent lost packets for 70 dBmV data signal on lab to general system 5.6.4 Error-free Throughput Figure 5.21 shows the error-free throughput (as defined in Section 5.1) for a 70 dBmV transmitted signal. This figure shows that low baud rates produce higher throughput values than higher baud rates. Transmitting at 2.4 kbps produces the highest throughput at receiving locations in Room 113, Room 402, and the fourth floor stairwell. The baud rate of 4.8 kbps produces the highest throughput at receiving sites in Room 214 and the third floor stairwell. 73  S Test Results... 3000 -6- 2.4 kbps 2500 — 43- 4.8 kbps • 2000 ■^■ ■ 9.6 kbps s. 1500_^0^0 •4 19.2 kbps 1000 ■ o^•^ 500 0 I^I^I $1 I^I 1 I Room^Room Third Floor Room Fourth Floor 113^214^North Wing 402^East Wing Stairwell^Stairwell  Figure 5.21 Error-free throughput for 70 dBmV data signal on lab to general system 5.6.5 Summary  The results in this section clearly reflect the observations stated in Section 5.5 concerning the architecture of the test site's power distribution system. Figure 5.18 showed that the BER increased as the physical location of the receiver neared that of the transmitter. This trend in Figure 5.18 is explained by the fact that the "link" between the General and Lab Systems is located on the first floor. The transmitted signal originates on the fourth floor in Room 458, and propagates over the Lab System to the first floor where it crosses the link. The signal continues to propagate from the link throughout the General System towards the fourth floor. Therefore Room 113 is closest to the transmitter, and the Fourth Floor Stairwell is farthest. The Fourth Floor Stairwell although being the closest physically, is in fact the farthest through the power line channel, and its BER, BLKER, and percent of lost packets results are among the highest (and worst) in the building.  74  6 Conclusions  6 Conclusions  6.1 CONCLUDING REMARKS  This thesis has pursued the development of an intelligent modem architecture for use on interbuilding power lines. Modem functionality and cost have been primary design and evaluation considerations. The basic task of any modem is to provide a means of communicating over actual, non-ideal channels. The transmitting part of a modem accepts information from its host, and modulates this information for transmission over a channel. The receiving part of a modem recovers transmitted information from a channel, and sends this information up to its host. This basic limited functionality is insufficient when the modem is used as a "transeiver" under actual network conditions. In an actual network a host is constantly utilizing the modem's abilities to send and receive data among a number of other host computers. All of the hosts are potentially busy with other tasks, and should spend minimal time in communicating with their modems. An intelligent modem which does much of the processing otherwise done by a host is advantageous over a non-intelligent modem. The power line modem developed in this thesis is microcontroller-based. Several important revisions and innovations to the earlier preliminary design enabled operation at transmission rates up to 19.2 kbps. A data link layer is provided, to enable extensive processing by the modem itself. This processing includes byte and packet synchronization and recognition. Judicious division of data link layer functions between modem and host facilitate choice of packet length and format, and enable accommodation to a variety of applications. Many test results obtained using an industrial building as a test site are documented in this thesis. The building contains two different systems of three phase power distribution. One system distributes electrical power to many laboratory and machine shop rooms. The other system distributes electrical power to lighting fixtures and wall outlets. The purpose of the tests was to determine the modem's performance under actual 75  6 Conclusions  operational conditions. The tests were used to obtain extensive data to estimate bit error rate, block error rate, percentage of lost packets, and throughput. To facilitate comparisons an initial test was performed in an isolated location in the Lab System. The results indicated that performance on some channels differed from performance using the best channel by as much as 30 dBmV. Another test was performed using different locations within the industrial building. The results show that nearness of the receiver to transmitter can be a dominating factor in the number of transmission errors. Baud rates of 9.6 kbps and 19.2 kbps resulted in relatively high BER performance for long transmission distances. These two baud rates produced bit error rates in the range of 10 -3 and block error rates above 30%. On the other hand, baud rates of 2.4 kbps and 4.8 kbps produced bit error rates below 10 -6 and block error rates below 1%. The test results give an indication of the conditions under which each baud rate would be appropriate. Rates of 2.4 kbps and 4.8 kbps are relatively slow but provide low BER and BLKER values even under long transmission paths. Rates of 19.2 kbps and 9.6 kbps produce relatively high through rates and acceptable BER and BLKER on short transmission paths. The test results also indicate that performance at 19.2 kbps is very sensitive to power line noise. The BLKER may change by as much as 30% over a two hour period. The lower baud rates, especially 2.4 kbps, are not as sensitive as 19.2 kbps to channel impairments, in our test environment. 6.2 SUGGESTIONS FOR FURTHER WORK  There are several potential enhancements to the 19.2 kbps modem. The first enhancement would double the bit rate of the modem to 38.4 kbps. This rate increase could be accomplished in one of two ways. The first approach is to replace the current microcontroller with one which operates at twice the speed. In order to operate at 38.4 kbps, the modem's clock circuitry would need adjustment. Using the current modulating carrier, such adjustment would result in three carrier periods per data bit. The second approach is to change the data carrier modulation from BPSK to QPSK. This alternative would maintain the symbol rate at 19200 symbols per second while doubling the bit rate to 38.4 kbps. In order to change the modulation scheme to QPSK major changes would be required to the modulator and demodulator circuitry. Also, the modem's firmware would 76  6 Conclusions  need slight alteration. Such enhancements would be appropriate in relatively noise-free environments, for those applications which require high bit rates. Another enhancement which could be made to the modem is to replace the microcontroller with a digital signal processing (DSP) chip. With this DSP chip the received signal could be demodulated using DSP techniques, and the Costas loop would be eliminated. Familiarity with the required DSP chip would be needed in order to determine whether bit rates above 9.6 kbps can be obtained. A third possible modem enhancement is to implement a forward error correction (FEC) algorithm. The addition of this function could greatly improve the modem's BER and BLKER parameters on noisy links [48]. A further enhancement would involve the incorporation of medium access control as a part of the modem circuitry. Such control is needed, to enable orderly access to a network, by otherwise unsynchronized access arrangements. A modified version of CSMA is an appropriate access control scheme [44]. Polling may be useful for some applications. An implementation which allows either CSMA or polling could be useful. Preliminary work indicates that the modem described in this thesis can be readily modified to accept medium access control circuitry on the modem circuit board. A very large scale integration (VLSI) implementation of the modem would provide several advantages. The power consumption would be reduced substantially. The modem would be smaller and cheaper to produce. Digital components are more reliable than analog components and hence an all-digital BPSK modem would have this added reliability, relatively, over a digital-analog modem. The power line modem could be implemented as an internal personal computer (PC) card. The modem would take its power from the PC backplane and packets could be sent to and from the modem by the host PC using direct memory access (DMA). This approach is very reliable but is somewhat complicated as it requires a thorough understanding of the techniques needed to design an integrated PC card. Connection to the power line channel would be accomplished via an external connector.  77  References  References  [1] Frank Kwok King Chiu, Intrabuilding Polyphase Power Line Networks, Department of Electrical Engineering, University of British Columbia, M.A.Sc. Thesis, Dec. 1985. [2] R. C. Dixon, Spread Spectrum Systems. New York: John Wiley & Sons, 1976. [3] Dimitri N. Chorafas, The Handbook of Data Communication and Computer Networks. Princeton, New Jersey: Petrocelli Books, 1985. [4] Peter K. Van Der Gracht and Robert W. Donaldson, "Communication Using Pseudonoise Modulation on Electric Power Distribution Circuits," IEEE Trans. on Communications, Vol. COM-33, No. 9 pp. 964-974, Sept. 1985. [5] Morgan Hing-Lap Chan and Robert W. Donaldson, "Attenuation of Communication Signals on Residential and Commercial Intrabuilding Power-Distribution Circuits," IEEE Trans. on Electromagnetic Compatibitility, Vol. EMC-28, No. 4, pp. 220-230, Nov. 1986. [6] Morgan Hing-Lap Chan and Robert W. Donaldson, "Amplitude, Width, and Interarrival Distributions for Noise Impulses on Intrabuilding Power Line Communication Networks," IEEE Trans. on Electromagnetic Compatibitility, Vol. EMC-31, No. 3, pp. 320-323, Aug. 1989. [7] Paul E. Green, Jr., Computer Network Architectures and Protocols. New York: Plenum Press, 1982. [8] Dimitri N. Chorafas, Designing and Implementing Local Area Networks. New York: McGraw-Hill Book Company, 1984. [9] M. E. Van Valkenburg, Analog Filter Design. Toronto, Ont: Holt, Reinhart & Winston, 1982. [10] Leon W. Couch II, Digital and Analog Communication Systems. New York: Macmillan Publishing Co, Inc., 1987. 78  References  [11] Roland E. Best, Phase-Locked Loops: Theory, Design, and Application. New York: McGraw-Hill, 1984. [12] IEEE Spectrum, Line Upon Line, pp 25, September, 1985. [13] National Semiconductor, Special Purpose Linear Devices, Data Book, LM384, pp 126, 1989. [14] Herman J. Blinchikoff, Filtering in the Time and Frequency Domains. New York: John Wiley & Sons, 1976. [15] P. Bowron and F. W. Stephenson, Active Filters for Communications and Instrumentation. New York: McGraw Hill , 1979. [16] William F. Egan, Frequency Synthesis by Phase Lock. New York: John Wiley & Sons, 1981. [17] Vadim Manassewitsch, Frequency Synthesizers. New York: John Wiley & Sons, 1987. [18] 8 Bit Embedded Controllers Handbook, Intel Corporation, 1989, Literature Sales, -  P.O. Box 7641, Mt. Prospect, IL, 60056-7641. [19] John Ogutu Onunga and Robert W. Donaldson, "Personal Computer Communications on Intrabuilding Power Line LAN's Using CSMA with Priority Acknowledgements," IEEE Journal on Selected Areas in Communications, Vol. 7, No. 2, pp. 180-191, Feb. 1989. [20] William Cheung, "Design and Test of A Bit Error Rate Tester for Power Line Modems," Unpublished In-House Document, University of British Columbia, Electrical Engineering, July 1991. [21] Ron Jeffery, "Hardware Documentation for 9600 BPS Intra-Building Power Line Modem," Unpublished In-House Document, University of British Columbia, Electrical Engineering, Jan. 1990. [22] Simpson and McGregor, "Electrical Plans," Structural, Electrical, Plumbing, and Heating Plans for the Electrical Engineering Building at the University of British Columbia, Thomson, Berwick, and Pratt Architects, May 1962.  79  References [23] J. J. Stiffler, Theory of Synchronous Communication. Englewood Cliffs, NJ: Prentice-Hall, 1971. [24] Dimitri Bertsekas and Robert Gallager, Data Networks. Englewood Cliffs, NJ: Prentice-Hall, 1987. [25] Bernard Sklar, Digital Communications: Fundamentals and Applications. Englewood Cliffs, NJ: Prentice-Hall, 1988. [26] Roger M. Vines, H. Joel Trussell, Lois J. Gale, and J. Ben O'Neal, Jr., "Noise on Residential Power Distribution Circuits," IEEE Trans. on Electromagnetic Compatibility, Vol. EMC-26, No. 4, pp. 161-167, Nov. 1984. [27] Kurt H. Mueller and Markus Milner, "Timing Recovery in Digital Synchronous Data Receivers," IEEE Trans. on Communications, Vol. COM-24, No. 5, pp. 516-531, May 1976. [28] Jerry J. Ransom and Someshwar C. Gupta, "Performance of a Finite Phase State BitSynchronization Loop with and Without Sequential Filters," IEEE Trans. on Communications, Vol. COM-23, No. 11, pp. 1198-1206, Nov. 1975. [29] Marvin K. Simon, "Optimization of the Performance of a Digital-Data-Transition Tracking Loop," IEEE Trans. on Communication Technology, Vol. COM-18, No. 5, pp. 686-689, Oct. 1970. [30] William J. Hurd and Tage 0. Anderson, "Digital Transition Tracking Symbol Synchronizer for LOW SNR Coded Systems," IEEE Trans. on Communication Technology, Vol. COM-18, No. 2, pp. 141-147, April 1970. [31] Marvin K. Simon, "Nonlinear Analysis of an Absolute Value Type of an Early-Late Gate Bit Synchronizer," IEEE Trans. on Communication Technology, Vol. COM-18, No. 5, pp. 589-596, Oct. 1970. [32] A. Erbil Payzin, "Analysis of a Digital Bit Synchronizer," IEEE Trans. on Communications, Vol. COM-31, No. 4, pp. 554-560, April 1983. [33] Hisao Yamamoto and Shinsaku Mori, "Performance of a Binary Quantized All Digital Phase-Locked Loop with a New Class of Sequential Filter," IEEE Trans. on Communications, Vol. COM-26, No. 1, pp. 35-45, Jan. 1978. 80  References  [34] W. C. Lindsey, "Phase-Shift-Keyed Signal Detection with Noisy Reference Signals," IEEE Trans. on Aerospace and Electronic Systems, Vol. AES-2, No. 4, July 1966. [35] V. K. Prabhu, "PSK Performance With Imperfect Carrier Phase Recovery," IEEE Trans. on Aerospace and Electronic Systems, Vol. AES-12, No. 2, March 1976. [36] V.K. Prabhu, "Imperfect Carrier Recovery Effect on Filtered PSK Signals," IEEE Trans. on Aerospace and Electronic Systems, Vol. AES-14, No. 4, July 1978. [37] Brian Markwalter and Christopher Russell, "Consumer Electronics Bus, A Robust Communications System," IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 42-43, June 8-10, 1988. [38] Ryuji Hamabe, Masashi Murata, Toshinhiko Namekawa, "A Protocol Example on Super Home Bus System (S-HBS)," IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 44-45, June 8-10, 1988. [39] J. A. Tritton, "Interactive Home Systems (IHS) - Principles and Applications," IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 46-47, June 8-10, 1988. [40] Ryuhi Hamabe, Seiji Hatano, Kenzo Tatematsu, and Kenji Tida, "Comformance Test Concept for the Home Bus System, IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 48-49, June 8-10, 1988. [41] D. Fezzolo, "Characterization of the Power Line Carrier Communications Environment of the American Home," IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 50-51, June 8-10, 1988. [42] Tetsushi Sakaguchi and Hiromasa Nakatsu, "HBS's Communication Function and Routing Management in Various Network," IEEE International Conference on Consumer Electronics. Digest of Technical Papers, pp. 52-53, June 8-10, 1988. [43] J. B. O'Neal, "The Residential Power Circuit as a Communication Medium," IEEE Trans. on Consumer Electronics, Vol. CE-32, No. 8, pp. 567-577, Aug. 1986. [44] John O. Onunga and Robert W. Donaldson, "Performance Analysis of CSMA with Priority Acknowledgements (CSMA/PA) on Noisy Data Networks with Finite User 81  References Population," IEEE Trans. on Communications, Vol. COM-39, No. 7, pp. 1088-1096, July 1991. [45] Robert Matyas and Peter J. McLane, "Decision-Aided Tracking Loops for Channels with Phase Jitter and Intersymbol Interference," IEEE Trans. on Communications, Vol. COM-22, No. 8, pp. 1014-1023, Aug. 1974. [46] William C. Lindsey and Marvin K. Simon, "Data-Aided Carrier Tracking Loops," IEEE Trans. on Communication Technology, Vol. COM-19, No. 2, pp. 157-168, April 1971. [47] Marvin K. Simon, "Tracking Performance of Costas Loops with Hard-Limited InPhase Channel," IEEE Trans. on Communications, Vol. COM-26, No. 4, pp. 420-432, April 1978. [48] Morgan Hing-Lap Chan, Channel Characterization and Forward Error Correction Coding for Data Communications on Intrabuilding Electric Power Lines, Ph. D. Thesis, Department of Electrical Engineering, University of British Columbia, Canada, April 1989. [49] William C. Lindsey and Marvin K. Simon, "Optimum Design and Performance of Costas Receivers Containing Soft Bandpass Limiters," IEEE Trans. on Communications, Vol. COM-25, No. 8, pp. 822-831, Aug. 1977. [50] United Nations Economic Comision for Europe (UNECE), Electrical Load-Curve Coverage. New York: Pergamon Press, 1979.  82  A. Hardware Schematics  Appendix A  Hardware Schematics  The following schematics detail PSK modem hardware.  A .1 MODEM OVERVIEW A.2 CONTROL UNIT A.3 BIT SYCHRONIZATION A .4 MODULATOR A.5 COSTAS LOOP DEMODULATOR A.6 RECEIVE BAND PASS FILTER A.7 TRANSMIT LOW PASS FILTER A.8 LINE COUPLING, RELAY, AND POWER AMP A.9 POWER SUPPLY A .10 TERMINAL INTERFACE  83  •^  W  Q  •  Q  •  ♦  • y tt  I t  0  a  • • q  0  •  K  •  a c  0 K  K  • a  a C d  00 <  84  ^  >^0 t11 Nr  N  \\\\\\\\  2  0000000 (<4<(<4<  I  0^Er co D  OrNMetM  o  ei^ 8 Z  A  rNMOON00  0  0  N  I-  0  000000 0 0  x  cc  O  o,NmItmoncom,OrNM Mr100. 4<<<<<<<4<<<<< 1000.>  0  0  V  Cl)  0 "+ o— —° Z  ,,,  CO  0  CD  et  0 Cl)  CD Cl)  cv Cl)  Cl)  OrNM M OrNMetOON00rrrr r  LL  z Oo co^ Or  <<<4<<<<4<<<<< < ■■■■■■■  ■  ///,///  MZ  rNMVIGON  4<<<<<<<  lq  0J000N000 rrrr  00000000 00  I  or O  CO  \-1711771\  1/7/////  OrNMetOWN 00000000 <<<<<<<<  00  ck,z 00  r  0  0  cv 0,c,mv,0N  cr) CON  tt)  OrNMetO  co O  co  QQ  Cl)  NN  O  Cl)  co  Cl)  NI0100 rrNM  or r  Il  OrN0/00N MWZM00  00000000  66N60i66N  aaaaaaaa 00.0.0.0A0.1^cL-1 I 0.  N  D  N^0-^0700 0^f-1-  0t10.N.  ,  taciaLlat  ICU X  Wc f),t  0 O  0 CD N O  ,  III  np  MN  0 0^V—. Or ..  O  N I  2 co^A  ^In^ ^ri-I^I0D N r'^0 N^ ^  et  0,  (:)  00000000 CO  00  0  m  D^v-^X  X  0  0  Cl  x  X V  0  j 0 Z A )^IS' L./ co co 0^0 VVVV 1 VVV X  ).  85  E  J^N  z  z 0^15 u^0 a .  w 0 UJ^CC Z^l—  w 1 < o 0) o O w^ 0^ cc 0^i oo I—^J C.)^2^t r W k. w o J^Z .0^ et WN JJ^0 E Z^LI'CC 3^(I) 0 0 W z^c  r.c -- i^% o "0 O Ili^t  D  E  z 12..^o  D a^00  2 <^0 2I0 0 w E^No < 0i o 0^ 1 •^0^0 -  0  0  8 A  e)  I  f-  C  0  0 0  0  co 0)  N  x  0 0  PS  cv^I m  o  el)  it  C  0  csi  I  C)  0 M r)  C  0 O  al 10^tI)  . N C')  0  8  0  tO  ti h 4  C4'  2  z C  a  2 0  0  CO^to  I-  a O  > „0 0•41---C  10  ^C C.0 Y 0.J O  0  N  Ni N  0  .1•1.=••■•••■••■••^  0  40900 00000  I  a al-Y i ¢  0  ZZ-1 0-1 <MOO wuJUJf.)  el V to CD  N0 N  O O 0 8^ 1..^I0 0^0 IV r1^I ^V  043— +  r 0^N 0i 0  N IN  0 N  I- 1-  .-evr)v0m 000000 N  N r) ,-^1-  U  CC I  r)^11)^J 000000 00  0 O 0 1.O 0^0 It^I N^I f)^V fl^a O r 0 N Ita^A0r 1. 1.  A N 0  0 0 I03^0^< o^I^0 m^a^m ....,Nr D e. -„  ^  ,..,, „,  0  U  I  N 0  To  0  •  >^0  A A A  • (11 N  0  0  << 1-^I^> x^< I-^0^co7 x  0  co co  (C)  7  N  cC  CC^rrt 0  > I  N  o to  N +  CI)  .0  C)  N.^0^r)^V^in^0^la)^N^,C°^140^ 0^In {1)^a■c?^00 CC^cr^0i^cr^oi^ct^cc;^cc^0i^ n  .J  2^d r  o. E  7^11) Z^C  ,  co^co^co^al^co^co^co^co co^co^a^co^co^0)^0^Ct)^co^co  +t  h^0^1—^I—^I—^co^I-^I—^I— o co 0 g^0^0^U 4 0^0^0 ^DI  N+  DI DID  ^I D I V^V^V^V^V^V^ I I V ,...,---■N r` •• ,....•■■ .N. N /•••••■N N „.■—■N N/*....--..Nrs',...--Ne;:s7-.... ..■N \N O  0  <  Din  0 0^N CI^r N^V II)^M 0^N M^r N ^V 0 1-^1- 1-^ r^T. r  •  IA 0  Of  D c), a  VI)(001-C)ICI) T  ft)  6888'6' 80 < co^0 0  0  I  0  NCt) OrNe)  ,  00 < N  0000 0000  NNNN  I  0 r N  VI V Cy)  •N  N O  0 0) co  10  V) <J-0 0.11^0 J  O  J  CO V 0 COI  0  < Q 000 0  fD  ty) Ct) < LO () 0 crt^<^0  N  D  0000 _, 0  0)  0  I  (.3 01)^  A A  O 0  a  NO  <C00 0000  D < < CO^CO  co •••••■■•■..  0  I  D  co  0  N  000( N " •••■  0000  0  "  o5 Et Et  2  1.•  87  O  I a  p  I  0  2  I  CC  31 Hip 41600^I  C  .1 eI  1616^5"7—5  .  Ego ^  -  4 "k  HI VS  -  '114  44+  -  sasz  Fe^  C  ag  dsziathals  1(.^ Z  1  4-  R  °—I(^1E-1.5  5 !^5!  as  5!  r1-1(^1E-C.5 ■ ti  r. •  1(---I*5  ^1E-,1 88  • .4  0  N 1•1  0 N 0  wl  N  0  VI  4.1 0 Z 0 U^-. •  .  89  0. •-•1^Z 6-1 0 U .-■  ^ ^  •  0  ei  z  CC  w  w  z  LL  U. 0  cv  0  0 0  0 —.1  0  •  IL  2  n 0  Y^Y  n  in  O al rcl" 2 < a 0w • 0  ma, ,.  -J  z 2  0 0  o9-  0  I 0 CD  W.  ctW ,gF  LL O. 0  ti  )  Hi.  CO o z U.^U.^n  LL  z^z^a.  ^o  ^D e) o +73 8 ^0 a  ^0  0 ^1  > 0 s. LU 00. :( 1^ E—t7.Cr‘.1 .^ ^> 0 J  F  a.^cr  0  LI.^it D uI 0) Z  0  90  z  /<  eqco^ . $^It N. $ CC I .-^  Cr 0  1  .7  a  .c  1  rn  0)  f. O.  z 0  I-  0 N<  (T)  0  ^ ^ ^ ^  >  0  W p r A O '1 Z^V  = M  g 5 ww <^ a^cu z^LU u.^ c3^> z 0 D^  H  a. co  u. covie >^ cu li, (.)^ni^J^()^ 0 4  ^o <z N 0 ;^;^c1 c-^> :^g 9 s•i z^or) ,z^ co 8 5^2J 0; <^ > ^j J W O W^Et ;j, 1 r ili^ 4^ +^ Z IL^• n^%,.;, g^ 0 0z E0^r U.^ , ti il ^D Z z^ c) W S E^a Z o ^U. ^I=.^ N^tl) N o^ ^1 11J  ,  14^4  ^N  Or  z 2 0E 2 0 a co w u 2 o. <z .--wF—III 0 0 ow 0 z 0 D. 0 HHIll^ 0^i.. ^ ;^N < 0 ^ O 2^ F 0 0 D  -I  1- N  co  CD 0  D 03 0 CV^I-^IL 0 ()^0 14 0 0—, CV  a. N^0 .  N  :  D ^CC N^Ur^I-^C^< > 0 11 in^ 0 Cr^  ,  ^g  0^u. 0 1„1^0 14 v  1^  r  W  co W  LL N 0-  A 0 X  I11  91  >^  >^ CV^  +^ 0^  '.; 0^  0  U. 0, 0  >  N r  6  u.  mD r7  I% 00  —  >^0 11.1 0 r• CC  >  I( I" ^•  00 ----  HI  ,  5  >  tv Zo- oz0 n r`. v2  ^II ^  0Z0  II  0 >  0J  ",^0^2. •-^N ( ^r0^0  I  :  II l0 CC 111  2 CC 0 u. U)  Z  <  cc 1-  92  ▪  ^  ^  N  M  •a  N  O  a  •S  a  CI  O  O  GL  5  .  CI  000000 o 00000  n.  L'  to 0  0  U  n  Hip  • 0 .  un  * HE 1 11. -  -  N 0 N U  N  HHI"  to  a a 2 a •-■^a Ch  0  • 111 rti--1(^ C. 0 0 N  .-1  N 0 U  C. .■ N 0 4-1  o  ^  ^  N  U  93  0 0 N 0 U  H(^I(  4  2',  B. Firmware Listing  Appendix B  Firmware Listing  Following is a listing of firmware source code in the modem microcontroller.  94  ^  ok  .  a^ti  s^.^1^ t• P.• a^ i . 3^-a^ .^ g 4^4:^.^g ; • il^ agi^1g^04.^gii^ 1'^V.^.1^V t^ A^ig^ ••1^ 164^  eV'^M/4.1441qt 2^A^-^t^a ^ ^ o^woo°^ 44^.4..000^.444J oAA0^a^4^2 5^V^g^2^... ..^ !^V^1^.^..., g• \\ *4 0^ O  0%^.6^0%^O.^*ft^Oft^*ft^..^..^ea^Oa^Oft^O.  .1P4 41^ 0^.4 1 g^0 en ^ .^ti 0+^1 II^+^44^V^0^4.^  ..z, ....^..^..^..^  p;  N ,1 w: ... ^ r.^ ;^r. ;^441.1  ,.;  4;  .1^V  ,.; ,.; ,.;^ri^ ,^  0NMWNIVN^00N .....^NO^  Oa^  Oft^  i^  0*  z ee NH 1410  0.  ^il. a ^.80 i .-a^ 1 q^o I1^o I^ ^ed ^r4 g g . 2 t.. 1.5.. .4. ^0m^• O^ A .. .6"^ . ul^ 5^%^.i.i.^U^n .1^ 0 ^0 I 4 E^ • .^1^ O/ V1^ ..,..^..z^EEEN 1 I^0^I 2 '^a^t^gl^ ICII ^54^0 8 ^1 OV^ "1 : I • •^ t^ 2t8b^h^g^I il^ 1^ 2Mgra^g^ligg2g012 ^ 3.EI 0100^0^0^NWM^NWM^0^gaix.^.4..0^0^H^0 ^41 ^ ..........44^.............^. I 101 nael iF t ; a lin^■ . illii : ii a : aii :•• •^I^...^....^..^.• ^4,  ..^  ^  ^'  01  414  ^Mtn Ili=  0-^  2N. ..^•10^i .44^ .....,..^ g^:1^ •^I^ 11^ii^ '^ ..^ACCA^DI H^z^ A^ 0^...^44^00^ I' ^  ......■  PONW I7  1  $:  • r^  .  74  SI a^S 44it V • • . 1. l^.^. s a. SIN .28 .4 .014. o6 E'''^• 11^ 4.1^ 1 25^ .44 V A 44^14 .I.^.54.^ Id^8201^"";^ g,•• a^'bill^ V^2 ^• 8^OM^.+4^0 ^••^ i^itCt4St^ 0^. 10^N 4^-4^ +4^II 30 a^...ou .0^ o^ volE2t isPs^•^ i^?^1 11 ..00 2^.^m0^ 1 11 1 V^illwit"^ 0^ws^0 a^•i v itA2^ 241^ • 10^11:1^ 0^ r^8^4Z^° pre o otos^ o^5.*2"^ 1^:044 446^ ;.:^Z444^'' 41 i^3^ a, ": ;^ s:eva^ 57.1^82.00^ogV^ o^ t isvli• .^z el'-o"t"^ MOO"^ .to4 r 0^ •4 11^ 177 4,^88aV^44' girl^ 21^ if2451^0 2^ g.4 i^ ..!0^6^21 2 0 00120^ 128^V8^Z^i^is11 0^ H H H H H H^r; a. 1^ 04^ "'gal^I^moo^ gi suolot^ 0 °SSP^ ta Si 1 • :5^ ^t •^... ^ 4 t^ 0.-4rom. U^. ^Bgenvo4mmiso^g Hes1 ^.2.1111^ .3.2...11^ t 0.4....0, • k^PAli^ 11142!!^e^ "1204 ^: '^lil !rui:i4 :gr.^ 0^ 1101414 ON .171 k1Cg ..liai4444^aia.."5^v .^ o a^•4 6 .1"0 8 t§^i^geK4u1 g, ili!; i!sqii^st to aa]..a..Z ^il f ^5 ^ ,,^t v^v ^ZgOigeAtstrn 00^ - 1 -1 rgOggr r 0 ••^6.40^ N H..6414)400100^MMX0^0^CO^UM •I>^ .40  1  .  H .77^§^igls 5^i gl is z -^s E^ 14^H1.1 H^ g0 ^ 88^080 1 V^.^u^ 0 ^0^."I^ . I^..^.0 ^.......^g^•^4■;^ 2 ^21 0 i .•., it 1iiiiiiiiiiiiii liiiiii i r.^pig^ a °^4e-.^ i 82^:Z ^8883^"A^1 3^-^.4^3^0^ t^•^.4^•^2 v 4°.^Wig^ Sg saai- ^&^0 F i g^i s^!I^X^1^I^.Y^ Za^2' a^1:44u P m:i 6..^ :4 . ..^.. 00^• a. 00^ 0^8  1  0 N A^• • • •^•^•^a^0  %^  44^  •^  95  A^  ^ ^ ^ ^ ^  •^  4  4  ^11^E .4^td ^.^m4^a ^u • ^i Z ^la 1 ; 'd  d  IIF^F^1  1 1  4 0 .0 4.1 w ^81  •. :•  u  .1^ I pi i .4,^m4 l ra rt g^A^ ..^ 1^ 141 a  e  ..  0.4^  0^•a^0 .42^  8 AN^  4^ LI ta oi !ill il L9 1 1^i .. !lif v^ .^ ^....S.4,^ AI l'o^ .40W .4^• 41  .Thgal •4 •  •  I  000^IV^ 010.4^4,0 0... 7:81 SO.^ • 4 g^.• r4 mk^ • 014! We^1 • ^• 7Ci' ,^4JI^la 14 OV40 41 m•41^MMO 111 411 01 ^ 71 I 01 g^ 4400 MU^N._ li^al i 11^81 a I^0^ 12V6^124^ 0 4 ^• .. .. .. ..4 ......^ ••••^ .. ..^..^ •• •• ••  O k .•  ^ ^1 ^8^8 4J  a la  wWF4  1  '4J8 1  o  .o g "...it 4 4 1^lig^1^.2^ 11200. ea^w, t at .f., 88o 4 s.. V  coa . 00Q • V VV00^W ^I^ ^m^ a 0 W •.0■  r^1W.:0  A^ e^  1° 6 1/21^Al^ ilt^‘ 444. a • 444^ .4 . ,,4z w.+ 1 . 1 4.^ 1440.4.14^  414■0 I^  i: .1E.A,z.il A  .4, 4 ri  ri e sn,^ .e,  ^l i t.,02 0^.i".4 e  S2 weec:'  I V. g s^a s tA vi .a...i...t .J.5..zeN e o.i4o.ioa,...,^ za^.0 . 8  g  R  .44  V14dA EIZ40  thilil !■ 11H liEl . HIE1711111EITIll IM. Wiiiii !MU . t  i!  --...^1  .8m  g. W g  1•^i  41  .; o1 .4^ 0^.40 8, 0^• 8 ^• • a a  1:4^...1 O1^N V^V  f.• co S^li: u^am  ot o^• ^U  ^.4 g^ ^a  ^44  .-1  2^i  ^a14  o • I I^/11, 44'P A il S^uI, ^! 0^ 0 1 1 .64^.-41^4., .•• •^ ^2 ^8^ 14 u O  •^51  .....^tt 0 ^tot^ 1 0.4 .1^f• 14 Fi^  1  lvt^2^0 t 0^8. 4^4° 4,^• Sal^i a^.4.8^is^a M u ^2 ^t 0^ 0^ N ^m^ 0 0 O . .1 .4 r-^o^S^:•4 ^V ^8 we^412^ 2 .-1^0^0^a 14^2 $1^a^ m^e^ai o g^ •^o^• ye^OV41^ 0a ..1 -1 0•^t .. ^4J 0^ •^4^t4 I N^ • '0^AO^ •^. 4m^.4.^ •0,^•.^0 • O 0^AV AO^0%^0^V lit^ ^a^Am^ .0.1 I^ 0 ,4 1^ .4^.4.^ I^  C  •••••• a^.a^ ••••^••••^ St t:s,^ ma o i 1^ --. ^111140m 0 0  104  :42^ W 14^ I-1^ OI400 7041,1^ 0 4440  k ,  AN m 1.4.1^• -■ 4 0^00 0 . 0  w- vqtr.... f•^ 8 0^.^0• 0^ ocw: .ow:, 0^ 0^ an^IX^A^a/.4--i^•^...1 a .82 20 gaarittp zg t^u t^ls.- : :^ A^ uM a ce u 4 .O-744 g graq HVgmig VAD^iNg g Ng KtPLII: EHEti a 0^ adWN r4  ^g ^V  ^■  •••• i^ 4, i I^  4^2^ O^  0 .4^  41. 10 41. 14^r4^•  cv v o m^e. ...^  a^ • •^•^ C44444 al • ^ Ilxitli•f, r., ^• sa.■,^ ga u^ m u 00,40.^MUNNW0A0 4 • NN MaMMO.■ .4 a M6.4^am■to141.^me CO ^ 4  8^'11 .4 •  •,,OA ^.htt ilttttg OtOttil ()Ma Ailing/^V •••^• a •^  14  414!..d. 1-011  2  ^I^6:  "  2ti.li^1111111 8r•" 1 hilid 81 a 2^ag^ 41 ^ aa a."^ Ala-^4, ..4^a S"'^ 11.^A^ • •^••••^ 4,^a  OU^ ^ NM NM  v  0 111  MINUS 0^00  001116^111(3.74  gtt^:^to.-4^ a^a^moo^  . • . • .^.,.....^  t^it^ a^m^  ..^..^  96  2  go' .... .  ..........  ^ ^ ^ ^ ^ ^  •^ .4I ...1^  E ^1^4^8.^•^gt; .1e 1^4.,^xvg 8° u^11 P ..1 1 71 .•° 1 v .•1 l^-1 1 61 4^8, .^....^ .^1::^ I U l^63 1o "."4 1 V" ...."1 3^14^ VS 384 ° IN lir a .23 3 3 ^ur.. t Inridt 2 o 3 1 .13,3 ,44S'Itt am If 3.2.10 ,2 4 13" V 0 .4 1• OP f^" I 41. i^ 3 t•4't°43,45. 11^lo.4 1 3°I.'42t3 itr''' i^f^12 i t °14.. ti t'.24:1 V 8 8 t °lei t °I" t'4,3 v ict t'3 ^'t 1^0 .4^  1  V I / 4864m•si oo 4  i t^  o 4 rftSutsiu4:48.3 oC^k Ig^ •-■ A 1014M^0 00^lo (1310. 0^ 3 44 8^ ^0*ms/will. ..4kbe^4 ow w^ 52^3 o K tuw0wo A ^• ^0 14 14 .4 ovol 0 000 0^14 04100.4”1 ;AV^ 9 " I" ,3, .014 ofeNe $1 4^••^.44 •4* 4 0 0 ,64^noon. lo.^ • mogate• ft eZn't•sitt ."twt•02.8 v.°^ill^14 g ^4 0  ^,  va  ^2  t 11#tOt1120.8SOkt#ttOt°#,I4o°10 1 .0ot 7t W'^1 rip^. TO^14^ 1 0. 0 W i rAll 'l ga^ Og: ""p ft0S A 4Ztag :g • ." 2: 44Mg  441  0 1 II trnt .w• 111. °44•"",".""7404t•""ZT^  11111111W11111111111lI/t410 141g0 li^• O. 0. es 44, *ft •ft eo 0. 0% el. MA Os Or, 0. 0.6 S.. Os 'DO 0. Os Oft Os Oft Oe Os 00 •••• Os Os Oa Ol. Os .... ^••• ••^  t  1^i I^1•  0.^4.6^  ... ••^••  i "i 44^ 8 1  Z^  1^ 14^On al  a^t^- 4.,^ 1 I -•. a IE^E ,.^. g- .'II 4^ o o^ 4^ z'E E utt...:m28. il, 3. 1 IN :. 1^ittE c.,' mIro 2 88° '' 1 i 1 g^  U  AI At  0  U  . -;  •la 0  .4  s it^1.4 A "P..^.3oP"*Vit i u 3.,u 2 Q. 1 I co .4°4 8.'1'14tsze 4 104 1.4c.4" 4 1: 1 '0 1:11 . 3 °I •n . t^ 4" : g^ 8°1d. •^••••^•4,111 ko0^N• NtaVW004thg^01140eMaNWOOMOW0 0 W^0^ ... g' 4 § 'm00v0Fol " " V 0" " W i"00 0 " ' mU^04 1g ' "' ' .i411..i,i.v.vg.ii.i,i.iti.ii.z.iii,i.i.i$ . E FE dE• M0a^044•^ .' *311 111 "4 08 1' g 211 op 4 114 13  •,....+ + •  • it^pi 0. + # + #4 IF +  e  +4.4 • it  :  ^.4 1.11 T4ti 14)10^1111101:1^ M•  ^.4 tqlhAilifAMAIRMVS ittr 4t7IttththiEtia14110 4.NOwOU^100^• ' 0 ,  1,  ; 4.0  Col  4P m^ , 1^r•I  .40^4;  2  co  3411  U  uFe'  4^14 a^: ^II  it^.  I^  ^14  to  vet 2^.44  A^8.3 10  ^8.3^ +.1^ 2 t ,1 id^0 ^A F^ ^• 0.14^ t 0 O ^0c;^ X $4^$4^A^• 11.8 •  . E it^4t.  0^644.,^4.1^ .01^OW^44^ ^5 1J^ / 0 0  a  .0u  • .^ 4 '4^ a^ ... 14^ . ^ M0^ u S" ^8^ II es^ oc^E 00 • " 0  ^44 ^14 ^+4^  i^o 1  go^goo  4.•^44t.  8 Or..; F^ go u 4 14 CI^4.4 ! 1.: V^14 2^...I 144 i^ +1  a ..I^§^  114^01. 3^$4,44.^211 t1,6 ^.. ..,^. .co^to^ .44 U *1^14 14 1^4 1 :58 0 5 .t.:t it.8v41^4. ^AA^ 08^.41 0 14 OT1441^°a' 24! 44^0^ SS^S^ 3 8 o A .s. ONVZ 0.2^ or e^ow..,0 = co ..4^2't Se ie ...I^ re4 1.1 I, ' "11c):^g^.^fi^ ^il 84^ ..... S1.88 ""48.,^ wu^.c! 2 V') 3^u sf ^St 8' c'w^Ale g 0u.^Ob.o0^14 ^000 14 4,0 0.. 0^%414^0) 0 ..^ • 0 .0^•4 0 44 A OW ^I4 0^ ii^0:8^ orf^...14^ee^.4 0 8^i^ 4.)^0 .4 •• 14 $4^• 14 tO 16$4!^o^ • ^••^ 1^•  r^ -r,v: ....g •^°r • . 81 1/^a ^1^ pa 1^ ,l; 1 zi vig E i^...-^ ad:F. MS I .0..11 t.: Ll ^..^ a^ •. s  ^0  C  0^ 110^  orij110 0  X0 Oa^X00^• Do. 0 4.1 0 0 •  o^ 0^ O .0^• .2^  .  ..  en^  a^ .^ w  o^ V^ o.-I • 8^  io  ..A^ l  i  oa^5 F %A Stt^ St8^AZ'S^ aiE^ g 6 8`8 k^.7..11.88 •7; "1 A^iliS V8 ^.3°r 0 0+ 10^01+1^4)0.4^0+^SI •^•^ 8 but^ '6. + 0^ . ^, ,..,^ . 4^.. i 6 ..... 1 ^,.^•^.^.... ^r to i -••F E-11 °I g .r. E' r ik.ii 4ii AHAH cl..e4u.i4mui a.i.l :.z.E.A.zi.;...z.z.; LulE..z.. u2140.id U 8^a ^♦ . ,1 1" ..^. . v. il11E1 4 1z1" liE1 -HE:ill:1E1th 1k4111711 11!11111 -1 4., ...a^•  2,t 4 1^ 1. ^10^ NW.^ea.^om ^.4Q^ 4 4 0 . 4 .^ § 1r^• IS 14 • i. i.^• 5 1 .44 1 ^ H VI CL CI.o 0^0 CV la IL 4 • 2, 0 U 41. ^g 0 .44 4  ••  z  "il jdD I 1 EE I 97  0  i.e. + 414  .4 0  4a  '  4. 4  8  4  ^ ^ ^ ^  1^1 4 API  -2  ^14.4  0  At ti  r  ;. OrSi^.,44^il 5^ •  ^  ^il a i ta  il l  !,43I bel l A l -Ill ig 4:11b  $4^0  g^ot  8 i f: 114 ; 1.14:1 1 1 IfOliai 114  i I  i i F • A^.1.  4b414^  . 0 wi^  ON  4t^  0^0^2t •0^  "^  Il i I  " j il itt' I  !ii 1 rt 10 MP 0,^ t Irei kax i et^ NOM^0J4C4.4 o NM 11 4 A216 :1 "2 0 s totot 182814q 8.11"iil 141 " gi^ u '^11.0 1"0, m.° 4'1 Ili it Il .H 1• •1 MCW ;:!ii inhiv! 1 1°" 1 II 1 44^ UM 4 .. UU U1 1°4 I °°^t"^ M w1UU0^00^IA^U.-I^ X 04^ , .^ NO U  ^  !Ad  If o^ U.0x^...logo^ .^too., st  il  ,  ,^,^....,:e.^,,,,,.....,^,,....,,,,,,^e.,^....^....^....^....^.....^..M..^,,, P4 X^  z^z^ .;." a^a^ . .^ I k .^DI I^Le^m^ e^1^z z^h^Z^ 011 m Z I  m^  to^  '^ Sw^ 4^m^ . .00 L'^+ Ma i e04 ml 1 .21^ -m, O ro^rol i t^ !V klt^ dul w.... U b^ m .....0 .411^ 440^ f^ td.r.. • • t"R^ i.^0M 4. M0 04 01^ab^tt t‘' ^ 6 VI IltRm:""..^22.011 . ^22 R11: ^OP.: 'S^•4•:i• •ce • ii• u^Al ii gf 4.101m.b..ib g ftftmAk ^.0.0 m.s.^ca^ VE4E8144145 " ^" T "6  4N  al  ••• 1•0  21iilLggg2rgvniftidi. Ad magigagsa. iaraiiili g  741; /PS 14. " mitu,,mum.0^0.0^m^me ' 1 "" 4 11"1" 4 1 V14 11 U 4 14" •^0^giu^011^Z.0 -11 4 11 14 10 1 1" 81 1v 4 A1  a8 11 ..  14;  P4^*ft .ft  *P.  ... 1^,.. 4^F" . .^A ii^ 10  WM 44 0 m^ k a tm m^ 1 t^11 4J4, 0 .8^ .44,^..., ••^ 2 0'2 S " 2^ZS*0^uu Z^ RI 4 iSV II 2 ti 0^.2b.1"61S^mu^ W^4.1 "^ 1'^r • 3^ o it^Vt W.4 0^ SA^ (...4 W a PI tt11 g. .^od 5. ^ Fiiiiiiri^ ^0 MC 0^4 P. 00 4W W 00 V 00...U. NOV^ /01 t W.^;48,,V1 V Z : i'l I^ive2 ti22..^Ig-14-11^V414 RV'^'E°4 5oo^SO U4 U 4....^V12" V4) °IS S0S0 ".C:1 0000 0:" :" .-10M ^4 0/4S.g Popail M 0^ • 4r114/2:^ El 20°^ ..1^t. 1,1^\SI^.-i 0 . 1 .^ Q .4 0 0. ^=^ W..i^ 2' 4'1.4^48,48. OVVmtn VOI NIC ii II1 10 I MN wIN.0b9 11; NON.40A x o WO^a^!i!li j  O  . ..1  ,  ! 14gf  rtls[ 100! 2 11;110; illp -- --- .... ....... .... ".... . .4,...^  Y ove^ .4400e "!^ • 00,o,i^  V g fa •MUU^404^..10XW• •  21Signr; !t U I) .^ A , a^ 2^ .8^t neli;q; filt  i^0m^ W  giuli"-to4°'Z  ^•  ox^  .4O^ 6 44 A  5 --m 'c L4'14  a  .Ntee2x!^.2.....mx  N^..I^  OV  3^b x^et 4^ 44W *****^53 ...44 1 .5 r4 0 ^445t:Namg^ m 1 .^. Z^ SON 40.4. ON NO*.^ 1 ;44U ;,t.^$:^1221 474 b^ .01.4 P.^  23.41.2tv2: ••^I nt4.101^ ig..1g. 111 2 - c) 401 :0 mile.v : '4  4)44,1 2 5Z^ in itsz E i i mom• MeiVM OgiggUli40U04400^  ..-^to^.6..  Ok  °  4'  C06 0 41A i^ eitt2P 4.1 5.1eit il 411 4 1141w ralle^ LI4.2.43.)° E S* 5 9 F^ UU0OUNO VOUS^NU^MU 4 4/"ViStIFti 1"1  II! 1 1H 11E11E11174i!  4 'i"•°  X 4J .m1+ •• • .g ..2..2 .71 §Na.44 4NU4 17•4 .4 4.04.4 A^NNO  4  .ritgA y45-g^z 22262^ Tv2 .......... oft .ft eft oft oft oft^oft oft^oft oft oft eft oft^4.1  98  ^ ^ ^ ^ ^ ^  •^  •^  0 0 .4 .0^ 2 4^A i •^A!^t^0^OD^V^114 1 0u e,^6 .^t^t^.83^1^t 1 .^ ^..1 ':2. oi^• S^.3 wi^• ^•• •^0^0^0 0 ^! .a 41b4!1:1 * intlk 32;41,"' V Il>" !It.^tee ^8..;^Oa 6.40.4 Ia%O -4 000.4 IN 8:.ti;•e•g48,1;..6i8.1.em2.81;•en8;.$. ^ 50 ?  1  6  Ligalightiltionli1114a110 1:111:1111 ^A4 1 1. 1 ^Asi  11101g  V  el^4-1^••1  :1114:aNIINtilitttNAVI gg4gOORCtItliagilitgi ^U^ ,n04.4 InnOT-14 -1.01r...4viv^v 0 ousounoomouom000mo  000010010180400100MOUUN  01OU 101110v1  U^  .-IGNU• U  •  .;.;  414  U^•• •• U^U^?./^  04^  7 •• •••• Ck  G  o 4+^•^1. a^to^U^A •  40 A^ It^0, .4 g  b g o X^..1^10  0  4,  ti .-o... g +1  .4^ ▪ A 4 U00 C)^..4^4.)^V,^02 .0^.4 el^N^o^.0 ultg A ^.64^ v 0 ‘2.14o• •^a) O  o  74.io  • u^a 0 0 01 it^ O vi^4,^ 0 •^t^a^.44.13114 GO a 1^Li^0^t 0r  :11  • ..• •• ••^•• •• •• ••• A.^4.^I^a^ t • 0 W 0 I^ I^2^ ■:: 1 0 0 • 64^ 1 00 4 M .8. 2 21 0 s 2 I i NV4 6 1.1 9. a 0.i thl 14 u •^ a Nu t . L.'1" 5 4 g g .1.e:^. :^40! • .2^.8.^.e^•e.^ 0.. 400^ .^i A . 6.54.4.^ •^V 'g 2^".18 I.."' .ti.) 4' 'LW' 1?-44 1 • .10 • • • • • g Ot 1 0004 11) 0^":11. • Gl ub e 4 :ik • 14 I 1 § 2 Ilu' " ^21211 ! 11012•^ .911 It A ..t tit i ..g .Evj .E;.g.11 .1... `‘O'iii',l 4120OA :^ 5^ t.i.i.i.. rvi,^0 1 AltV %4 0 / 44100 4.440A 4(40.1"U 400.NO W FIB ON .4o,^ov o 0 m•-• •.^  ••^••  .  .  .  moo^I CO • tAOttittili At R C At •• • .N 4nU M m illisi^Ingtim  1gII "..4^ 1101 1 :1 .10UV iilim41111X4010101 1641•1n0100■•1110 all •U • 1111U •11  1  .  4  4  u4.0.0040^  • M011:01 • 00^0 • W 00000 0 v^♦; • ON^/ ..1 ..111100.00110•.. a^•^ 0.^•^ 14^N N^  a^a^ ,.,^.^.^.^. ...^4.,^...  U  ■  4.4  ... .^ t^i^1U  99  ^ ^ ^ ^ ^ ^  1 1^3  •••4 .. 6. .. .. ..^ • .44  • o; ^  I  em 0.  5  0,E  • ..■ O^•^ 0)0 .1m0^1 .4^.4 . W C1 . 0^0 t ^40.04 0.^WI 0 s■I ■4 4... 1.4^0 ••••^.4^■43.1  000 0 00 'A. I O  :^ O 1^  :  N.  ^Si  m • .^41 5 PI + • • o'^• a. u^ 1M •^• St 1 IS 1 'Ai 1 1^oo^ • V^'^*Ik 104 ei, N 4^Oft ^i4 NI _J.^•^••■•1 0 :ii• :0 :0 w^ 11 • 5 • 6 v^.64 ploilealiirilik . b 4444444  - hr. °  •^•  44^+  O  14 •  .  •0 +  go.eu  m.A  Z Ao +I : 44 44 ..4 m0 m44 ml M M g^ 'B •2 tin:1411741111i 2^lolillq g 12 .4 I ■4 r4 g  0^ 12. 8A22AuAS3EA  7474,4  4400140m0m440  I 1^ Si .4 •4^ +4 00^ 0^ 4 .4 4)^ I^ X :i 00 vi ^ 4 G.,^ .4 a Z "4 tC ll 14^ I 1^ 1^i m0.^II^ 0.^I U et oi^V^0 14 g V^ t ^••• •• •• •• •. •• t .. .. .. .. ... 44^44 0 4^0  1^  .4  4  44 44 V A 11  4  •  •  itl  44, .4  44 0 Wt...  ^AES 14 L/ SZw 1^+4 0•  .t.1  g o02 4.4^0 .4 5 • O  1  0  li  4  r t  I 4.4 0  O  r  ..1 4  022 4^!^ 5i .' ::07 44§^0. ^• 0N I g.S.4 II t O 0.4 M 44 0 01  1^  •  5'  1  •  I  A  A  14 1 tad^  O A 0 0 1 gaiil.i.^igA • ;^ 1 "4i wl +I^4.1 2 t Elg:gg^ 11 41 b II t u 14 I • 0141014^•^'r111000 I4^P4^  ft^ AX  !^gc. ea  2X^ea  +^+^m m ■ wegfme.gf^ .0^  '')^01 "at ciA.i.alWil . ; cif t Ao  U4Eitqlit 43^I; 0'040404 4M^• 2  14  ea  .1.1 C^.. ...■^  A  ••^11^0 IN^ 03 0j  e.  it m^h  0  2 4 1 1 ....!...A.  i  1 00  .4  a .^.• CL  a^  mo cc Oa as^OS ea OS  ^ ^ ^ ^  •^ ▪  •^ •  ▪  O .  •  MI MO  •••••^  • • • • • •  i  LI; •• .0 • .. ...^ 1^•• NM  •^M  • • 2 •• A 1^•• 0 • 14^ • 4 • !^I. a I : l;_. ^14^ ?^• .4-^/^M 1 i 0 •0 44 •,^•^ • 4.1641 M ti^ • ••'14.4^  •  A r 0 14 • • 44^: 1 • gk v • lei^1^U gh^• •• V^ to • Of^0 0 g^ 4,0^ 0 Er.^ • •-4 m^ ^•al :0. Al^V4 t^gf^: Va...5410^7.12801110480 • Atttottt 1 411 111 • il lmmoo....4. •• . e •“... •: I'm 2081^ %^ •• •^ t 11k1:14. 2 Now^ : Lir 100.4 e , •• 0 A1322 V122.1 t Oi^^m^ • • I • Al O MO •^ 4V^ 0 0 0 0MMOMM0042 • 0 w it • • 0:44 v2tt 'N' ISS4ZZ44 .4 I •• 2,1 mo... V N I 111 I^ :^gi:3^ 0 ...41,^1^0 A ii it A A X e: 4 14 .4 14141+14 MI gl1141011p N  i fq  CI  t  1  .^  *  OM  44'0  ••  0 0 1414  1  ...i^**.i.  .0  0 ! 1  1  es o  ai  Ely,^1  .4  mess  ma  Osmium,  cm get('  0  0 M  N104..1^•^•^•^•^•^•^•^•^•^•^• 01 e• M WI eft M P. M MI 0 en ..;.go;..n.4NNenenmwww.n  • • • •^• •^• • •^• •  ...NWO.WCONWOWON MMMMM NNNMM•WWW1  Os Os Oft Os Ow Os •• Os Os OS Os Os Oft Os  F  a  ,  i":  .  A-  • 1^•• x2066.84 0 .8 44 i 46 411 1 • :1  1 ii E4:44 WI 1^  A • 4.1  2 014  a O 20 .2 a.  ^4  ^.44  0  .  VO 011.^NWOV ONW O W ..6.4•1 44404NMM MV.,  Rt^ZSZZ^ :4 AAfii ^NMM E?tttfAIVIlm ^2 . ^  • "^ "" I^°I ffff • ••^ g 044^  oPi  4447.Me0M1..4.4m1 mmr4NNMMM WM of of  ...... .4^..^...^.^.....  • 1 44444444444444 444444 44444444 8^ 44 4343.8418.84343430 • •^• • • •^• • • •^• • • • • • • • • • • • c.4.44..;444.;44444 • • k •^ ^  4^se  :A t A^ 01014  •  •  0  t 13 g2 au !^O 38^i .2, ma^V0^2 2., I^• te3 E ...:-.... ... 4,^t^ t^+••0.4^ t 0 4 0.0^ 8 '^ 0 1^11 11 11.1 g, •  .......^..  MO WM O 0^ ..4...  .  64).  a a^ i: 2V a0 o N so a' 41441i4 o u 4^1 es 10 8 4 04^ml  ....^Z g8  4 •  4 .4  t ^ 4 S • u A  .4' CA o ^ N  0 00 o^ N ogg o g gog  0 0^,f10^  M 2,22ig&5444.i2.;  M  g^  4 4migi  4.1  ^ 4.,^ 4.4  2 o. v  .5321 1 2i24t 0..4^ii.J4, 4^44.04•141414.084 me.,...,mmoomom^von 4t2it20•212 "Vi •8^. 2^ 4.•^T, OiOttUttp44ttt g M C 4  ••  .^ILI 101  1^  'el  MI 1 .  04^0 •^0  i ;  •  8  ^  11111" 0 M0 0 0 011 ,  ,  ,  ,  0=00001444=  •  .  Salt  1 a  iii^1 /1 a " 10 000 0  en^....A.4=01 U0 00 I 0,00, O •a; -.4.4.41^ ^e• 0 wi I co i^AAA  0  r• • I ..1.•^ A 00101 I r••.4.. I^.. .. .. cn !. 1 r- 1^•••^••••^4.$1111.40^  %IP • I^•10 I 1 • ul^° ti 44 • I^ 110 .4,^ • 110 1 • 1.11 1 ••^11 • 0 SI 0 if, • I •10 I • ■^ al 4)0 I I.1744U11'.4.■' ^ 014N^ 0 44 t4 CI 4P^V I I 41. ..I •011 • 1 0^ t^ale^  'ill^V  OV  : •  I 10 n10  N 01 •• in 10 .4  ^ON r4 01 N N N 44 ••  eolli^  0  N ...wwwww,^ .,, r 0 V,'^°^ SS 1, -;:r■71:::47 :7:: tiql 2 100 ^14 ""111111 o • I N I .0 I •01.1441/1^0 t. 0: e g 1,. 14 44, .10 .1 •.... •/:. • • • • .10 00000 ...o• I • 0 • /4 N •141^/-1 •^0000000000000000000 1411.114 Li^1 16.4 1 21/ wwwwwwwwwwwwwwwwwwwwww Hs O.1.-'1 •^•.:. 1 .0•...^ ."• e4filiirin^0• . '•' ' °""4. ^ii ^4i Milt.72: 47 1 2 1.7.Z1.7. 4  11111111111111 SSOSS"°°° .4  LIC4:f 7rNq t. 01 :.16t117: /01 . CD CD .01 .41 . . . • 0  filiffliiiiiiiiiiiiiii11:11  r.015.o^.. .. ,.. .. .. .. .. 0 I 1 I 0 •fil •10.--..40^00 N 000 ^  Oa Os Os Ss Os Oft Os Ss Os Oa Os  • 4 ..,■440"^ • s a^ lit 4. + + iillio•m.•..^ w 1:1;1:77174 ^.d14vvv^ 4414PIAWMN0.NM4Piff 00000 0010101.4  . .4  ^7:.,74!:a  11111110....  •  0  ^---  ^  4. 7 0  ^  ig  ^  .4..,  04PONWOMC. C14.0010NNCIMM  V V V V V^• •^• ••40Zig••Ziet  a1 N10  VYVVVVVVVVVVYVVYVVVVVVVVVVV 0^NW000INNNMM .400,^VVVVVVVVVVVYVYVVYVV ^Pc . . . . . . . . • . NWOWONO wwww 1041PMN00eINV1 wwwwww 14;:=4V. V. la^ Fr41001.40NNNMM s  4.4w7w;4r4,V.r."2... "^4 10 0  IIIII 111-,1"- v  I:  Ow " •• • •" •"  2:15'  43.€. 43. 43. 6. 43.. 41.1 4oV-1-^ 4 a"^  4 01^....... i;.="447=.17, w"lc■  .4--.vioseleimeeeeeeeeeee@eeeleee ...........................:ilesme4343434343 . 4 .......... ililtm .. .. u  m 1• .m1tr. 8 11. 02 °" o.o.. 22M 12Z X i .... v^IT.... 0 It Z  ..  gitZ^.'^.0 ; .4. .0.. 17  lif/ I •^■• 1■• t^i T^' 4  - ...Im • . . 4'  254:174.1:=2:1zznnn .......... RggggggP2PAtIgg ill "14 ,z 1 . ...,...........................................^ . . ..... V ..... N 1004PONWOVONWOWODNWOWODNWOMONW OVON100WWNWOW 000/4/444^01.40INCIMMV4P/010 al l' , .10. : N . • . . ^ NNNNNNNNNNN ,  • % S S O S S  0.10 • • • • • • • • • • • • • • • • • • • • • • • • • • • • ■ . • • • • • • • • •^a^ 01 0001M1■06001MC.1.1100M1 , 14001MC.001 0M 41.0 0ACCMC.14 NOtm^ IM ........... ..... NNNMP/WWWN10110WW4.4. ..... 00000INNNMMVVVIA ^1UW t C:l3 ^C.00101MC..4100,M .......................... NNNNNNNNNNNNNN ^000 01 .1 ONWOWONWO■40  4 .z  v;e40;4mO:0e4wiiiiiigidireiWiiiiiiii,rir:Ciereiriiiiii Os Os Ss Oft Os Os Ss Oft So Os Os Os Os Os Ss Os Os Os Ss Os Os Os Ss Se Os Ss Oa Os Ss Os OS OS OS OS Oft OS Oa Oft OS Ss Os So Os OS OS Os Ss Os es OS  III 14'14 • r • ..•en ••• .In  ! im q1;01  .4 1  '4  WI •N •  ji 4 WI^• f .1 • CO  :.;444:44.44m;4444.4.;:w44:4=..4.4.;44r=.1, •.4 • 4 .;:,!.;1 I_^•._. • •  N •001 ^4444444444,4444.44vit444444444s4444.44444444m;wi4wiiivir ^V.4• ..d^•0 I I ,;4 .. 444444444e444444444444444444.;4444444444 !;; :1 17  ^411. 41. 43. 46. 41.  ;  4  1 41. 41.1 43. 43. 6. 1. 4  ;  t""' 'Me S4S -1 43. 44. 43.1 43.1 43. 41. 41. 43.1 43.11 43.1111 43.11^ifT IA 04.4 I  102  ^ ^  20 x 1 S^t t  •^  ^NW^NW 4.1^r4^ N 4 In 111  ^.4  •  •  4.r,  ^ o ..o  1  4J r4W^5;45,  A .4'^m ^rn^O No^.4 M^N  •41  CZN 0 ON r4 N ^  V  CS4^  c;.4 of^.-s^.4^.4 .4 c:Zo g cZo .., ..1 .1; c r en^ o c; o, 53 •4 •  .4  ei  O. oa  N  .^II  Or. o  II ei^ii  ^O  ci co Or-  Om. e 47; v. 4^.4 1.1^O w, w ..1^0 O .4,^O. 4,  O^0 .61  ^.-1e,^.-I^O  en  ...I^• ,I N^11 ^C.; ell  o  • N  00  • WO ..... MNOWONWOMNNOONWOWONOOMNNWONWOM ONNNNNNMM ................ 000NNNNNMMWW ^  to.e.:O4 wo7 f ; 14 y;O:o.4%.7 4.:0;44;e4 0 .  r.".... 4;.1 0NNNNN4.1MM400WIL040 ......... 01000.4NNNNMMMW  •  40.4  P  NIAMMW000N.0 ...... WWWWINWWW ......... ^  •• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •  woNwehmr...14no N 44: N•Dowr. .....  k •••  2  • Ipp ....... MNOWONWOMNNMONWOWON NNMMMWW50.0.0 ............ ONNMNNMMMW  ^0  • • • • • • • • • • • • • • •C;  M0050010  O.ZO  s  2^  44441. 4 4^4r^  0  0 0 144  ...........  • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • ft • • • • • ^111  O;i4k;C;41.54;W54‘0;101gr4=gg:P1744::21%  :::ggPrO"O7g2:0 S:I l:grIMPP g "  r  I  4143.111116.111111114.11111111111111111 11111111111111111111 103  00  

Cite

Citation Scheme:

        

Citations by CSL (citeproc-js)

Usage Statistics

Share

Embed

Customize your widget with the following options, then copy and paste the code below into the HTML of your page to embed this item in your website.
                        
                            <div id="ubcOpenCollectionsWidgetDisplay">
                            <script id="ubcOpenCollectionsWidget"
                            src="{[{embed.src}]}"
                            data-item="{[{embed.item}]}"
                            data-collection="{[{embed.collection}]}"
                            data-metadata="{[{embed.showMetadata}]}"
                            data-width="{[{embed.width}]}"
                            async >
                            </script>
                            </div>
                        
                    
IIIF logo Our image viewer uses the IIIF 2.0 standard. To load this item in other compatible viewers, use this url:
http://iiif.library.ubc.ca/presentation/dsp.831.1-0064923/manifest

Comment

Related Items