White Paper A Knowledge Base document from CML Microcircuits. Adaptive Delta Modulation (ADM)

Similar documents
Wireless hands-free using nrf24e1

This document is designed to be used in conjunction with the CMX869A data sheet.

Frequency 434=434MHz 868=868MHz 915=915MHz

Technician License Course Chapter 3 Types of Radios and Radio Circuits. Module 7

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

CML Low Power Wireless Modem Solutions. Presented By :- Tom Mailey and David Falp

DIGITAL COMMUNICATION

Multiplexing Module W.tra.2

Lecture LTE (4G) -Technologies used in 4G and 5G. Spread Spectrum Communications

Preliminary GHz Transceiver-µController-Module. Applications PRODUCT SPECIFICATION FEATURES MICROCONTROLLER MHz

Experiment # (3) PCM Modulator

ADVANCED EMBEDDED MONITORING SYSTEM FOR ELECTROMAGNETIC RADIATION

Step Change in Cost/Benefit Enables New Business

FEATURES DESCRIPTION BENEFITS APPLICATIONS. Preliminary PT4501 Sub-1 GHz Wideband FSK Transceiver

ZLS38500 Firmware for Handsfree Car Kits

UHF Wireless Conference System Master Controller (With Recording) UHF-300MC

Receiver Design. Prof. Tzong-Lin Wu EMC Laboratory Department of Electrical Engineering National Taiwan University 2011/2/21

PULSE CODE MODULATION (PCM)

Wireless Music Dock - WMD Portable Music System with Audio Effect Applications

Speed your Radio Frequency (RF) Development with a Building-Block Approach

Wavedancer A new ultra low power ISM band transceiver RFIC

10 Speech and Audio Signals

Sensor Network Platforms and Tools

MEMS Oscillators: Enabling Smaller, Lower Power IoT & Wearables

Comparison of Low-Rate Speech Transcoders in Electronic Warfare Situations: Ambe-3000 to G.711, G.726, CVSD

A Solar-Powered Wireless Data Acquisition Network

Low Power Microphone Acquisition and Processing for Always-on Applications Based on Microcontrollers

GDM1101: CMOS Single-Chip Bluetooth Integrated Radio/Baseband IC

SENTRY. AC410x family + BT-V2.0. User s Manual

Index Terms IR communication; MSP430; TFDU4101; Pre setter

CMX860 Telephone Signalling Transceiver

Specifications and Interfaces

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

Keywords: ISM, RF, transmitter, short-range, RFIC, switching power amplifier, ETSI

Keywords: GPS, receiver, GPS receiver, MAX2769, 2769, 1575MHz, Integrated GPS Receiver, Global Positioning System

Intelligent and passive RFID tag for Identification and Sensing

A multi-mode structural health monitoring system for wind turbine blades and components

Practical Approach of Producing Delta Modulation and Demodulation

Generating MSK144 directly for Beacons and Test Sources.

Chapter 2: Digitization of Sound

Using the VM1010 Wake-on-Sound Microphone and ZeroPower Listening TM Technology

RF Basics 15/11/2013

Digital PLL Synthesis

Building an Efficient, Low-Cost Test System for Bluetooth Devices

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

Mansour Keramat. * No part may be reproduced without permission from the author. 1- Application of Data Converters. Contents

VC7300-Series Product Brief

March, 2003 IEEE P /131r0. IEEE P Wireless Personal Area Networks

QUESTION BANK EC 1351 DIGITAL COMMUNICATION YEAR / SEM : III / VI UNIT I- PULSE MODULATION PART-A (2 Marks) 1. What is the purpose of sample and hold

VT-CC1110PA-433M. Wireless Module. User Guide

Lesson 8 Speech coding

JUMA-TRX2 DDS / Control Board description OH2NLT

(MIDS LVT SRU Overview)

RF4432 wireless transceiver module

EXPERIMENT WISE VIVA QUESTIONS

RF Products (CMX994) CML s Flexible Family of RF IC Products

AN INTEGRATED SOLUTION FOR CT2 DIGITAL CORDLESS TELEPHONES. The Am79C410 PhoX

Nonuniform multi level crossing for signal reconstruction

CTCSS FAST CTCSS. Tx MOD1 SELCALL. Tx MOD2 DCS RSSI CARRIER DETECT TIMER. ANALOG Rx LEVEL CONTROL AUDIO FILTER AUDIO SIGNALS MX828

RF4463F30 High Power wireless transceiver module

TMS320F241 DSP Boards for Power-electronics Applications

Radiation Hardened RF Transceiver For In-Containment Environment Applications Using Commercial Off the Shelf Components

Performance Analysis Of Low-power, Short-range Wireless Transceivers

