METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1...

27
METHODOLOGY FOR THE DIGITAL CALIBRATION OF ANALOG CIRCUITS AND SYSTEMS

Transcript of METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1...

Page 1: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

METHODOLOGY FOR THE DIGITAL CALIBRATIONOF ANALOG CIRCUITS AND SYSTEMS

Page 2: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

METHODOLOGYFOR THE DIGITAL

CALIBRATION OF ANALOGCIRCUITS AND SYSTEMS

by

Marc PastreEcole Polytechnique Fédérale de Lausanne,

Switzerland

and

Maher KayalEcole Polytechnique Fédérale de Lausanne,

Switzerland

with Case Studies

Page 3: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

A C.I.P. Catalogue record for this book is available from the Library of Congress.

ISBN-10 1-4020-4252-3 (HB)ISBN-13 978-1-4020-4252-2 (HB)ISBN-10 1-4020-4253-1 (e-book)ISBN-13 978-1-4020-4253-9 (e-book)

Published by Springer,P.O. Box 17, 3300 AA Dordrecht, The Netherlands.

www.springeronline.com

Printed on acid-free paper

All Rights Reserved© 2006 Springer

No part of this work may be reproduced, stored in a retrieval system, or transmittedin any form or by any means, electronic, mechanical, photocopying, microfilming, recording

or otherwise, without written permission from the Publisher, with the exceptionof any material supplied specifically for the purpose of being entered

and executed on a computer system, for exclusive use by the purchaser of the work.

Printed in the Netherlands.

Page 4: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Contents

List of Figures xiList of Tables xvii

1. INTRODUCTION 11 Context 12 Objectives 23 Compensation methodology 24 Applications of the compensation methodology 25 Book organization 3

2. AUTOCALIBRATION AND COMPENSATION TECHNIQUES 51 Introduction 52 Matching 5

2.1 Matching rules 62.2 Matching parameters 6

3 Chopper stabilization 73.1 Principle 73.2 Analysis 83.3 Implementation 9

4 Autozero 114.1 Principle 114.2 Analysis 124.3 Noise 14

5 Correlated double sampling6 Ping-pong7 Other techniques

181820

Page 5: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsvi

8 Classification9 Conclusion

3. DIGITAL COMPENSATION CIRCUITS AND SUB-BINARY DIGI-TAL-TO-ANALOG CONVERTERS1 Introduction2 Digital compensation3 Successive approximations

3.13.2 Working condition 3.3 Reverse successive approximations algorithm 3.4

4 Sub-binary radix DACs4.1 Use of sub-binary DACs for successive approximations 4.24.34.4 Tolerance to radix variations

5 Component arrays5.1

6 Current sources6.1 Current-mirror DAC

7 R/2R ladders8 Linear current division using MOS transistors

8.18.2 Second-order effects 8.3 Parallel configuration 8.4 Series configuration

9 M/2M ladders9.19.2 Complementary ladder 9.3 Second-order effects 9.4

10 R/xR ladders10.110.2 Working condition 10.3 Terminator calculation 10.4 Terminator implementation 10.5 Ladder sizing 10.6 Terminator sizing

2122

23232324

Principle 252829

Complexity 313131

Characteristics 32Resolution 34

3435

Sizing 3638394041

Principle 4145454648

Principle 484950

Trimming 51

Principle 5151

5354555758

Page 6: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Contents vii

10.711 M/2+M ladders

11.1 M/3M ladders 11.2 M/2.5M ladders 11.3 Ladder selection and other M/2+M ladders 11.4 Current collector design 11.5 Complementary ladders 11.611.7

12 Comparison13 Linear DACs based on M/2+M converters

13.113.2 Calibration algorithm 13.3 Radix conversion algorithm 13.4 Digital circuit implementation 13.5 Analog circuit implementation 13.6 Compensation of temperature variations 13.7 Comparison with other self-calibrated converters

14 Conclusion

4. METHODOLOGY FOR CURRENT-MODE DIGITAL COMPENSA-TION OF ANALOG CIRCUITS1 Introduction2 Two-stage Miller operational amplifier3 Compensation current technique

