RETURNING MATERIALS: ‘PV1ESI_J PIace in oook drop to LJBRARJE remove th1s checkout from 5.5!; your record. FINES wiII ' be charged if book is returned after the date stamped beIow. THE DESIGN AND APPLICATION OF A PROGRAINABLE COULOSTATIC POLARIZER Ching-Cherng Lii A DISSERTATION Submitted to liehigmn State University in pertiel fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY Depertment of Chemistry 1982 ABSTRACT THE DESIGN AND APPLICATION OF A PROGRAIIABLB COULOSTATIC POLARIZER By Ching-Cherng Lii A microcomputer controlled coulostatic electrochemical instrument has been slightly modified. The design principles and applications of the instrument. the programmable coulostatic polariaer (PCP). will be discussed. The PCP consists of an electrochemical cell. a digitally controlled charge generator for adding charge to the electrode, a voltage measurement system to monitor the working electrode potential. a real time clock to control the timing of experiments. and a microcomputer system to control the operation of charge generator. voltage measurement system and real time colck. Ihen an electrochemical cell is controlled by a potentiostat vhich is generally employed in conventional instruments. an 12 error vhich is the product of the portion L5 u. of current and the portion of resistance sensed by the reference electrode always exists. This error can be significant if the solution resistance is high or if the current is large. The PCP is based on the coulostatic polarization method which employs the addition of charge pulses to the electrode and measures the electrode potential between charge additions when there is no current in the solution. The potentials measured with coulostatic method are thus free from IR error.‘ The PCP can be operated in ways analogous to many electrochemical polarisation modes where the charge. current. or potential must be measured or controlled. These can be accomplished without modification of the instrument hardware. Some applications of the PCP have been achieved as follows: 1. Fast measurement of electrode capacitance: Capacitance measurements for mercury electrode in 1.0 I [Cl eolution can be obtained within 8 seconds with 2 $ RSD. 2. Electrode capacitance measurements for low concentration of electrolyte solution: The concentration of [Cl solution for capacitance measurement on mercury electrode can be as low as 10 pl. 3. Charging current compensation for constant chronopotentiometry: Compensation of charging current using blank electrolyte ([01) solution has been performed for the solutions of TlCl in 0.1 I RC1. A dramatic correspondance of transition times with theory is obtained. In-situ compensation of charging current allows the detection limit for cadmium to be as low as 0.25 pl. ACKNOWLEDGEMENTS I would like to express my sincere appreciation to Profesaor Christie G. Enke for his help. encouragement. and friendship throughout my graduate study. Thanks go to Professor lichael 'eaver for his helpful suggestions as a second reader. Thanks also go to Professor Eugene LeGoff, Professor Donald Farnum, and Professor Gerald Babcock aa my guidance committee. I would likc to thank Dr. Thomas Atkinson and the members of Professor Enke's research group for their help and friendship. especially Robert Engerer, Peter Aiello, Sechoing Lin. Kane-Yang Liu. Bruce Newcomc. and Hugh Gregg. I would like to thank Dr. Verdun Erle Leichty for his valuable help in grammer correction. Thanks go to my wife, Lily, for her help in drawing figures, continuous support, and love. Thanks go to my parents. brothers. and sisters for their support throughout my life. TABLE OF CONTENTS LIST OF TABLES O O O O O O O O O 0 O O O O O O O O O 0 LIST OF FIGURES O O O O O O O O O O O O O O O O O 0 0 CHAPTER CHAPTER CHAPTER 1 A. D. E. F. 3 INTRODUCTION . . . . . . . . . . . . . . . Coulostatic lethod . . . . .'. . . . . . . A licrocomputer Controlled Instrument: A Programmable Coulostatic Polarixer (PCP) OPERATIONAL lODES OF THE PCP . . . . . . . Description of the Charge Generator and the Voltage leasurement System . . . . . . . . Controlled Charge lode . . . . . . . . . . Controlled Current lode . . . . . . . . . . Controlled Potential lode . . . . . . . . . Open Circuit lode . . . . . . . . . . . . . Combination of lodes . . . . . . . . . . . EXAlPLE OF CONTROLLED CHARGE EXPERIlENT: ELECTRODE CAPACITANCE lEASURElENTS . . . . . . A. Introduction . . . . . . . . . . . . . . . General Background on Double Layer Capacitance . . . . . . . . . . . . . . . . l. Qualitative Description of Electrode Double Layer . . . . . . . . . . . . . . 2. Usefulness of Double Layer Studies . . . 3. lethods for the leasurements of Double Layer Capacitance . . . . . . . . . . . iii Page vi vii 13 13 19 20 20 21 21 22 22 23 23 25 26 CHAPTER CHAPTER 4. Description and Test of the Technique Developed in this Research Work . . . . . . Double Layer Capacitance leasurements for lcrcury Electrode in (CI Solutions . . . . Discussion . . . . . . . . . . . . . . . . EXAlPLE OF CONTROLLED CURRENT EXPERIlENT: CONSTANT CURRENT CHRONOPOTENTIOlETRY 'ITH CHARGING CURRENT COlPENSATION . . . . . . . . A. B. C. D. Introduction . . . . . . . . . . . . . . . Historical Background . . . . . . . . . . . Description and Test of the Technique . . . Compensation of Charging Current for the System TlCl in 0.1 l [Cl Solution . . . . . In Situ Compensation of Charging Current as Sensitive Technique for the Detection of ca*’ . . . . . . . . . . . . . . . . . . Discussion . . . . . . . . . . . . . . . . SOlE POSSIBLE APPLICATIONS OF THE PCP . . The Applications of the Controlled Charge lode . . . . . . . . . . . . . . . . 1. Traditional Coulostatic lethod . . . . . 2. Electrode Capacitance leasurements . . . 3. Coulometric Titrations . . . . . . . . . The Applications of the Controlled Current lode . . . . . . . . . . . . . . . 1. Constant Current Chronopotentiometry . . iv Page 30 47 62 65 65 66 73 93 101 110 116 116 116 117 118 119 119 CHAPTER 6 B. C. APPENDIX A APPENDIX B Page 2. Programmed Current Chronopotentiometry . 120 3. Electrode Pretreatment . . . . . . . . . 120 The Applications of Potential lode . . The Applications of The Applications of of lodes . . . . . DESCRIPTION OF THE lodification of the Voltage leasurement Interface Circuits The Real Time Clock - Equation and Some the Controlled . . . . . . . . . . . . 121 the Open Circuit lode . 123 the Combination . . . . . . . . . . . . 124 SYSTEl HARD'ARE . . . . 128 Charge Generator and the System . . . . . . . . 128 . . . . . . . . . . . . 131 . . . . . . . . . . . . 136 Examples for the Calculation of linimum values of tdl for Chronopotentiometric Experiments . . . . 138 - Programs for Data Data Analysis . . LIST OF REFERENCES . . . . . . Acquisition and O O O O O O O O O O O O 139 O O O O I O O O O O O O 172 Table LIST OF TABLES Page Estimated Error due to the switch current leakage for the capacitance leasurement . . . . . . . . . . . . . . . 61 Transition time (seconds) of various concentrations of TlCl as a function of number of charging current compensations . 99 List of if, 1b/1f. r, 1:"‘ for cac:, solutions . . . . . . . . . . . . . . . 110 The names and functions of the data acquisition programs . . . . . . . . . . 139 The names and functions of the data analysis programs . . . . . . . . . . . 140 vi Figure LIST OF FIGURES Equivalent circuit for an electrochemical cell controlled by a potentiostat . . . . . . . . . . . An equivalent circuit and an example of charge pulse for coulostatic method . Block diagram of the programmable coulostatic polarixer (PCP) . . . . . . The charge generator and the voltage measurement system . . . . . . . . . . . The first part of the flow chart of the program for the capacitance measurement The second part of the flow chart of the program for the capacitance measurement The third part of the flow chart of the program for the capacitance measurement Calibration error in analog-to-digital converter (ADC) . . . . . . . . . . . . Effect of Calibration error in analog-to-digital converter on the capacitance measurement . . . . . . Dummy cell configuration for testing the capacitance measurement technique . Results of removing calibration error of ADC O O O O O O O O O O O O I O O O O 0 vii Page 11 14 32 33 34 37 39 40 42 Figure 3-8 3-10 Page Capacitance ratio obtained with N1'100. Ndz-loOOg ‘nd td'Oes .' e e e e e ‘5 Capacitance ratio obtained with Ndl-IOOOg NdZ'looo' .nd td'Oms .‘ m o e o 46 Capacitance curves of HlDE in 1.0 l RC1 solution obtained with Ndl-lOO. Nd2'1000' and td - 0.4. 0.8. 1.6. 3.2 ms with the higher capacitances corresponding to the longer times . . . . . . . . . . . . . 49 Capacitance curves of ElDE in 0.1 l RC1 solution obtained with Ndl-lOO. Ndz-IOOO, ‘nd td - 002g 00" 0.8, 1.6. 302. 6.4 .‘ 'ith the higher capacitances corresponding to the longer times . . . . . . . . . . . 51 Capacitance curves of HlDE in 0.01 l RC1 solution obtained with Nd1-100. Nag-1000. .nd td - 0.2g 00" 008, 1.6g 302' 6.4. 12.8 ms with the higher capacitances corresponding to the longer times . . . . 52 Capacitance curves of nuns in 10’3 l xc1 solution obtained with Nd1-100, Nd2-1000, .nd td - 0.4. 008. 1.6g 3.2g 6.4. 1208' 25.6 ms with the higher capacitances corresponding to the longer times . . . . 53 viii Figure 3-14 Cdpaoitance curves of 10'3 l RC1 solution obtained with improved cell geometry These curves are obtained with Nd1-100. Nd2-1000. and td - 0.2. 0.3. 0.4. 0.8. 1.6. 3.2 ms with higher capacitances corresponding to the longer times . . . . Capacitance curves of HlDE in 10.4 l RC1 solution obtained with Nd1-20. Nd2-1000. and td - 0.8. 1.6. 3.2. 6.4. 12.8. 25.6 ms with the higher capacitances corresponding to the longer times . . . . Capacitance curves of HlDE in 10'5 l RC1 solution obtained with Nd1-20. Nd2-1000. and td - 12.8. 25.6. 51.2. 102.4 ms with the higher capacitances corresponding to the longer times . . . . Capacitance curves of RC1 solutions with concentrations of 1. 0.1. 0.01. 10'3. 10". end 10'5 u . . . . . . . . . . . . . Capacitanccs of mercury electrode in 0.1 l RC1 solution .... this work; +++. Grahame's data . . . . . . . . . . . Illustration of the compensation of charging current. the first part . . . . . ix Page 55 57 58 59 63 74 Figure 4-4 Illustration of the compemsation of charging current. the second part . . . . Flow chart of the program for the measurement of integral capacitive charge; the first part . . . . Flow chart of the program for the measurement of integral capacitive charge. the second part . . . . . . . . . Flow chart of the program for chronopotentiometry with charge- ing current compensation . . . . . . . . . Flow chart of the program for data acquisition of a chronopotentiogram . . . Circuits of dummy cell for the test of charging current compensation for chronopotentiometry cdml: the charging capacitor Cd.2: the Faradaic capacitor . . . . . . . Voltage-time curve obtained with one dummy capacitor. Cd.2 . . . . . . . . Voltage-time curves obtained with two dummy capacitors Curve 0: no charging current compensation Curve 1: the first compensation Curve 2: the second compensation Curve 3: the third compensation . . . . . x Page 75 _77 78 82 83 87 89 9O Figure 4-10 4-11 4-13 Page Voltage-time curves Curve 1: only Cd‘z in the feedback loop Curve 2: both capacitors in the feedback loop and with the compensation for Cd.1 . . . . . . . . . . . . 92 Integral capacitive charge of SlDE in 0.1 l RC1 solution . . . . . . . . . . . . 95 Chronopotentiograms of 10"4 l TlCl solution Curve 0: No charging current compensation Curve 1: the first compensation Curve 2: the second compensation Curve 3: the third compensation . . . . . 97 Faradaic charge curves for SlDE in 10“ a 1101 and 0.1 l xc1 solution Curve 0: no charging current compensation Curve 1: the first compensation Curve 2: the second compensation Curve 3: the third compensation . . . . . 98 itl/ZIC vs. log concentration (I) of Tl+ o. with charging current compensation x. without charging current compensation . . . . . . . . . . . . 100 Chronopotentiograms of 2010-5 l CdClz The number besides the curve corresponding to the number of charging current compensation . . . . . . . . . . . . . . 103 xi Figure 4-8 4-10 4-13 Page Voltage-time curves Curve 1: only Cd.2 in the feedback loop Curve 2: both capacitors in the feedback loop and with the compensation for Cd.1 . . . . . . . . . . . . 92 Integral capacitive charge of SlDE in 0.1 l RC1 solution . . . . . . . . . . . . 95 Chronopotentiograms of 10"4 l TlCl solution Curve 0: No charging current compensation Curve 1: the first compensation Curve 2: the second compensation Curve 3: the third compensation . . . . . 97 Faradaic charge curves for SlDE in 10"4 s TlCl and 0.1 x xc1 solution Curve 0: no charging current compensation Curve 1: the first compensation Curve 2: the second compensation Curve 3: the third compensation . . . . . 98 itllz/C vs. log concentration (l) of Tl+ o. with charging current compensation x. without charging current compensation . . . . . . . . . . . . 100 Chronopotentiograms of 2-10'5 l CdClz The number besides the curve corresponding to the number of charging current compensation . . . . . . . . . . . . . . 103 xi Figure 4-14 4-18 6-1 Page leasured integral capacitive charge for 0.01 l RC1 solution Curve 1: without CdClz Curve 2: with 2-10'5 I cac12 . . . . . . 105 leasured integral capacitive charge for 0.01 l RC1 solution Curve 1: without CdClz Curve 2: with 5-10" I cac12 . . . . . . 106 Chronopotentiograms of 10" u cac12 The number besides the curve corresponding to the number of charging current compensation . . . . . . . . . . . . . . 107 Chronopotentiograms of 5°10-7 l CdClz with charging current compensation . . . 109 i-rll2 vs. concentration of Cd+2 . . . . 111 The bipolar Digital-to-Analog Converter . . . . . . . . . . . . . . . 129 The voltage measurement system . . . . . 130 Interface logic for the DAC and the ADC . . . . . . . . . . . . . . . . 132 Switch decoding circuits . . . . . . . . 134 xii - d.- CHAPTER 1 INTRODUCTION Electrochemical instruments are often based on the potentiostat which tries to maintain the potential of the working electrode equal to a control voltage provided by a signal generator. The control signal may have a constant value or vary with time. Figure 1-1 shows an equivalent circuit for an electrochemical cell which is controlled by a potentiostat(not shown). The solution resistance is represented by R'. The resistance of an electrochemical reaction which depends on the kinetics and the availability e' The double of electroactive species is represented by R layer capacitance of the working electrode appears in the equivalent circuit as Cdl' On the solution side of the electrode/solution interface. there are ionic species and solvent dipoles. A change in the electrode potential causes a change in the distribution of ions and the orientation of solvent dipoles. Thus. the electrode/solution interface responds like a capacitor. A detailed discussion of the double layer capacitance can be found in Chapter 3. In a potentiostat. the electrochemical cell is part of a feedback loop in which the cell current is continuously controlled in order to minimize the difference between the measured value of the electrode potential and the desired (control signal) COUNTER REFERENCE WORKING ELECTRODE ELECTRODE ELECTRODE Figure 1-1. Equivalent circuit for an electrochemical cell controlled by c potentiostat potential. However. the actual potential of the working electrode deviates from the measured value (and thus from the desired value) whenever there is a current in the cell. This deviation is caused by the IR drop which is the product of current I and the portion of the solution resistance 5 sensed by the reference electrode. In order to reduce the IR component of the measured voltage. solvents with high dielectric constant and high concentrations of supporting electrolyte are used. In some cases. a Luggin capillary reference electrode must be used to minimise the distance between the working and reference electrodes. 'hen the supporting electrolyte concentration is below 0.01 l (as is often the case when nonaqueous solvents are used). the IR drop can introduce a significant error in potential control. Some electrochemists have tried to use potentiostats with positive IR compensating feedback (1-6) to reduce the error in potential control and enhance the system response. However. it has been found that the circuit tends to oscillate (3.5.6). A common method to compensate the solution resistance is to increase the level of compensation until the potentiostat/cell system is no longer stable. It was pointed out in a review paper (7) that this can be a rather inaccurate procedure. as many systems can be unstable at rather less than 100% compensation and. conversely. some systems are stable even beyond 100% compensation. A. Coulostatic lethod In the early 1960's P. Delahay and I. H. Reinmuth each published a series of papers in which they described the theory and applications of a new method. the coulostatic polarisation method (8-12). Figure 1-2 shows an equivalent circuit of an electrochemical cell and an example of charge pulse for the coulostatic method. In the coulostatic method. a brief charge pulse (microsecond range) of qp coulombs is injected into the cell and then the cell is kept in an open circuit condition. The quantity of charge may be controlled by applying a constant current i for a short period of time t or by injecting a known quantity of charge with a capacitor charged to a known voltage. After the charge pulse is injected. the Faradaic current if. or the charge consumed by the Faradaic process. is supplied by the charge on the double layer capacitor cdl' The original coulostatic method usually involved the injection of a large charge pulse to alter the potential of an electrode from several to several hundred millivolts followed by the open-circuit monitoring of the potential. The potential/time curve can then be related to the electrode reaction processes of charge transfer. diffusion. and chemical kinetics (8.10.12). For example. for a simple redox system Red + ne- t 0x. with both species soluble. with mass transport by semi-infinite diffusion. and with a constant double layer capacitance cdl' the potential/time i q-p=J‘i-dt Ref Col if “9 —W‘—— Re Figure 1-2. An equivalent circuit and an example of charge pulse for coulostatic method relationships were derived for the following situations: 1. 'ith a small potential perturbation AE (nFAE/RT << 1) and with fast charge transfer reaction (12) (the rate of the reaction is completely limited by the diffusion of Red to the electrode surface). AE - AEi-exp(tltd)-erfc(t/td):/3 (1-1). where AB is the change of potential from its initial value. AEi is the initial potential perturbation. t is the time after charge injection. and (td)1/: ' (RTCdl/naF‘)' <(cnod)““") (1-2). where n is the number of electrons transfered. cRed and cox are the initial concentrations. other terms have their usual meaning. 2. With a small potential perturbation AE and when the rate of charge transfer is limiting (12). AE - AEi-exp(-t/rc) (1-3). where to - [Teal/HFI. (1-4), where i. is the exchange current density for the charge transfer process. 3. Vith a large potential perturbation AE. and with a fast charge transfer reaction. AB - (2nF(DRCd)1I’cRCd/(x):lacd1)t1/: (1'5). For cdl - 20 uF/cm'. ”Red - 10 cm'lsec. and n - 2. AB is equal to 0.344 t"’, o_0344 t‘l’. 0 00344 ti]: 1/3 for cRed . 10", 10", 10" moles/liter. volts[(sec) respectively (8.10). The potential-time relaxation is a function of the double layer capacitance which is a function of potential. One of the major disadvantages of the original coulostatic method is that the variation of double layer capacitance with potential complicates the analysis of the desired parameters. The coulostatic method reduces the effect of solution resistance because the current is zero when the electrode potential is measured. Therefore. the coulostatic method can be applied to most non-aqueous solutions and lower concentrations of supporting electrolyte can be used to reduce contaminations from the addition of the supporting electrolyte. In spite of the above advantages. which make the coulostatic polarisation an attractive technique for analytical applications. only a few applications of this method have been reported (some examples can be found in References 11.13-16). This may be due to the lack of rapid and intelligent control system with which to produce the traditional varieties of polarizing potential or current waveforms through charge pulse injection. Charge pulse injection. which is used in traditional coulostatic method to change the potential of a working electrode to a new value. can be used as well to maintain the electrode potential at a desired value as long as the sire of the injected charge is small and the frequency of injection is sufficiently high. The idea of controlling the electrode potential by charge injection has been used by Goldworth and Clem to develop the 'bipolar digipotentiogrator' (17). The system uses the charge injection technique to maintain a desired potential and simultaneously serves as a current-to-digital converter. The system injects small charge pulses of constant size to the working electrode as often as needed to keep its potential at the desired value. The design of the bipolar digipotentiogrator is based on dedicated hardware logic. B. A licroccmputer Controlled Instrument: A Programmable Coulostatic Polarixer (PCP) In order to enhance the flexibility of the coulostatic method. a general purpose electroanalytical system based on a microcomputer-controlled coulostatic generator has been developed by Spyros Houdakis (18). This first microcomputer-controlled instrument has been improved substantially in this thesis work. The goals of the research work described here were to develop a flexible electrochemical instrument around the computer-controlled charge injection principle and to apply this instrument to some electrochemical experiments which standard electrochemical instruments cannot easily perform. Computers have been used heavily during the last decade in the development of modern automated instruments. The dedicated computer can operate the instrument. calibrate the instrument. collect data. and make decisions during the course of the experiment. licroprocessors with greatly improved performance have been introduced into the market in recent years. Some microprocessors have an instruction cycle as low as 0.8 us. licroprocessors. with the aid of supporting chips such as memory. input-output registers. buffers. communication chips. interrupt controllers. timing controllers. etc.. can be used as an intelligent controller for virtually any instrument. The microcomputer used in this instrument is a single microcomputer segment of a lO multi-microcomputer system that has been developed in our research group (19). These microcomputers are based on the 8085 microprocessor chip first manufactured by Intel Corp. The block diagram of the instrument is shown in Figure 1-3. It consists of: 1. an electrochemical cell with working. reference. and counter electrodes (I. R. and C). 2. a charge generator for the injection of charge to the electrode. 3. a voltage measurement system to monitor working electrode potential between charge injections. 4. a keyboard (RB) and a display (CRT) to allow operator communication. 5. a graphic controller to present the results of experiments in graphic form on the CRT. 6. a real time clock to control the timing of experiments. and 7. a floppy disk to store data. The instrument is interfaced to a PDP I 11/40 minicomputer to allow loading programs from its mass storage. and to use the minicomputer for faster data analysis and for hard copies of experimental results. The instrument will be called the programmable coulostatic polarixer (PCP) since it is flexible through programming and can generate many types of coulostatic polarisation waveforms. Several modes of operation of the ‘ a-v.‘ _ ‘ .. VOLTAGE o CHARGE W ; R 5 MEASUREMENT GENERATOR ‘ SYSTEM AA~ " C /A\ KB ‘Lll' ‘v" l_.| CRT } NHCROCOMPUTER SYSTEM GRAPHIC REA FLOPPY 1WM: PDP DISK 11/40 CLOCK Figurel-J. Block diagram of the programmable coulostatic polarizer (PCP) 11 12 PCP will be described in Chapter 2. examples of applications will be presented in Chapters 3 and 4. and some possible applications will be discussed in Chapter 5. CHAPTER 2 THE DESIGN AND THE OPERATIONAL lODES OF THE PCP A. Description of the Charge Generator and the Voltage leasurement System Figure 2-1 shows a diagram of the charge generator and the voltage measurement system. The charge generator and the voltage measurement system are essentially the same as those designed by Spyros Hourdakis (18) except that a few components have been changed; a separate power supply is used. and grounding circuits have been redesigned and constructed in order to reduce noise. A detailed description of the circuits can be found in Hourdakis' thesis (18). Some modifications to these circuits will be discussed in Chapter 6. The design principles and important characteristics of the components and circuits will be discussed in this chapter. The charge generator consists of a 10-bit digital- to-analcg coverter (DAC) and several capacitors. switches. and operational amplifiers. The microcomputer can control the DAC to produce a programmable voltage V. If the data for the DAC control is stored in the computer memory. the process of reading the data and controlling the DAC takes about 17 us. The DAC is of bipolar construction with a maximum output voltage of x 2.5 V. It has a quantization 13 annxn acoEucauaoce omaZo> ecu vca D L .H L 3H A n «0 p0 —-H-- Lououocom emccco ugh (- im pin ,_{}_o r\m Aou~.>:uoo< 4whp.n n<— Rw.¥o« .— deco... In .86— o . «<— a..xo« ._l« o.=a_n muhamiou 080.2 Auunha<, cc veeomv 0 ' 0' n .5 I ‘ O (E) 1' int n to 1,, Einit En Time Potential E 4—lo 4-10 A '6 '5 En B . I '3 i Controlled 0. COMVOHNI / | current mode liini‘l } I I potentiel mode ' l l > 4-1c Time _ A .5 a e S 0 Potential controlled -= l I l ll l l l I o I r T ' 0* Einit ’LTIPD t“ 9': T 1 {FT T 4-": Set up n ‘n+1 ' timer th1;: Figure 4-1. Illustration of the compensation of charging current. the first port. 714 Charge A 1 th OT of the OT 0 e 2nd scan 2nd scan 01 ol the 1st scan and Desired 0‘ OT 0' Th0 . oI 1st scan 3 Desired .c 0' 0 / 0' 01 the 0, ol the let econ ‘.‘ soon > . > ‘ni ‘n 1"“. Tim. 4-1e Graph for the simple 4-11 Graph for the method method of compensation actually ,used I\ E 0' e '3 o £ t) Potential controlled ll'l' r , 3' 0‘ E30" Time 4-10 .A '3 :3 e a» b o 1.: Potential controlled 0 at £30" T T T Time Kin 9| Illustration of. the compemsation of Figure 4-1. the second part charging current. 75 76 cherges of the working electrode must be meesured over the potentiel renge of interest. The results ere stored in the memory of the computer. Figure 4-1b illustretes the integrel cepecitive cherge Qint required to meke the potentiel perturbetion from the potentiel Einit to the potentiel E for e working electrode in e solution. The solution mey be e blenk solution conteining only the supporting electrolyte end the solvent. or it mey be the solution to be tested. Although the integrel cepecitive cherge meesurement mey be subject to some error when the test solution conteins electroective meteriels. the error is smell for low concentretions of electroective species es will'be shown in Figures 4-14 end 4-15 (less then 11 i error for 2°10" I Cd+3 end less then 4 I error for 5°10" I Cd+‘ in 0.01 I [Cl solution). Figure 4-2 shows the process of meesuring the integrel cepecitive cherge. The operetor sets up the peremeters such es initiel potentiel Einit' finel potentiel Efinel' cherge to be injected 01. deley time for cherge injection td. etc. For the reection 0x + ne- 9 Red, Efinel is more negetive then Binit end 01 is negetive. After the operetor sterts the progrem. the PCP meesures the electrode potentiel end comperes it to the desired initiel velue Binit’ If there is eny difference in these two potentiel velues. the PCP injects enough cherge pulses of proper polerity to bring the electrode potentiel to the initiel velue. After the initiel < ) SET UP 0;: charge to be PARAMETERS injected II! n: number of charge injection hIi Einit: initial potential APPROACH Einit TELL OPERATO IT'S READY KEEP Einit Figure 4-2.’ DATA ACQUISITION (NEXT PAGE) Flow chart of the program lor the measurement of integral capacitive charge; the first part 77 integral capacitive charge potenial before charge injections. _> ”HOE-CT should be equal ' 5° Einit E2“. potentiuiafter t NO char e in'ections REACilED? ‘ 9 J Etinal‘ final potential YES td: delay time n NJECTIONS? YES MEASURE PRINT E“, E Edwin-Em and E2" 2n i CALCULATE INDIVIDUAL 05M BETWEEN EintTEdn—t and RESULTS IN MEMORY E2mand N STOP Figure 4-2. Flow chart of the program for the measurement of integral capacitive charge. the second part 78 79 potentisl is resched, the PCP reports to the aperstor thst it is resdy to execute dsts scquisition. The PCP keeps the electrode potentisl st Einit by sdding chsrge pulses ss needed until the operstor con-snds the PCP to execute the dsts scquisition. After the dsts scqusition stsrts. the PCP nskes sure thst the potentiel 811 before chsrge injection is equsl to Einit' then injects the chsrge Qi to the electrode snd nessures the potentisl 821 sftcr some slight delsy tile td. The ninilun tine required by the conputer progrsnling is shout 50 us for esch chsrge injection. The PCP cslculstes the potentisl difference Edl resulting from one injection of chsrge Q1 by the equstion: Edl - 821 - £11 (Edi should hsve s negstive vslue). The integrel cspscitiwe chsrge Qint for the individusl vslue of potentisls between Binit ‘“‘ Einit * Edl '“°h " Einit' Einit ’ 1°22 'V' Binit - 2.44 'v""Binit + Edl' is cslculsted by sssuning thst Qint is lines: within the potentisl rsnge. The results sre stored in the Ie-ory of the co-puter. 0n the screen. the PCP reports the vslues 811 snd 321. the potentisls before snd sfter chsrge injection. A sinilsr nth process is performed to bring the electrode potentisl to Einit' to inject chsrge Qi n times. to nessure the electrode potentisl sfter chsrge injections BZn' to cslculste the potentisl difference Edn - EZn - Eln (Eln - Einit” to cslculste the individusl cspscitive chsrge for the potentisls within the rsnge Einit + Bdn-l - 1.22 IV snd Einit + Edn' snd to report 80 the vslues Eln snd E2n' the potentisls before snd sfter chsrge injections. Ihen the process hss been caIpleted for s potentisl which is Iore negstive thsn Efinsl - 24.4 IV. the PCP reports the vslue N. the nuIber of chsrge injections thst hsve been perforIed during the Iost recent series of chsrge injections. When this occurs. the IessureIent of the integrsl cspscitive chsrge hss been coIpleted. The cspscitive chsrge for the individusl potentisl between Einit snd Efinsl - 24.4 IV such ss Einit' Einit - 1.22 IV..... Efinsl""' Efinsl - 24.4 IV. is stored in the IeIory of the IicrocoIputer during the execution of this progrsI. In order to provide s wider rsnge of cspscitive chsrge IeIory file. the vslue Efinsl - 24.4 IV is selected to be Iore negstive thsn Efinsl’ To obtsin fsirly sccurste cspscitive chsrge for the individusl potentisl. s vslue of 10 IV to 20 IV for the potentisl rsnge between Edn-l snd Edn is suggested for sny electrode which hsve fsirly constsnt wslue of double lsyer cspscitsnce within the potentisl rsnge (such ss Iercury electrode in 0.1 I or 0.01 I [Cl solutions). For the caIpensstion of chsrging current using s blsnk cell. the integrsl cspscitive chsrge should be Iessured before testing the solution of ‘ interest. For the caIpensstion of chsrging current in-situ. the integrsl cepecitive chsrge Isy be Iessured sfter esch chronOpotentiOIetric scsn. To perforI chsrging current caIpensstion. the 81 operstor prepsres the solution to be tested snd sets up the psrsIeters such ss the initisl potentisl Einit' the finsl potentisl Efinsl' the tiIe intervsl between two potentisl IessureIents tdl' stiIuI nuIber of chsrge injections within the period tdl' s nuIber TIPD for the sIount of delsy tiIe TIPD-tdl to keep the electrode potentisl st Einit sfter setting up the tiIer snd before executing dsts collection. etc. The cperstor then initistes the progrsI to perforI chsrging current caIpensstion. The process of perforIing the first chronopotentionetric scsn is shown in Figures 4-lc. 4-ld. snd 4-4. The PCP brings the electrode potentisl to the initisl vslue Einit snd inforIs the aperstor thst it is resdy to begin the dsts scquisition. The operstor csn stsrt the dsts scquisition sfter this' point hss been resched; however, it will be found sdvsntsgeous to wsit for s while (e.g.. 10 seconds) for the electrode to reduce sny inurities which sre present in its vinicity snd sre reducible st Einit' After the operstor caIIsnds the PCP to stsrt the dsts scquisition. the PCP sets up the tiIer. keeps the potentisl st Einit for s period TIPD-tdl. The PCP Iessures the electrode potentisl st the tiIes t. snd stores it in the aoIputer IeIory. injects s chsrge pulse or s nuIber of chsrge pulses to the electrode. wsits until t1 is resched, then Iessures the electrode potentisl snd injects snother chsrge pulse or Iore chsrge pulses. The PCP continues to Iessure the electrode potentisl snd to inject s let Scan? SET UP CALC & SEND CONSTANT 030} o, to PDP 11 LIBRARY REACH Einit CONSTRUCT THE NEW r 01’ vs. t curv | KEEP NO COLPISIIION Ehfil suooru YES QT VI. I can DATA ACQUISITION (NEXT PAGE) 7 EL SET UP 0303 REACH Emu Library (See Fig 4-1g] PLOT RESULTS : char e SEND a Q 9 DATA 10 Of: Faradaic charge POP 11 o, ,. . . .nJ-charge to be injected L Qinfiintegral capacitive Oint charge _ REACH E°nn ""0“" FE— . 01-: Total charge ment (Fig 4-2) Einit. \' NO Figure 4-3. Flow chart of the program for ' chronopotentiometry with charge- ing current compensation. 82 APPROACH From Figure Einit "4-3 ITELL OPERATOR I n"s READY KEEP Ehfit KEEP E30" tor a period TlPD-tdt l MEASURE E Ta Figure 4-3 512 potential meesure- memts? YES INJECT law's (See Figure. 4-1d and 4-1n) | N0 “ YES REACHED? Figure 4-4.‘ Flow chart of the program for data acquisition of a chronopotentiogram 83 84 constsnt qusntity of chsrges within tdl tiIe intervel until the electrode potentisl is equsl to or more negstive thsn Efinsl' or until 512 potentisls sre Iessured. whichever occurs first. The electrode potentisls st the tiIe t.. t1, t,. ...._ etc. sre stored in the IeIory during the dsts scquisition. For the injection of s chsrge pulse between two sdjscent potentisl IessureIents. the IiniIuI vslue of tdl is 156 us. For the injection of two chsrge pulses. it is 205 us. For the injection of 10 chsrge pulses. it is 601 us. A detsiled cslculstion of the IiniIuI vslue of tdl csn be found in Appendix A. After the first scsn. in order to restore the desired initisl concentrstion of 0x in the vinicity of the electrode surfsce. the electrode potentisl is brought to the vslue Einit to oxidize Red beck to 0x for s reversible resction. or not to reduce 0x sny Iore for sn irreversible resction. This is necesssry in the situstion in which sn HIDE is used snd the ssIe Iercury drop will be used. or in the situstion in which s solid electrode is used. becsuse the solution nesr the electrode is not well stirred. After the potentisl resches Binit' the chronopotentiogrsI. the E vs. tiIe curve. will be plotted on the screen. The operstor Isy ssve the results. The PCP holds the electrode potentisl st Einit' The operstor Isy perforI the cspscitive chsrge IessureIent with the ssIe solution when the in-situ coIpensstion is 85 desired. It is sdvsntsgeous to do so for in-situ coIpensstion of cherging current since the probleI of drift of electrode cspscitsnce csn be reduced. As shown on Figures 4-1 snd 4-3 the PCP identifies the electrode potentisl En st the tiIe tn (Figure 4-1c) snd locstes the integrsl cspscitive chsrge Qint(En) for the potentisl E (Figure 4-1b). The Fsrsdsic chsrge Qf(tn) n (Figure 4-1s). which hss been consuIed st the tiIe tn, is cslculsted by the equstion: Qf(tn) ' °T(tn) ’ Qint(En) (4'7): where QT(tn) is the totsl chsrge injected st the tiIe tn of the Iost recent scsn (In the first scsn, the QT vs. tiIe curve is the desired 0: curve). There sre Isny possible Iethods of sdjusting the totsl chsrge curve in order to Iske the Fsrsdsic chsrge curve spprosch the desired strsight line. As shown on Figure 4-1e. s sinle Iethod is to sdd the chsrge difference between Qf(tn) snd the desired at vslue to QT(tn) of the Iost recent scsn. Instesd of this sinle Iethod. I used s Iethod which provides fsster coIpensstion. This Iethod is illustrsted in Figure 4-1f. The PCP locstes the tiIe t. st which Qf(tn) should hsve been consuIed. For the next scsn. the totsl chsrge st t will be the totsl chsrge which hss been injected st tn of the previous scsn. The QT vs. t 86 curve is extended to s higher qusntity of chsrge by extrspolsting the end portion of the curve. If the potentisl Enl (not shown) st the tiIe tnl is Iore negstive thsn the potentisls before tnl' snd if Enz is the first potentisl which is Iore negstive thsn Enl' the cspscitive chsrge corresponding to the potentisl chsnge is divided evenly in the tiIe period between tnl snd tIZ' (tIl snd tI2 sre deterIined in the ssIe Isnner ss tII is deterIined.) The totsl chsrge curve is sIoothed snd then divided into sIsll chsrge segIents to be injected in the next scsn ss shown in Figures 4-1g snd 4-lh. The sIoothing is perforIed by using s sIsll tiIe window to sversge the dsts within it. If the cspscitive chsrge is not distributed evenly within tIl snd tIZ' or if the sIoothing is not perforIed. the injection of s lsrge chsrge pulse or lsrge chsrge pulses resulting froI the coIpensstion of chsrging current Isy generste s potentisl spike of s few Iillivolts in the next chronopotentiogrsI. A tiIe window of less thsn 5 S of the trsnsition tiIe is suggested for sIoothing. This kind of chsrging current coIpensstion csn be repested s nuIber of tiIes until the Fsrsdsic chsrge curve is close to the desired strsight line or until the chronopotentiogrsI rises rspidly st the beginning snd st the end. This Iethod of chsrging current caIpensstion wss tested with s duIIy cell whose configurstion is shown in Figure 4-5. The chsrge injected into the cspscitor chl wss Cdm1-0.995pF I +— | Cdm2-0.976flr 1K. 5% i m SWA ——o/<> swa »— -0.40 0.000 Figure 4-6. DUMMY CELL 0.025 0.050 0.075 0.100 0.125 TIME ($50.) Voltage-time curve obtained with one dummy capacitor. Cdm2~ 89 f’.’ —'—O.60 9 -0.40 DUMMY CELL x r' f' . I .' .’ o' J’ I ”. I 0.000 0.050 0.100 0.150 0.200 0.250 Figure 4—7. TIME ($50.) Voltage-time curves obtained with two dummy capacitors Curve 0: no charging current compensation Curve 1 the first compensation Curve 2: the second compensation 3 Curve : the third compensation 90 91 sufficient for this cell configurstion csn also be predicted through sinle geoIetry. Curve 1 of Figure 4-8 (the ssIe es the curve of Figure 4-6) shows the results obtsined with only Cd.1 in the feedbsck loop. Curve 2 of Figure 4-8 is equivslent to the curve 3 of Figure 4-7 snd shows the results obtsined with both cspscitors in the feedbsck loop snd with the coIpensstion of the cspscitive chsrge of chl' Clesrly, this Iethod of chsrging current caIpensstion reIoves the cspscitsnce effect. The spplicstion of this Iethod to two cheIicsl systeIs will be discussed in Sections D snd B. Resgent grsde csdIiuI chloride snd thslliuI chloride were used. Resgent grsde potsssiuI chloride hsd been recrystsllixed once before its use ss s supporting electrolyte. Solutions were prepsred with de-ionised wster which hsd been psssed through sn ion-exchsnge coluIn Isnufsctured by lillipore. The tiIe windows for sIoothing the totsl chsrge curve wss less thsn 5 h of the trsnsition tiIe for ThslliuI solutions snd for csdIiuI solutions with concentrstion shove 10" I. For lower concentrstions of csdIiuI solution. tiIe windows were less thsn 15 i of the trsnsition tiIe. Esch solution wss de-sersted with nitrogen gss which hsd been psssed through s vsnsdous chloride solution to reIove oxygen. All experiIents were perforIed st rooI teIpersture between 20.5 snd 21.5 'c. DUMMY CELL -0.80 -0.70 235.1 .‘2 51-050 > -0.50 —0.40 ' 0.000 0.025 0.050 0.075 0.100 0.125 TIME (5150.) Figure 4-8. I Voltage-time curves Curve 1: only Cdmz in the feedback loop Curve 2: both capacitors in the feedback loop and with the compensation IOI’ Cdm1 92 93 D. CoIpensstion of Chsrging Current for the System TlCl in 0.1 l [Cl solution. The Iethod of caIpensstion of chsrging current wss tested with TlCl in 0.1 I KCl solution snd with s sitting Iercury drop electrode. The chsrging current wss coIpenssted with s blsnk solution (0.1 M KCl). If the’ effect of chsrging current is reIoved. the vslue it‘l'ICox should be constsnt sccording to the Ssnd's equstion (Equstion 4-1). As long ss there is no sdsorption of 0x (Tl+). the presence of 0x (Tl+) does not chsnge the cspscitsnce of the electrode.) snd proper experiIentsl precsutions hsve been observed (e.g.. use s short trsnsition tiIe to svoid possible convection). 'Isny cheIicsl systeIs could be selected to test the Iethod of chsrging current caIpensstion for chronopotentioIetry since the reversibility of the resction 0x + ne- # Red is not sn inortsnt issue. The chsrging current hss s Iore profound effect on the chronopotentiogrsI of one electron trsnsfer resction thsn on thsn of s Iulti-electron trsnsfer resction. Tl+ is selected becsuse its reduction involves only one electron trsnsfer. The tested concentrstion rsnge of Tl+ wss between 10" I snd 10" I. Since [Cl snd TlCl sre both uni-vslent electrolyte snd the concentrstion of KCl (0.1 I) is st lesst 100 tiIes higher thsn thst of Tl+. the selection of KCI concentrstion should effectively reIove the Iigrstion of T1+ ss s result of chsnging the electricsl field in the vicinity of the 94 electrode surfsce during s chronopotentioIetric experiIent. To svoid the tediuI of costing the contsct for s hsnging Iercury drop electrode (HIDE). s sitting Iercury drop electrode (SIDE) wss used. A plstinuI wire of 0.01 inch in disIeter sesled in soft glsss wss used to construct the sitting Iercury drop electrode. One end of the soft glsss snd the sesled plstinuI wss ground with 3 Iicron sluIinuI oxide then bent to s U-shspe. The plstinuI wire of the other end wss soldered with s copper wire which fscilitsted sn electricsl connection to the PCP. The ground plstinuI tip wss casted with Iercury sccording to Isng's Iethod (61). This bsckground current of the SIDE is not significsnt coIpsred to the desired Fsrsdsic current (the bsckground current wss 1.4 i of the desired Fsrsdsic current st 10" I Tl+ concentrstion level). A fresh Iercury drop wss obtsined by trsnsferring s fixed voluIe of Iercury froI sn HIDE to the SIDE. The potentisl of the SIDE wss kept st Einit for 10 seconds to reduce inurities before stsrting the soquisition of dsts. The bsckground current wss corrected by sdding it to the desired Fsrsdsic current. Figure 4-9 shows the cspscitive chsrge obtsined with the SIDE in 0.1 I [Cl solution with td - 1.24 Is (see Figure 4-2). Forty chsrge increIents were used to Iessure the integrsl cspscitive chsrge for the potentisl perturbstion froI -0.325 V to -0.725 V vs. SCE. The tiIes required for this potentisl perturbstion sre 4.6 Is snd 49.6 Is for td 0.1 M KCI -0.425 -0.525 -0.625 —0.325 —0.725 @5053 “.8210 ”$555 .2532. - n - bL b b (P B — p p n p — b n p b r. b F b u d u — q u q u — u q a - — fififi q — - q u u — - u a a II II II II II I .1 .fi II II II II II LI II JI II II [I '1! J II .fi : LI II II JI II 11'. Ir .1 II II II II II II [I [I II II U- I- II II II III II II I1. II Lu 1... III IJI I:l JI II II II II 41 IT 1' ll JI II II 1... JI II II p p n p — p p p r— n b h b — b p b b — p n L P — n F b _ II - - u q — q u u u — 4 4 d 1— u u d d — u a u u — - u - a O O O O O O 0 n4 0. Ru .0 4. 9. AU 1. 1 _ _ _ _ _ _ -0.525 -0.525 —0.725 POTENTIAL vs. so: (VOLTS) -0.425 -0.325 in capacifive charge of SMDE Integral 0. Figure 4-9. solution M KCI 1 95 96 0.115 Is snd 1.24 Is respectively. The curve of integrsl cspscitive chsrge wss not chsnged significsntly by chsnging td (within 2.2 i for td between 0.115 Is snd 1.24 Is). Figures 4-10 snd 4-11 show sn estple of the caIpensstion of chsrging current for 10" I TlCl in 0.1 I [C1 solution. Curve 0 of Figure 4-10 shows the chronopotentiogrsI obtsined without sny caIpensstion of chsrging current. Curve O‘of Figure 4-11 is the Fsrsdsic chsrge vs. tiIe curve of the first scsn (without sny chsrging current caIpensstion). Curve 1 of Figure 4-10 shows the chronopotentiogrsI obtsined with the first caIpensstion of chsrging current. Curve 1 of Figure 4-11 is the Fsrsdsic chsrge curve corresponding to the first caIpensstion. Curve 2 of Figure 4-10 shows the chronopotentiogrsI obtsined with the second caIpensstion. etc. After s few caIpensstions. the trsnsition tiIe spprosched s constsnt vslue. stle 4-1 lists the trsnsition tiIes corresponding to the nuIber of chsrging current caIpensstions for s nuIber of concentrstions. In esch csse. the ssIe i/C vslue of 1.02 A'CI-’°I010-1'11t0r wss used. The trsnsition tiIes were obtsined by the grsphicsl Iethod of Delshsy snd Isttsx (36.54). The Iethod is deIonstrsted by the grsphing snd finding of the tiIe intervsl corresponding to the line segIent AB for curve 0 of Figure 4-10. After s few caIpensstions. the trsnsition tiIe spprosched s constsnt . AmFJO>v MOW . . . m) Jilb ZNFOQ Fi 10‘4 M TlCl in 0.1 M KCI 0.00 0.05 0.10 0.15 0.20 0.25 0.50 -0.725 1.. :: 1 ‘ I “—0 525 1i- i g j: i 3 .‘L. 0 Lu 2: 0 -. m CII- / d-O°525 1;- ) q. _, -- < ..::. .5. -~ J 7 L‘.‘ 3: A B 8-0 425 -’ ' 'I/ , h%AB*—-—%AB———~l g —0.325 'g 0.00 0.05 .10 0.15 0.20 0.25 0.30 TIME (SE0) Figure 4—10. Chronopotentiograms of 10" M TlCl solution Curve Curve Curve Curve 0: No charging current compensation 1: the first compensation 2: 3 the second compensation the third compensation 97 10"4 M TICI in 0.1 M KCI 0.00 0.05 0.10 0.15 0.20 0.25 0.50 —30.0 -r - .0 . 55— 25 DeSIred of curve ——> '2‘; .q‘ :: g 55 g-20.0 :2 g:- 0 EE LIJ 1 .. g :: (’15 O '2'.- I Z: 0 :: 2 5E E‘s-10.0 e:— < .. a: If :: E a; -5.0 €3— 0.0 :— 0.00 0.05 0.10 0.15 0.20 0.25 0.30 Figure 4-11. TIME (SE0) Faradaic charge curves for SMDE in 10"4 14 um and 0.1 u KCI solution 0: Curve Curve Curve Curve no charging current compensation 1: the first compensation 2: 3 ° the third compensation the second compensation 98 1:1 Tab C0111 com; com; The Oth 9 t1 t1’11 P101 Chi: 99 vslue. stle 4-1. Trsnsition tiIes (seconds) of vsrious concentrstions of TlCl ss s function of nuIber of chsrging current caIpensstions I n" hunter 10" 5-10" 2-10" 10" 5-10" of cOI ensstion 0 0.121 0.126 0.128 0.133 0.145 1 0.111 0.110 0.109 0.113 0.112 2 0.112 0.108 0.108 0.112 0.106 3 0.112 0.108 0.108 0.112 0.106 Figure 4-12 shows s plot of it"‘/c vs. log concentrstion of T1+ with snd without chsrging current caIpensstion. The trsnsition tiIes with chsrging current caIpensstion were the constsnt vslues schieved sfter scsns. The sversged trsnsition tiIe for esch concentrstion wss obtsined by tsking the sversge of 9 trsnsition tiIes. These 9 trsnsition tiIes were obtsined frOI 3 solutions with 3 trsnsition tiIe frOI esch solution. It is clesr thst the plot of it‘l'lc vs. C is Iore drsIsticslly constsnt with chsrging current caIpensstion. TlCl in 0.1 M KCI 0.60 E 50.55 '2 I o E3 0.50 N \ o o ‘I’ 0.45 I ‘7‘ E ‘3 $0.40 I o i X N\ ’ x ,\_ 0 55 I g i m 0 .5 I 0.30 -5.5 -5.0 -4.5 -4.0 -3.5 ~3.0 -2.5 LOGC I".3913” 4'12- it1/2/C vs. log concentration (M) of TIT o. with charging current compensation 1:. without charging current compensation 100 CI IC CI it to th. thI It Ihg 01: 101 E. In-Situ COIpensstion of Chsrging Current es s Sensitive Technique for the Detection of Cd+3 In order to test the sensitivity of the Iethod. longer trsnsition tiIes were used to enhsnce the rstio of the Fsrsdsic to the cspscitive chsrges. Trsnsition tiIes between 1.6 sec snd 7.5 sec were used. These trsnsition tiIes were kept short in order to svoid the effect of nstursl convection. Concentrstions of csdIiuI solutions between 2-10" I snd 2.5-10" I in 0.01 I [Cl solution were tested with sn HIDE. A low concentrstion of supporting electrolyte solution of 0.01 I [Cl wss used in order to decresse the introduction of inurities with the supporting electrolyte. In order to svoid the uncertsinty of integrsl cspscitive chsrge due to the vsristion of electrode sres. s single Iercury drop wss used for esch solution in both cspscitive chsrge IessureIents snd chronopotentiOIetric scsns (This could be done becsuse the concentrstion of csdIiuI is low). The electrode potentisl wss brought to Einit (-475 IV vs. SCE) sfter esch chronopotentioIetric scsn. The electrode potentisl wss then kept st Einit for 10 to 20 seconds before Iessuring the integrsl cspscitive chsrge of the electrode in the ssIe solution. It wss found thst if the electrode wss kept st Einit for s tiIe ss short ss 2 seconds. the Iessured cspscitive chsrge is essentislly the ssIe. After the cspscitive chsrge wss Iessured. the electrode potentisl wss held st Einit for 3 Iinutes before 102 stsrting the next chronopotentiOIetric scsn for those scsns whose trsnsition tiIe slIost spprosched s constsnt vslue. For the first few scsns, only one Iinute tiIe intervsl wss used in order to ssve tiIe. The purpose of doing this is to strip out Iost of the csdIiuI which hsd been deposited on the Iercury drop. Figure 4-13 shows the chronopotentiOgrsIs obtsined with 2-10" I CdCl, in 0.01 I rc1 solution. A desired Fsrsdsic current density of 3.5 uA/cIa wss used. Curve 0 shows the results obtsined without sny caIpensstion of chsrging current. Curve 1 shows the results obtsined with the first caIpensstion of chsrging current. curve 2 chows the results obtsined with the second caIpensstion of chsrging current. etc. The integrsl cspscitive chsrge of the HIDE in the solution contsining 2°10" I CdCla snd 0.01 I [C1 decresses sbout 2g$ during the tiIe intervsl between two sdjscent chronopotentiOIetric scsns. The rste of decresse is so sIsll thst it does not introduce significsnt error in the chsrging current caIpensstion. For the cspscitive chsrge IessureIent, between 20 snd 25 chsrge increIents (see Figure 4-2) were used to chsnge the electrode potentisl frOI -475 IV snd -775 IV vs. SCE. The tiIe required to Iske the potentisl perturbstion is between 1.3 Is snd 1.6 Is which is considersbly less thsn the trsnsition tiIe used (between 1.7 snd 7.4 seconds); 2110'"5 M CdCI2 in 0.01 M KCI 10.012.014.0 6.0 8.0 4.0 0.0 2.0 -0.775 .675 0 . 6596 wow .2, -0.575 .22.th9; IIIITIIIIIIIIIIIIIIIII!IIIIIIIIIIIIIIITI'IIII'IIIIIIIII'IIIIIIIIIIIIIIIIIII 0.0 2.0 IIII'IIIIIIIIIIIIIIIIIIIIIIILIIIIIIIIIIIIIIIIIIIIIIIII'IIII‘IIIIIIIIIIlllrb -0.475 10.012.014.0 6.0 8.0 4.0 TIME (SE0) Chronopotentiograms of 2-10'5 M CdCl2 Figure 4-13. besides the curve corresponding The number to the number of charging current compensation 103' 104 therefore. the Fsrsdsic chsrge consumed in the tiIe intervsl for cspscitive chsrge IessureIent is Iuch less thsn the Fsrsdsic chsrge consuIed in the chronopotentiOIetric experiIent. Figure 4-14 shows the caIpsrison of the Iessured integrsl cspscitive chsrge obtsined with s fresh Iercury drop in 0.01 I [Cl solution (curve 1) snd in 2-10" I CdCla snd 0.01 I [Cl solution (curve 2). The fsct thst the Iessured integrsl cspscitive chsrge is higher for csdIiuI solution thsn for plsin supporting electrolyte solution is principslly due to the reduction of sons csdIiuI ions during the period of cspscitive chsrge IessureIent. For lower concentrstion of csdIiuI solutions. the error involved in the cspscitive chsrge IessureIent .due to Fsrsdsic resction is less. For estple. the integrsl cspscitive chsrge Iessured with 5-10" I CdClz hss s lower error ss shown in Figure 4-15. Even with the solution of 2-10-‘ I CdCla in 0.01 I [01. it is still sdvsntsgeous to caIpensste for the chsrging current becsuse the chsrging current is still the Isjor error. Figure 4-16 shows snother estple of in-situ chsrging current caIpensstion. The test solution contsined 10" I CdCla snd 0.01 I [C1. A stesdy stste bsckground current of 0.017 uA/cI’ (10 i of the desired Fsrsdsic current) wss deterIined st Einit {-475 IV vs. SCE). The bsckground wss corrected by sdding it to the Fsrsdsic current of 0.17 0.01 M KCI w 0 2140"“5 M CdCI2 -0.575 -0.675 -0.775 -0.475 . p . — F p p p — - p p L b - n - p — L p p n — F b n - IT a — q q . u — q q u u — q u - _ — _ - - . —J _ - .II II II II 11 El IT 4.. -1 l... .1 II J- II II LV h“ II II II II H H II 1 I. II II II II II II II 2 11 I] 11 1' I- ”n “H II II “n “n “u mu LP 1P II I... II II II II II II II I1. II L1 II I1 I I .n Mr [I I]. “n “n II II H um I I “n H In 1' I] 1' II II 1' IE IT I... II II 11 II II II II II II II II p p P P — b p p p PL b b b — p p p p — b p b PB b p P P I - _ u a — 1 u - - — u u u - — a u _ _ — d - a u — u u u u 0 0 O 0 O 0 0 e . e e e e e e 6 5 4 3 2 el 0 _ _ _ _ _ _ ANEO \ 03 momEo:._0coo oo.oc| .. n AIL/\(III: p... xmm E coon 2. go I. N _ 0:6. 2 < to... no 5.me NW manna om > /X l<+ la. 0. 0 I0 S/‘k Q A 129 OmNP>I loo< Euanxn .cchcanooE 00030) on... .Nlo 0.33.... >N (3 P m +|HI|>>>II ,xo_. Pm mm v_N Na n30: A \mnazm+ lil a. I o . T _N .. 6 w :\m w... «a o . S. .o _o o KI n I n» w mIm I, \I. n_ 1.34:5": m2 1. Bo... TA m; No :25 03 opumflm «I 2 i; o 3 C o n at JIIUI (TMV m. 2 .3 a Pmmmmi. F Kl C, a m N w 33.. n._ «no a _ m+ xnuuaonu a. n_o> a; n, 25 mm: 93 IE! .25 mm; om+ in. \o; camPFAHNP o _P n; _ «no no >n+J>>Lm4 N on o a. or 2 go. ‘ om<0m Is Csm op FVN v so onF b Iota... duo oADJUSTED 3 OTHERS I) NOT ADJUSTED TMTMPl: TEMPORARY CHG QUANTITY JMXTMP: POTENTIAL BEFORE CHG ADD IMXTMP1:DAC VALUE FOR CHARGE ADDITION tMXTMP2zADDR FOR STORING SUMMATION OF CHARGE IMXTMPazADDR FOR STORING # OF DATA POINTS FOR THE POTENTIAL IDELAY I TIPD * TIDD .TIPD >- 32. TIDD >- 4 SUER CAP f CAP: PUSH H .SAUE REGS 5 PUSH D 3 ; PUSH D 2 LI PUSH PSN : “‘ LHLD VINIT iINITIAL VOLTAGE SHLD MXTMP . LXI H.ADCLID iSTARTING ADDR FOR STORING iSUMMATION OF CHG SHLD MXTMP2 ; LXI D.CAPEND .ENDINc ADDR CAPi: MVI ".0 zCLEAR MEM lNX H :INCREASE MEM ADDR CALL DCMP zDE-HL JNZ CAPl s LXI H.i . SHLD DATAN tCLEAR 3 OF DATA POINTS LXI HI 0 I SHLD MX2TM3+2 :CLEAR HIGH NORD FOR A00 "VI A: O I STA MTMP tCLEAR VOLTAGE iAPPROXIMATION FLAG 51-) ADJUSTED zo-> NOT ADJUSTED CALL TIH12 TSET UP COUNTER s: s e: MVI A.141 1 STA TICMD .LOAD AND ARM COUNTER e1 LXI H.TCLIS zSTARTING ADDR FOR STORING .3 OF DATA POINTS FOR JEACH VOLTAGE SHLD NXTNPS ; LXI D.TCLID+4ooo ; CAP2: MVI N.o iCLEAR MEM INX H zINCREASE MEM ADDR CALL DCMP iDE-HL JNZ CAP2 ; CAPS: LXI H.MXTMP . CALL VAPNl iKEEP AT THE POTENTIAL sFOR A WHILEtLONGER) LHLD DAO iGET DAC VALUE CAPSA: CAPSB: CAPSC: CAP4: iCHG NOT ENOUGH: z CAPb: XCHG CALL LDA ANI JNZ LDA ANI J2 JMP LDA ANI JNZ MVI STA MVI STA LDA STA LDA ANI JNZ CALL LHLD XCHG CALL LXI CALL JM LHLD XCHG LHLD CALL XCHG MVI CALL LHLD CALL SHLD JMP SHLD LDA DCR DCR DCR CMP JZ JP DACSUP TICMD 2 CAPSB TICMD 2 CAPSA CAPSC TICMD 2 CAPSB A1352 TICMD Aol42 TICMD SHA SN TICMD 4 CAP4 ADCbDE MXTMP DSUB D.O DCMP CAP6 ADD MORE DAO BLDAl DSUB Aa2 DMULT BLDAl DSUB DAO CAPS MXTMP4 VSTPO A A A L CAP2O CAPIS zINTO DE sSET UP DAC AND CHG CAP iGET TIMER STATUS iOUTl :1. CHECK FOR 1 -> O I l :0 -> 1 iCHECK FOR 1 -> O i i iSET OUT2 zLOAD AND ARM COUNTER #2 i i iSEND THE CHG TO ELECTRODE z iCOUNTER #2 STATUS BIT )NDT YET. WAIT iMEASURE THE POTENTIAL iGET POTENTIAL BEFORE iCHARGE ADDITION i iGET VOLTAGE DIFFERENCE i i iO.K. iGET DAC VALUE FOR CAP iINTO DE iGET BASELINE DAC VALUE iHL-DE i i JDEIDE*A iGET BASELINE DAC VALUE :CALC NEH DAC FOR CAP tSTORE IT iADD CHG AGAIN iSTORE POTENTIAL DIFFERENCE iVOLTAGE STEP FOR CAP tSTART FROM SLSB LESS i i :PROPER VOLTAGE TO START IVOLTAGE TOO LITTLE iCHECK APPROXIMATION FLAG TVOLTAGE TOO MUCH. CALC PROPER CHARGE CAPlO: MVI A11 3 iVOLTAGE TOO LITTLE: iIF APPROXIMATED. CAPlS: LDA MTMP CPI 1 JNZ CAPlO CAP20: MVI AoO STA MTMP iSTARTING ADDING INCREMENTING CHG CAP21: LHLD DAO SHLD MXTMPl CAP22: LHLD MXTMPl XCHG LHLD BLDAl CALL DSUB XCHG LHLD BLDAl DAD D CALL CGADD LDA SHDLYS CPI 0 J2 CAP22D CALL VAPDEL CAP22D: LXI HoMXTMP CALL VAPNO LHLD MXTMPl XCHG CALL DACSUP LDA TICMD ANI 2 JNZ CAP22B STA LHLD XCHG LHLD CALL XCHG LDA DCR DCR DCR CALL LDA CALL LHLD CALL SHLD JMP MTMP DAO BLDAl DSUB VSTPO A A A DMULT MXTMP4 DIV BLDAl DSUB DAO CAPS 147 3337 APPROXIMATION FLAG iGET DAC VALUE FOR CAP iINTO DE tGET BASE LINE DAC VALUE iHL‘HL-DE I iDESIRED VOLTAGE STEP 3 FOR CAP :DECREMENT BY 3 I I iDEIDE*A IGET ACTUAL VOLTAGE STEP iDEIDE/A IGET BASELINE DAC VALUE iCALC THE DAC VALUE FOR CAP I iTRY TO APPROXIMATE THE CHG iADD AGAIN CHECK APPROXIMATION FLAG: GO AHEAD AND DO IT :GET APPROXIMATION FLAG iAPPROXIMATED? tNOT YET. tONCE I iCLEAR APPROXIMATION FLAG IN ORDER TO MEASURE CAP APPROXIMATE IT iGET DAC VALUE I IGET DAC VALUE FOR CHG ADD iINTO DE iGET DAC BASELINE VOLTAGE iHL-DE iRESULTS INTO DE IOET BASELINE DAC VALUE iCALC DAC VALUE FOR iREVERSE CHARGE iADD THE CHG TO ELECTRODE iGET SWITCH DELAY iNO DELAY? iYES iDELAY FOR A WHILE iGET POTENTIAL BEFORE iCHARGE ADDITION IAPPROACH THE POTENTIAL 3(SHORTER) TGET DAC VALUE sINTO DE ISET UP DAC: CHG CAP :GET TIMER STATUS iOUTl 510 CHECK FOR 1-> O CAP22A: CAP22B: CAP22C: CAP24: tVOLTAGE WITHIN CAP24A: LDA ANI J2 JMP LDA ANI JNZ MVI STA MVI STA LDA STA LDA ANI JN2 CALL LHLD XCHG CALL LDA SUB JNZ LHLD XCHG LHLD CALL SHLD LHLD LXI MVI CALL CALL LHLD XCHG LXI CALL LHLD CALL LHLD LDA MOV MVI CALL LXI CALL TICMD 2 CAP22A CAP22C TICMD 2 CAP22B A. 352 TICMD Aol42 TICMD SWA SW TICMD 4 CAP24 ADCbDE MXTMP DSUB VSTPO L CAPSO 148 he 5e §e 30 -> 1 :CHECK FOR 1 -> O i i iSET OUT2 iLOAD AND ARM COUNTER #2 i iADD CHG TO ELECTRODE iCHECK COUNTER S2 iCOUNTER #2 STATUS BIT INOT YET: WAIT iGET THE POTENTIAL iGET POTENTIAL BEFORE TCHARGE ADDITION i iPOTENTIAL AFTER CHG ADD - iPOTENTIAL BEFORE CHG ADD TVOLTAGE STEP FOR CAP I iVOLTAGE NOT EQUAL DESIRED iVALUE DESIRED VALUE +- lLSB MXTMPl BLDAl DSUB MX2TM3 MXTMP2 DoMX2TM4 A34 MTRF DDADD MXTMP2 HD"X2TM6 MTRF MXTMPS INXM MXTMPI N2 E:A DoO DSUB DOO DCMP iGET DAC VALUE FOR CAP iINTO DE iGET BASELINE DAC VALUE iHL'DE i tGET ADDR FOR CHG SUMMATION i i iTRANSFER PREVIOUSLY iSUMMED CHG iINTO MX2TM4 3(6) I (4) + (5) iGET ADDR OF SUM OF CHG iFDR DESTINATION iGET ADDR OF SOURCE iTRANSFER 4 BYTES OF MEM iGET ADDR OF COUNTER OF 1“ OF CHG ADD tINCREMENT THE COUNT iGET DAC VALUE iHL-DE iDE-HL CAP25: CAP26: J2 JP SHLD JMP CALL JMP TVOLTAGE NOT CAPSO: CAPSl: CAP40: CPI J2 CPI J2 CPI JM LHLD LDA MOV MVI CALL LXI CALL J2 JP SHLD JMP LHLD MOV INX MOV LHLD CALL JM CAP25 CAP26 MXTMPl CAP22 ERROR CAP41 WITHIN TO THE DESIRED VALUE +- lLSB l CAP24A -1 CAP24A -2 CAP4O MXTMPl N2 E.A D.O DSUB D.O DCMP CAPSl CAP26 MXTMPI CAP22 iVOLTAGE HIGH ENOUGH. EGO TO NEXT VOLTAGE STEP MXTMPS E.M H D.M MO DCMP CAP2l 149 iMOST NEGATIVE VOLTAGE iALLOWED TOUT OF BOUNDARY iSTORE DAC VALUE FOR NEXT iCHG ADD iADD MORE CHG TO GET CAP tSEND ERROR MESSAGE iGO TO NEXT VLOTAGE STEP I may...» .’”—.'7 V iVOLTAGE HIGH ENOUGH :GET DAC VALUE :GET DAC STEP 3 i iCALC NEXT DAC VALUE iMOST NEGATIVE DAC VALUE iDE-HL THIGHEST VOLTAGE ALLOWED IERROR. GO TO NEXT STEP iSTORE DAC VALUE FOR NEXT iCHG ADD iADD MORE CHG TO GET CAP Jami-'30 —. J5 CHECK H OF DATA. IF ENOUGH. IOET ADDR FOR STORING 3% OF DATA POINTS 3* OF DATA POINTS INTO DE 1 3 :GET MINIMUM DATA POINTS iDESIRED iDE-HL iNOT ENOUGH DATA POINTS. iGET THE STARTING POTENTIAL TGUICKLY AND DO IT MORE 3* OF DATA POINTS IS ENOUGH FOR THE VOLTAGE OF INTEREST. 300 TO NEXT VOLTAGE CAP41: LHLD LDA CALL XCHG LHLD CALL JP XCHG SHLD LHLD MXTMP VSTPl HLPA VFINAL DCMP CAPSO MXTMP DATAN :GET THE VOLTAGE BEFORE iCHG ADD ‘ iVOLTAGE STEP FOR SCANNING iCALC VOLTAGE FOR NEXT STEP iRESULTS INTO DE iGET FINAL VOLTAGE iDE-HL iVOLTAGE HIGH ENOUGH iNEXT VOLTAGE INTO HL iSTORE IT IGET * OF VOLTAGE STEP CAPSO: I I INX SHLD LHLD INX INX SHLD LHLD INX INX INX INX SHLD MVI STA JMP POP POP POP POP RET H DATAN MXTMPO H H MXTMPS MXTMP2 IIII MXTMP2 A.O MTMP CAPS PS“ 150 ITIMER FOR CHRONOPOTENTIOMETRY. iOATES 1: 2: 30UT4 TO GATE 3. AND 4 TO +5V -OUT4 TO IRS. .INCREMENT ONE ISTORE IT zGET ADDR FOR STORING # OF :DATA POINTS IN EACH STEP :INCREMENT BY 2 ; ISTORE IT zGET ADDR FOR STORING SUM :OF CHG FOR THE VOLTAGE :STEP :INCREMENT BY 4 1 z z :STORE IT , . tCLEAR VOLTAGE zAPPROXIMATION FLAG :GO TO NEXT VOLTAGE STEP tRESTORE REGS t z 3 :AND GO HOME CONNECT OUT2 TO SRC2. OUTS TO IR4 iIRS AND IR4 ARE INPUTS OF THE INTERRUPT CONTROLLER OF 8259 TICP: SUDR PUSH PUSH PUSH CALL‘ MVI STA LXI MVI MVI XCHG LHLD XCHG MOV MOV MOV MOV MVI TICP H D PS“ TIRSET A.2 TICMD H.TIDATA H.242 M.233 TIDD M.E M.D M.E M.D H.242 :SAVE REGS 1 : iRESET TIMER :COUNTER 2 MODE REG I :GET ADDR OF TIMER DATA :PORT IENABLE SPECIAL GATE. :FROM LOAD. REPETITIVELY. zBIN. DONN. ACTIVE HIGH :TOGGLE. DELAYED :ACTIVE HIGH LEVE GATE N.F1 :SAVE ADDR OF TIDATA zDATA DELAY 1 ITO LOAD REG 3 3T0 HOLD REG I :COUNTER 3 MODE REG sSAME AS COUNTER 2 3 I 151 ‘ soars IS CONTROLLED 3v 0014 MVI H.233 3 HOV M.E 3DATA DELAY TO HOV M.D 3 LOAD REG HOV M.E 3TO HOLD REG MOV "a D I MVI H.302 ICOUNTER 4 MODE REG iENABLE SPECIAL GATE 3RELOAD FROM LOAD OR HOLD 3COUNT ONCE.BIN.DOHN.ACTIVE IHIGH TOGGLE. DELAYED MVI H.202 ISRC2(CONNECT OUT2 TO SRC2) 3RISING EDGE. 3ACTIVE HIGH GATE N XCHG ISAVE ADDR OF TIDATA ' LHLD TIPD 3PRE EXP DELAY j XCHG 3 f; MOV M.E 3TO HOLD REG. FROM TIPD '* MOV H: D I MVI M.O 3512 DATA POINTS. LOAD REG WI "3 2 I MVI A.156 3 STA TICMD 3LOAD AND ARM COUNTER 4.3.2 POP PSH 3 POP D 3 POP H . RET 3AND GO HOME 3THIS ROUTINE ADDS CHARGE TO THE ELECTRODE AND CALCULATE 3THE INTEGRAL CAPACITIVE CHARGE FOR EACH VOLTAGE 3MXTHP1: COUNTER FOR THE VOLTAGE 3HXTHP2: THE SECOND VOLTAGE DIFFERENCE 3HXTMP3: CHARGE QUANTITY OF ONE ADDITION 3MXTHP4: ADDRESS FOR INTEGRAL CAPACITIVE CHARGE 3MXTMP5: ADDRESS FOR THE DIFFERENCE OF ADJACENT VOLTAGE SUBR ICAPN ICAPN: PUSH H 3SAVE REGISTERS PUSH D 3 PUSH B 3 PUSH PSH . LXI H.O 3CLEAR MEMORY SHLD BICAP 3 . SHLD BICAP+2 3 LXI H.1 3SET UP COUNTER FOR VOLTAGE SHLD MXTMPI 3 LDA ICAPCI 3GET NUMBER OF CHARGE 3ADDITIONS LXI H.ICAPDA 3 CALL SMDAC 3SET DAC PARAMETERS MVI A.1 3RESET STA ICAPC2 3 # OF CHARGE ADDITION LOOP ICPNOA: LXI H.VINIT 3APPROACH THE VOLTAGE ICPNO: ICPNI: ICPN2: ICPNS: ICPNSA: ICPNSB: ICPN3C: CALL CALL LXI CALL CALL JNC CPI JNZ LXI CALL LHLD XCHG LXI CALL CALL LHLD XCHG CALL JNZ SHLD LDA PUSH LDA HOV LDA STA LDA STA POP PUSH LDA HOV MVI STA LDA DCR JN2 HOV STA CALL DCR JNZ POP DCR JNZ CALL LHLD MVI CALL CALL JP 152 VAPNO READY H.VINIT VAPR CHARIN ICPNO ’9 ICPNO H.VINIT VAPNO ADCTHP H.VINIT VAPNI ADCbDE VINIT DCMP ICPN2 ADCTHP ICAPC2 PSW ICAPSW B.A ICAPDA DACLB ICAPDA+1 DACHB PSW PSW ICAPCI C.A A.1 SW SWDLYI A ICPN3C A.B SW SWDLYB C ICPNSB PSW A ICPN3A ADCbDE VFINAL A.20. HLPA DCMP ICPNII 3 3TELL US IT'S READY 3APPROACH THE VOLTAGE 3 318 KEYBOARD TYPED? 3N0. WAIT 3GO? 3NO.WAIT 3 3APPROACH THE VOLTAGE 3GET THE VOLTAGE 3(DE)-TEMP VOLTAGE. 3APPROACH THE VOLTAGE 3 3GET THE DAC VALUE 3GET INIT VOLTAGE 3(HL)-DAC VALUE 3(VINIT)-ADC VALUE 3ADC VALUE IS NOT EQUAL 3TO VINIT. DO IT AGAIN 3STORE BEGINING POTENTIAL 3GET NUMBER OF CHARGE LOOP 3SAVE # OF CHARGE LOOP 3GET SW G 3 INTO B 3GET DAC LOW BYTE 3 3GET DAC HIGH BYTE 3 3GET G OF CHARGE LOOP 3SAVE G OF CHG LOOP LEFT 3GET 0 OF SMALL CHG LOOP 3SAVE IT 3 3CHARGE UP CAPACITOR 3GET SWITCH DELAY 3 3 3GET SWITCH NUMBER 3 3 3DECREASE SMALL CHG LOOP 3ND FINISH YET.DO IT AGAIN 3GET R OF CHG LOOP 3ALL DONE? 3NO DO IT SOME MORE 3GET DAC VALUE 3GET FINAL VOLTAGE 3ADD ABOUT 20 mV MORE 3 I DE’HL: 3RESULTS 3VOLTAGE IS MORE NEGATIVE FLAGS BASED ON CALL JMP ICPN4 -ICPN1 153 3OR EQUAL TO VFINAL 3CALCULATE THE CAP CHARGE & 3STORE THEM 3DO IT SOME MORE 3CALCULATE CAPACITIVE CHARGE.STORE THEM AND 3INCREMENT NUMBER OF CHARGE LOOP ICPN4: ICPNS: ICPNb: LHLD XCHG PUSH LDA CPI J2 CALL XCHG CALL XCHG CALL POP CALL JM SHLD LHLD CALL SHLD LDA DCR MOV MVI CALL SHLD HOV HOV SHLD LHLD DCX XCHG LHLD CALL SHLD LHLD XCHG MVI CALL LXI DAD SHLD ADCTHP PSW DAADBF 2 ICPNS ADCBDP ADCBDP LPCRLF PSW DSUB ICPNIO MXTMP2 ICAPDA CGCALN MXTMP3 ICAPC2 A C.A B.O DDHULT HX2TH4+2 L.C H.B MX2TM4 MXTMP1 H MXTMP2 DSUB MXTMPS MXTMP1 A.4 DMULT H.BICAP D HXTMP4 3 3HL-POTENTIAL AFTER CHG ADD 3DE-BEGINING POTENTIAL 3SAVE REG 3GET BIN/DEC FLAG 3 3N0 PRINTING ’ 3PRINT BEGINNING POT 3 3PRINT POT AFTER CHG ADD 3 3CARRIAGE RETURN. LINE FEED 3RESTORE REG 3HL-HL-DE 3NOT ENOUGH CHARGE 3STORE 2nd VOLTAGE 3GET THE DAC VALUE & 3% OF CHARGE ADD 3CALCULATE THE NUMBER 30F CHARGE. HL=NEG CHARGE 3CHG QUANTITY OF ONE ADD 3GET Q OF CHARGE LOOP 3DECREMENT ONE CHG t FOR 3THE FIRST COLTAGE 3 3 3(HLBC)-(HL)*(BC) o i ’11 It i 3GET THE IST VOLTAGE 3DECREMENT ONE IN ORDER 3TO MAKE PROPER VOLTAGE 3DIFFERENCE 3INTO DE 3GET THE END VOLTAGE 3CALC THE DIFFERENCE 3STORE THE DIFFERENCE 3GET Ist VOLTAGE DIFFERENCE 3 INTO DE 34 BITS FOR EACH DATA POINT 3DE-DE*A 3GET BASE MEMORY ADDR FOR 3ICAP ' 3(HL)<-(HL)+(DE) 3STORE ADDR FOR INT CAP CHG ICPNbl: ICPN62: ICPN7: 3NOT ENOUGH CHARGE ICPNIO: ICPNII: MVI C.1 MVI B.O LHLD MXTMP3 PUSH B CALL DDHULT PUSH H LHLD MXTMPS XCHG POP H CALL DDIVHB SHLD HX2TM5+2 CALL HLXBC SHLD HX2TM5 POP B INR C CALL DDADD LHLD HXTHP4 MOV E.L HOV D.H MVI A.4 CALL HLPA SHLD MXTMP4 LXI H.HX2TH6 CALL MTRF LXI D.HXTMPI LXI H.HXTMP2 CALL DCHPH JP ICPN7 XCHG CALL INXH JMP ICPN61 XCHG CALL INXM LXI H.ICAPC2 INR H RET POP PSW LXI H.ICAPC2 INR H JMP ICPNI LDA DAADBF PUSH PSW MVI A.O STA DAADBF CALL ICPN4 POP PSW STA DAADBF 154 3COUNTER 3GET CHG OF ONE ADD 3STORE COUNTER COUNTER 3(HLBC)=(HL)*(BC) 3 3GET VOLTAGE DIFFERENCE sINTO DE 3 3(HLBC)-(HLBC)/(DE) 3 3(HL)<=>(BC) 3 3 3INCREMENT COUNTER 3(4) + (5) I) (6) 3GET ADDR FOR INT CAP CHG 3INTO DE 3 34 BYTES EACH DATA POINT 3CALC NEXT ADDR 3STORE NEW CAP CHG ADDR 3 3TRANSFER RESULTS TO MEM 3 3((DE))-((HL)) 318k VLOTAGE EQUAL TO OR 3GREATER THAN 2nd VOLTAGE 3GET ADDR OF VOLTAGE 3COUNTER 3INCREMENT ONE 3CALCULATE TILL ITS DONE 3GET ADDR OF VOLTAGE 3COUNTER 3INCREMENT ONE 3 3INCREMENT CHARGE LOOP 3AND GO HOME 3REMOVE JUNK 3GET ADDR OF # OF CHARGE 3LOOP 3INCREASE IT 3PROCEED THE EXP 3GET BIN/DEC FLAG 3SAVE IT 3 3MAKE IT PRINT ADC VALUES 3PRINT VOLTAGES 3RESTORE ORIGINAL BIN/DEC 3FLAG 3AND STORE THEM I 3 I CPSEQB: CPSEBI: CPSEB2: CPSEB4: CPSB4A: LXI CALL POP POP POP POP RET SUBR PUSH PUSH LXI CALL CALL CPI JN2 CALL LXI CALL CALL LDA RRC JNC LDA CPI J2 CALL LXI CALL CALL LDA RRC JNC LDA CPI CZ CPI C2 C2 MVI CALL CALL CALL CALL CALL LXI SHLD CALL CALL CALL H.PICAP2 SPRMPR PSW B D H CPSEQB H PSW H.CPSEBM PRINT CHARIN CPSEBI CPSEB2 CPSDLB H.CPSEH2 PRINT DELAY2 EFLAGS CPSEB4 BUFO ’u CPSEB7 CPB H.CPSEMI PRINT DELAY2 EFLAGS CPSB4A BUFO ’b BLANK I CLEAR BLANK A.EFUO EFCLR DELYPI ADGR CPADUL CRLF H.PCPCO2 APARAM PARHPR TTYINB PARHCH 155 3PRINT G OF LOOP 3 3RESTORE REGISTERS 3 3 3 3AND GO HOME 3SAVE REGS 3 3NITIALIZE? 3 3 3 ,5 3YES a 3NO 3SET CP INITIAL LIB 3 3EXIT? 3DELAY FOR 2 SEC 3GET EVENT FLAG 3CARRY KEY BOARD IS TYPED 3ND 3GET THE CHARACTER 3EXIT? 3YES 3GP & VOLTAGE BACK 3 3CLEAR GRAPHICS? 3DELAY FOR 2 SEC. 3GET EVENT FLAGS 3KEYBOARD IS NOT TYPED 3GET THE CHARACTER I 3CLEAR VRAM 5 3CLEAR GRAPHICS 3CLEAR VRAM 3CLEAR KB 3DELAY FOR .1 SEC 3DRAW THE VOLTAGE GRAPH 3SEND ADC VALUES 3CARRIAGE RETURN. 3CORRECTION RATIO 3ADDR FOR THE PARH 3PRINT THE PARAMETER 3INPUT A LINE. BREAK DOWN 3CHANGE THE PARAMETER LINE FEED CPSEBS: CPSEB7: CPSEBM: CPSBHI: 3 CALL LXI SHLD CALL CALL CALL CALL LXI CALL CALL JNC CPI C2 CALL CALL CALL CALL CALL CALL CALL .3319 POP POP RET .ASCIZ .ASCIZ VBACK H.PAVEW APARAM PARHPR TTYINB PARHCH VBACK H.CPSBHI PRINT CHARIN CPSEBS ICAPN CPFCUL CPTCNX CPTCSM VBACK CPTCCF CPTCAV CPDTC CPSEB2 PSW H ICPSDLB?/ IICAPN?/ 156 3KEEP VINIT FOR A WHILE 3AVERAGE WIDTH 3ADDR OF THE PARM 3PRINT THE PARAMETER 3INPUT A LINE. BREAK DOWN 3CHANGE THE PARAMETER 3KEEP VINIT FOR A WHILE 3PRINT ICAPN? 3 3 3 3YES 3GET NEW CAPACITIVE CHG 3SEND FC VALUES 3EXTRAPLOATE TC 3SMOOTH CHARGE JUMP 3KEEP VINIT FOR A WHILE 3CLEAR FLAGS 3AVERAGE TC 3CHOP OFF TCLIB AND 3FILL DAC LIB 3LOOP AROUND 3RESTORE REGS 3 3 3THIS ROUTINE TAKES THE ADC VALUES FOR CHRONOPOT AND STORE 3IT IN MEMORY REFERED BY DE CPADCN: CPADN2: SUBR STA LDA MOV NOP NOP NOP NOP NOP LDA ANI STAX INX CMP J2 JP LDA STAX INX RET LDA CPADCN ADCST VFINAL+1 C.A ADCHB 17 D D C CPADN2 CPADN3 ADCLB D D VFINAL 3STARTS ADC 3GET FINAL VOLT HIGH BYTE 3STORE IT 3WAIT FOR ADC TO CONVERT 3 3 3 3 3GET ADC HIGH BYTE 3MASK OUT ALL BUT ADC BITS 3STORE ADC HIGH BYTE 3INC MEM ADDR 3COMPARE WITH VFINAL 3HIGH BYTE 3HIGH BYTE EQUAL. 3COMPARE LOW BYTE 3ALL DONE 3GET ADC LOW BYTE 3STORE ADC LOW BYTE sINC MEM ADDR 3AND GO HOME 3GET FINAL VOLTAGE LOW BYTE CPADN3: I 3ADD CHARGE MOV LDA STAX INX CMP RC JMP LDA STAX INX JMP 3HL I HL+2 CHGADM: CGADMI: CGADH2: i i SUBR MOV STA INX HOV STA INX ANI RRC RRC HOV MVI STA LDA DCR JN2 MOV STA CALL DCR JN2 RET C.A ADCLB D CP4O ADCLB D D CP4O CHGADM A.M DACLB H A.M DACHB H 374 C.A A.1 SW SWDLYI' A CGADM2 A.B SW SWDLYB C CGADMI 157 3STORE IT 3GET ADC LOW BYTE 3STORE ADC LOW BYTE 3INC HEM ADDR 3VOLTAGE MORE NEG 3THAN FINAL? 3RETURN IF LESS NEG 3EXP IS DONE. LEAVE 3GET ADC LOW BYTE 3STORE IT 3INC MEM ADDR 3EXP IS DONE. LEAVE TO ELECTRODE. DAC VALUE & G OF CHG ADD FORM MEM 3 3SET DAC LOW BYTE 3 3SET DAC HIGH BYTE 3 3INC MEM ADDR 3MASK DAC HIGH BYTE TO GET 3* OF CHARGE ADDITIONS 3ROTATE TO THE RIGHT 3POSITION 3SAVE NUMBER OF CHARGE 3ADDITIONS 3 3 3GET DELAY VALUE 3 3LOOP AROUND TILL IT IS 3DONE 3SW # FOR CHARGING AMPLIFIER 3DUMP CHARGE TO 3WORKING ELECTRODE 3DELAY 3CHECK IF NUMBER OF CHARGE 3ADDITIONS ARE DONE 3ND DO IT AGAIN 3AND GO HOME 3THIS ROUTINE COLLECTS DATA FOR CHROPOTENTIOHETRY EXP CP: SUBR PUSH PUSH PUSH PUSH LXI DAD SHLD OF H D B PSW H.O SP SSAV 3SAVE REGS 3 3 . 3CLEAR REG 3AND GET STACK POINTER 3AND SAVE IT CPO: CPI: 0P2: CPS: CP4: CPSO: LXI CALL LDA CPI JN2 CALL LXI CALL CALL JNC CPI J2 CPI J2 CPI C2 JMP CALL DI CALL LDA ANI JN2 CALL CALL MVI STA STA MVI STA STA LXI SHLD LXI SHLD LXI MVI MVI INX HOV ANI HOV EI LXI CALL JMP POP LXI SHLD 158 H.VINIT VAPR VAPFLG O CPO READY H.VINIT VAPR CHARIN CPI '0 CP2 ’9 CP2 'b BLANK cm arr-'1 1 TICP TICMD 10 CPS CLRINS CLRIN4 A.Béa INTTLB+14 INTTLB+2O A.BOS INTTLB+15 INTTLB+21 H.CP4O INTTLB+16 H.CPSO INTTLB+22 H.INTCMD H.143 H.144 H A.M 347 H.A H.VINIT VAPR CP4 H H.CP32 INTTLB+22 3GET ADDR FOR INIT VOLTAGE 3APPROACH THE VOLTAGE 3GET THE VOLT FLAG 3EQUAL? 3NO. WAIT 3TELL US IT’S READY 3GET ADDR FOR INIT VOLTAGE 3APPROACH THE VOLTAGE 3KEY BOARD TYPED? 3NO. KEEP AT DESIRED 3POTENTIAL 3GO? 3YES 3G0? 3YES 3BLANK? 3CLEAR VRAM 3NO.WAIT 3INGORE INTERRUPT FROM 11 3DISABLE INT 3SET UP TIMER FOR CHRONOPOT 3GET TIMER OUTPUT STATUS 3OUT 3 3NOT CORRECT. 3CLEAR INS 3CLEAR IN4 3GET A DI COMMAND 3DI AT LEVEL 3 3 & 4 3GET A JUMP COMMAND 3 3 3JMP TO SETTING UP 3PARM ADDR FOR 3 CHARGE ADD & VOLTAGE 3 MEASUREMENT 3 3LAST DATUM HAS BEEN TAKEN. 3FINISH UP EXP 3 3RESET IS FF 3 & 4 3 3 3INT MASK 3ENABLE LEVEL 3 & 4 3 3 ENABLE INTERRUPT 3 3KEEP AT INIT VOLTAGE 3 3REMOVE CALL 3 3JMP TO CP82 ON NEXT INT DO IT AGAIN CPSI: CP32: CP40: CP41: LXI LXI LDA MOV MVI STA NOP NOP JMP CALL CALL LDA STA STA EI RET DI MVI STA DCX DCX LXI CALL CALL SHLD CALL MVI STA CALL CALL MVI STA STA LXI MVI MVI INX HOV ORI HOV LHLD SPHL CALL CALL LXI CALL 159 H.DACLIB D.ADCLIB SWA B.A A.EOI INTCHD CP31 CPADCN CHGADM SWC SW A.EOI INTCHD A.EOI INTCMD H H D.DACLIB DSUB RHLR DATAN TIRSET A.EOI INTCHD CLRINS CLRIN4 A.377 INTTLB+14 INTTLB+2O H.INTCMD H.143 H.144 H A.M 30 H.A SSAV ONII CPADFX H.PDATAN SPRMPR 3 i 3GET SWITCH G 3STORE IT IN B 3 69%... 348 MORE NOP’S ARE OMITTED 3 3 3GET POTENTIAL 3ADD CHARGE IIF'73 3TURN OFF SWITCH TO AVOID 3LEAKAGE 3GET AN END OF INTERRUPT 3FLAG 3AND TELL THE INTERRUPT 3CONTROLLER 3 3RETURN TO DUMMY ROUTINE 3 3GET AN END OF INT FLAG 3AND TELL INT CONTROLLER 3-1 DATA POINT 3 3 3HL-DE 3ROTATE HL RIGHT. DIS-O 3NUMBER OF DATA 3RESET TIMER 3GET AN END OF INT FLAG 3AN TELL INT CONTROLLER 3CLEAR INS 3CLEAR IN4 3SET A RESTART 7 3FOR LEVEL 3 3 & 4 3 3RESET IS FF 3 3 a 4 3INT MASK 3 3DISABLE LEVEL 3 & 4 3 3GET ORIGINAL STACK POINTER 3MOV HL TO SP 3 3FIX ADC LIB 3GET ADDR OF PARM DATAN 3STORE IT. 160 3AND PRINT THE PARM POP PSW 3RESTORE REGS POP B 3 POP D 3 POP H 3 E1 3ENABLE INT RET 3AND GO HOME 3 3 3ROUTINE TO BRING VOLTAGE BACK SUBR VBACK VBACK: PUSH H 3SAVE REGS PUSH D 3 PUSH PSW 3 MVI D.5 3COUNTER MVI E.S77 3 VBACKI: LXI H.VINIT 3APPROACH THE INITIAL 3VOLTAGE CALL VAPR 3 LDA VAPFLG 3GET VOLTAGE FLAG CPI O 3EQUAL? JN2 VBACKI 3NOT YET DCR E 3 JN2 VBACKI 3 LXI H.TIDD 3TIMER DELAY CALL DELAY 3WAIT FOR A WHILE DCR D 3DECREMENT COUNTER JN2 VBACKI 3 POP PSW 3RESTORE REGS POP D 3 POP H 3 RET 3 3 SUBR CPB CPB: CALL CP 3CHRONOPOTIONMETRY EXP CALL VBACK 3BRING VOLTAGE BACK RET 3AND GO HOME C******** C C CAP.FTN C THIS ROUTINE DIVIDE ONE SET OF AVERAGED DATA . C BY ANOTHER C C C.C.LII 7/31/81 C REVISED 10/24/81 C C******** C DECLARE VARIABLES BYTE INFILE(32) . INFIL(32) . OTFILE(32). OTFIL1(32) BYTE IDAT(6144).DATE(IO).CONC(40).TEHP(IO) REAL'RB DI: D23 DP": DP": DPO: DPP: DPG: "F O O 0 0 0 03 0000 (I 0 0 0000 161 INTEGER IDATA(SO72).IDATA1(3072).IERR.ITABLE(96) INTEGER IERRI.ITABLIC96).ND.II.I2.ND2 INTEGER VINIT.VFINAL.VSTPO.VSTP1.MO.BLDA1 INTEGER TIPD.TIDD.NO.N1.SWDLYI.SWDLY2.VAPDA.VAPDA1 INTEGER VAPN.VAPN1.N2.SWDLY3.SWDLY4 EQUIVALENCECINFILEII).TEST) DATA EXl’EX’l LUNI'I LUN2-2 LUNS-S LUN4-4 LUNSIS LUNé-b ASK FOR INPUT FILE NAME WRITE(LUN5.900) FORMAT(’$FILE/FILE1. INPUT FILE: ’) READ THE INPUT FILE NAME READ(LUN5.905)INFILE FORMAT(32A1) CHECK IF USER HAS TYPED EXIT TO LEAVE ROUTINE IF(TEST.EQ.EX)GOTO 50 CALL UNFORH TO OPEN FILE TO READ ENABLE CALL UNFORM(O.IERR.ITABLE.INFILE.O.1.LUN3) CHECK FOR ERRORS IF(IERR.NE.O)GOTO 10 READ IN THE DATA USING UNFORH NUM=6144 CALL ~ UNFORM(1.IERR.ITABLE.IDATA.NUH) CHECK FOR ERRORS IF(IERR.NE.O)GOTO 2O ASK FOR 2nd INPUT FILE NAME WRITE(LUN5.906) FORMAT(’$INPUT FILE1: ’) READ THE INPUT FILE NAME READ(LUN5.907)INFIL FORMAT(32A1) CALL UNFORH TO OPEN FILE TO READ ENABLE CALL UNFORM(0.IERR1.ITABL1.INFIL.O.1.LUN2) CHECK FOR ERRORS IF(IERR1.NE.O)GOTO 11 READ IN THE DATA USING UNFORH, NUM=6144 CALL UNFORM(1.IERR.ITABL1.IDATA1.NUM) CHECK FOR ERRORS IF(IERR.NE.O)GOTO 2O CLOSE INPUT FILE CALL UNFORM(2.IERR.ITABLE) OPEN INPUT FILE AGAIN CALL UNFORM(O.IERR.ITABLE.INFILE.O.1.LUN3) READ IN DATA USING UNFORH NUM=6144 ' CALL UNFORM(1.IERR.ITABLE.IDAT.NUH) IF(IERR .NE. 0) GO TO 20 162 C ASK FOR MULTIPLYING FACTOR WRITE(LUN5.9OS) 908 FORMAT(’GMULTIPLYING FACTOR(CAP/CH**2): ’) C READ THE FACTOR READ