Source Coding and Pre-emphasis for Double-Edged Pulse width Modulation Serial Communication

LIMITATIONS IN MAKING AUDIO BANDWIDTH MEASUREMENTS IN THE PRESENCE OF SIGNIFICANT OUT-OF-BAND NOISE

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

VLSI Chip Design Project TSEK01

Value Units -0.3 to +4.0 V -50 to

Chapter IV THEORY OF CELP CODING

Voice Transmission --Basic Concepts--

Telecommunication Electronics

Catalog

EC 6501 DIGITAL COMMUNICATION UNIT - II PART A

Physical Layer. Networks: Physical Layer 1

High Level Design Group: RF Detection Group Members: Joey Py e, André Magill, Shane Ryan, John Docalovich, Zack Bennett Advisor: Dr.

Time division multiplexing The block diagram for TDM is illustrated as shown in the figure

BK2 Series. STE KSOLUTIONS BK2x DATA SHEET. TABLE 1 PERFORMANCE DATA BK2x RECEIVER SECTION 80 to 650 MHz / 842 to 916 MHz¹ 2FSK GFSK RCFSK 3FSK 4FSK

System-on-Chip Two-Way Radio

Ș.l. dr. ing. Lucian-Florentin Bărbulescu

Wireless Communication in Embedded System. Prof. Prabhat Ranjan

LR1276 Module Datasheet V1.0

Overview of Digital Mobile Communications

Product Summary, CA12CD S Cordless Push to Talk Adapter

HF Receivers, Part 3

NEW YORK CITY COLLEGE of TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF ELECTRICAL ENGINEERING AND TELECOMMUNICATIONS TECHNOLOGIES

WiDis. Wireless instrument Digital interface system. WiDis Brochure

Analog and Telecommunication Electronics

3.6. Cell-Site Equipment. Traffic and Cell Splitting Microcells, Picocelles and Repeaters

Lecture 1, Introduction and Background

4/30/2012. General Class Element 3 Course Presentation. Practical Circuits. Practical Circuits. Subelement G7. 2 Exam Questions, 2 Groups

IMPLEMENTATION OF G.726 ITU-T VOCODER ON A SINGLE CHIP USING VHDL

CEEN Bot Lab Design A SENIOR THESIS PROPOSAL

DR7000-EV MHz. Transceiver Evaluation Module

Low Bit Rate Speech Coding Using Differential Pulse Code Modulation


KCS TraceME TM-203 / R9F4 GPS / GPRS / SMS / RFID module, OEM Version

LoRa1278 Wireless Transceiver Module

Frequently Asked Questions

A 1.9GHz Single-Chip CMOS PHS Cellphone

A GENERAL SYSTEM DESIGN & IMPLEMENTATION OF SOFTWARE DEFINED RADIO SYSTEM

Transcription:

White Paper A Knowledge Base document from CML Microcircuits Adaptive Delta Modulation (ADM) Page 1 of 9 WP/ADM/ 1 December 2008

Page 2 of 9 WP/ADM/ 1 December 2008

ADM FOR SHORT-RANGE DIGITAL VOICE Short-range digital voice transmission is used extensively in modern consumer electronics. Products such as cordless telephones, wireless headsets (for mobile and landline telephones), baby monitors are to name just a few of the items that use digital techniques to wirelessly communicate voice information. Wireless environments are inherently noisy, so the voice coding scheme chosen for such an application must be robust in the presence of bit errors. Pulse Coded Modulation (PCM) and its derivatives are commonly used in wireless consumer products for their compromise between voice quality and implementation cost, but these schemes are not robust in the presence of bit errors. Adaptive Delta Modulation (ADM) is another voice coding scheme, a mature technique that should be considered for these applications because of its bit error robustness and its low implementation cost. ADM quantizes the difference between the current sample and the predicted value of the next sample. ADM uses a variable step height to adjust the predicted value of the next sample so that both slowly and rapidly changing input signals can be faithfully reproduced. One bit (i.e. 1 or 0 ) is used to represent each sample in ADM [1]. The one-bit-per-sample ADM data stream requires no data framing, thereby minimizing the workload on the host microcontroller. Sound files that demonstrate ADM voice quality for various sampling rates can be played from the following website: http://www.cmlmicro.com/products/applications/649/649sound/649sound.htm Bit errors are present in any digital wireless application. Most voice coding techniques provide good audio quality in an ideal operating environment, but the challenge is to generate good audio quality in an everyday environment, where there is the presence of bit errors. Traditional performance metrics (e.g. SNR) do not accurately measure perceived audio quality for various voice coding methods and input signals. Mean Opinion Score (MOS) testing overcomes the limitations of other metrics by successfully quantifying perceived audio quality. The MOS testing uses a scale of 1 to 5 to represent audio quality, with 1 representing very bad speech quality and 5 representing excellent speech quality. A MOS score of 4 or higher represents toll quality speech, which is equivalent to that audio quality obtained during a traditional telephone call [2]. The following graph illustrates the relationship between MOS scores and bit errors for three of the most common voice coding schemes, CVSD, μ-law PCM, and ADPCM. Continuously Variable Slope Delta (CVSD) coding is a member of the ADM family of voice coding schemes.) While the perceived audio quality (i.e. MOS score) of all three schemes degrades as the number of bit errors increases, the graph indicates that ADM (CVSD) sounds better than the other schemes as bit errors increase. Page 3 of 9 WP/ADM/ 1 December 2008