3.1 Detection configuration 3.2 Detection node 3.3 Compensation node 3.4 DAC resolution 3.5 Low-pass decision filtering 3.6 Continuous-time compensation 3.7 Up/down DAC

4 Simulation with digital compensation circuits4.14.2 Automatic compensation component 4.3 Compensation component during adjustment 4.4 Compensation component during compensation 4.5 Multiple digital compensation 4.6 Example of implementation for PSpice

Radix 60626264656772

Layout 72Measurements 73

7778

Principle 7881848587909091

9393939697

100105113114115117

Principle 125124

126

130128

133134

Page 7: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsviii

4.7 Offset compensation of the Miller amplifier 5 Application to SOI 1T DRAM calibration

5.1 1-transistor SOI memory cell 5.2 Memory cell imperfections 5.3 Sensing scheme 5.4 Calibration principle 5.5 Calibration algorithm 5.6

6 Conclusion

5. HALL MICROSYSTEM WITH CONTINUOUS DIGITAL GAIN CALIBRATION1 Introduction2 Integrated Hall sensors

2.1 Hall effect 2.2 Hall sensors 2.3 Hall sensor models

3 Spinning current technique4 Sensitivity calibration of Hall sensors

4.1 Sensitivity drift of Hall sensors 4.2 Integrated reference coils 4.3 Sensitivity calibration 4.4 State of the art

5 Hall sensor microsystems5.1 Analog front-ends for current measurement

6 Continuous digital gain calibration technique6.16.2 Combined modulation scheme 6.3 Demodulation schemes 6.4 Gain compensation 6.5 Offset compensation 6.6 Noise filtering 6.7 Delta-sigma analog-to-digital converter 6.8 Rejection of signal interferences

7 Conclusion

6. IMPLEMENTATION OF THE HALL MICROSYSTEM WITH CON-TINUOUS CALIBRATION1 Introduction

136138139140141144146

Measurements 147148

151151151152153155157160161162163166171

173171

176

Principle 173

179

175

183184189193197

199199

Page 8: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Contents ix

2 Hall sensor array3 Preamplifier

3.1 Programmable gain range preamplifier 3.23.3 Operational amplifier

4 Demodulators4.1 Switched-capacitor integrators 4.2 External signal demodulator 4.3 Reference demodulator 4.4 Offset demodulator

5 Delta-sigma modulator6 System improvements

6.1Coil-sensor capacitive coupling

6.36.4

77.17.2

Measurement results 8 Conclusion

12 Main contributions3 Perspectives

ReferencesIndex

199201

DDA 202201

207208209213216220

Compensation of the reference demodulator offset

221224

6.2224

System integration

225226External interferences 227Alternate modulation/demodulation schemes 230

7.3

230Integrated circuit 231Configuration and measurement possibilities

233240

7. CONCLUSION 241241242242

Highlights

245255

Page 9: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

List of Figures

Figure 1. Functional chopper amplifier 7Figure 2. Temporal analysis of a chopper amplifier 8Figure 3. Frequency analysis of a chopper amplifier 8Figure 4. Fully differential chopper amplifier 9Figure 5. Implementation of a modulator/demodulator using

cross-coupled switches 10Figure 6. CMOS transmission gate 10Figure 7. Demodulator for single output chopper amplifier 11Figure 8. Autozero amplifier principle 12Figure 9. Analogically compensated autozero amplifier 13Figure 10. Digitally compensated autozero amplifier 13Figure 11. Autozero baseband and foldover noise transfer functions 15Figure 12. Resulting noise with autozero and small

amplifier bandwidthFigure 13. Resulting noise with autozero and large

amplifier bandwidthFigure 14.Figure 15. Ping-pong amplifier systemFigure 16. Operational amplifier swappingFigure 17. Digital compensation of the offset of an operational

amplifierFigure 18. Ideal 4-bits DAC input/output characteristicsFigure 19. Equivalent offset

xi

16

17181920

2425

Effect of the 1/f corner frequency on the resulting noise

26

Page 10: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsxii

