METHOD AND APPARATUS FOR DEMODULATING SIGNALS IN A PULSE OXIMETRY SYSTEM

Abstract: A method and an apparatus measure blood oxygenation in a subject. A first signal source applies a first input signal during a first time interval. A second signal source applies a second input signal during a second time interval. A detector detects a first parametric signal responsive to the first input signal passing through a portion of the subject having blood therein. The detector also detects a second parametric signal responsive to the second input signal passing through the portion of the subject. The detector generates a detector output signal responsive to the first and second parametric signals. A signal processor receives the detector output signal and demodulates the detector output signal by applying a first demodulation signal to a signal responsive to the detector output signal to generate a first output signal responsive to the first parametric signal. The signal processor applies a second demodulation signal to the signal responsive to the detector output signal to generate a second output signal responsiveto the second parametric signal. The first demodulation signal and the second demodulation signal both include at least a first component having a first frequency and a first amplitude and a second component having a second frequency and a second amplitude. The second frequency is a harmonic of the first frequency. The second amplitude is related to the first amplitude to minimize crosstalk from the first parametric signal to the second output signal and to minimize crosstalk from the second parametric signal to the first output signal.

Description: METHOD AND APPARATUS FOR DEMODULATING SIGNALS IN A PULSE OXIMETRY SYSTEM Background ofthe Invention Field ofthe Invention The present invention relates to the field of signal processing, and, more particularly, relates to the field of processing of signals generated in a physiological monitoring system, such as, for example, in a system for measuring blood oxygen saturation using pulse oximetry. Description ofthe Related Art The present invention will be described herein in connection with a pulse oximetry apparatus and a method, which are used to measure blood oxygen saturation in a subject, such as, for example, a human patient. The teachings ofthe present invention can be used in other applications wherein useable signal information is obtained in a noisy environment In an exemplary pulse oximetry apparatus and a corresponding method, blood oxygen saturation is determined by transmitting pulses of electromagnetic energy through a portion of a subject which has blood flowing therein (e.g., through a finger, through an ear lobe, or other portion of the body where blood flows close to the skin). In the examples described herein, the pulses of electromagnetic energy comprise periodic pulses of red light having wavelengths of approximately 660 nanometers, for example, and periodic pulses of infrared light having wavelengths of approximately 905 nanometers. As described, for example, in U.S. Patent No. 5,482,036 and in U.S. Patent No. 5,490,505, the -1- pulses of red light and the pulses of infrared light are applied with the same periodicity but in an alternating and non-overlapping manner. In particular, in preferred embodiments, the red pulses are active for approximately 25% of each cycle and the infrared pulses are also active for approximately 25% of each cycle. The red pulses are separated in time from the infrared pulses such that both pulses are inactive for approximately 25% of each cycle between a red pulse and the next infrared pulse and both pulses are inactive for approximately 25% of each cycle between an infrared pulse and the next red pulse. (Although described herein below in connection with pulses having 25% duty cycles, it should be understood by persons of skill in the art that the duty cycles ofthe pulses can be changed in some applications.) After propagating through the portion ofthe subject, the red pulses and the infrared pulses are detected by a detector which is responsive to light at both wavelengths and which generates an electrical signal which has a predictable relationship to the intensity of the electromagnetic energy incident on the detector. The electrical signal is processed in accordance with the present invention to provide a representation of the blood oxygen saturation ofthe subject. In conventional time division multiplexing (TDM) demodulation that uses rectangular waves to drive the red and infrared LEDs, the conventional process of demodulation using square waves can result in the aliasing of the ambient noise components that come close to the sidebands of harmonics and the fundamental frequency of the rectangular waves, and the noise components are thus collapsed into the output signal generated by the demodulation. In particular, it is very difficult to avoid including harmonics ofthe line frequency in the demodulated output signal. Summary ofthe Invention The present invention avoids the problems associated with conventional demodulation and separation of TDM signals. In particular, the present invention avoids the problem of aliasing ofthe ambient noise into the passband ofthe system by selectively demodulating certain harmonics of the TDM signal. For example, in one embodiment, only two harmonics (e.g., the fundamental and the first harmonic) are demodulated. In other embodiments, more harmonics are demodulated. The present invention specifically addresses solutions to problems caused by crosstalk resulting from filtering and also resulting from demodulating with only certain harmonics instead of demodulating with all harmonics as is done using conventional square wave demodulation. In a digital implementation of the present invention, the output of the photodetector is initially sampled at a very high frequency (e.g., 46,875 Hz), and the signals are decimated ( where decimation is lowpass filtering followed by sample rate compression) such that the final output signals are generated at a relatively low sampling rate (e.g., 62.5 Hz) which provides increased resolution at the output. Thus, bandwidth is traded for resolution in the output signal, thus increasing the signal to noise ratio. One aspect of the present invention is an apparatus for measuring blood oxygenation in a subject. The apparatus comprises a first signal source which applies a first input signal during a first time interval. A second signal source applies a second input signal during a second time interval. A detector detects a first parametric signal responsive to the first input signal passing through a portion ofthe subject having blood therein. The detector also detects a second parametric signal responsive to the second input signal passing through the portion ofthe subject. The detector generates a detector output signal responsive to the first and second parametric signals. A signal processor receives the detector output signal. The signal processor demodulates the detector output signal by applying a first demodulation signal to a signal-responsive to the detector output signal to generate a first output signal responsive to the first parametric signal and by applying a second demodulation signal to the signal responsive to the detector output signal to generate a second output signal responsive to the second parametric signal. Each of the first demodulation signal and the second demodulation signal comprises at least a first component having a first frequency and a first amplitude and a second component having a second frequency and a second amplitude. The second frequency is a harmonic ofthe first frequency. The second amplitude is selected to be related to the first amplitude to miriimize crosstalk from the first parametric signal to the second output signal and to minimize crosstalk from the second parametric signal to the first output signal. In one embodiment, the second amplitude is determined by turning off one ofthe first and second signal sources and measuring the crosstalk between one of the parametric signals and the non-corresponding output signal while varying the second amplitude. A second amplitude is selected that minimizes the measured crosstalk. Another aspect of the present invention is a method of minimizing crosstalk between two signals generated by applying a first pulse and a second pulse to measure a parameter. The first pulse and the second pulse are applied periodically at a first repetition rate defining a period. The first pulse is generated during a first interval in each period, and the second pulse is generated during a second interval in each period. The second interval is spaced apart from the first interval. The first and second pulses produce first and second parametric signals responsive to the parameter. The first and second parametric signals are received by a single detector that outputs a composite signal responsive to the first and second parametric signals. The method comprises the step of applying a first demodulation signal to the composite signal to generate a first demodulated output signal wherein the first demodulation signal comprises at least a first component having a first frequency corresponding to the first repetition rate. The first component has a first ampUtude. The first demodulation signal further comprises a second component having a second frequency that is a harmonic of the first frequency. The second component has a second ampUtude which has a selected proportional relationship to the first ampUtude. The method further • includes the step of applying a second demodulation signal to the composite signal to generate a second demodulated output signal. The second demodulation signal comprises the first component at the first frequency and the first ampUtude and further comprises the second component at the second frequency and the second ampUtude. At least one of the first and second components ofthe second demodulation signal has a selected phase difference with respect to the corresponding one of the first and second components of the first demodulation signal. The method further includes the steps of lowpass filtering the first demodulated output signal to generate a first recovered output signal responsive to the first parametric signal; and lowpass filtering the second demodulated output signal to generate a second recovered output signal responsive to the second parametric signal. Preferably, the selected phase difference is π. Also preferably, the first pulse and the second pulse are generally rectangular pulses having a respective duty cycle. The rectangular pulses comprise a pluraUty of sinusoidal components including a fundamental component corresponding to the first frequency and a first harmonic component corresponding to the second frequency. The fundamental component has a fundamental component ampUtude and the first harmonic component has a first harmonic component ampUtude. The first harmonic component ampUtude is related to the fundamental harmonic component ampUtude by a first proportionaUty value. The second ampUtude of the second component of the first demodulation signal is related to the first ampUtude of the first component of the first demodulation signal by a second proportionaUty value which is approximately the inverse ofthe first proportionaUty value. The method in accordance with this aspect ofthe invention preferably includes the further steps of sampling the composite signal when neither the first pulse nor the second pulse is active to obtain a sampled signal; and measuring the sampled signal to determine a noise level ofthe parametric signals. In a further embodiment according to this aspect of the present invention, the method further includes the steps of performing a transform on the composite signal to generate a spectra of the composite signal; sampling the spectra at a plurality of frequencies other than at predetermined ranges of frequencies around the first frequency and around harmonics of the first frequency; determining an average of the magnitudes of the sampled pluraUty of frequencies; and comparing the average to a selected threshold to determine whether the average magnitude exceeds the selected threshold. Another aspect of the present invention is a method of demodulating a composite signal generated by applying first and second periodic pulses of electromagnetic energy to a system having a parameter to be measured and by receiving signals responsive to the electromagnetic energy after having passed through the system and being affected by the parameter being measured. The signals are received as a composite signal having components responsive to the first and second pulses. The method comprises the step of applying a first demodulation signal to the composite signal to generate a first -5- demodulated signal. The first demodulation signal comprises a first component having a first frequency corresponding to a repetition frequency of the first and second pulses and comprises a second component having a frequency that is a harmonic of the first frequency. The first component has a first ampUtude and the second component has a second ampUtude. The second ampUtude has a predetermined relationship to the first ampUtude. The predetermined relationship is selected to cause the first demodulated signal to have low frequency components responsive only to the first pulse. The method includes the further step of lowpass filtering the first demodulated signal to generate a first output signal. The first output signal varies in response to an effect ofthe parameter on the electromagnetic energy received from the first pulse. Preferably, the method in accordance with this aspect ofthe invention includes the further step of applying a second demodulation signal to the composite signal to generate a second demodulated signal. The second demodulation signal has first and second components corresponding to the first and second components of the first demodulation signal. At least one ofthe first and second components ofthe second demodulation signal has a selected phase relationship with the corresponding one of the first and second components of the first demodulation signal. The method includes the further step of lowpass filtering the second demodulated signal to generate a second output signal. The second output signal varies in response to an effect ofthe parameter on the electromagnetic energy received from the second pulse. Another aspect ofthe present invention is a pulse oximetry system that comprises a modulation signal generator. The modulation signal generator generates a first modulation signal that comprises a first pulse that repeats at a first repetition frequency. The first pulse has a duty cycle of less than 50%. The modulation signal generator generates a second modulation signal comprising a second pulse that also repeats at the first repetition frequency. The second pulse has a duty cycle of less than 50%. The second pulse occurs at non-overlapping times with respect to the first pulse. Each ofthe first and second pulses comprises a pluraUty of components wherein a first component has a frequency corresponding to the repetition frequency and wherein a second component has a second frequency corresponding to twice the first frequency. The second component has an -6- amplitude which has a first predetermined relationship to an amplitude of the first component. A first transmitter emits electromagnetic energy at a first wavelength in response to the first pulse; and a second transmitter emits electromagnetic energy at a second wavelength in response to the second pulse. A detector receives electromagnetic energy at the first and second wavelengths after passing through a portion of a subject and generates a detector output signal responsive to the received electromagnetic energy. The detector output signal includes a signal component responsive to attenuation of the electromagnetic energy at the first wavelength and a signal component responsive to attenuation of the electromagnetic energy at the second wavelength. A first demodulator multipUes the detector signal by a first demodulation signal and generates a first demodulated output signal. The first demodulation signal comprises a first component having the first frequency and having a first ampUtude. The first demodulation signal also comprises a second component having the second frequency and having a second amplitude. The second amplitude has a second predetermined relationship to the first ampUtude. The second predetermined relationship is approximately inversely proportional to the first predetermined relationship. A second demodulator multipUes the detector signal by a second demodulation signal and generates a second demodulated output signal. The second demodulation signal comprises a first component having the first frequency and having the first ampUtude. The second demodulation signal further comprises a second component having the second frequency and having the second ampUtude. At least one component ofthe second demodulation signal has a selected phase relationship with a corresponding one component of the first demodulation signal. Preferably, the selected phase relationship is a π phase difference. Another embodiment incorporates decimation before demodulation. In yet another embodiment, a multi-channel demodulator, with or without pre-demodulation decimation is disclosed. In yet another embodiment, an adaptive algorithm is used to control the operation of pre-demodulation decimators and post-demodulation decimators. The adaptive algorithm may control both the characteristics of a lowpass filter in the decimator and the decimation rate provided by a signal rate compressor in the decimator. Another embodiment of the invention is a method for selecting a sample rate that reduces the interference caused by ambient light Brief Description ofthe Drawings The present invention wiU be described below in connection with the accompanying drawing figures in which: Figure 1 illustrates an exemplary block diagram of a representation of a signal processing system in accordance with the present invention used to determine blood oxygen saturation in a subject; Figure 2 illustrates exemplary waveforms of the current through the LEDs in Figure 1 and the resulting intensities of the red Ught and the infrared Ught generated by the LEDs; Figure 3 illustrates a block diagram of the overall processing system in accordance with the present invention; Figure 4 illustrates a frequency spectra ofthe first modulation signal M \ (ή for n — 0, 1, 2, . . ., where the horizontal axis represents frequency and the vertical axis represents the energy in the DC and harmonic components ofthe signal; Figure 5 illustrates an exemplary spectrum ofthe first and second harmonics ofthe present invention when the fundamental frequency is selected to be 316.7 Hz in comparison to the fundamental and harmonics of conventional 60 Hz power, Figure 6 iUustrates the effect of the value of B on the measured signai output S 2 (t) responsive to the red modulation pulses as the value of B is varied while the infrared modulation pulses are off; Figure 7 illustrates a preferred embodiment of the present invention implemented in a digital processing system; Figure 8 iUustrates a detailed block diagram of the demodulation portion of the present invention; -8- Figure 9 illustrates a detailed block diagram of the modulation portion of the present invention; Figure 10 illustrates the red drive waveform and the infrared drive waveform generated by the modulation portion of Figure 9; Figure 11 illustrates the demodulation waveforms generated by the demodulation portion of Figure 8; Figure 12 iUustrates a method of time domain sampling the digital detection signal during the times when both the red pulses and the infrared pulses are off to obtain information regarding the level of ambient noise; Figure 13 iUustrates a block diagram of a system that performs the time domain sampling of Figure 12; Figure 14 illustrates a method of frequency domain sampling to determine the noise floor at frequencies other than the signal frequencies; Figure 15 iUustrates a block diagram of a system that performs the frequency domain sampling of Figure 14; Figure 16 illustrates a block diagram of the overaU processing system in accordance with a pre-demodulation decimation embodiment ofthe present invention; Figure 17 illustrates a block diagram of a multi-channel processing system in accordance with a pre-demodulation decimation embodiment ofthe present invention; Figure 18 illustrates a block diagram of an adaptive multi-channel processing system in accordance with a pre-demodulation decimation embodiment of the present invention; Figure 19 iUustrates a flowchart of a method for choosing the modulation frequency and decimation rate in order to minimize the affects of ambient Ught; and Figure 20 is a graph to be used in connection with graphical method for designing a demodulation system to minimize interference due to ambient Ught. Detailed Description ofthe Preferred Embodiment Figure 1 illustrates an exemplary block diagram of a representation of a signal processing system 100 in accordance with the present invention used to determine blood oxygen saturation in a subject, such as, for example, a human subject. In the example -9- presented, the measurements are performed on a portion of the subject, such as a finger 102 illustrated in Figure 1. An LED modulation circuit 104 drives a pair of back-to-back light emitting diodes (LEDs) 106, 108 by applying a periodic signal to the two Ught emitting diodes 106, 108. The LED 106 is selected to emit electromagnetic energy in the red visible Ught range, and has a wavelength of, for example, approximately 660 nanometers. The LED 108 is selected to emit electromagnetic energy in the infrared range, and has a wavelength of, for example, approximately 905 nanometers. The I FT) modulation circuit 104 suppUes current in alternating directions so that the two LEDs 106, 108 are activated one at a time. In particular, as iUustrated by a current waveform 120 in Figure 2, current is first appUed in a forward direction with respect to the red LED 106 during a first time interval 122 having a duration τ. Thereafter, no current is appUed to either LED during a second time interval 124 having a like duration τ. Then, current is appUed in a forward direction with respect to the infrared LED 108 during a third time interval 126, also having a duration τ. Then, no current is appUed to either LED during a fourth time interval 128 having a like duration τ. Thereafter, the current is again appUed in the forward direction for the red LED 106 during a fifth time interval 130 which corresponds to the first time interval 122. It can be seen that the overall cycle repeats with a period of duration T equal to 4τ. The red LED 106 emits Ught only when the current is applied in the forward direction with respect to the red LED 106. Thus, as illustrated by a red intensity waveform 132, the red LED 106 emits Ught as a pulse 134 during the first time interval 122 and as a pulse 136 during the fifth time interval 130, and so on. The red pulses repeat with a periodicity equal to T. Similarly, the infrared LED 108 emits infrared Ught only when the current is appUed in the forward direction with respect to the infrared LED 108. Thus, as illustrated by an infrared intensity waveform 140, the infrared LED 108 emits infrared light as a pulse 142 during the third interval 126. A next infrared pulse 144 occurs at an interval T after the infrared pulse 142. Thus, the infrared pulses also repeat with a periodicity equal to T. It can be seen that the red pulses and the infrared pulses each have a duty cycle of 25%, and the red pulses and the infrared pulses are ■10- separated by intervals of one-fourth of each period T (i.e., the beginning of one pulse occurs an interval τ after the end ofthe previous pulse). As further illustrated in Figure 1, the electromagnetic energy pulses from the red LED 106 and the infrared LED 108 are appUed to the finger 102. A detector 150 is positioned to receive the electromagnetic energy after the energy has passed through a portion of the finger 102. The detector 150 is selected to be responsive to both the red light and the infrared light and to generate an output signal responsive to the intensity of the energy received from each source. An exemplary current output signal from the detector 150 is represented by a waveform 152 in Figure 2. As iUustrated, the detector signal waveform 152 comprises a first pulse 154 responsive to the first red pulse 134, a second pulse 156 responsive to the infrared pulse 142 and a third pulse 158 responsive to the second red pulse 136. During the time between the first pulse 154 and the second pulse 156, the detector signal waveform 152 comprises noise 160, and during the time between the second pulse 156 and the third pulse 158, the detector signal waveform 150 comprises noise 162. The signal pulses 154, 156 and 158 also include noise superimposed thereon. Although shown as repeating noise, it should be understood that the noise varies with time. For example, noise caused by ambient light will vary with a periodicity corresponding to the 50 Hz or 60 Hz power frequency and their harmonics, particularly when the ambient light is provided by fluorescent Ughts which generate significant noise at the first harmonic (i.e., 100 Hz or 120 Hz) and the third harmonic (i.e., 200 Hz or 240 Hz). The output of the detector 150 is appUed as an input to a signal processor block 170 which processes the detector signal and generates a first signal £, (f ) responsive to the detected intensity of the red Ught incident on the detector 150 and generates a second signal S 2 (t) responsive to the detected intensity of the infrared light incident on the detector 150. As iUustrated, the signal processing block 170 is synchronized with the LED modulator 104 via a set of control lines 180. As will be discussed below, the control lines 180 advantageously communicate signals which provide timing information that determines when to activate the red LED 106 and when to activate the infrared LED 108. -11- Figure 3 is a pictorial representation of a model of an exemplary system which incorporates the present invention. The red LED 106 provides a light intensity represented as I D , and the infrared LED 108 provides a Ught intensity represented as IIR. The effects of turning the LEDs 106, 108 on and off on periodic bases are modeled by a first multipUer or modulator 190 which applies a first modulation signal M\(t) to the red Ught intensity to generate a modulated red signal IR D M O DW and by a second multipUer or modulator 192 which appUes a second modulation signal CO to the infrared Ught intensity to generate a modulated infrared signal IΓR OΓ - The modulated Ught red signal and the modulated infrared signal are appUed to the finger 102, or other body portion, as described above. The finger 102 has blood flowing therein and is represented in Figure 3 as a block 102. The blood in the finger 102 has a volume and scattering components which vary throughout each cardiac cycle. The blood carries oxygen and other materials therein. The oxygen content is a function of both the blood volume and the concentration ofthe oxygen in the blood volume. The concentration of the oxygen in the blood volume is generaUy measured as blood oxygen saturation for reasons which are described in full in the above- identified issued U.S. Patent Nos. 5,482,036 and 5,490,505. As further described in the two referenced patents, the blood oxygen saturation is determined by comparing the relative absorption ofthe red light and the infrared Ught in the finger 102. The comparison is compUcated by the noise caused by movement, ambient Ught, light scattering, and other factors. In Figure 3, a pair of signals S\(t) and £ 2 ( represent the effect of the time-varying voiume and scattering components of the blood in the finger 102 on the red Ught and the infrared Ught, respectively, passing through the finger 102 from the LEDs 106, 108 to the detector 150. The red light signal portion Sι t) is caused by the variable attenuation ofthe red Ught passing through the finger 102. The infrared Ught signal portion Sz( ) is caused by the variable attenuation of the infrared Ught passing through the finger 102. To show the effect ofthe variable attenuations, the signal portion S \ (ή is illustrated as being appUed to a first attenuation modulator 191 which multipUes the signal S \ (ή by the modulated red output IRDM O DW ofthe first modulator 190. Similarly, the infrared Ught signal portion Sι(t) is illustrated as being applied to a second attenuation modulator 193 which multiplies the -12- signal (/) by the modulated infrared output IIRM O D ) ofthe second modulator 192. The outputs of the first and second attenuation modulators 191, 193 are provided to the receiving photodetector 150. The photodetector 150 is modeled as adder 194 and an adder 196. The outputs of the first and second attenuation modulators 191, 193 are provided to the adder 194 to generate a composite signal M(t) where: M(t) = 5,( )A/ι( + -StføiVjtø. (1) The signal M(t) from the adder 194 is provided to the adder 196 where the signal M(t) is added to a signal n(ή which represents a composite noise signal caused by ambient light, electromagnetic pickup, and the like, which are also detected by the photodetector 150. The output of the adder 196 is a signal Λf(t) = M(t) + n t) which includes noise components as well as the signal components. The noise components include DC components and harmonics of the power Une frequency that appear in the ambient Ught In addition, as will be discussed in more detail below, the signal M (t) may also include noise at higher frequencies caused, for example, by other devices such as electrocauterization equipment, or the like. The Af(t) signal output ofthe third adder 196 (i.e., the output ofthe detector 150) is applied to the input of the signal processing block 170. Within the signal processing block 170, the signal Af(t) is first passed through a fixed gain ampUfier 197 and then through an analog bandpass filter 198. The analog bandpass filter 198 has a passband selected to pass signals in the range of 20 Hz to 10,000 Hz. Thus, the analog bandpass filter 198 removes a significant portion ofthe noise below 10 Hz. The signal components responsive to the blood oxygen saturation are frequency shifted by the operation ofthe two modulation signals M \ (t) and Mz(f) and are passed by the analog bandpass filter 198. In the preferred embodiment, the output of the analog bandpass filter 198 is sampled by an analog-to-digital converter 199 and converted therein to digital signals. For example, the signals are preferably sampled at 46,875 samples per second. The output of the analog-to-digital converter 199 is a signal MF k). The signal MF(k) is provided as a first input to a first demodulating multiplier 210. The signal MF(k) is also provided as a first input to a second demodulating multipUer 212. -13- A first demodulating signal D\(k) is provided as a second input to the first demodulating multipUer 210, and a second demodulating signal £> 2 (fc) is provided as a second input to the second demodulating multipUer 212. The output of the first demodulating multipUer 210 is provided as an input to a first lowpass filter 220, and the output of the second demodulatmg multipUer is provided as an input to a second lowpass filter 222. The bandwidths ofthe lowpass filters 220, 222 are preferably approximately 10 Hz. The output of the first lowpass filter 220 is a signal S t (t) , which, as discussed below, is an estimate ofthe signal S \ (ή. The output of the second lowpass filter 222 is a signal S 2 (r) , which, as discussed below, is an estimate of the signal ^(t). As wiU be shown below, the selection of the first demodulating signal D \ k) and the second demodulating signal JD 2 (£) in accordance with the present invention substantially reduces or eliminates the effects of noise in the two output signals 5, (t) and S 2 (t) and also substantially reduces or eliminates crosstalk between the two signals. In the preferred embodiment of the present invention, the sample rates of the outputs of the lowpass filter 220 and the lowpass filter 222 are compressed by respective sample rate compressors 221 and 223. In particular, the sample rate compressors 221, 223 reduce the sample rate by 750 to a sample rate of, for example, 62.5 Hz to provide an output which can be further processed in accordance with the methods and apparatuses described in the above-referenced patents. The sample rate compressions which occur in the sample rate compressors 221 , 223 reduce the rate at which the output signals £, (t) and S 2 (t) need to be processed while mamtaining the sample rate well above the 0-10 Hz frequency content of the signals of interest The outputs of the filters 220, 222, or the sample rate compressors 221, 223, if included, are provided on respective output lines 224 and 226. In order to facilitate an understanding of how the present invention operates in demodulating the output signal MF(k) from the analog-to-digital converter 199, the modulation signals M \ {t) and 2 (t) will first be described in terms of their frequency components. One skilled in the art will appreciate that the modulation signals M\(t) and -14- 2 (t) can each be represented as a Fourier cosine series expansion (e.g.,^ °° _ α„cos(nωt), where ω = 2π/7) representing the fundamental and harmonic frequencies ofthe rectangular signal pulses. One skiUed in the art will understand that the Fourier series expansion includes phases; however, by suitably selecting the time origin, the phases are set to zero. A component which is 180° out of phase with a corresponding component will advantageously be represented by a minus sign before the coefficient Figure 4 illustrates a frequency spectra ofthe first modulation signal M \ (t) for n — 0, 1, 2, . . ., where the horizontal axis represents frequency, with the energy in the DC component along the vertical axis and increasing harmonics ofthe fundamental frequency along the horizontal axis. The length of each component of M\(t) along the vertical axis represents the energy E(«) in each component of the frequency spectra. The first component to the right ofthe vertical axis is at the fundamental frequency (i.e., 1/7), which is designated herein as^ό; however, it should be understood that the fundamental frequency corresponds to n = 1. The second component to the right ofthe vertical axis is the first harmonic i (i.e., n = 2), which has a frequency which is twice the fundamental frequency. The third component to the right ofthe vertical axis is the second harmonic f∑ (i.e., n — 3), which has a frequency which is three times the fundamental frequency. The components to the right of the second harmonic are numbered accordingly. (Note, other conventions identify the fundamental frequency as the first harmonic, and designate the second harmonic as the frequency that is twice the fundamental frequency. The identification of the fundamental frequency as_/ό is used in the discussion that foUows.) In Figure 4, a modulation envelope 230 is shown in dashed lines. The modulation envelope 230 represents the magnitudes of the fundamental and the harmonics of the signal Mχ(t). The shape of the envelope is determined by the modulation signal M\(t) which, for a repeating rectangular pulse train starting at time t = 0 and having a normalized amplitude of 1, can be expressed as: Mι«) = J Σ sinc (yJ C0 ^J C 2) -15- Where sine is the function (sin πx)/πx (i.e., sinc(/ιτ/7) = sm(nπτ/T)/(nπτ/T)). In the example shown, τ = V*T. (Note that for sampled signals, the envelope is more accurately represented as sinα/sinβ; however, as weU known in the art, for the frequencies of interest the sine function is a suitable approximation.) Thus, the frequency spectra has nulls at n = 4, n = &, n = 12, and so on, corresponding to the third harmonic fi}, the seventh harmonic fi, the eleventh harmonic n, and so on. Note that Equation 2 is an idealized form ofthe equation for M \ (t), and that in general: M,(t) - ^∑ n sinc^ e-^' (3) where a„ is a complex number. In the discussion that follows, the values of a„ are assumed to be real numbers only. A similar frequency spectra (not shown) for the modulation signal -V 2 (t) is determined by the expression: M 2 (0= ∑(-1 f smci^- cos ' 2mt . T J (4) An envelope for the frequency spectrp. of second modulation signal M2(f) will have the same magnitudes; however, it should be understood that because of the (-1)" term in the expression for 2 (t), the fundamental f and every even harmonic (i.e.,^,^, etc.) are 180° out of phase with the corresponding harmonic ofthe first modulation signal M\(t). In Figure 3, the analog-to-digital converter 199 converts the signal M{f) to a sequence of sampled digital values MF(k) at a sampling rate of, for example, 46,875 samples per second. As discussed above, the first demodulating multiplier 210 multipUes the output MF(k) of the converter 199 by the first demodulating signal D \ (k) to generate the first output sequence 5, (k) , and the second demodulating multipUer 212 multipUes the output MF(k) by the second demodulating signal D 2 (&) to generate the second output sequence S 2 (k) . The multiplication by the multipliers 210, 212 can also be expressed as follows: S i (k) = P[MF(k)D l (k)] (5) and -16- S 2 (k) = P[MF(k)D 2 (k)] (6 where LP is the transfer function ofthe lowpass filter 220 and ofthe lowpass filter 222. If, for simplicity, the noise is assumed to be zero, then: Af(t) = S x (t)M\(t) + S 2 (t)M 2 (t) (7) Therefore: S x (*) = LP[ [Sι(*)Λ ,(*) + S 2 (k)M 2 (k)]D l (k) ] (8) and thus 5, (*) = LP[ [S WmVDiik) + [S 2 (.k)M 2 (k)]D (k) ] (9) Similarly: S 2 (*) = LP[ [S 2 (k)M 2 (k)]D (k) + [S x (k)M (k)]D 2 (k) ] (10) Since LP is a linear operator, the right-hand side of Equations 9 and 10 can be split into two terms. The first term on the right-hand side of each of Equations 9 and 10 above is the desired signal portion of the equation, and the second term on the right- hand side of each of the equations is the crosstalk portion. Thus, in order to reduce the crosstalk to zero, the second term of each of Equations 9 and 10 is set to zero: LP[ S 2 (£) 2 (fc) (/0 ] = O (11) and L?[ S l (k)M,(k)D 2 {k) ] = 0 (12) By setting the second terms to zero, Equations 9 and 10 reduce to: S, (k) = l$[ S \ (k)Mι(k)Dι(k) ] (13) and S 2 (*) = LP[ S&WmDm ] (14) One goal of the present invention is to select the demodulating signals D\ k) and D (k) to satisfy Equations 11 and 12 to thereby reduce Equations 9 and 10 to Equations 13 and 14. This is accompUshed by utiUzing Equations 2 and 3 to simpUfy the two equations by selectively using components ofthe two modulating signals M \ {t) and M (t) to generate the demodulating sequences D \ (k) zndD 2 (k). In order to simplify the discussion, Equation 2 can be rewritten as: -17- M,(t) = ∑E(n)cos(nωt) (15) where E(π) is the sine envelope for the fundamental frequency fi (n = 1) and the harmonics x (n = 2), f 2 (n = 3), and so on, where cos(/ιωt) represents the cosine term cos(2ππt/7), where ω=2π/T. (Note, as discussed above, for discrete sampled signals, the actual envelope of E(/ι) is a sinα/sinβ function; however, for the frequencies of interest the sine function is a suitable representation.) As discussed above, the DC term (n = 0) does not need to be considered because of the operation ofthe filter 198, and the analog-to-digital converter 199, as well as the action of the demodulation, which shift any unwanted DC or low frequency signals having a frequency less than approximately 10 Hz (hereinafter near-DC signals) to higher frequencies before lowpass filtering. As a further simplification, the magnitude of the fundamental term in Equation 15 is normalized to a value of 1 (i.e., E(l) = 1). Note that the normalization results in the need for a scale factor, which will be discussed below. Thus, Equation 15 becomes: M \ (t) = cos ωt + a cos 2ωt + b cos 3ωt + c cos 4ωt + . . . (16) The demodulation signal D i (t) is defined as : Dι(t) = cos ωt + B cos 2ωt (17) For reasons set forth below, only the first two cosine terms are needed. Similarly, the second modulating signal M (t) becomes: M 2 (t) = -cos ωt + a cos 2ωt - b cos 3ωt + c cos 4ωt + . . . (18) and the second demodulating signal D 2 (t) is defined as: D 2 (t) = -cos ωt + B cos 2ωt (19) Note that the signs ofthe fundamental and odd harmonics in Equation 18 are 180° out of phase with the corresponding terms in Equation 16. Note, as will be developed more fuUy below, by including only the fundamental (cos ωt) and the first harmonic (cos 2ωt) in each of the demodulation signals, only the signals proximate to the fundamental and first harmonic need to be considered. By -18- eliminating higher harmonics, the effects of the higher harmonics of the power line frequency are also eliminated in the output signals generated by the present invention. Assume that the filter 198 and the analog-to-digital converter 199 do not affect the magnitude of the signal MF(k) with respect to Af (t) for the frequencies having significant energy. Therefore, starting with Equation 7 above, λf(t) can be written as: \f(t) = 5ι(t)[cos ωt + a cos 2ωt + b cos 3ωt + . . .] + 5 2 (t)[-cos ωt + a cos2ωt - b cos 3ωt + . . .] (20) When the first demodulating multiplier 210 multipUes Λ (t) by A(t), the terms on the right-hand side of Equation 20 are multipUed by the terms on the right-hand side of Equation 17. Thus: λf(t)D \ (ή = 5ι(t)[cos ωt + a cos 2ωt + b cos 3ωt + . . .][cos ωt + B cos 2ωt] + S 2 (t)[-cos ωt + a cos 2ωt -b cos 3ωt + . . .][cos ωt + B cos 2ωt] (21) The term 5ι(t)[cos ωt + a cos 2ωt + b cos 3ωt + . . .][cos ωt + B cos 2ωt] is the signal term which is to be preserved, and the term S^t -cos ωt + a cos 2ωt -b cos 3ωt + . . .][cos ωt + B cos 2ωt] is the crosstalk term to be eliminated. Expanding the crosstalk term from Equation 21, generates: crosstalk = -S , 2 (t)[-cos 2 ωt-B cos ωt cos 2ωt + a cos2ωt cos ωt + aB cos 2 2ωt - b cos 3ωt cos ωt - bB cos 3ωt cos 2ωt + . . .] (22) Using the identity, cos(x)cos(y) = '/2[cos(x+y)+cos(x-y)], the crosstalk term from Equation 22 becomes: crosstalk = S 2 (ή[ -Vι(cos 2ωt + 1) + ((a - B)/2)[cos 3ωt ÷ cos ωt] + (aB/2)[cos 4ωt + 1] - (b/2)[cos 4ωt + cos 2ωt] - (bB/2)[cos 5ωt + cos ωt] + . . .] (23) The remaining terms in Equation 23 will all have a factor of cos ωt or higher. Thus, Equation 23, when fully expanded only includes near-DC terms: crosstalkrx = LP[$(0[(aB/2) - Vi]] (24) where S 2 (t) corresponds to the infrared portion of the original plethysmograph signal which has a bandwidth of interest of approximately 0 to 10 Hz. Any components present above 10 Hz will be eliminated by the action of the lowpass filter 220. Thus, it can be -19- seen that only the signals of interest are folded back to DC or near-DC. By using the lowpass filter 220, the DC terms and near-DC terms can be isolated so that only the DC terms and near-DC terms of the crosstalk are presented at the output ofthe lowpass filter 220. Thus, in order to eliminate the crosstalk, the crosstalk terms in Equation 24 need to be set to zero: LP[5 2 (t)[aB/2 - ' ]] = 0 (25) Thus: B = 1/a (26) The result in Equation 26 can also be expressed using a geometric interpretation of vector projection (i.e., dot products) of S 2 (t) and S\(t) wherein the projection of S (t) onto D \ t) is equal to zero and the projection of S 2 (t) onto D (t) is maximized. In other words, express Sχ(t), S (t), D\(t) and D 2 (t) as vectors of samples in an ^-dimensional sample space (e.g., Sχ(t) is represented as a vector St of samples S\(k)). For example, in a preferred embodiment, n = 148, and thus Si, S 2 , Di and D 2 are vectors of 148 samples each. The first crosstalk term is SpD 2 . The second crosstalk term is S 2 -Dι . The first signal output is S f Di. The second signal output is S 2 D 2 . Select the vectors Di and D 2 to drive the crosstalk terms to zero. The relationship in Equation 26 also works to preserve the signal term. In particular, the signal term in Equation 21 can be expanded and lowpass filtered in the same manner as the crosstalk term to obtain: signal = S (t) = LP[S.(t)[(aB/2) + y 2 ]] (27) Using the relationship from Equation 26, then Equation 27 becomes: signal = 5, (t) = LP[5 , ,(t)[(a/2a) + > /4] = ?[Sχ(ή] = Sχ(ή (28) It can be readily shown that the same relationship holds for the crosstalk term and the signal term for the signal S 2 (t) by defining the second demodulation signal D 2 (t) as: D 2 (t) = -cos ωt + B cos 2ωt (29) and multiplying M 2 (ή by D 2 (t). After expanding the crosstalk and signal terms and eliminating the terms above 10 Hz, it can be shown that by selecting B = 1/a, the crosstalk term is canceled and the signal term S {t) is recovered. -20- From the foregoing, it can be seen that by choosing the relationship between the magnitude of B as the reciprocal of a, then the crosstalk terms are eliminated and the signal terms are preserved. Note that neither A nor B is an absolute value. As set forth in Equation 16, a is the magnitude of the cos2ωt term of M \ (t) when the magnitude of the cosωt term of Mχ(t) is normalized to 1. Similarly, from Equation 17, B is the magnitude of the cos 2ωt term of D \ (t) when the cos ωt term of Dχ(t) is normalized to 1. It should be understood that both Dχ(ή and D 2 (t) can include higher harmonic terms; however, such additional terms could result in increased sensitivity to the noise of fluorescent Ughts and the like because ofthe harmonics ofthe 60 Hz power line frequency (or the 50 Hz power line frequency in other countries). For example, Figure 5 illustrates an exemplary spectrum ofthe first and second harmonics ofthe present invention when the fundamental frequency is selected to be 316.7 Hz. Thus, the first harmonic frequency is 633.4 Hz. Note that the variations in the signals caused by blood flow throughout a cardiac cycle causes the fundamental and harmonics of modulation frequency to be surrounded by sidebands representing the frequency content of the plethysmograph. For example, in Figure 5, the first and second harmonics are at 316.7 Hz and 633.4 Hz, ±10 Hz. As further illustrated in Figure 5, the conventional 60 Hz power Une frequency has harmonics at 120 Hz, 180 Hz, 240, etc. Thus, the nearest harmonics of the power Une frequency to the first harmonic ofthe present invention are at 300 Hz and 360 Hz, and the nearest harmonics of the power line frequency to the second harmonic of the present invention are 600 Hz and 660 Hz. Similarly, if used in a country having a 50 Hz power line frequency, the nearest harmonics to the first harmonic ofthe present invention are 300 Hz and 350 Hz, and the nearest harmonics to the second harmonic ofthe present invention are 600 Hz and 650 Hz. Even if the power frequency were to vary by up to 1.5 percent, the noise generated by the ambient light from fluorescent lamps, or the like, would not be at the first and second harmonic frequencies of the present invention. The fundamental frequency has thus been selected to avoid power line caused ambient noise at the first and second harmonic frequencies. -21- The foregoing discussion assumed that the filter 198 did not significantly affect the ampUtude ofthe filtered signal. If the filter 198 does have an affect on the ampUtude, then B will be a constant times the value of B determined above: B = k/a (30) where k depends on the relative attenuation ofthe first harmonic and the second harmonic through the filter 198. Although the value of the coefficient B can be calculated as set forth above, the calculations may be compUcated if the filter 198 or the modulators 190, 192 introduce phase changes which cause the calculations to be performed on complex numbers. For example, if the modulation signals Λfι(t) and M 2 (t) are not rectangular waves which have 25% duty cycles and which are precisely 180° out of phase, as iUustrated herein, then the coefficients of the frequency components of the modulation signals may be complex to account for the phase relationships, and thus, the coefficients of the demodulation signals may be complex. As illustrated in Figure 6, the value of B can also be determined empirically by performing a initial measurement with one channel (i.e., either the red pulse or the infrared pulse turned off) and rninimizing the crosstalk. In particular, during the initial measurement, the waveform 140 in Figure 2 is set to a continuous zero value so that no infrared pulses are generated. Thus, the detector 150 (Figure 1) receives only the light generated by the red LED 106. Thus, M 2 (t) is set to zero, and Equation 10 for S 2 (t) becomes: 5 2 (t) = LP[ 5 1 (t) 1 (t D 2 (t) ] (31) It can be seen that S 2 (t) includes only a crosstalk portion, which can be measured on the output from the second lowpass filter 222. Thus, by varying the value B while monitoring the magnitude or the RMS (root-mean-squared) value of the output signal S 2 (t) , a rninimum magnitude S 2 (t) m j n for the output signal S 2 (t) can be found which corresponds to the best value BB ES T for B. In an ideal system, the best value for B corresponds to a zero value for the output signal S 2 (t) ; however, in a real environment, the best value of B may -22- correspond to a non-zero value for 5 2 (t) (i.e., a rninimum error for S 2 (t) ). It should be understood that the value of BBEST can also be determined by turning off the red LED 106 and varying B while monitoring S, (t) until .S, (t) is minimized. From the foregoing, it can be seen that the effect of the modulation signals Dχ(t) and £> 2 (t) is to shift the DC or near-DC noise terms up in frequency while shifting the signals of interest at the harmonics back to DC or near-DC, which in effect interchanges the noise spectra and the signal spectra so that the noise spectra can be eliminated by the action ofthe lowpass filters 220, 222, leaving only the signals of interest. Figure 7 illustrates a preferred embodiment of the present invention which implements the functions described above in a digital system. Preferably, the digital system comprises a digital signal processor (not shown), and the blocks described herein comprise data structures within the digital signal processor and software routines that implement the processes described below. In particular, the present invention comprises an LED demodulation block 300 which receives a digital configuration signal on a bus 310, a clock signal on a Une 312 and a digital detector signal on a bus 314 as inputs. The digital configuration signal bus 310 provides a way to change the configuration ofthe LED demodulation block 300 to accommodate different LEDs and different detection algorithms. Preferably, the clock signal on the line 312 is a 46,875 Hz (46.875 kHz) square wave signal which is used to synchronize the timing functions of the present invention. The digital detector signal on the Une 314 is the output of the analog-to-digital converter 199. The analog-to-digital converter 199 is connected to the output of the detector 150 (via the amplifier 197 and the filter 198) and samples the output of the detector 150 at 46,875 samples per second to provide a stream of sampled digital values of the red light and infrared light incident on the detector 150. The LED modulation block 300 generates a demodulated red signal output on a bus 340 and generates a demodulated infrared signal output on a bus 342. The demodulated red signal output is passed through the low pass filter 220 and is output therefrom as the signal 5, (t) . The demodulated infrared signal output is passed through the low pass filter 222 and is output therefrom as the signal £ 2 (t) . As further illustrated in -23- Figure 8, the LED demodulation block 300 comprises a modulo-M block 350, an LED demodulation state table block 352, the first demodulating multiplier 210 and the second demodulating multipUer 212. The modulo-M block 350 receives the main 46,875 Hz clock signal on the line 312 as one input and receives a MODULUS signal on a bus 354 as a second input. The bus 354 forms a portion of the configuration bus 310. The modulo-M block 350 divides the clock signal by the MODULUS signal and generates a RESIDUE signal (described below) on a bus 356 which is provided as one input to the LED modulation state table block 352. The LED modulation state table block 352 also receives the configuration signals on the configuration bus 310. The LED demodulation state table is responsive to the residue signal and the configuration signals to generate the first demodulating signal D\(t) on a bus 360 and to generate the second demodulating signal D 2 (t) on a bus 362. The first demodulating signal Dχ(t) is provided as one input to the first demodulating multipUer 210, as described above. The second demodulating signal D 2 (ή is provided as one input to the second demodulating multipUer 212, as described above. The first demodulating multiplier 210 and the second demodulating multipUer 212 receive the digital detector signal on the Line 314 as respective second inputs. The demodulating multipliers 210, 212 multiply the digital detector signal by the first demodulating signal D\(t) and the second demodulating signal D (t), respectively, to generate a demodulated red signal and a demodulated infrared signal on the buses 340 and 342, respectively. Because the outputs of the two demodulating multipUers 210 and 212 include the terms cos ωt, cos 2ωt, and higher, the demodulated signals on the buses 340 and 342 are provided as respective inputs to the low pass filters 220 and 222 to pass only the near-DC terms, as discussed above. The outputs of the lowpass filters 220 and 222 on the buses 344 and 346, respectively, are the 5, (t) signal and the S 2 (t) signal which contain only the near-DC terms, which, in accordance with the discussion presented above represent the original input signals Sχ(t) and ^(t) with the unwanted noise substantially reduced or eUminated. The two signals £,(t) and 5 2 (t) are then appUed to computation circuitry (not shown) which computes the blood oxygen -24- saturation and other cardiographic parameters in a manner described in the above-cited U.S. Patent Nos. 5,482,036 and 5,490,505. The residue signal generated as the output from the modulo-M block 350 is a multiple bit signal that counts from 0 to MODULUS- 1. In the preferred embodiment described herein, MODULUS has a value of 148. Thus, the RESIDUE output of the modulo-M block 350 counts from 0 to 147. The RESIDUE output ofthe modulo-M block 350 is a number that is provided as the input to the LED demodulation state table block 352. As illustrated in Figure 9, the RESIDUE output on the bus 356 corresponds to the signal 180 in Figure 1 and is also provided to the input of an LED modulation state table block 370 which, together with an LED driver circuit 372, comprise the modulation block 104 (Figure 1) which generates the drive signals to the red LED 106 and the infrared LET) 108. As described above, the red LED 106 and the infrared LED 108 generate the modulation signals ι(t) and M (t), respectively, which effectively operate as carriers for the plethysmograph waveform to be measured. In particular, as illustrated by a red drive timing waveform 374 and by a infrared drive timing waveform 376 in Figure 10, the modulation state table block 370 generates a red signal pulse 378 during the time when the RESIDUE signal increments from 0 to 36. Then, the modulation state table block 370 generates neither a red signal pulse nor an infrared signal pulse during the time when the RESIDUE signal increments from 37 to 73. Then, the modulation state table block 370 generates the infrared signal pulse 380 during the time when the RESIDUE signal increments from 74 to 110. Then, the modulation state table block 370 again generates neither a red signal pulse nor an infrared signal pulse during the time when the RESIDUE signal increments from 111 to 147. The RESIDUE signal then resets to 0 and the process repeats continuously. The red signal pulse 378 and the infrared signal pulse 380 from the modulation state table block 370 are provided as inputs to the LED driver circuit 372 which turns on the red LED 106 when the red signal pulse 376 is active and turns on the infrared LED 108 when the infrared signal pulse 378 is active by generating the current waveform 120 illustrated in Figure 2. The circuitry for converting the red signal pulse 376 and the -25- infrared signal pulse 378 to the bi-directional current pulses of the waveform 120 is conventional and does not need to be described herein. In the preferred embodiment, the LED demodulation state table block 352 implements demodulation equations which generally correspond to the Equations 17 and 19 described above. In particular, the LED demodulation state table block 352 receives the RESIDUE as one input to the state table and steps through the state table based upon the current value of the RESIDUE. The LED demodulation state table block 352 generates two output values for each value ofthe RESIDUE, wherein the first output value is the first demodulation signal Dχ t) on the signal bus 360, and the second output value is the second demodulation signal D (t) on the signal bus 362. In particular, the LED demodulation state table block 352 implements the following forms ofthe demodulation signal Dχ(ή and the D 2 (f) equations: (32) ( D,(t) = -SCL cos 2πt [ 18.5 - HWA \ V Modulus ( - HWA" +HWD cos 4πt (*÷ 18.5 V V Modulus and (33) R - 18.5 - HWA D 2 ( = -SCL\ cos 2πt Modulus f R - 18.5 - HWAλ -HWD cos 4πt Modulus J In Equations 32 and 33, the value SCL is a scale factor which determines the magnitudes of the two demodulation signals and which is used to compensate for the normalization discussed above and to compensate for other factors, such as, for example, non-ideal rectangular pulses. The metiiod of determining the scale factor will be set forth below. In one particularly preferred embodiment, the value of SCL is 2.221441469. The value -26- HWD is a hardware distortion factor, which corresponds to the value of B discussed above. The determination ofthe value B was described above, and wiU be described again below in connection with this preferred embodiment. In one particularly preferred embodiment where the pulses appUed to the red LED 106 and the infrared LED 108 are idealized rectangular waves having 25% duty cycles, the value of HWD can be calculated to be 1.414213562. This ideal value for HWD can be determined by recognizing that the value of the coefficient A for the cos 2ωt terms in Equations 16 and 18 is determined by the sine function. When the coefficient ofthe cos ωt term is normalized to 1, as in the two equations, then the value of the coefficient a is equal to 2/2 . Thus, the ideal value for B (i.e., HWD) is-J . Of course, the actual value of the coefficient B, and thus HWD, wiU vary when the red pulses and the infrared pulses are not true rectangular waves. Since, in actual embodiments, the pulses will have finite rise times and fall times, the optimum value of HWD is preferably found empirically in the manner described below. The value 18.5 in Equations 32 and 33 is used to aUgn the demodulation waveforms with the modulation waveforms so that the peak of the cosine functions corresponds to the midpoints of each of the modulation waveforms. The value HWΔ is a hardware delay factor which may be needed in certain embodiments to compensate for delays in the analog processing, the digital processing or both, which cause the demodulation signals D \ (ή and D 2 (t) to be out of phase with the modulation signals Mχ(t) and 2 (t). In an ideal environment the value ofthe hardware delay factor is 0. However, in one particularly preferred embodiment the value of the hardware delay factor is 39. The modulus was described above and is basicaUy the number of steps in each period of the waveforms. In the embodiment described herein, the modulus is 148. The value R is the RESIDUE, which varies from 0 to modulus- 1, and thus, in the preferred embodiment, R varies from 0 to 147. In operation, the clock signal on the Une 312 causes the modulo-M block 350 to generate the RESIDUE signal, as described above. The RESIDUE value is appUed to the LED modulation block 104 which generates the modulation signals ι(t) and M 2 (t), as described above. The RESIDUE value is also applied to the LED demodulation state table -27- block 352 which generates a new value for D\(t) and a new value for D 2 (t) for each new RESIDUE value. Thus, 148 values of Dχ(t) and D 2 (ή are generated for each complete cycle. Because the clock signal is operating at 46,875 Hz, the modulation signals Mχ(t) and M (t) and the demodulation signals D\(t) and D 2 {t) have a fundamental frequency of 316.722973 Hz, which, as discussed above, does not correspond to any harmonic of conventional 50 Hz or 60 Hz power line frequencies. The HWΔ (hardware delay factor) value, the HWD (hardware distortion factor) value and the SCL (scaling factor) value are found empirically as follows. First, the ideal values ofthe hardware delay factor, the hardware distortion factor and the scale factor are appUed to the Equations 32 and 33 in the LED demodulation state table block 352 (i.e., HWΔ = 0, HWD = 1.414213562, and SCL = 2.221441469). To determine the optimum value of the hardware delay factor, the second modulation signal M 2 (ή is set to a constant value of zero (i.e., the infrared LED is maintained in its OFF state). The red LED pulses are applied as set forth above, and the digital detector output signal from the analog-to- digital converter is monitored and compared to the modulation signal Mχ t). The relative delay between the beginning of the modulation signal ι(t) and the detection of the beginning of the responsive output from the analog-to-digital converter is the optimum hardware delay factor (HWΔ) value. In one exemplary embodiment the optimum value of the hardware delay factor is 39. After determining the value of the hardware delay factor and applying it to Equations 32 and 33, the ideal value of the hardware distortion factor and the ideal value of the scale factor are appUed to the two equations. Again, with the red LED pulses applied to the red LED 106 and no pulses appUed to the infrared LED, the value of the hardware distortion factor is slowly varied from its ideal value while the DC component of the demodulated infrared signal output on the line 342 is monitored. The value of the hardware distortion factor is varied until the measured DC component is minimized, and the value of the hardware distortion factor corresponding to the minimal DC component is selected as the optimum value for the hardware distortion factor. -28- Next, with the value of the hardware delay factor and the value of the hardware distortion factor set to their respective optimum values, as determined above, the value of the scale factor (SCL) is initially set to 1. Again, with the modulation system generating pulses only to the red LED 106, the DC component of the demodulated red signal output on the Une 340 is measured. In addition, the difference in amplitude between the on state and the off state ofthe digital detector signal from the filter 198 is measured. The ratio of the measured amplitude difference to the measured DC component ofthe demodulated red signal output is selected as the optimum value for the scale factor. An exemplary demodulation waveform Dχ(t) is illustrated by a waveform 400 in Figure 11 and an exemplary demodulation waveform D 2 (t) is illustrated by a waveform 402 in Figure 11. The demodulation waveforms in Figure 11 are illustrated with the hardware delay factor set to 0 in order to aUgn the waveforms with the modulation waveforms in Figure 10. It should be understood that when the hardware delay factor is non-zero, the demodulation waveforms in Figure 11 will be shifted in phase with respect to the modulation waveforms in Figure 10. Although described above in connection with the variation ofthe amplitude ofthe first harmonic component ofthe demodulation signals in order to minimize the crosstalk, it should be understood that the relative ampUtude ofthe second harmonic component ofthe demodulation signals with respect to the amplitude of the fundamental component of the demodulation signals is determined by the relationship of the ampUtude of the first harmonic component of the modulation signals to the ampUtude of the fundamental component of the modulation signals. The relationship of the ampUtude of the first harmonic component ofthe modulation signals depends in part upon the duty cycles ofthe modulation signals. If the modulation duty cycles are varied, the ampUtude of the first harmonic component ofthe modulation signals changes. Thus, the crosstalk may also be minimized by holding the amplitudes of the components of the demodulation signals constant while varying the duty cycles of the modulation signals. One skilled in the art will appreciate that other variations in the modulation and demodulation signals may also be used to minimize the crosstalk between the two output signals. -29- A plurality of signals S\, S 2 , S . . . S„ can be demodulated and the crosstalk between signals reduced to a minimum by appUcation ofthe foregoing invention to more than two signals. Additional information can advantageously be derived from the digitized detection signal on the bus 314 and can be used to provide indications regarding the reUabiUty of the demodulated signals generated as described above. In particular, although the present system is capable of demodulatmg the 5, (t) signal and the S 2 (t) signal in the presence of significant ambient noise from Ught and other sources, it is possible that the level of the ambient noise is sufficiently high to affect the demodulated signals. Figures 12 and 13 illustrate a time domain method and system for deterrnining the ambient noise level, and Figures 14 and 15 illustrate a frequency domain method and system for determining the ambient noise level. As illustrated in Figure 12, the digital detection signal 152 is sampled by a sample signal represented by a waveform 500, which comprises a plurality of sampling pulses 502. The sampling pulses 502 are timed to occur during the intervals between the red pulses 134, 136 and the infrared pulses 142, 144 when no red Ught and no infrared Ught should be detected by the detector 150 (Figure 1). Thus, any energy detected during the sample intervals is primarily caused by ambient light and other noise sources. As illustrated, the sampling pulses 502 preferably occur at the approximate midpoint of each interval between the red and infrared pulses. As illustrated in Figure 13, the digital detection signal bus 314 is provided as an input to a time domain sampler 520. The time domain sampler 520 also receives the RESIDUE signal on the bus 356 as a second input The time domain sampler is responsive to the RESIDUE signal to sample the digital detection signal at times when the value ofthe RESIDUE signal corresponds to the quiescent times ofthe red pulses 134, 136 and the infrared pulses 142, 144. As described above, the red pulses 134, 136 are generated when the RESIDUE signal has values between 0 and 36, and the infrared pulses are generated when the RESIDUE signal has values between 74 and 110. Thus, assuming no hardware delay, the sampling pulses 502 are preferably generated, for example, when -30- the RESIDUE signal has a value of 55 and when the RESIDUE signal has a value of 129, which positions the sampling pulses at the approximate midpoints of the quiescent intervals between the pulses. As discussed above, the actual system has a hardware delay caused by processing times. Thus, if the system has a hardware delay factor of, for example, 39, the sampling pulses 502 are shifted in time to occur when the RESIDUE signal has a value of 94 and a value of 20 (168 modulo^). The sample times used by the time domain sampler 520 are advantageously determined by configuration signals received via the digital configuration bus 310, described above. For example, the time domain sampler 520 can be initially set to sample at RESIDUE signal values of 55 and 129, and the value of the hardware delay value factor (HWΔ) communicated by the digital configuration bus 310 is added to both values to shift the sample to the correct sample interval. As illustrated in Figure 14, a detection signal spectra 550 includes the two frequency components corresponding to the fundamental and first harmonic of the modulation signal at 316.7 Hz and 633.4 Hz, respectively. The spectra 550 further includes the fundamental and multiple harmonics of the 60 Hz power line frequency. In addition, the spectra 550 includes noise at a multitude of frequencies which may be caused by various sources. One particularly troublesome source of noise encountered in pulse oximetry systems is an electrocauterization device, which uses a high frequency electrical current to make surgical incisions and to cauterize the surrounding blood vessels at the same time. Although primarily high frequency noise sources, such devices also generate significant noise at lower frequencies because of arcing. When an electrocauterization device is operated close to a pulse oximeter detector, the noise generated by the device can overwhelm the signals generated by the pulse oximetry detector. In other words, the noise floor can be greater than the detectable signal from the pulse oximetry detector. It is desirable to detect when the noise floor is too high so that the pulse oximetry system can indicate that the demodulated signals may not be reUable. In order to determine the level of the noise floor, the present invention samples the spectra 550 to determine the content of the frequency components detected at frequencies other than the -31- fundamental and harmonic frequencies of the modulation signals. In particular, as illustrated by a sample control signal 560 in Figure 14, the portions of the spectra 550 which do not include the fundamental and harmonics of the modulation signal are sampled. Thus, in the preferred embodiment, the magnitudes of the spectra at 316.7 Hz, 633.4 Hz, 950.1 Hz, etc., are not sampled. Furthermore, because a band of frequencies around the fundamental and harmonics of the modulation signal also include significant information caused by the modulation of the red pulses and the infrared pulses by the changes in blood flow during each cardiac cycle. Thus, as iUustrated in Figure 14, in the preferred embodiment, a band of frequencies surrounding the fundamental and harmonic frequencies ofthe modulation signals (i.e., the sidebands discussed above) are not included in the samples. For example, a band of at least ±10 Hz around each of the fundamental and harmonic frequencies is not included in the samples. The intensities at the sampled frequencies are averaged, and an output signal is generated which represents the average intensity ofthe noise signals. Other portions (not shown) of the digital processing system advantageously monitor the average intensity of the noise signals, and, if the average intensity exceeds a selected threshold based upon the size of the measured plethysmograph, then the demodulated output signals from the system are considered as being unreliable and should not be used. Figure 15 illustrates a preferred embodiment of a system that determines the noise floor, as described above. The system of Figure 15 includes a Fast Fourier Transform block 600 which receives a plurality of samples from the digitized detector bus 314 and generates a transformed output on a bus 610. The transformed output on the bus 610 represents the spectra ofthe samples. In the preferred embodiment, a sufficient number of samples are taken to represent approximately 44 miUiseconds of data so that at least two cycles of the 60 Hz power are included within the samples. For example, approximately 1,024 samples can be taken during the 44-miUisecond interval at a sample rate of approximately 23.4 kHz (e.g., one-half the system timing rate). The spectra for a 44- millisecond interval are provided as inputs to a spectral sampler 620 which eliminates the samples in the ±10 Hz bands around the fundamental and harmonic frequencies of the modulation signals. The output ofthe spectral sampler 620 is provided on a bus 630 and is -32- thereby provided as an input to an averager 640. The averager 640 averages the sampled noise spectra which it receives and provides an averaged output on a bus 650. The averaged output on the bus 650 represents the noise floor and is provided to other portions ofthe digital processing system where it is compared to the selected threshold to determine whether the noise floor is excessive. The threshold is not necessarily fixed, but is dependent on the strength of the plethysmograph, which in turn depends upon the perfusion of blood in the body portion being measured. The embodiment of Figure 15 can also advantageously be used to determine whether the ambient noise is primarily at 60 Hz, corresponding to power Une frequencies in the United States and Canada, or at 50 Hz, corresponding to power Une frequencies in Europe. The foregoing modulation frequency of 316.7 Hz is selected to avoid the harmonics of the 60 Hz power Une frequency as well as the 50 Hz power Une frequency. If a significant shift in the power line frequency is detected such that aliasing of the ambient noise occurs at the frequencies of interest, then the modulation frequency can be changed to displace the modulation harmonics farther from the harmonics of the power line frequency, such as, for example, by changing the 46,875 Hz sampling frequency, or by changing the modulus. Pre-Demodulation Decimation For convenience, the previous embodiments do not show the signal MF{k) being decimated before demodulation. However, as discussed in more detail below, the signal MF(k) can advantageously be decimated prior to demodulation. The pre-demodulation decimation technique can reduce the computational burden required to perform the demodulation operations, primarily because the decimated sample rate is lower than the original (undecimated) sample rate. Computation can also be reduced because, as will be seen, the numerical sequences used in the demodulator are, in some circumstances, shorter than the sequences given in Equations 32 and 33. Pre-demodulation decimation is a generalization of the previous embodiments and reduces to the previous embodiments when the pre-demodulation decimation rate is one. Figure 16 is a pictorial representation of a system that incorporates pre- demodulation filtering and decimation. Figure 16 is similar to Figure 3, and like numbers -33- refer to like elements in the two figures. Figure 16 shows the first modulator 191 having a signal input Sι(t) and a modulation input Mχ(t). The second modulator 193 has a signal input S 2 (ή and a modulation input 2 (t). The pair of signals Sι(t) and S 2 (ή represent the effect of the time-varying volume and scattering components of the blood in a finger (or other body part) on the red Ught and the infrared light, respectively, passing through the finger. The red Ught signal portion Sχ(t) is caused by the variable attenuation of the red light passing through the finger 102 (shown in Figure 1). The infrared Ught signal portion S 2 (t) is caused by the variable attenuation of the infrared Ught passing through the finger 102. The outputs ofthe first and second ήiodulators 191, 193 are provided to the receiving photodetector 150. The photodetector 150 is modeled as an adder 194 and an adder 196. The outputs ofthe first and second modulators 191, 193 are provided to the adder 194 to generate a composite signal M(t) where: Mit) = Sχ{t)Mχ(t) + S 2 (t)M 2 (ή. (34) The output signal M{t) from the adder 194 is provided to an adder 196 where a signal n(t) is added to the signal M(ή. The signal n(t) represents a composite noise signal caused by ambient light (including DC and harmonics of the power Une frequency), electromagnetic pickup, and the like, which are also detected by the photodetector 150. In addition, the signal n(t) may also include noise- at higher frequencies caused, for example, by other devices such as electrocauterization equipment, or the like. The output of the adder 196 is a signal M{t) = M(t) + n(t) which includes noise components as well as the signal components. The Λf (t) signal output of the adder 196 (i.e., the output of the detector 150) is appUed to the input of a signal processing block 1600. Within the signal processing block 1600, the signal M(t) is first passed through the ampUfier 197 and then through the analog bandpass filter 198. The analog bandpass filter 198 provides anti-aUasing and removal of low frequency noise and DC. The filter 198 has a passband selected to pass signals in the preferred range of 20 Hz to 10,000 Hz. The analog bandpass filter 198 removes a significant portion of the noise below 20 Hz. The signal components responsive to the -34- blood oxygen saturation are frequency shifted by the operation of the two modulation signals Mχ(t) and M 2 (t) and are passed by the analog bandpass filter 198. In one embodiment the output ofthe analog bandpass filter 198 is sampled by the analog-to-digital converter 199 and converted therein to digital signals. In one embodiment, the signals are sampled at 46,875 samples per second. The digital signals from the analog-to-digital converter 199 are provided as inputs to a lowpass digital filter 1620. Output signals from the digital filter 1620 are provided to a sample rate compression block 1622 that reduces (compresses) the sample rate by a decimation rate R \ . The lowpass digital filter 1620 and sample rate compressor 1622 together comprise a decimator 1621 (decimation comprises lowpass filtering followed by sample rate compression). The digital filter 1620 provides anti-aUasing filtering and the sample rate compression block 1622 preferably operates at a sampling rate of at least twice the highest frequency of interest as determined by the digital filter 1620. In one embodiment, the sample rate compression block 1622 reduces the sample rate by a factor of R \ = 37, corresponding to the number of samples during the period τ as illustrated in Figure 10. The output of the sample rate compression block 1622 provides one sample per time period τ and thus four samples per time period T. The output of the sample rate compression block 1622 is a signal MF{k) (where k is a discrete index) which comprises approximately 1,266 samples per second. The signal MF{k) is provided as a first input to a first mixer 1624. The signal MF(k) is also provided as a first input to a second mixer 1626. A first demodulating signal Dχ(k) is provided as a second input to the first mixer 1624, and a second demodulating signal D 2 (k) is provided as a second input to the second mixer 1626. The output ofthe first mixer 1624 is provided as an input to a first lowpass filter 1630, and the output of the second mixer is provided as an input to a second lowpass filter 1640. The bandwidths of the lowpass filters 1630, 1640 are preferably approximately 10 Hz. The signal MF(k) is also provided as a first input to a noise channel mixer 1628. A noise demodulating signal Do(k) is provided as a second input to the noise channel mixer 1628. The output of the noise channel mixer 1628 is provided to an input of a low pass filter 1650. The output of -35- the low pass filter 1650 is provided to a sample rate compression block 1652. The output of the sample rate compression block 1652 is an estimate ofthe noise n(ή. The output of the lowpass filters 1630 is provided to an input of a sample rate compressor 1632 and the output ofthe lowpass filter 1640 is provided to an input of a sample rate compressor 1642. The lowpass filter 1630 and the sample rate compressor 1632 together comprise a decimator 1631. The lowpass filter 1640 and the sample rate compressor 1642 together comprise a decimator 1641, The output ofthe decimator 1631 is a signal 5, (k) , which, as discussed below, is an estimate ofthe signal Sχ(k). The output ofthe decimator 1641 is a signal S 2 (k) , which, as discussed below, is an estimate of the signal S 2 (k). As will be shown below, the selection of the first demodulating signal Dχ(k) and the second demodulating signal D 2 (k) in accordance with the present invention can reduce or eliminate the effects of noise in the two output signals 5, (k) and S 2 (k) and also reduce or eliminate crosstalk between the two signals. The decimators 1632, 1642 decimate by a decimation rate R 2 . In a preferred embodiment, the decimators 1632, 1642 decimate by a decimation rate R2 = 20 to a sample rate of, for example, 63.3 Hz to provide a decimated output which can be further processed in accordance with the methods and apparatuses described in the above- referenced patents. The decimations which occur in the decimators 1632, 1642 reduce the rate at which the output signals S (k) and S 2 (k) need to be processed while mamtaining the sample rate well above the 10 Hz frequency content of the signals of interest. The outputs of the decimators 1632, 1642 are provided on respective output lines 1634 and 1644. Decimating the signal MF(k) prior to demodulation, although not an approximation technique, can be simpUfied by assuming that each desired signal iS t) does not change appreciably during each period τ. In many applications it is reasonable to assume that the desired signals iS"ι(t) and S 2 (ή wiU not change significantly during the time interval τ shown in Figure 2. One skiUed in the art will recognize that a sufficient condition for this -36- assumption is that the highest significant frequency components in Sι(t) and S 2 (t) are much lower than the modulation frequency. In the pulse-oximetry appUcation the highest frequency of interest is typically around 10 Hz, which is far below the 316.7 Hz. fundamental of the modulation. Since «(t) is not a desired signal, no such assumption is necessary for n(t). Thus, while n(t) may vary erraticaUy over a modulation cycle, the signals .Sϊ(t) and S (t) do not Therefore, it is possible to perform pre-demodulation decimation that has little effect on S\(t) and S 2 (t) but may shape n(t) into ri(t). The measured signal is decimated by a factor Rχ = Q (where Q is the number of samples in a time period τ) and then demodulated. Assuming Rχ = Q, then the spectral domain representation of the signal MF(k) at the output ofthe sample rate compression block 1622 is given by (approximately): ** n«- fl o _ \ A s J. m →a 1 Since the sample rate compression block 1622 decimates at the same rate as the number of samples per period τ, the decimation removes any τ dependence in the expression for MF(f). The frequency components indexed by m increase four times faster than the frequency components indexed by n. This occurs because the modulated signals iSι(t) and S (ή, which are indexed by n, occur in only one fourth of the samples, but the noise n(ή, which is indexed by m, occurs in every sample. The demodulation operation can be performed either in the frequency or the time domain. A method for frequency domain demodulation of the signal MF(k) can be obtained by rewriting Equation 35 as: MF(f) =... MF. 2 (f) + MF^φ+ MF Q (f)+ MF φ+ MF 2 (f)+... (36) -37- where Λ/ 2 (/) = [S,CO + W)]/Γ MF_ x ( = [S x (S)-S t <J)VT MF 0 (fi) = [S(fi) + S 2 U-) + 4n'(fi)]/T MF x {f) = [S{f)-S 2 (fi)]IT (37) MF 2 (fi) = [S x V) + S 2 (fi)]IT MF,W)=[S x {f)-S 2 (fi)]IT MF 4 (fi) = [S x (fi) + S 2 (fi) + 4n > V)]IT Where ri(k) is the decimated noise signal nit). Estimates for the signal S \ ( fi ) can be obtained by shifting the spectra of MFι(/ ) and MF 2 (/) by AIT and -2/7, respectively, and then dividing the sum ofthe resultant by 2. Likewise, S 2 (fi) can be obtained by dividing the difference ofthe resultant spectra by 2. In other words: S x (fi)=MF x (fi-l/O + MF 2 (fi-2/T) S 2 (fi) = MF X (J -1/ T)- MF 2 ifi -21 T) Demodulation in the time domain is a more elegant method for obtaining S\(k) and S 2 (k). Time domain demodulation is obtained by using the frequency shift property ofthe Fourier transform given by: F(ω +<_,,) e ia "fi(t) (39) According to Equation 39, the frequency domain terms lFi(/) are related by a time shift in the time domain and this property can be used to generate the demodulation sequences DQ-D. A more complete development of this process (for the general case of N channels) is provided in Equations 42-50 below and in the text accompanying those equations. For the present case, where N= 2, using equations 42-50 gives: -38- D 0 (k) = 0, 1, 0, 1, ... D (k) = 1, -0.5, 0, -0.5, ... (40) D (k) = 0, -0.5, 1, -0.5, ... The sequences shown in Equation 40 are repeating sequences of the four values shown. Thus, the demodulation waveforms are no more than short repeating sequences of simple coefficients. Since the samples MF(k) are time domain sequences, demodulation simply involves multiplying the samples MF(k) by the sequences in Equation 40. For example, the sequence of coefficients Dό(k) = (0, 1, 0, 1, ...) is provided to the multipUer 1628 to demodulate the signal MF(k) and produce the estimate of n(k). Similarly, the sequence of coefficients D \ (k) = (1, -0.5, 0, -0.5, ...) is provided to the multipUer 1624 to demodulate the signal MF(k) and produce the estimate of S \ (k). Multiple Channel Modulation and Demodulation The two-channel pre-demodulation decimation technique described in the previous section can be extended to multi-channel systems having more than two desired signals. Figure 17 illustrates an expansion of the two-channel modulator into a multi-channel modulator/demodulator. Figure 17 shows the first modulator 191 and the second modulator 193 as shown in Figure 16. Further, Figure 17 shows a third modulator 1701 and an N Λ modulator 1702. The signal input Sχ(t) and a modulation input Mχ(t) are provided to the first modulator 191. The signal input S (t) and a modulation input 2 (t) are provided to the second modulator 193. A signal input 5 3 (t) and a modulation input 3 (t) are provided to the third modulator 1701. A signal input S^t) and a modulation input M f) are provided to the N* modulator 1702. The photodetector 150 is modeled as an adder 194 and an adder 196. The outputs of the modulators 191, 193, 1701, and 1703 are added together in the adder 194, to generate a composite signal (t) where: (t) = S 1 (t) 1 (t) + 5 2 (t) 2 (t) + S 3 (t) 3 (t)+...+S w (t) v (t) (41) -39- The signal (t) from the adder 194 is provided to the adder 196 where the signal M(t) is added to the signal n(t) which represents a composite noise signal caused by ambient Ught, electromagnetic pickup, and the like, which are also detected by the photodetector 150. The output of the adder 196 is the signal M(t) = M(t) + π(t), which includes the noise components as well as the signal components. The M(t) signal output of the adder 196 (i.e., the output of the detector 150) is appUed to the input of the signal-processing block 1700. Within the signal-processing block 1700, the signal M(t) is first passed through an amplifier 197 and then through the analog bandpass filter 198. The analog bandpass filter 198 provides anti-aUasing and removal of low frequency noise and DC. The desired signal components in the signals -S t) are frequency shifted by the operation of the modulation signals M,{t) and are passed by the analog bandpass filter 198. The output of the analog bandpass filter 198 is sampled by the analog-to-digital converter 199 and converted therein to digital signals and provided to an input of the lowpass digital filter 1620. Output signals from the digital filter 1620 are provided to a sample rate compression block 1622, which reduces the sample rate by a decimation factor R \ . Together, the digital filter 1620 and the sample rate compression block 1622 comprise a decimator 1621. The output of the sample rate compression block 1622 is a signal MF(k). The signal MF{k) is provided as: the first input to the first mixer 1624; the first input to the second mixer 1626; a first input to a third mixer 1710; a first input to an N th mixer 1712; and a first input to a noise channel mixer 1713. A first demodulating signal Dχ(k) is provided as a second input to the first mixer 1624. A second demodulating signal D 2 {k) is provided as a second input to the second mixer 1626. A third demodulating signal Dy(k) is provided to the third mixer 1710. A fourth demodulating signal D^k) is provided to the N Λ mixer 1712. A noise demodulating signal Do(k) is provided to the noise channel mixer 1713. The outputs ofthe mixers 1624, 1626, 1710, 1712, and 1713 are provided as respective inputs of the lowpass filters 1630, 1640, 1720, 1730, and 1740. The outputs of the lowpass filters 1630, 1640, 1720, 1730, and 1740 are provided as respective inputs of -40- the decimators 1632, 1642, 1721, 1731 and 1741. Each of the decimators 1632, 1642, 1721, 1731 and 1741 reduces the sample rate by a decimation rate R . The output of the sample rate compressor 1632 is a signal S (k) , which, as discussed below, is an estimate ofthe signal S \ (k). Likewise, the output ofthe sample rate compressor 1642 is an estimate of S (t), the output ofthe sample rate compressor 1721 is an estimate ofthe signal £ 3 (t), the output ofthe sample rate compressor 1731 is an estimate ofthe signal Sn(t), and the output ofthe sample rate compressor 1741 is an estimate ofthe signal n(t). As will be shown below, the selection of the demodulating signals D,{t) for i = 0..N in accordance with the present invention can substantiaUy reduce or eUminate the effects of noise in the output signals S t (k) and n(k), and can also substantially reduce or eliminate crosstalk between the signals. As shown in Figure 17, a set of N+l signals S,[k] i = 1..JV, and n(k) are sampled at a rate T/QN, where T is a modulation period. For simplicity, the decimation rate Rx is assumed to be the same as the factor Q. The assumption that R = Q is not a necessary assumption, but rather is used here to simpUfy the mathematics. The signals are combined according to the formula: S(k) = M,(k)S,(k)+ M 2 (k)S 2 (k)+ Ms(k)Ss(k)+ ... + M»(k)S N (k) + n(k) (42) Using the symbol * to denote the convolution operator, the terms M,{k) are given by: M x (k) = A(2Nt l T) * P (t) \ i kTIQN M 2 (k) = Δ(2M / T) * P 2 ( |,_ mβJV (43) M N (k) ^ A(2Nt / T) * P N (t) \ ι _ kτiQN where fl if \x\≤ Q5 10 otherwise -41- and P,(0=∑ *(t-nT) (45) (where δ(k) is the Krδneker delta function, which is 1 for k = 0, and 0 for all other values ofk), and Pi(t) = P\t- ( -^\ for i = 2...N (46) N After the pre-demodulation and sample rate compression stage 1622, which decimates by a factor Q, the signal in the frequency domain is given approximately by MT V ) = i∑ H -ΪJ^H'-T) " - ■ «*„(/ - (47) 2N V c ( f 2Nm where j2*kn ξ; = β N (48) The demodulator sequences are then given by: -42- _ (! - (-!)*) D 0 (k) W^.W- N (49) D 2 (k) = P 2 (k)- OoW N D N (k) = P N (k)- , ( * ) N where P,(k) = P,(t)U*. , P 2 (k) = P 2 (t)UL P»(k) = P N (t)[_ * (50) 2N IN IN The post demodulation lowpass filters 1630, 1640, 1720, 1730 and 1740, and the post demodulation sample rate compression stages 1632, 1642, 1721, 1731 and 1741 suppress high frequency artifacts which are produced by the modulation/demodulation process. Note that Equation 49 reduces to Equation 40 for N- 2. Adaptive Demodulation The multi-channel pre-demodulation decimation technique described in the previous section can be extended to an adaptive multi-channel system having an adjustable pre-demodulation decimation rate and an adjustable post-demodulation decimation rate. Figure 18 iUustrates an expansion of the multi-channel modulator into a adaptive multichannel modulator/demodulator 1800. Figure 18 shows the first modulator 191 and the N Λ modulator 1702 as shown in Figure 17. The signal input Sχ t) and a modulation input ι(t) are provided to the first modulator 191. A signal input Su(t) and a modulation input Λ/N( are provided to the N" 1 modulator 1702. -43- The photodetector 150 is modeled as an adder 194 and an adder 196. The outputs of the modulators 191, 193, 1701, and 1703 are added together in the adder 194, to generate a composite signal M(t) where: Mit) = S (OM, (t) + ... + S„ {t)M N (t) (51) The signal M(t) from the adder 194 is provided to the adder 196 where the signal M{t) is added to the signal n(t) which represents a composite noise signal caused by ambient Ught, electromagnetic pickup, and the like, which are also detected by the photodetector 150. The output of the adder 196 is the signal M{t) = M(t) + π(t), which includes noise components as well as the signal components. The M(t) signal output of the adder 196 (i.e., the output of the detector 150) is applied to the input of the signal-processing block 1800. Within the signal-processing block 1800, the signal M(t) is first passed through the amplifier 197 and then through the analog bandpass filter 198. The analog bandpass filter 198 provides anti-aUasing and removal of low frequency noise and DC. The desired signal components in the signals S,{t) are frequency shifted by the operation ofthe modulation signals M,{t) and are passed by the analog bandpass filter 198. The output of the analog bandpass filter 198 is sampled by the analog-to-digital converter 199 and converted therein to digital signals and provided to an input of a decimation block 1820. The adaptive decimation block 1820 comprises a digital lowpass filter and a sample rate compressor that reduces the sample rate by the decimation rate R \ . The filter coefficients and decimation rate R \ are provided to a control input ofthe adaptive decimation block 1820 by an output of an adaptive algorithm block 1850. Equation 35 assumes that the decimation rate Rx is equal to Q. However, in general, the value of Q may be different than the decimation rate R \ . The output ofthe adaptive decimation block 1820 is a signal MF(k). The signal MF(k) is provided to the first input of the first mixer 1624, to the first input of the N 'th mixer 1712, and to the first input of the noise channel mixer 1713. A first demodulating signal D \ (k) is provided to a second input ofthe first mixer 1624 from a -44- signal generator 1841. The fourth demodulating signal D^k) is provided to the N m mixer 1712 from an output of a signal generator 1831. The noise demodulating signal A>(/fc) is provided to the noise channel mixer 1713 from an output of a signal generator 1832. A control input to each of the signal generators 1831, 1832, and 1841 is provided by the output ofthe adaptive algorithm 1850. In yet another embodiment, the adaptive algorithm 1850 may also be controlled by other signal processing elements downstream ofthe signal processor 1800. The outputs of the mixers 1713, 1624, and 1712 are provided as respective inputs to adaptive decimation blocks 1840, 1830, and 1834 respectively. Each of the adaptive decimation blocks 1840, 1830, and 1834 has a control input provided by the output ofthe adaptive algorithm block 1850. The output of the adaptive decimation block 1840 is an estimate of the signal n{t) and it is provided to an input of the adaptive algorithm block 1850. In an alternate embodiment, the signal estimates S t (k) are also provided to the adaptive algorithm block 1850. An output of the decimator 1830 is a signal S x (k) , which, as discussed above, is an estimate of the signal S\(k). Likewise, the output of the decimation block 1834 is an estimate of the signal S^t). As shown above, the selection of the demodulating signals D,{t) for i = 0..N in accordance with the present invention substantially reduces or eliminates the effects of noise in the output signals S t (k) and n(k), and also substantially reduces or eliminates crosstalk between the signals. As shown in Figure 18, a set of N+l signals S,[k] i = 1.. V, and n(k) are sampled at a rate T/QN, where T is a modulation period, and Rx is the decimation rate of the decimation block 1820. The signals are combined according to the formula: S(k) = M,(k)S,(k) + ... +M N (k)S N (k)+n(k) (52) Each of the adaptive decimators 1820, 1840, 1830, and 1834 comprises a digital lowpass filter and a sample rate compressor. The characteristics of the digital lowpass filters (e.g., the number of filter coefficients and values of the filter coefficients) and the sample rate compression factor of each adaptive decimator is provided to a control input of -45- the adaptive decimator. The control inputs are driven by an adaptive algorithm 1850. The signal generators 1831, 1832 and 1841 generate the demodulation sequences for the demodulators 1624, 1712, and 1713 respectively. The demodulation sequences produced by the signal generators 1831, 1832 and 1841 are controlled by the adaptive algorithm 1850. The adaptive algorithm adjusts the pre-demodulation decimation rate R (in the adaptive demodulator 1820), and the post-demodulation decimation rate R 2 (in the adaptive demodulators 1830, 1834 and 1840) according to the noise in the noise estimate h(k) 1746 and (optionally) according to the signals S s (k) . The product R\R 2 is the total decimation rate from the signal S(k) at the output ofthe A/D converter 199 to the signals S;(k) at the output of the signal processing block 1800. The adaptive algorithm may adjust Rx and R 2 such that the product R\R varies, or the adaptive algorithm may adjust Rx and R such that the product R\R 2 is substantially constant. Typically, the adaptive algorithm will keep the RχR 2 product constant so that the signal processing blocks downstream of the signal processor 1800 wiU operate at a substantially constant sample rate. Typically, each ofthe signal generators 1841, 1831 and 1832 generates a repeating sequence of numbers. The number of elements in the sequence is a function of the decimation factor Rx. As discussed above in connection with Figure 3, when Rx = 1, there are preferably 148 values in each demodulation sequence. As discussed above in connection with Figure 17, when R \ = 37, there are preferably only 4 values in the demodulation sequences. The adaptive algorithm selects R\, R , and the filter transfer functions in the adaptive decimators 1820, 1830, 1834, and 1840 to improve the quaUty of the output signals S,(k) . For example, in high ambient noise environments, the higher order harmonics of the output signals are often contaminated by ambient noise (as discussed in connection with Figures 14 and 20). Thus, the higher order harmonics are preferably not demodulated when ambient noise is present. To avoid demodulation of the higher order harmonics the adaptive demodulator 1850 can set Rx = 1 and R 2 = 37, and thereby -46- demodulate according to the method described in connection with Figures 3-14. Alternatively, the adaptive demodulator 1850 can set R = 37, set R 2 = 1, and set the transfer function ofthe lowpass filter in the adaptive decimator 1820 to provide a very fast rolloff (thereby filtering out the higher order harmonics). Conversely, in low ambient noise environments, the higher order harmonics ofthe output signal are less contaminated by ambient noise, and thus the higher order harmonics may be demodulated. In one embodiment, to demodulate the higher order harmonics, the adaptive demodulator 1850 can set Rx = 37 and set R 2 = 1, to demodulate according to the method described in connection with Figure 17. This is especially advantageous when perfusion is low, because, when perfusion is low the output signals S.(k) are typicaUy very weak and are contaminated by random noise. Demodulating more ofthe higher order harmonics increases the signal-to-noise ratio because it adds the harmonics (which are correlated) to the output signals, and tends to average out the noise (which is uncorrelated). Thus, the signal strength increases, and the noise is reduced. One skilled in the art will recognize that the examples in the preceding two paragraphs are merely two points on a continuum and that the adaptive algorithm 1850 can generate many desirable solutions on the continuum. Ambient Light Rejection In the pulse oximeter, one of the major contributors to the noise signal n(t) is ambient Ught that is detected by the photodetector 150. One aspect of the present invention advantageously provides a method for choosing the modulation sampling rate^ and the factor Q so that the effects of ambient Ught can be removed by the post demodulation filtering and decimation stages. Note that Q is the number of samples during the on period (i.e., modulation signal sample turn on time Q) and is preferably also the decimation rate Rx for the pre-demodulation sample rate compressor 1622 (in general the values of Q and Rx may be different). The particular embodiment described by Equation 35 assumes that the value Q is also used as decimation rate Rx for the pre- demodulation decimator 1820. -47- In the system shown in Figures 3 and 16, which demodulates two harmonics, the period of a modulation cycle is given by: T = 4Q/fi, (53) where fi s is the sample rate. Defining the two Une equations yif a . n) = nfi a -- (54) *(/ « . n) = nfi tt T where fi a = line frequencies of concern (55) n = line frequency harmonic numbers of concern then the effects due to ambient Ught will be rriinimized when \ y{f a . n) ≥ SBF (56) \ z(f tt , n) \≥ SBF where SBF is the stop band frequency of the post demodulation and decimation stages (e.g., the 10 Hz lowpass filter 1630 and the sample rate compressor 1632, etc.). Figure 19 is a flowchart showing a method for selecting _ and Q. The method begins at a process block 1902 wherein the ambient Ught frequencies fi a and important harmonic components n are identified. Important harmonics are defined as those harmonics that wiU degrade system performance below acceptable levels when detected by the detector 150. The process then advances from the process block 1902 to a process block 1904. In the process block 1904, the values off Λ and n identified in the process block 1902 are used in conjunction with Equation 54 to identify a collection of acceptable values of T. Upon completion of the process block 1904, the process advances to a process block 1806. In the process 1906, suitable values of s and Q are chosen using the values of T obtained in the process block 1904 and the equation T = 4Qlfi s . One skilled in -48- the art wiU recognize that, since T is proportional to the ratio of Q/fi s , knowing T wiU not uniquely determine either^ or Q. For example, given power line frequencies of 50 ± 1 Hz and 60 ± 1 Hz then the range of i is given by approximately the union of the interval 49-51 Hz and the interval 59-61 Hz, which can be expressed mathematically as: f Λ ~ [49.51] [59,61] (57) Assuming that all harmonics up to the 18 th harmonic are to be suppressed, then n = 1...18. In a preferred embodiment using these values for^ and n, appUcation of the method in Figure 19 results in s = 46,875 Hz and acceptable Q values of 37 and 41. The process leading to Equation 57 is illustrated graphically by Figure 20, where the harmonics of the ambient light frequency fi Λ (in Hz) are plotted versus the plethysmograph signal frequency (also in Hz). Figure 20 has an x-axis showing the ambient light frequency from 44 Hz to 64 Hz. The ambient light frequency will usually correspond to the frequency of the power lines, which is nominally 60 Hz (in the U.S.) and 50 Hz (outside the U.S.). However, power line frequency regulation typically varies somewhat, and thus Figure 20 shows frequencies above and below the nominal frequencies. Figure 20 also shows a y-axis showing the plethysmograph signal frequency from -10 Hz to 10 Hz. One skilled in the art will recognize that negative frequencies occur in the mathematics described above. In particular, a signal that is modulated from baseband up to some carrier frequency will exhibit two sidebands, a sideband above the carrier frequency corresponding to the frequency ofthe baseband signal, and a sideband below the carrier frequency corresponding to the negative of the baseband frequency. Thus, when dealing with modulation and demodulation, it is convenient to deal with positive and negative frequencies. Figure 20 also shows harmonic lines corresponding to the 5 th , 6 th , 7 th , 10 th , 11 th , 12 th , 13 th , and 14 th harmonics of the ambient light frequency. The harmonic lines correspond to the harmonics produced in the plethysmograph signal by the demodulation -49- (mixing down) of harmonics of the power line frequency. The lines in Figure 20 are calculated using Equation 54 for l/T- 316.72 Hz. Some ofthe harmonic lines correspond to yif„n) and some correspond to z(fi a i) from Equation 54. Harmonic lines that are not shown (e.g., the line corresponding to the 8 th harmonic) faU outside the displayed limits of the x-axis and y-axis. Figure 20 can be used to determine the stop band frequencies as shown in Equation 56. For example, the harmonic lines in Figure 20 show that for an ambient Ught frequency of 49 Hz, the 13 th harmonic of the ambient Ught frequency will appear in the plethysmograph signal at approximately 3 Hz. Thus, Figure 20 shows that for plethysmograph bandwidth of 10 Hz, none of the first 14 harmonics of the ambient Ught will appear in the plethysmograph signal for ambient Ught frequencies between approximately 61.2 Hz and approximately 58.5 Hz, which is consistent with Equation 57. The first ambient harmonics that do appear for a plethysmograph bandwidth of 10 Hz are the 5 th harmonic and the 11 th harmonic. Other Embodiments In the preferred embodiment of the present invention, the hardware described above is implemented in a digital signal processor and associated circuitry. The LED modulation block 104 and the LED demodulation state table block 352 comprise algorithms implemented by program code executed by the digital signal processor. In addition, the configuration variables, such as for example, the hardware delay value, the hardware distortion value and the hardware scale value are provided as inputs to the digital signal processor when it is set up. For example, the main operating program of the digital signal processor may be stored in non-volatile ROM or PROM, and the variables may be stored in flash memory during a setup procedure. Techniques for communicating to and from a digital signal processor during such setup procedures are well known to persons of skill in the art, and will not be described in detail herein. For example, the configuration bus 310, discussed above, represents a communication path to the flash memory during such a setup procedure. The data provided to the configuration bus 310 may be provided by a system operator (not shown) or the data -50- may be provided from look-up tables (not shown) maintained for different embodiments ofthe LEDs 106, 108 and the detector 150. Although described above in connection with a pulse oximetry system wherein a parameter to be measured is the attenuation of red and infrared Ught passing through a portion of a subject's body, it should be understood that the method and apparatus described herein can also be used for other measurements where two or more signals are passed through a system to be analyzed. In particular, the present invention can be used to demodulate two combined parametric signals responsive to the system to be analyzed where the two parametric signals have a predetermined timing relationship between them, as described herein. One skiUed in the art will recognize that the lowpass filters provided in connection with the decimation blocks may provide other filter functions in addition to lowpass filtering. Thus, for example, the lowpass filters 1620, 1622, 1630, 1640, 1650, 1720, 1730, and 1740, and the decimators 1820, 1830, 1834, and 1840 may provide other filter functions (in addition to lowpass filtering) such as, for example, bandpass filtering, bandstop filtering, etc. Moreover, the post-demodulation decimation rate R 2 need not be the same for each output channel. Thus, for example, in Figure 18, the decimator 1840 may have a first decimation rate R 2 = rx while the decimators 1830 and 1834 have a second decimation rate R = r 2 . Although described above in connection with a particular embodiment of the present invention, it should be understood the description ofthe embodiment is illustrative of the invention and are not intended to be Urniting. Various modifications and appUcations may occur to those skilled in the art without departing from the true spirit and scope ofthe invention as defined in the appended claims. -51-

Claims: WHAT IS CLAIMED IS: 1. An apparatus for measuring blood oxygenation in a subject, said apparatus comprising: a first signal source which appUes a first input signal during a first time interval; a second signal source which appUes a second input signal during a second time interval; a detector which detects a first parametric signal responsive to said first input signal passing through a portion of said subject having blood therein and which detects a second parametric signal responsive to said second input signal passing through said portion of said subject, said detector generating a detector output signal responsive to said first and second parametric signals; and a signal processor which receives said detector output signal, said signal processor demodulating said detector output signal by applying a first demodulation signal to a signal responsive to said detector output signal to generate a first output signal responsive to said first parametric signal and applying a second demodulation signal to said signal responsive to said detector output signal to generate a second output signal responsive to said second parametric signal, each of said first demodulation signal and said second demodulation signal comprising at least a first component having a first frequency and a first ampUtude and a second component having a second frequency and a second ampUtude, said second frequency being a harmonic of said first frequency, said second ampUtude selected to be related to said first ampUtude to minimize crosstalk from said first parametric signal to said second output signal and to minimize crosstalk from said second parametric signal to said first output signal. 2. The method of Claim 1, wherein the second ampUtude is determined by turning off one ofthe first and second signal sources and measuring the crosstalk between one of the parametric signals and the non-corresponding output signal whUe varying the second ampUtude and selecting a second ampUtude which minimizes the measured crosstalk. -52- 3. A method of minimizing crosstalk between two signals generated by applying a first pulse and a second pulse to measure a parameter, wherein said first pulse and said second pulse are appUed periodically at a first repetition rate defining a period, and wherein said first pulse is generated during a first interval in each period and said second pulse is generated during a second interval in each period, said second interval spaced apart from said first interval, said first and second pulses producing first and second parametric signals responsive to said parameter, said first and second parametric signals being received by a single detector which outputs a composite signal responsive to said first and second parametric signals, said method comprising the steps of: applying a first demodulation signal to said composite signal to generate a first demodulated output signal, said first demodulation signal comprising at least a first component having a first frequency corresponding to said first repetition rate and having a first amplitude, said first demodulation signal further comprising a second component having a second frequency which is a harmonic of said first frequency and having a second ampUtude which has a selected proportional relationship to said first ampUtude; applying a second demodulation signal to said composite signal to generate a second demodulated output signal, said second demodulation signal comprising said first component at said first frequency and said first ampUtude and comprising said second component at said second frequency and said second amplitude, at least one of said first and second components of said second demodulation signal having a selected phase difference with respect to the corresponding one of said first and second components of said first demodulation signal; and lowpass filtering said first demodulated output signal to generate a first recovered output signal responsive to said first parametric signal; and lowpass filtering said second demodulated output signal to generate a second recovered output signal responsive to said second parametric signal. 4. The method as defined in Claim 3, wherein said selected phase difference is π. -53- 5. The method as defined in Claim 3, wherein: said first pulse and said second pulse are generaUy rectangular pulses having a duty cycle, and wherein said rectangular pulses comprise a pluraUty of sinusoidal components including a fundamental component corresponding to said first frequency and a first harmonic component corresponding to said second frequency, said fundamental component having a fundamental component ampUtude and said first harmonic component having a first harmonic component amplitude, said first harmonic component ampUtude related to said harmonic component ampUtude by a first proportionaUty value; and said second ampUtude of said second component of said first demodulation signal is related to said first ampUtude of said first component of said first demodulation signal by a second proportionaUty value which is approximately the inverse of said first proportionaUty value. 6. The method as defined in Claim 3, further including the steps of: sampling said composite signal when neither said first pulse nor said second pulse is active to obtain a sampled signal; and measuring said sampled signal to determine a noise level of said parametric signals. 7. The method as defined in Claim 3, further including the steps of: performing a transform on said composite signal to generate a spectra of said composite signal; sampling said spectra at a pluraUty of frequencies other than at predetermined ranges of frequencies around said first frequency and around harmonics of said first frequency, determining an average of the magnitudes of said sampled pluraUty of frequencies; and comparing said average to a selected threshold to determine whether the average magnitude exceeds said selected threshold. -54- 8. A method of demodulating a composite signal generated by applying first and second periodic pulses of electromagnetic energy to a system having a parameter to be measured and by receiving signals responsive to said electromagnetic energy after having passed through said system and being affected by said parameter being measured, said signals received as a composite signal having components responsive to said first and second pulses, said method comprising the steps of: applying a first demodulation signal to said composite signal to generate a first demodulated signal, said first demodulation signal comprising a first component having a first frequency corresponding to a repetition frequency of said first and second pulses and comprising a second component having a frequency which is a harmonic of said first frequency, said first component having a first ampUtude and said second component having a second ampUtude, said second amplitude having a predetermined relationship to said first ampUtude, said predetermined relationship selected to cause said first demodulated signal to have low frequency components responsive only to said first pulse; and lowpass filtering said first demodulated signal to generate a first output signal, said first output signal varying in response to an effect of said parameter on the electromagnetic energy received from said first pulse. 9. The method as defined in Claim 8, further including the steps of: applying a second demodulation signal to said composite signal to generate a second demodulated signal, said second demodulation signal having first and second components corresponding to said first and second components of said first demodulation signal, at least one of said first and second components of said second demodulation signal having a selected phase relationship with the corresponding one of said first and second components of said first demodulation signal; and lowpass filtering said second demodulated signal to generate a second output signal, said second output signal varying in response to an effect of said parameter on the electromagnetic energy received from said second pulse. -55- 10. The method as defined in Claim 9, wherein said selected phase relationship ase difference. 11. A pulse oximetry system, comprising: a modulation signal generator, said modulation signal generator generating a first modulation signal comprising a first pulse which repeats at a first repetition frequency, said first pulse having a duty cycle of less than 50%, said modulation signal generator generating a second modulation signal comprising a second pulse which also repeats at said first repetition frequency, said second pulse having a duty cycle of less than 50%, said ' second pulse occurring at non-overlapping times with respect to said first pulse, said first and second pulses comprising a pluraUty of components wherein a first component has a frequency corresponding to said repetition frequency and a second component has a second frequency corresponding to twice said first frequency, said second component having an amplitude which has a first predetermined relationship to an ampUtude of said first component; a first transmitter which emits electromagnetic energy at a first wavelength in response to said first pulse; a second transmitter which emits electromagnetic energy at a second wavelength in response to said second pulse; a detector which receives electromagnetic energy at said first and second wavelengths after passing through a portion of a subject and which generates a detector output signal responsive to the received electromagnetic energy, said detector output signal including a signal component responsive to attenuation of said electromagnetic energy at said first wavelength and a signal component responsive to attenuation of said electromagnetic energy at said second wavelength; a first demodulator which multipUes said detector signal by a first demodulation signal and generates a first demodulated output signal said first demodulation signal comprising a first component having said first frequency and -56- having a first ampUtude and comprising a second component having said second frequency and having a second ampUtude, said second ampUtude having a second predetermined relationship to said first ampUtude which second predetermined relationship is inversely proportional to said first predetermined relationship; and a second demodulator which multipUes said detector signal by a second demodulation signal and generates a second demodulated output signal, said second demodulation signal comprising a first component having said first frequency and having said first ampUtude and comprising a second component having said second frequency and having said second ampUtude, at least one component of said second demodulation signal having a selected phase relationship with a corresponding one component of said first demodulation signal 12. The method as defined in Claim 11, wherein said selected phase relationship is a π phase difference. 13. A method of minimizing crosstalk between two signals generated by applying a first pulse and a second pulse to measure a parameter, wherein said first pulse and said second pulse are appUed periodically at a first repetition rate defining a period, and wherein said first pulse is generated during a first interval in each period and said second pulse is generated during a second interval in each period, said second interval spaced apart from said first interval, said first and second pulses producing first and second parametric signals responsive to said parameter, said first and second parametric signals being received by a single detector which outputs a composite signal responsive to said first and second parametric signals, said method comprising the steps of: providing said composite signal to an analog to digital converter to produce a sequence of digital values; decimating said sequence of digital values to produce a decimated sequence of digital values; applying a first sequence of demodulation coefficients to said decimated sequence of digital values to generate a first demodulated output signal; -57- applying a second sequence of demodulation coefficients to said decimated sequence of digital values to generate a second demodulated output signal; lowpass filtering said first demodulated output signal to generate a first recovered output signal responsive to said first parametric signal; and lowpass filtering said second demodulated output signal to generate a second recovered output signal responsive to said second parametric signal. 14. The method as defined in Claim 13, further comprising the steps of: applying a third sequence of demodulation coefficients to said decimated sequence of digital values to generate a third demodulated output signal; and lowpass filtering said third demodulated output signal to generate a recovered output signal responsive to noise detected by said detector. 15. A method of demodulating a composite signal generated by applying a pluraUty of periodic pulse trains of electromagnetic energy to a system having a parameter to be measured and by receiving signals responsive to said electromagnetic energy after having passed through said system and being affected by said parameter being measured, said signals received as a composite signal having components responsive to said pluraUty of periodic pulse trains, each of said components corresponding to one each of said pulse trains, said method comprising the steps of: sampling said composite signal using an analog to digital converter to produce a sequence of digital values; decimating said sequence of digital values to produce a decimated sequence of values; providing said decimated sequence of values to a first input of each of pluraUty of multipUers; providing a plurality of sequences of demodulation coefficients to a second input of each of said multipliers such that each multiplier is provided a unique sequence of demodulation coefficients; and lowpass filtering the output of each of said multipUers such that the output signal of each of said lowpass filters approximately corresponds to one each of said components. -58- 1 16. A pulse oximetry system, comprising: 2 a modulation signal generator, said modulation signal generator generating 3 a first modulation signal comprising a first pulse which repeats at a first repetition 4 frequency, said first pulse having a duty cycle of less than 50%, said modulation 5 signal generator generating a second modulation signal comprising a second pulse 6 which also repeats at said first repetition frequency, said second pulse having said 7 duty cycle of less than 50%, said second pulse occurring at non-overlapping times 8 with respect to said first pulse; 9 a first transmitter which emits electromagnetic energy at a first wavelength I o in response to said first pulse; II a second transmitter which emits electromagnetic energy at a second 12 wavelength in response to said second pulse; 13 a detector which receives electromagnetic energy at said first and second 14 wavelengths after passing through a portion of a subject and which generates a 15 detector output signal responsive to the received electromagnetic energy, said 16 detector output signal including a signal component responsive to attenuation of 17 said electromagnetic energy at said first wavelength and a signal component 18 responsive to attenuation of said electromagnetic energy at said second 19 wavelength; 20 a sampling analog to digital converter which converts said detector output 21 into a sequence of digital values; 22 a decimator which decimates said sequence of digital values to produce a 23 decimated sequence; 24 a first demodulator which multipUes said decimated sequence by a 25 demodulation sequence and generates a first demodulated output signal; and 26 a second demodulator which multipUes said decimated sequence by a 27 second demodulation sequence and generates a second demodulated output signal. 1 17. The apparatus of claim 16 further comprising a third demodulator which 2 multiplies said decimated sequence by a third demodulation sequence and generates a 3 third demodulated output signal corresponding to noise produced by said detector. -59- 18. The apparatus of claim 16 wherein said decimator has a decimation rate equal to the number of said samples produced during said duty cycle. 19. In a system that includes: a sampling frequency generator generating a sampling frequency^; a detector; a modulation signal generator, said modulation signal generator generating a sequence of pulses having a pulse repetition frequency, said pulses having a duty cycle of Q sample periods of said sampling frequency /j; a transmitter which emits electromagnetic energy at a wavelength in response to said pulse, said detector receiving said electromagnetic energy to generate a detector output signal responsive to the received electromagnetic energy, said detector output signal including noise caused by ambient electromagnetic energy detected by said detector, a digital to analog converter which produces digital samples of said detector output signal at said sampling frequency; and a demodulator which demodulates said digital samples to produce a desired output signal, a method for rninimizing said noise due to ambient electromagnetic energy in said desired output signal comprising the steps of: identifying all undesired frequency components of said ambient electromagnetic energy detected by said detector, using said undesired frequency components to compute a set of acceptable modulation cycle times T; and using said acceptable modulation cycle times to select said^ and said Q using an equation T=4Qlfi s . 20. A method for demodulating a multi-channel composite signal comprising the acts of: generating a demodulation sequence for a selected channel; providing said demodulation sequence to a first input of a demodulator, providing a sampled composite signal to a second input of said demodulator. 21. The method of Claim 20, further comprising the act of decimating an output of said demodulator by a decimation factor R. 22. The method of Claim 21, wherein said act of decimating includes the acts of: -60- lowpass filtering; and sample rate compressing. 23. The method of Claim 20, further comprising the act of decimating said sampled composite signal before providing said sampled composite signal to said second input of said demodulator. 24. The method of Claim 23, wherein said act of decimating includes the acts of lowpass filtering and sample rate compressing. 25. The method of Claim 24, wherein said acts of lowpass filtering and sample rate compressing are controlled by an adaptive algorithm. 26. The method of Claim 20, further comprising the acts of : decimating in a first decimator said sampled composite signal before providing said sampled composite signal to said second input of said demodulator, wherein said first decimator has a first lowpass filter transfer function and a first decimation rate; and decimating in a second decimator an output of said demodulator, wherein said second decimator has a second lowpass filter transfer function and a second decimation rate. 27. The method of Claim 26, further comprising the act of controlling said first lowpass filter, said second lowpass filter, said first decimation rate, and said second decimation rate by an adaptive algorithm. 28. The method of Qaim 26, wherein a product of said first decimation rate and said second decimation rate is substantially constant -61-

Inventors: AL-ALI AMMAR, DIAB MOHAMED K, WEBER WALTER M, AL-ALI, AMMAR, DIAB, MOHAMED, K., WEBER, WALTER, M.
Applicants: MASIMO CORP, MASIMO CORPORATION
Application year: 1999
Main classification: A61B5
IPC codes: A61B5