Excellent 5 48kbps CVSD 54kbps u-law PCM 32kbps ADPCM (S ub je cti ve M ) ea n O pi ni on Sc or e Good Fair Poor 4 3 2 Bad 1 1.0E-05 1.0E-04 1.0E-03 1.0E-02 1.0E-01 Bit Error Rate Figure 1: MOS Comparison for Various Voice Coding Methods [2] Since ADM provides robust performance in the presence of bit errors, error detection and correction typically are not used in an ADM design, and this contributes further to a reduction in host processor workload (allowing a low-cost processor to be used). The superior noise immunity, coupled with a significantly reduced workload for the host processor, strongly supports consideration of ADM as a voice coding method for wireless applications. The benefits of ADM for wireless applications are demonstrated in the following example reference design. This small form-factor, low-power design includes all of the building blocks necessary for a complete wireless voice product, including: ADM voice codec Microcontroller RF transceiver Power supply including rechargeable battery Microphone, speaker, amplifiers, etc. Schematics, board layout files, and microcontroller code written in C. This design was implemented on a 2.5cm x 3.3cm four-layer PCB, as shown in Figure 2. The use of smaller components and tighter spacing can enable an even smaller design to be conceived if desired. Page 4 of 9 WP/ADM/ 1 December 2008

Figure 2: ADM Reference Design Board The block diagram for this ADM reference design is illustrated in Figure 3. Battery Micrel 2.5V Regulator Micrel 3.3V Regulator MICRF505 RF Transceiver Rx data frames Control MSP430F1232 Microcontroller Rx data Control CMX649 Voice Codec TPA6203 Audio Amp Voice Output Data frames Encoded voice Voice Input 8MHz Crystal Figure 3: ADM Reference Design Block Diagram The design concept utilizes both a master unit and slave unit that communicate wirelessly in a licensefree RF band. Time-division duplexing (TDD) is used to simulate a full-duplex communication link. Operation is similar on both the master and slave units. The CML Microcircuits CMX649 ADM Voice Codec encodes the microphone input with 27.8kbps ADM voice coding. The encoded voice data is passed to the Texas Instruments MSP430F1232 microcontroller for 3B4B coding and frame formatting. Page 5 of 9 WP/ADM/ 1 December 2008

The coded data frames are then passed to the Micrel MICRF505 RF transceiver for filtering, upconversion and transmission in either the USA (902-928MHz) or European (863-865MHz) license-free band. The transmitted data rate is 100kbps, and the exact channel frequency is selected by software configuration. After reception, the RF transceiver passes the recovered data frames to the microcontroller for de-formatting. The microcontroller then sends the raw data stream to the voice codec for signal reconstruction, and the recovered audio can be heard on a speaker. (Please note that data framing is used in this project for time-division duplexing (TDD), which is required to achieve the perceived fullduplex effect.) Data is transferred over the RF link in a half-duplex manner, but the perceived effect is full-duplex because the MICRF505 s data rate is more than twice that of the CMX649 ADM voice codec. The TDD scheme is implemented with a firmware-based buffering scheme that manages the difference in data rates between the RF transceiver and the voice codec. The microcontroller s on-chip memory is used to buffer then transmit and receive voice data until ready for further processing. MSP430F1232 Microcontroller SPI-Tx 3B4B Encoding RFTX_BUF MICRF505 RF Transceiver 100kbps 100kbps 75kbps 27.8kbps CMX649 Voice Codec SPI-Rx 3B4B Decoding RFRX_BUF Figure 4: Data Processing Flow Path In addition to the TDD scheme, the microcontroller firmware also accomplishes a pairing procedure that causes the master and slave units to communicate together while ignoring signals from other sources. The CMX649 s voice activity detector is used to determine when the circuit is placed into sleep mode. If voice is absent for more than twenty-three seconds, the boards will enter powersave mode (MSP430F1232 Low-power mode 0 ). The master and slave boards, if paired, will wake from powersave mode when voice is presented at the audio input to the master board. The CMX649 was selected for this design because of its robust ADM voice coding, ultra-low power consumption, and highly integrated feature set. The CMX649 offers extensive flexibility in its ADM voice coding settings, and the settings chosen for this project were empirically derived to offer optimal voice quality in this application. In addition to performing ADM voice coding, other CMX649 features used in this design include: Programmable anti-alias and anti-image filtering Microphone amplifier Programmable scrambler Volume control Page 6 of 9 WP/ADM/ 1 December 2008