Figure 20. Successive approximations algorithmFigure 21.Figure 22. Reverse successive approximations algorithmFigure 23.Figure 24.Figure 25. Input/output characteristics of a radix 1.5 DACFigure 26.Figure 27. Series resistor arrayFigure 28. Sub-binary DAC based on current-mirrorsFigure 29. Current-mode R/2R ladderFigure 30.

Current division circuitFigure 32. Current division without input currentFigure 33.Figure 34. Equivalent transistor of two transistors in parallelFigure 35.Figure 36. M/2M ladderFigure 37. PMOS M/2M ladderFigure 38.Figure 39. R/xR ladderFigure 40. Modified R/xR ladderFigure 41.Figure 42.Figure 43.Figure 44. M/3M ladderFigure 45. M/2.5M ladderFigure 46. +

Figure 47.Figure 48. Voltage/current characteristics of a diode-connected

transistorFigure 49. Successive approximations with current mirrors

as collectorsFigure 50. Layout overview of one stage of a M/2.5M converterFigure 51. M/2+M test-chip micrograph

26Successive approximations algorithm timing 27

30Reverse successive approximations algorithm timing 30

32Input/output characteristics of a radix 1.75 DAC333636

Parallel capacitor array

39404343Figure 31.44

Normalized drain current of the MOS transistor

4446

Equivalent transistor of two transistors in series 47

Current division with input

484950Inverse M/2M ladder5153

Maximum allowable mismatch in function of xT5659

Best-achievable radix with a sub-binary converter 61

2R terminator in a R/3R ladder

626466M/2 M ladder selection68Current mirror as M/3M current collector

69

717273

Page 11: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

List of Figures xiii

Figure 52.ladders

Figure 53. Standard deviation of ρ in each stage of the M/2.5M4ladder

Figure 54. Standard deviation of ρ in each stage of the M/3M1 ladderFigure 55. Input/output characteristics before calibrationFigure 56.Figure 57. DAC system architectureFigure 58. DAC calibration principleFigure 59. DAC calibration algorithmFigure 60.Figure 61. Digital circuit implementationFigure 62. Transresistance current collectorFigure 63. Regulated cascode current collectorFigure 64. Single-input current comparatorFigure 65. DAC micrographFigure 66. Two-stage Miller operational amplifierFigure 67. Small-signal model of the two-stage amplifierFigure 68. Offset detection in the closed-loop configurationFigure 69. Offset detection in the open-loop configurationFigure 70.Figure 71. Offset measurement in the open-loop configurationFigure 72. Implementation of a comparator with a digital bufferFigure 73. Input/output characteristics of the CMOS inverterFigure 74. Compensation by current injectionFigure 75. Offset correction by additional differential pairFigure 76. Offset correction by degenerated current mirrorFigure 77. Offset correction by unilateral current injectionFigure 78.Figure 79. Offset correction by bilateral current injectionFigure 80. Analog averaging of the offset measurementFigure 81. Digital averaging of the offset measurementFigure 82. Imperfection tracking with successive approximationsFigure 83. Imperfection tracking with up/down

75Standard deviation of the current division in M/2.5M

767779

Input/output characteristics after calibration 80818283

DAC radix conversion algorithm 8586878889909495

Offset measurement in the closed-loop configuration

98100101102

104105107107108

Offset correction by improved unilateral current injection 110111114115116117

104

Page 12: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsxiv

Figure 84. Up/down current mirror principleFigure 85. Smooth transition during up/down stepFigure 86. Up/down current mirror schematicFigure 87. Up/down current mirror micrographFigure 88. 2-pass simulation algorithmFigure 89. Single-ended compensation component in the

schematic editorFigure 90. Differential compensation component in the

schematic editorFigure 91. Single-ended compensation component netlist for the

first passFigure 92. Model of the analog feedback loop of the first passFigure 93. Differential compensation component netlist for the

first passFigure 94. Single-ended compensation component netlist for the

second passFigure 95. Final value range of the successive approximations

algorithmFigure 96. Differential compensation component netlist for the

