1. Field
The disclosure relates to load impedance detection, and, in particular, to techniques for determining the impedance of a load coupled to an amplifier output.
2. Background
In the art of electronic circuit design, amplifiers may often be designed to drive loads having indeterminate impedances. For example, an audio power amplifier may be required to drive headphones from a plurality of different manufacturers, and each type of headphone may have a different impedance. Furthermore, the impedance of any particular load may change over time, due to factors such as temperature, mechanical degradation, etc.
To optimize power delivery to a load by an amplifier, it would be desirable to determine the load impedance prior to driving the load. In audio applications, for example, this would prevent a headphone from being driven by an unsuitably high output voltage. There is accordingly a need to provide simple and robust techniques for accurately estimating the impedance of a load coupled to an amplifier output.
Various aspects of the disclosure are described more fully hereinafter with reference to the accompanying drawings. This disclosure may, however, be embodied in many different forms and should not be construed as limited to any specific structure or function presented throughout this disclosure. Rather, these aspects are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Based on the teachings herein one skilled in the art should appreciate that the scope of the disclosure is intended to cover any aspect of the disclosure disclosed herein, whether implemented independently of or combined with any other aspect of the disclosure. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects set forth herein. In addition, the scope of the disclosure is intended to cover such an apparatus or method which is practiced using other structure, functionality, or structure and functionality in addition to or other than the various aspects of the disclosure set forth herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied by one or more elements of a claim.
The detailed description set forth below in connection with the appended drawings is intended as a description of exemplary aspects of the invention and is not intended to represent the only exemplary aspects in which the invention can be practiced. The term “exemplary” used throughout this description means “serving as an example, instance, or illustration,” and should not necessarily be construed as preferred or advantageous over other exemplary aspects. The detailed description includes specific details for the purpose of providing a thorough understanding of the exemplary aspects of the invention. It will be apparent to those skilled in the art that the exemplary aspects of the invention may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the novelty of the exemplary aspects presented herein.
In
The audio power amplifier 120 may include, for example, one or more PMOS and/or NMOS power transistors to drive an audio load 130 having an impedance ZL (e.g., resistance) with an output voltage Vout. In an exemplary embodiment, the load 130 may correspond to an audio speaker, a headphone, etc. In general, the value of the load impedance ZL may be indeterminate, e.g., if the driven load is detachable from the amplifier. For example, the audio power amplifier 120 may be found in a mobile phone, and a headphone corresponding to the load 130 may be alternately attached to and detached from the mobile phone during use. Headphones from different manufacturers as adopted by a user will generally have different impedances, and thus the designer of the audio power amplifier 120 may not have a priori knowledge of the impedance of the headphone to be driven.
It will be appreciated that the effective acoustic pressure emitted from a headphone depends on the voltage applied to the headphone, as well as the impedance of the headphone. In order to achieve the same acoustic pressure from different headphones, it would be desirable to accurately determine the impedance of the headphone. Such headphone impedance information is also useful to keep the headphone output volume to within a comfortable range for the headphone user.
In
It will be appreciated that the drive voltages for PA and NA need not be the same, and that the drive voltages may generally drive the power amplifier according to any of various amplifier drive schemes known in the art, e.g., Class A, AB, B, etc. The techniques of the present disclosure are contemplated to be applicable to any of such amplifier drive schemes. Furthermore, it will be appreciated that the power amplifier 215 is shown for illustrative purposes only, and is not meant to limit the scope of the present disclosure to any particular transistor topology for a power amplifier.
In
Note while the mirroring transistor NB is shown provided for the NMOS transistor NA in
The current IB through NB is provided to a current-to-voltage conversion module 230, which converts the current through NB to a voltage for further processing. In an exemplary embodiment, the module 230 may simply include a resistor coupled to a DC voltage. The converted voltage is coupled to an optional scale/offset module 240, which may apply scaling and DC offset to the converted voltage to make it more suitable for input to the analog-to-digital converter (ADC) 250. The digital output of the ADC 250 is provided to a digital load impedance calculation block 260. The block 260 may further accept as input an indication of the output voltage Vout of the power amplifier 215. Note Vout may be provided in digital form to the block 260 (e.g., following conversion by an ADC not shown in
In an exemplary embodiment, the block 260 digitally estimates the impedance of the load 220, based on the digital output of ADC 250 and output voltage Vout, according to the techniques described hereinbelow. Where necessary, the block 260 may further provide a drive voltage setting to the amplifier drive voltage block 210 to set the drive voltages generated by the amplifier drive voltage block 210.
Techniques are further described hereinbelow for enabling the digital impedance calculation block 260 to calculate the impedance of the load 220. Note the techniques described herein are for illustrative purposes only, and are not meant to limit the scope of the present disclosure to any particular techniques for calculating impedance using the blocks shown in
In an exemplary embodiment, the impedance ZL of the load 220 may be digitally calculated as follows (Equation 1):
ZL_calc=Vout/[α·IB·(NA/NB)];
wherein ZL_calc represents the digitally calculated load impedance, Vout is the output voltage of power amplifier 215, α is a scaling term accounting for gains introduced by the system (e.g., by the current to voltage conversion block 230, the scale/offset block 240, ADC 250, etc.), IB is the actual current in NB, and NA/NB is the current ratio between NA and NB. Note the term α·IB effectively corresponds to the output of ADC 250, as indicated in
In an alternative exemplary embodiment, to improve accuracy and/or cancel the effects of possible bias current in the PA output (e.g., quiescent current as may be present when the amplifier is driven according to a Class AB scheme) from the impedance calculation, two or more voltage-current (V-I) observations using varying drive voltages may be combined to yield a better estimate of the load impedance. For example, an indication of a first current IB1 through NB, corresponding to a first output voltage Vout1, may be measured at the output of the ADC 140. Subsequently, a second current IB2, corresponding to a second voltage Vout2 different from Vout1, may be measured. In an exemplary embodiment, the output voltage Vout may be set to the appropriate values by designing the digital load impedance calculation block 260 to configure the drive voltage settings of the amplifier drive voltage block 210. From Vout1 and Vout2, the load impedance may then be calculated as (Vout2−Vout1)/(IB2−IB1). It will be appreciated that, for improved accuracy, more than two voltage-current pairs may also be measured, and approximation techniques such as least squares may be utilized for estimating the load impedance.
It will be appreciated that, in certain implementations of a Class A, B, AB, or other type of power amplifier, the bias current may be considered as having either no signal dependence or negligible signal dependence. In an exemplary embodiment, Vout2 and Vout1 may be sufficiently separated in voltage so as to allow sampling of diverse data points, for more accurate estimation. In an exemplary embodiment, one of the multiple observations may set Vout equal to 0 Volts.
It will further be appreciated that the voltage-current (V-I) measurements may generally correspond to static DC measurements, or to time-varying values, e.g., sinusoids, as may be useful for determining complex load impedances.
For example, it is expected that the output of the ADC corresponds to ADC(IB1) when SB is open, and ADC(IB1)+ADC(Iref) when SB is closed, wherein ADC(x) denotes the expected digital output of the ADC given a current x through the current-to-voltage module 230. Therefore, deviations of ADC(IB1+Iref) from ADC(IB1)+ADC(Iref) may be attributed to non-ideality (e.g., non-linearity) arising from the aforementioned signal path, and may be thus appropriately compensated for when performing the load impedance calculation.
It will be appreciated that, to better characterize the non-idealities in the signal path, the current Iref may be further swept over a range of multiple values, and corresponding ADC measurements may be made at each Iref. It will also be appreciated that Iref may further be selected as a value proportional to IB. For example, the current source Iref may be implemented as an auxiliary transistor mirroring the currents through NA and NB at a predetermined ratio. Such alternative exemplary embodiments are contemplated to be within the scope of the present disclosure.
In
At block 520, Vout is set to a second voltage (V2) also equal to 0. SB is closed, and the ADC output D2 is measured.
At block 530, Vout is set to a third voltage (V3) equal to a known reference level Vref. SB is opened, and the ADC output D3 is measured.
At block 540, the load impedance is calculated from the ADC outputs D1, D2, and D3, given knowledge of Vref and Iref. It will be appreciated that execution of blocks 510, 520, and 530 effectively determines three V-I data measurement points, and one of ordinary skill in the art may readily derive an estimated impedance for the load based on such data measurement points.
Note while an exemplary embodiment has been described wherein three data measurement points are determined, it will be appreciated that the techniques of the present disclosure may be readily applied to accommodate an arbitrary number of data measurement points, e.g., more data points for improved accuracy. Such alternative exemplary embodiments are contemplated to be within the scope of the present disclosure.
Note the aforementioned impedance detection techniques further enable a scheme for distinguishing between mono plugs and stereo plugs having left (L) and right (R) audio channels.
In
In
In an exemplary embodiment, an output voltage Vout1 may be applied to the load 620.1 at Vout.1, and an output voltage Vout2 may be simultaneously applied to the load 620.2 at Vout.2. The mirroring currents for each of the loads may be measured and digitized according to the techniques described hereinabove, for example, with reference to
In particular, if the plug inserted is a stereo plug, then the mirroring current measurement for the load 620.1 should remain constant, regardless of whether the output voltage applied to load 620.2 changes from V2 to V3. This is because for a stereo plug, each of the channels may be independently driven without conflict, as noted with reference to the block 630. In the case of a mono plug, however, the mirroring current measurement for the load 620.1 will change when the output voltage applied to load 620.2 changes from V2 to V3. This is because for a mono plug, both the L and R channels are shorted together, such that attempting to apply different output voltages to the two channels will result in large current flow over the short circuit (as illustrated by block 630). Thus, by detecting any change in current delivered to the load 620.1, the scheme may differentiate between a stereo and a mono plug.
It will be appreciated that the designation of the first and second loads in
In this specification and in the claims, it will be understood that when an element is referred to as being “connected to” or “coupled to” another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected to” or “directly coupled to” another element, there are no intervening elements present. Furthermore, when an element is referred to as being “electrically coupled” to another element, it denotes that a path of low resistance is present between such elements, while when an element is referred to as being simply “coupled” to another element, there may or may not be a path of low resistance between such elements.
Those of skill in the art would understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
Those of skill in the art would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the exemplary aspects disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the exemplary aspects of the invention.
The various illustrative logical blocks, modules, and circuits described in connection with the exemplary aspects disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the exemplary aspects disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), flash memory, Read Only Memory (ROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary aspects, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-Ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The previous description of the disclosed exemplary aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these exemplary aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other exemplary aspects without departing from the spirit or scope of the invention. Thus, the present disclosure is not intended to be limited to the exemplary aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The present Application for Patent claims priority to Provisional Application No. 61/576,876 entitled “LOAD IMPEDANCE DETECTION” filed Dec. 16, 20122, and assigned to the assignee hereof and hereby expressly incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
61576876 | Dec 2011 | US |