Two interfaces are used between the CMX649 and the MSP430F1232. Control signals are sent to the CMX649 via its CBUS serial/control data interface, while voice data is transferred between the microcontroller and codec over its burst mode interface. The Texas Instruments MSP430F1232 microcontroller was selected for this project because of its low power consumption and rich feature set. The MSP430F1232 provides 8kB of FLASH and 256B of RAM. The entire RAM is used for variables and stack pointer space, and less than 4k of FLASH is used in this project. The MSP430F1232 is placed in its active mode during voice communications and performs all required system management functions. The microcontroller operates from a 3.3V power supply. The 8MHz crystal sources the microcontroller s basic clock module during normal operation, and the digitally controlled oscillator (DCO) provides the timing signal during sleep mode operation. Two universal synchronous/asynchronous receiver/transmitters (USARTs, also called SPI ports) were required for this design: One USART for the codec-to-microcontroller communications One USART for transceiver-to-microcontroller communications The MSP430F1232 with its one SPI port was selected over other family members because of its cost savings. The microcontroller s single SPI port services the communications between the transceiver and the microcontroller. A second SPI port, needed for the communications between the voice codec and the microcontroller, is emulated with a bit-banging routine. The watchdog timer is disabled during normal operations. When the design is placed in sleep mode, the watchdog timer occasionally causes the circuitry to power up and checks for audio signals. The Micrel MICRF505 zero-if single-chip transceiver was selected for this design because of its low external component cost, device flexibility, and its ability to block co-channel interference. The MICRF505 operates from a dedicated 2.5V voltage regulator to optimize noise performance. The transmit data is applied directly to the MICRF505 s VCO in this design. The inherent high-pass filter characteristic of PLL-based synthesizers means that direct VCO modulation of a data signal can result in undesired attenuation in the signal passband [3]. To prevent this situation, the transmit data is 3B4B encoded in the microcontroller to ensure that the bandwidth of the data signal is high enough to be passed by the synthesizer. Encoding increases the transmit data rate by one-third, resulting in the 100kbps rate of data transfer both in and out of the MICRF505. The transceiver uses an internally generated data clock signal to control the exchange of data with the microcontroller. A 200mAH lithium polymer rechargeable battery from Ultralife Batteries was selected for this design because of its small form-factor and large energy density. The design can also easily accommodate other types of batteries. Page 7 of 9 WP/ADM/ 1 December 2008

The flexibility of both the CMX649 and the MSP430 allow operation with very low power consumption. While the exact current consumption is a function of many variables (e.g. user s voice volume, how often the user speaks into the microphone, etc.), the observed current consumption during normal operation is approximately 19.25mA, which translates to an estimated talk time of 10.4 hours with the 200mAH battery. The observed current consumption for sleep mode is 90μA, and this translates to a standby time of approximately 92 days. (Note: these values are based on 100% battery capacity being available for use, but the low discharge rate of this design makes this assumption reasonably accurate.) Low-dropout regulators provide 2.5V to the RF transceiver and 3.3V to both the microcontroller and voice codec. The speaker driver is connected directly to the battery to minimize current-surge noise from propagating to the rest of the circuitry. This article has described ADM, explained the benefits and introduced an ADM reference design that can be used as a seed for wireless voice projects. It is hoped that designers will find this information useful and will consider ADM for their next wireless voice project. For more information, please visit the following websites: ADM Reference Design schematics, board layout files, microcontroller code, and CMX649 specifications, www.cmlmicro.com RF Transceiver and Low-dropout regulators, www.micrel.com Microcontroller and audio amplifier, www.ti.com Lithium-polymer rechargeable battery, www.ultralifebatteries.com References: [1] R. Steele, Delta Modulation Systems, Pentech Press, London, England, 1975. [2] N.S. Jayant and P. Noll, Digital Coding of Waveforms; Principles and Applications to Speech and Video, Prentice-Hall, Englewood Cliffs, N.J., 1984. [3] CML Microcircuits Application Note, Using Two-Point Modulation To Reduce Synthesizer Problems When Designing DC-Coupled GMSK Modulators, www.cmlmicro.com. Page 8 of 9 WP/ADM/ 1 December 2008

Page 9 of 9 WP/ADM/ 1 December 2008