second passFigure 97. Modified 2-pass simulation algorithmFigure 98. PSpice diode modelFigure 99. Programmable current sourceFigure 100. Untrimmed offset of a typical Miller amplifierFigure 101. Miller amplifier offset with single-ended 8-bits trimmingFigure 102. SOI 1T DRAM cellFigure 103. Read current dispersion of the 1T DRAM cellFigure 104. Retention characteristics of the 1T DRAM cellFigure 105. Reference current window as a function of timeFigure 106. Sense amplifier for SOI 1T DRAMFigure 107. Sense amplifier modelFigure 108. Automatic reference adjustment algorithmFigure 109. Optimized automatic reference adjustment algorithmFigure 110. Write/read cycles on 3 adjacent memory cellsFigure 111. Hall effect

118119122124125

126

127

128128

130

131

132

133134135136137138139140141141142143145147148152

Page 13: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

List of Figures xv

Figure 112. Cross-like Hall sensor and symbolFigure 113. Cross-like Hall sensor implementation

in P-substrate CMOSFigure 114. Purely resistive Hall sensor modelFigure 115. Modelling of the offset of the Hall sensorFigure 116. Modelling of the offset and Hall effectFigure 117. Spinning current techniqueFigure 118. Sensor and preamplifierFigure 119. Typical thermal drift of the current-related sensitivityFigure 120. Integrated calibration coilFigure 121. Sensitivity calibration principleFigure 122. Influence of the calibration period on the

variation of BextFigure 123.Figure 124. Calibration by separate signal and reference

measurement pathsFigure 125. Calibration by frequency separationFigure 126. System architectureFigure 127. Gain adjustment feedback loopFigure 128. Gain adjustment feedback loop with ADC and

digital comparisonFigure 129. Compensation current injectionFigure 130. Offset correction feedback loopFigure 131. Spectral representation of the modulated reference signalFigure 132. Band-limitation of the noise to increase the SNRFigure 133. Low-pass filtering after demodulation to increase

the SNRFigure 134. Demodulator and delta-sigma filter transfer functionsFigure 135. Delta-sigma used as an analog-to-digital integratorFigure 136. Typical signals in the delta-sigma modulatorFigure 137. Low-pass filter function of the delta-sigma ADCFigure 138. High-pass parasitic transfer function of the

reference demodulatorFigure 139. Parasitic transfer function before and after filtering

153

154155156156157158161162164

166Calibration by dual signal ± reference measurement paths 167

169170174180

181182183185186

187188189190193

195196

Page 14: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsxvi

Figure 140. Hall sensor and reference coil arrayFigure 141. Preamplifier block diagramFigure 142. Sensor array and first stage of the preamplifierFigure 143. Model of the DDA with 5 differential inputsFigure 144. Schematic of the DDAFigure 145. Schematic of the operational amplifierFigure 146. Switched-capacitor integratorFigure 147. Addition principleFigure 148. Subtraction principleFigure 149. Switch timing for an additionFigure 150. Switch timing for a subtractionFigure 151. External signal demodulator switch timingFigure 152. Demodulator phase shiftFigure 153. Reference demodulatorFigure 154. Reference signal demodulator switch timingFigure 155. Offset signal demodulator switch timingFigure 156. Delta-sigma modulatorFigure 157. Delta-sigma switch timingFigure 158. Offset compensation in the gain adjustment

feedback loopFigure 159. Model of the coil-sensor capacitive couplingFigure 160. Micrograph of the current measurement microsystemFigure 161. Preamplifier and demodulator output for Bext = 0Figure 162. Preamplifier and demodulator output for negative BextFigure 163. Preamplifier and demodulator output for positive BextFigure 164. Nonlinearity measurementFigure 165. Offset drift measurementFigure 166. Sensitivity drift measurement

200201202203205207209210211212212214215217218221222223

224225232235236237238239239

Page 15: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

List of Tables

Table 1. Characteristics of the compensation techniquesTable 2. Successive approximations algorithm timingTable 3. Reverse successive approximations algorithm timingTable 4. Bit current values in the sub-binary DACTable 5. Characteristics of the M/3M ladderTable 6. Characteristics of the M/2.5M ladderTable 7. 2+ resistor implementationTable 8. M/2+M test-chip ladder characteristicsTable 9. M/2+M current division measurementTable 10. Calibration table for the example of figure 55Table 11. Characteristics of the two-stage Miller operational amplifierTable 12. Closed-loop and open-loop offset measurementTable 13. Compensation currents for worst-case and Monte CarloTable 14. Typical specifications of a current measurement

microsystemTable 15. Combined modulation schemeTable 16. Demodulation schemesTable 17. External signal, reference signal and noise levelsTable 18. Sensor and coil characteristicsTable 19. Characteristics of the DDATable 20. Characteristics of the operational amplifierTable 21. External signal demodulation intermediate resultsTable 22. Reverse modulation scheme

xvii

2128313963656774748496

103131

172176177184201206208216228

Page 16: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systemsxviii

Table 23. Reverse demodulation schemesTable 24. Multiplexed modulation schemeTable 25. Multiplexed demodulation schemeTable 26. Capacitor values in the reference demodulatorTable 27. Pin functionsTable 28. Demodulator output for Bext = 0Table 29. Demodulator output for negative BextTable 30. Demodulator output for positive BextTable 31. Microsystem characteristics

228229230231233235236237240

Page 17: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 1

Introduction

1 CONTEXT

Ever since the invention of the transistor in the late 50’s, its fabricationtechnology has been evolving, allowing the device integration in a continu-ously shrinking area. High-performance integrated analog systems havealways been difficult to design. Sometimes, calibration is used to gather theextra performance that the analog devices cannot provide intrinsically. But theevolution of the manufacturing technology renders even basic analog systemsdifficult to design today. With the size reduction, the intrinsic precision of thecomponents degrades. In parallel, the supply voltage decreases, limiting thetopologies which can be used. Many modern technologies are specificallysuited for pure digital circuits, and some analog devices, like capacitors, arenot available. In these conditions, analog design is a challenge even for expe-rienced designers.

To relieve the extreme design constraints in analog circuits, digital calibra-tion becomes a must. It allows a low-precision component to be used in high-performance systems. If the calibration is repeated, it can even cancel theeffect of temperature drift and ageing.

The digital calibration is compatible with the evolution of fabrication tech-nologies, which ever more facilitates the integration of digital solutions at thecost of a dramatic reduction of analog performances. Thanks to the reductionof the size of digital devices, even complex digital calibration solutions can beintegrated and become a viable alternative to intrinsically precise analogdesigns.

Digital calibration allows to realize high-performance analog systems withmodern technologies. This enables pure analog designs to be implementedeven in fully digital processes. In existing mixed-signal designs, the full sys-tem realization also becomes possible with technologies providing higherintegration density. Finally, because circuit performances rely on digital cali-bration, retargeting is simplified. The digital blocks can be synthesizedautomatically, whereas only a limited design effort is invested in the analogcircuit.

1

Page 18: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systems2

2 OBJECTIVES

The first objective of this book is to provide a general methodology for thedigital calibration of analog circuits. It ranges from the analog circuit analysis(to identify how imperfections are detected) to the implementation of thecompensation. It presents systematic means for performing the compensationbased on general correction blocks and algorithms. The opportunity of per-forming regular calibration is also analyzed, and a classification of analogsystems allowing or disallowing this feature is developed. Finally, simulationtools permitting the verification of the efficiency of the calibration arepresented.

The second objective is to use the defined methodology for correcting theimperfections of existing circuits. In this book, the application of the compen-sation technique and circuits to three different systems is proposed: a high-precision digital-to-analog converter, a SOI (silicon on insulator) 1T DRAM(single-transistor dynamic random access memory), and a Hall sensor-basedmicrosystem for current measurement.

3 COMPENSATION METHODOLOGY

The compensation methodology is based on current-mode sub-binaryradix converters used in conjunction with successive approximations algo-rithms. A complete analysis of an efficient implementation of sub-binaryconverters using MOS transistors is performed. In particular, it is demon-strated that these very low-area M/2+M converters can achieve arbitrarilyhigh resolutions, which is advantageous to perform high-precisioncalibrations.

An adaptation of the compensation methodology to continuous-time pro-cessing systems is also studied. In particular, a way of using an adaptedsuccessive approximations algorithm and compensation converter which pro-duce unity up and down compensation steps is presented.

4 APPLICATIONS OF THE COMPENSATION METHODOLOGY

The sub-binary converters are intrinsically non-linear and their direct useas conventional digital-to-analog converters is impossible. However, usingtwo special calibration and radix conversion algorithms, this limitation is

Page 19: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 1: Introduction 3

removed and the realization of high-precision DACs becomes possible, evenwith very low-precision components used in sub-binary converters.

The second application is a SOI 1T DRAM, for which an automatic refer-ence calibration technique is proposed. Using the proposed compensationmethodology, a sub-binary DAC controlled by a successive approximationsalgorithm generates the current reference necessary to read the memory. Thereference compensates various circuit imperfections together, from the senseamplifier offset to the statistical dispersion of the memory cell currents.

The most important application of the digital compensation methodologyis a current measurement microsystem based on a Hall sensor. Until now, theperformances of current measurement ASICs have been highly limited by thesensitivity drift of integrated Hall sensors. A novel continuous sensitivity cal-ibration technique is proposed, based on the digital compensationmethodology. It combines chopper and autozero techniques, along with all thecircuits and algorithms proposed in the first part for the general correctionmethodology.

5 BOOK ORGANIZATION

Chapter 2 is an introduction to common compensation techniques. Thechopper and autozero techniques are presented, and the conditions of their usein continuous and sampled systems is discussed. Finally, both techniques arecompared and a classification is performed.

Chapter 3 presents the digital compensation algorithm (successiveapproximations), and the current-mode sub-binary M/2+M digital-to-analogconverters which are especially well-suited for digital compensation by cur-rent injection. Other sub-binary structures are also presented and compared.Finally, the special calibration and radix conversion algorithms, allowing theuse of sub-binary converters as conventional DACs, are presented.

Chapter 4 proposes a complete digital compensation methology whichallows the correction of circuit imperfections using the circuits and algorithmsof chapter 2. The presentation includes specific simulation tools for automaticdigital compensation. The application of the methodology to the SOI 1TDRAM reference calibration is presented.

Chapter 5 introduces a new sensitivity calibration technique for Hallmicrosystems, based on the methodology and circuits of chapters 3 and 4.After an introduction to Hall sensors and the state of the art in Hall sensor-based microsystems, the principle of the calibration technique is explained.The system-level issues are presented and the solutions explained.

Page 20: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systems4

Chapter 6 details the implementation of a complete Hall microsystem forcurrent measurement using the sensitivity calibration technique proposed inchapter 5. Each block is presented, and the simulated and measured perfor-mances discussed.

Chapter 7 concludes this book by highlighting the most important resultsand proposing future improvement possibilities.

Page 21: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 2

Autocalibration and compensation techniques

This chapter presents techniques which are commonly used to compensate or hide imperfections of analog circuits. Some of them, like chopper modulation, use mostly analog circuitry to remove a disturbing effect. Others, like successive approxima-tions, extensively use digital correction algorithms to trim analog components or circuits. First, the mostly used techniques are pre-sented. Then, their performances are examined and a classifica-tion is made.

1 INTRODUCTION

The design of analog circuits is rendered difficult by the imperfectionsimparted by the manufacturing process to the component values. Physicalparameters (e.g. oxide thickness, physical dimensions, doping profile) aresubject to variations due to instabilities of the fabrication technology, and theyreflect on component parameters. The best achievable tolerance of individualcomponent values thus depends on the accuracy of the manufacturing process,and cannot be reduced below a minimum level.

Fortunately, analog design rarely relies on the absolute value of singlecomponents, but rather on relative values of several components. The relativevalues can be made arbitrarily close, i.e. with small tolerances, by usingappropriate design techniques like matching. Thus, high-precision circuits canbe realized even with poor manufacturing processes.

2 MATCHING

The most common technique for improving the precision of analog blocksis matching. If the layout of pairs/sets of components is performed carefullyfollowing the rules presented below, the statistical dispersion of their valuescan be reduced.

5

Page 22: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systems6

2.1 Matching rulesThe following rules should be applied for optimum matching of integrated

components [1]:

1. Same structure2. Same temperature3. Same shape, same size4. Minimum distance5. Common-centroid geometries6. Same orientation7. Same surroundings8. Non minimum size

When designing pairs/sets of components using these rules, one makesthem all as similar as possible. Furthermore, as the components are split andmixed appropriately (common-centroid), they are statistically affected in asimilar manner by external (e.g. temperature) and intrinsic (e.g. doping)parameter variations.

2.2 Matching parametersIf the rules presented in section 2.1 are correctly applied, the dispersion of

the component values becomes an inverse function of the area occupied bythe devices [2][3][4]. This means that by increasing the size of the featuresand by applying rigorously the matching rules, the relative mismatch of thedevice pairs/sets is reduced. The general model that describes the dependenceof the matching of a parameter P on the area of two devices with area W ⋅ L is:

(2.1)

where AP is the process-dependent matching parameter describing the areadependence. This model is applicable to capacitors, resistors, MOS transis-tors, etc.

The statistical dispersion is inversely proportional to the area of thedevice. Consequently, in order to achieve a given matching precision, one hasto design components larger than the limit that is calculated using equation2.1. Obviously, the designer faces an important trade-off between precisionand circuit area when using only matching properties. But there are also other

σ2 P( )AP

2

W L⋅-------------=

Page 23: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 2: Autocalibration and compensation techniques 7

techniques that allow for increasing the precision of poor circuit elements.Instead of focusing on building high-precision devices, one can build low-pre-cision components and try to adjust them or compensate for theirimperfections later on. There are wide varieties of such techniques, each onehaving its specific application fields. The new trade-off is then between thematching effort and the use of one or a combination of these compensationtechniques. This chapter presents some of them, focusing on the additionalcircuitry needed to implement them and on the alternative design choices.

3 CHOPPER STABILIZATION

Many imperfections of operational amplifiers, e.g. 1/f noise and offset, arelow-frequency or even DC. The idea of chopper stabilization [5][6] is to trans-pose the signal to a higher frequency where the effect of 1/f noise (and offset)is negligible, to amplify the modulated signal, and finally to demodulate theamplified signal back to the baseband.

3.1 PrincipleFigure 1 presents a functional schematic of a chopper amplifier.

A modulation signal m(t) periodically changes the polarity of the inputsignal Vin. The amplifier block A is ideal, having an infinite bandwidth andneither offset nor noise. However, an equivalent input offset Voffset and noiseVnoise are added to the input VA of the amplifier, generating an equivalentimperfect input signal VB for the ideal amplifier. The amplified signal isdemodulated by sign changes using the same signal as for input modulation,resulting in the system output Vout.

Figure 1. Functional chopper amplifier

AVin

m(t)

Voffset + Vnoise

VoutVA VB

Page 24: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systems8

3.2 AnalysisFigure 2 presents an analysis of this chopper amplifier in the time domain,

whereas figure 3 displays the frequency analysis.

In this functional system, the modulation signal m(t) is a square wave witha period T that is applied to both the modulator and demodulator. Vin is aband limited signal with frequency components up to at maximum 1/T. If thisis not the case, the higher frequencies are aliased in the baseband, which isundesirable.

The modulation changes the sign of the amplifier input periodically, whichcorresponds in the frequency domain to a shift of the spectrum to the odd har-

Figure 2. Temporal analysis of a chopper amplifier

Figure 3. Frequency analysis of a chopper amplifier

Voffset + Vnoise Vinm(t)

VA VB Vout

+1

-1

t t t

t t t

T

Voffset + Vnoise Vinm(t)

VA VB Vout

fT fT fT

fT fT fT

1 2 3 4 1 2 3 4

1 2 3 41 2 3 4

1 2 3 4

1 2 3 4

Page 25: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 2: Autocalibration and compensation techniques 9

monics of the modulation signal. This point is the key of the performances ofa chopper amplifier. Indeed, the imperfections that are added to the shiftedspectrum have important low-frequency components (offset and 1/f noise),whereas they are significantly lower at the frequencies where the signal isshifted. Ideally, the chopper frequency is chosen to be higher than the cornerfrequency of the 1/f noise in order to add only white noise to the signal.

Once the signal VB is amplified, it is brought back to the baseband by thedemodulator, which effectuates exactly the same operation as the input modu-lator. The effect is to shift the signal back around DC and even multiples ofthe chopper frequency, whereas the 1/f noise and offset are located at the oddharmonics. In the time domain, this signifies that the mean value is the ampli-fied signal, whereas the modulated component is the offset.

Obviously, the output signal Vout cannot be exploited as is. The signal iscorrectly present in the baseband, but the higher frequency componentsshould be removed. For this reason, the output of chopper amplifiers is usu-ally low-pass filtered by an additional stage.

3.3 ImplementationTo simplify the realization of a chopper amplifier, it is advantageous to

use differential inputs and outputs for the amplifier. Indeed, since the inputsand the outputs of the amplifier are differential, changing their polarity isdone simply by crossing the positive and negative lines. Such a fully-differen-tial system is presented in figure 4.

A schematic of a practical implementation of the modulator and demodu-lator is the circuit presented in figure 5. Four cross-coupled switches,connected to the modulation signal and its complement, are used for this pur-pose. When φ is active, the input signals are straightly transmitted to theoutput. When φ is inactive, the signals are crossed.

The switches in figure 5 can be realized as CMOS transmission gates, aspresented in figure 6. The transmission gate consists of two complementaryNMOS and PMOS transistors, which are controlled by complementary sig-nals φ and . The circuit acts as a switch driven by φ. It has the advantageover the single-transistor switch of presenting a low-impedance between itsterminals A and B, whatever the voltages in both these nodes are.

Figure 4. Fully differential chopper amplifier

Vin Vout

φ

Page 26: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Digital Calibration of Analog Circuits and Systems10

Using this approach, the implementation of the modulator and demodula-tor is simple. However, it implies the use of differential inputs and outputs forthe amplifier, which is neither practical nor desirable always. Differentialinputs are usually available, since most amplifier implementations rely on adifferential pair as first stage.

If the amplifier has only one single output, the sign change in the demodu-lator is more difficult to realize. Figure 7 presents an example of circuitimplementing the required function. When φ is active, the input signal isdirectly fed to the output. When φ is inactive, the amplifier changes the sign ofthe input since its gain is designed to be -1.

The main drawback of this solution is the difficulty to obtain precisely the-1 gain, because it depends on the quality of the matching of the two resistors.A second problem arises from the delay introduced by the additional ampli-fier, making the circuit asymmetrical for both phases. Finally, theimperfections of the additional amplifier, such as offset and noise, degrade theoverall system performance. In this example, this is not problematic if thechopper amplifier gain A is high, because the input-referred offset and noiseof the amplifier in the demodulator are divided by A.

Figure 5. Implementation of a modulator/demodulator using cross-coupled switches

Figure 6. CMOS transmission gate

φ

φ

φ

φ

≡VA VB VBVA

φ

φ

A B A B

φ

Page 27: METHODOLOGY FOR THE DIGITAL CALIBRATION OF …...4 Simulation with digital compensation circuits 4.1 4.2 Automatic compensation component 4.3 Compensation component during adjustment

Chapter 2: Autocalibration and compensation techniques 11

As one can see, single input and/or output chopper amplifiers are lessstraightforward to design. In some specific applications however, these cir-cuits are more suitable than differential topologies.

4 AUTOZERO

Autozero is another common technique used to minimize offset and 1/fnoise in amplifiers. The main idea [7] is to first sample the undesired effectand then to subtract it during the second phase when the input signal is pro-cessed by the imperfect amplifier.

4.1 PrincipleFigure 8 presents the principle of an autozero amplifier [6], which is also

applicable to comparators. The amplifier A is ideal, the real amplifier noiseand offset being represented by the voltage source connected to the positiveinput.

During the first phase, the amplifier is disconnected from the input signalby switch Sin and the offset VO and noise VN voltages are sampled1 on capac-itor CAZ across switch SFB:

(2.2)

Figure 7. Demodulator for single output chopper amplifier

1. The assumption is made that the open-loop gain A of the amplifier is much larger than 1, which is correct in most cases.

VA

φ

φ

R R

VB

VCA

1 A+------------- VO VN+( )⋅ VO VN+( )≅=