Optical transmitter and method thereof

09853735 · 2017-12-26

Assignee

Inventors

Cpc classification

International classification

Abstract

An apparatus includes: a laser driver configured to output a laser diode current in accordance with a transmit data, a bias control code, and a modulation control code, a laser diode configured to receive the laser diode current and output a light signal, a photodiode configured to receive the light signal and output a photodiode current, a reference driver configured to output a reference current in accordance with the transmit data, the transmit enable signal, a reference bias code, and a reference modulation code, a two-fold comparison circuit configured to compare the photodiode current and the reference current and output a first decision and a second decision, and a DSP configured to adjust the bias control code and the modulation control code in accordance with the first decision and a second decision. A method provides reliable light output using the described apparatus.

Claims

1. An apparatus comprising: a laser driver configured to output a laser diode current in accordance with a transmit data, a bias control code, and a modulation control code; a laser diode configured to receive the laser diode current and output a light signal; a monitoring photodiode configured to receive the light signal and output a monitoring photodiode current; a reference driver configured to output a reference current in accordance with the transmit data, a reference bias code, and a reference modulation code; a two-fold comparison circuit configured to receive the monitoring photodiode current and the reference current and output a first decision and a second decision; and a digital signal processor configured to receive the first decision and the second decision and output the bias control code, the modulation control code, the reference bias code, and the reference modulation code in accordance with a first target level and a second target level, wherein: the first decision is a result of comparison between a mean level of the monitoring photodiode current and a mean level of the reference current, and the second decision is a result of comparison between a mean amplitude of the monitoring photodiode current and a mean amplitude of the reference current.

2. The apparatus of claim 1, wherein the two-fold comparison circuit comprises a mean level comparison circuit configured to establish the first decision by comparing the mean level of the monitoring photodiode current and the mean level of the reference current, and a mean amplitude comparison circuit configured to establish the second decision by comparing the mean amplitude of the monitoring photodiode current with the mean amplitude of the reference current.

3. The apparatus of claim 1, wherein the two-fold comparison circuit comprises a trans-impedance amplifier, a low-pass filter, and a rectifier.

4. The apparatus of claim 1, wherein the mean level of the monitoring photodiode current is detected by using a trans-impedance amplifier followed by a low-pass filter.

5. The apparatus of claim 1, wherein the mean level of the reference current is detected by using a trans-impedance amplifier followed by a low-pass filter.

6. The apparatus of claim 1, wherein the mean amplitude of the monitoring photodiode current is detected by using a rectifier rectifying a monitoring photodiode voltage converted from the monitoring photodiode current using a trans-impedance amplifier.

7. The apparatus of claim 1, wherein the mean amplitude of the reference current is detected by using a rectifier rectifying a reference voltage converted from the reference current using a trans-impedance amplifier.

8. The apparatus of claim 1, wherein the reference bias code and the reference modulation code are established based on the first target level, the second target level, and an optical-to-electrical transfer characteristic of the monitoring photodiode.

9. A method comprising: specifying a first target level and a second target level of light intensity for an optical transmitter; finding a reference bias current and a reference modulation current based on the first target level and the second target level in accordance with an optical-to-electrical transfer characteristic; emitting a light signal by modulating a laser diode current in accordance with a transmit data, a bias control code, and a modulation control code; receiving a monitoring photodiode current excited by the light signal; establishing a reference current in accordance with the transmit data, the reference bias current, and the reference modulation current; comparing a mean level of the monitoring photodiode current with a mean level of the reference current to determine a first decision; comparing a mean amplitude of the monitoring photodiode current with a mean amplitude of the reference current to determine a second decision; and adjusting the bias control code and the modulation control code in accordance with the first decision and the second decision; providing an adjusted light output by the optical transmitter using the adjusted bias control code.

10. The method of claim 9, wherein the mean level of the monitoring photodiode current is detected by using a trans-impedance amplifier followed by a low-pass filter.

11. The method of claim 9, wherein the mean level of the reference current is detected by using a trans-impedance amplifier followed by a low-pass filter.

12. The method of claim 9, wherein the mean amplitude of the monitoring photodiode current is detected by using a rectifier rectifying a monitoring photodiode voltage converted from the monitoring photodiode current using a trans-impedance amplifier.

13. The method of claim 9, wherein the mean amplitude of the reference current is detected by using a rectifier rectifying a reference voltage converted from the reference current using a trans-impedance amplifier.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1A shows a functional block diagram of a burst-mode laser transmitter.

(2) FIG. 1B shows an exemplary timing diagram of the burst-mode laser transmitter of FIG. 1A.

(3) FIG. 2 shows a functional block diagram of a burst mode optical transmitter in accordance with an exemplary embodiment.

(4) FIG. 3 shows a schematic diagram of a laser driver

(5) FIG. 4A shows an exemplary electrical-to-optical transfer characteristic of a monitoring photodiode according to an embodiment; FIG. 4B shows an exemplary optical-to-electrical transfer characteristic of a laser diode according to an embodiment.

(6) FIG. 5 shows a schematic diagram of a low-pass filter.

(7) FIG. 6A shows a schematic diagram of a rectifier.

(8) FIG. 6B shows a transfer characteristic of the rectifier of FIG. 6A.

(9) FIG. 7 shows a flow diagram of a method in accordance with an exemplary embodiment.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

(10) The present disclosure relates to an optical transmitter. While the specification describes several example embodiments of the invention considered favorable modes of practicing the invention, it should be understood that the invention can be implemented in many ways and is not limited to the particular examples described below or to the particular manner in which any features of such examples are implemented. In other instances, well-known details are not shown or described to avoid obscuring aspects of exemplary embodiments.

(11) A functional block diagram of a burst-mode optical transmitter 200 in accordance with an embodiment is depicted in FIG. 2. The burst-mode optical transmitter 200 includes: a laser driver 220 configured to output a laser diode current I.sub.LD to a laser diode 211 in accordance with a transmit data TXD, a transmit enable signal TEN, a bias control code C.sub.BIAS, and a modulation control code C.sub.MOD; a monitoring photo diode (hereafter MPD) 212 configured to receive a light signal 210 emitted by the laser diode 211 and output a MPD current I.sub.MPD; a reference driver (denoted as REF driver in FIG. 2) 225 configured to output a reference current I.sub.REF in accordance with the transmit data TXD, the transmit enable signal TEN, a reference bias code C′.sub.BIAS, and a reference modulation code C′.sub.MOD; a two-fold comparison circuit 230 including a mean level comparison circuit 231 configured to compare a mean level of the MPD current I.sub.MPD with a mean level of the reference current I.sub.REF and output a first decision D.sub.1 and a mean amplitude comparison circuit 232 configured to compare a mean amplitude of the MPD current I.sub.MPD with a mean amplitude of the reference current I.sub.REF and output a second decision D.sub.2; and a DSP (digital-signal processor) 240 configured to receive the first decision D.sub.1 and the second decision D.sub.2 and output the bias control code C.sub.BIAS, the modulation control code C.sub.MOD, the reference bias code C′.sub.BIAS, the reference modulation code C′.sub.MOD, in accordance with the transmit enable signal TEN, a first target level P.sub.0, and a second target level P.sub.1.

(12) When the transmit enable signal TEN is de-asserted, the laser driver 220 is disabled, and the laser diode current I.sub.LD is nil. When the transmit enable signal TEN is asserted, the laser driver 220 is enabled and modulates the laser diode current I.sub.LD in accordance with the transmit data TXD. Mathematically, the laser driver 220 embodies the following function:

(13) I LD = { 0 if TEN = 0 I BIAS if TEN = 1 and TXD = 0 I BIAS + I MOD if TEN = 1 and TXD = 1 ( 1 )

(14) Here, I.sub.BIAS is a bias current controlled by the bias control code C.sub.BIAS, and I.sub.MOD is a modulation current controlled by the modulation control code C.sub.MOD.

(15) An embodiment 300 suitable for embodying the laser driver 220 is depicted in FIG. 3. Embodiment 300 includes: a first current-mode DAC (digital-analog converter) 310 configured to output the bias current I.sub.BIAS in accordance with the bias control code C.sub.BIAS, a second current-mode DAC 320 configured to output the modulation current I.sub.MOD in accordance with the modulation control code C.sub.MOD, a first differential pair including two NMOS (N-channel metal-oxide semiconductor) transistors 303˜304 configured to receive the bias current I.sub.BIAS and output a first current I.sub.D1 and a second current I.sub.D2 in accordance with a value of the transmit enable signal TEN and its logical inversion TENB (see the inverter 333); and a second differential pair including another two NMOS transistors 301˜302 configured to receive the modulation current I.sub.MOD and output a third current I.sub.D3 and a fourth current I.sub.D4 in accordance with a value of a logical signal TXDE and its logical inversion TXDEB (see inverter 332), where TXDE results from a logical AND operation on the transmit data TXD and the transmit enable signal TEN (see the AND gate 331). The first current I.sub.D1 is summed with the third current I.sub.D3 at node 309, resulting in the laser diode current I.sub.LD that is coupled to the laser diode (see 211 of FIG. 2). An optional inductor 307 is inserted in the path of the first current I.sub.D1 before I.sub.D1 is summed with I.sub.D3 to alleviate a high frequency coupling between the first differential pair 303˜304 and the second differentia pair 301˜302. When TEN is asserted and TXD is 0, the bias current I.sub.BIAS is steered to the laser diode and the laser diode current I.sub.LD is substantially equal to I.sub.BIAS, when TEN is asserted and TXD is 1, both the bias current I.sub.BIAS and the modulation current I.sub.MOD are steered to the laser diode and the laser diode current I.sub.LD is substantially equal to I.sub.BIAS+I.sub.MOD When TEN is de-asserted, neither the bias current I.sub.BIAS nor the modulation current I.sub.MOD is steered to the laser diode and the laser diode current I.sub.LD will be substantially zero. The second current I.sub.D2 is terminated with a first pull-up resistor 306, while the fourth current I.sub.D4 is terminated with a second pull-up resistor 305. The NMOS transistor 304 and the first pull-up resistor 306 are optional but helpful because they allow the first current-mode DAC 310 to be properly terminated when the bias current I.sub.BIAS is not steered to the laser diode. Likewise, the NMOS transistor 302 and the second pull-up resistor 305 are optional but helpful because they allow the second current-mode DAC 320 to be properly terminated when the modulation current I.sub.MOD is not steered to the laser diode. Current-mode DAC 310 (320) can be implemented by using a summing of outputs from a plurality of current sources, each enabled by a respective bit of the bias (modulation) control code C.sub.BIAS (C.sub.MOD). Current-mode DAC is well known to those of ordinary skill in the art and thus not described in detail here. It is clear that the embodiment 300 embodies the function described by equation (1).

(16) The intensity of the light signal 210 emitted by the laser diode 211 is determined by the laser diode current I.sub.LD via an electrical-to-optical transfer characteristic of the laser diode 211. On the other hand, the MPD current I.sub.MPD is determined by the intensity of the light signal 210 via an optical-to-electrical transfer characteristic of the MPD 212. An exemplary electrical-to-optical transfer characteristic of the laser diode 211 is shown in FIG. 4B, while an exemplary optical-to-electrical transfer characteristic of the MPD 212 are shown in FIG. 4A. As shown, the light intensity increases approximately linearly with the level of the laser diode current I.sub.LD once the laser diode current I.sub.LD is above a threshold level I.sub.th. On the other hand, the MPD current I.sub.MPD increases approximately linearly with the light intensity. An important objective of the optical transmitter 200 is to modulate the light signal 210 such that once the transmit enable signal TEN is asserted, the light signal 210 is of the first target level P.sub.0 when the transmit data TXD is 0, and of the second target level P.sub.1 when the transmit data TXD is 1. Correspondingly, the MPD current I.sub.MPD should be of a first reference level denoted as I′.sub.BIAS when the transmit data TXD is 0 and of a second reference level denoted as I′.sub.1BIAS+I′.sub.MOD when the transmit data TXD is 1, wherein I′.sub.BIAS is a reference bias current and I′.sub.MOD is a reference modulation current and both I′.sub.BIAS and I′.sub.MOD are determined by P.sub.0 and P.sub.1 via the optical-to-electrical transfer characteristic of the MPD 212, as shown in FIG. 4A.

(17) In practice, the electrical-to-optical transfer characteristic of the laser diode 211 vary from component to component and are also highly temperature dependent, and can be considered unknown and uncertain. The optical-to-electrical characteristic of the MPD 212, on the other hand, are highly consistent from component to component and also insensitive to temperature, and can be considered pre-known and certain. Despite the uncertainty of the electrical-to-optical transfer characteristic of the laser diode 220, the bias control code C.sub.BIAS and the modulation control code C.sub.MOD should be established such that the MPD current I.sub.MPD is approximately equal to I′.sub.BIAS when TXD is 0 and approximately equal to I′.sub.1BIAS+I′.sub.MOD when TXD is 1. The reference current I.sub.REF output from the REF driver 225 is used as a measuring stick for I.sub.MPD. When the transmit enable signal TEN is de-asserted, the REF driver 225 is disabled, and the reference current I.sub.REF is nil. When the transmit enable signal TEN is asserted, the REF driver 225 is enabled and modulates the reference current I.sub.REF such that I.sub.REF is equal to I.sub.BIAS when TXD is 0 and equal to I′.sub.BIAS+I′.sub.MOD when TXD is 1. Note that I′.sub.BIAS and I′.sub.MOD are pre-known and certain once P.sub.0 and P.sub.1 are specified since the optical-to-electrical transfer characteristic of the MPD 212 are pre-known and certain. Mathematically, the REF driver 225 embodies the following function:

(18) I REF = { 0 if TEN = 0 I BIAS if TEN = 1 and TXD = 0 I BIAS + I MOD if TEN = 1 and TXD = 1 ( 2 )

(19) Ideally, the MPD current I.sub.MPD matches the reference current I.sub.REF. When that happens, it indicates that the intensity of the light signal 210 is modulated to either P.sub.0 or P.sub.1 depending on the transmit data TXD, as expected. If the MPD current I.sub.MPD does not match the reference current I.sub.REF, the bias control code C.sub.BIAS and the modulation control code C.sub.MOD should be adjusted. However, both I.sub.MPD and I.sub.REF are usually high frequency signals that are difficult to compare accurately directly. In particular, the MPD current I.sub.MPD may exhibit a ringing behavior as mentioned earlier and thus difficult to detect accurately directly. Instead, a mean level and a mean amplitude are compared. When I.sub.MPD and I.sub.REF have the mean level, and also have the same mean amplitude, it indicates that the intensity of the light signal 210 is modulated to either P.sub.0 or P.sub.1 depending on the transmit data TXD, as expected.

(20) The REF driver 225 is used to embody the function described in equation (2), while the laser driver 220 is used to embody the function described in equation (1). Note that equation (1) and equation (2) are the same, except that the roles of I.sub.LD, I.sub.BIAS, are I.sub.MOD in equation (1) are replaced by the roles of I.sub.REF, I′.sub.BIAS, are I′.sub.MOD, respectively. However, I.sub.LD is flowing into laser driver 220, while I.sub.REF is flowing out of REF driver 225. Therefore, a “flipped” revision of embodiment 300 of FIG. 3 can be used to embody the REF driver 225. It can be simply done by replacing C.sub.BIAS, C.sub.MOD, I.sub.BIAS, I.sub.MOD, and I.sub.LD with C′.sub.BIAS, C′.sub.MOD, I.sub.BIAS, I.sub.MOD, and I.sub.REF, respectively, but every NMOS transistor must be replaced with a PMOS transistor, and the roles of V.sub.DD and ground must be swapped. It is well known in prior art that a “flipped” version (wherein PMOS transistor and NMOS transistor are swapped, and also power and ground are swapped) of a circuit has the same function except the direction of the current flow is reversed.

(21) The mean level comparison circuit 231 compares a mean value of I.sub.MPD with a mean value of I.sub.REF, while the mean amplitude comparison circuit 232 compares a mean amplitude of I.sub.MPD with a mean amplitude of I.sub.REF. In an embodiment, the two currents I.sub.MPD and I.sub.REF are converted to a MPD voltage V.sub.MPD and a reference voltage V.sub.REF, respectively, using a current-to-voltage conversion circuit in accordance with the following two equations:
V.sub.MPD=R.sub.TIA.Math.I.sub.MPD  (3)
V.sub.REF=R.sub.TIA.Math.I.sub.REF.  (4)

(22) Here, R.sub.TIA is a conversion gain of the current-to-voltage conversion circuit. The current-to-voltage conversion circuit can be embodied using a TIA (trans-impedance amplifier), which is well known in the prior art and thus not described in detail here.

(23) Based on the two voltages V.sub.MPD and V.sub.REF, the mean level comparison circuit 231 performs the following function:

(24) D 1 = { undefined if TEN = 0 1 if TEN = 1 and .Math. V MPD .Math. > .Math. V REF .Math. 0 if TEN = 1 and .Math. V MPD .Math. < .Math. V REF .Math. ( 5 )

(25) Here, custom character.Math.custom character denotes an averaging operation. On the other hand, the mean amplitude comparison circuit 232 performs the following function:

(26) D 2 = { undefined if TEN = 0 1 if TEN = 1 and .Math. .Math. V MPD - .Math. V MPD .Math. .Math. .Math. > .Math. .Math. V REF - .Math. V REF .Math. .Math. .Math. 0 if TEN = 1 and .Math. .Math. V MPD - .Math. V MPD .Math. .Math. .Math. < .Math. .Math. V REF - .Math. V REF .Math. .Math. .Math. ( 6 )

(27) Here, |.Math.| denotes taking an absolute value. Note that custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character is a mean amplitude of V.sub.MPD, while custom character| V.sub.REF−custom characterV.sub.REFcustom character|custom character is a mean amplitude of V.sub.REF.

(28) In an embodiment depicted in FIG. 5, a low-pass filter 500 is used for performing the averaging operation needed in equation (5) to obtain custom characterV.sub.MPDcustom character and custom characterV.sub.REFcustom character. Low-pass filter 500 receives an input voltage V.sub.X and outputs an average voltage custom characterV.sub.Xcustom character. Low-pass filter 500 includes a series resistor 501 and a shunt capacitor 502. Low-pass filter 500 is a circuit that is well known to those of ordinary skill in the art and thus not explained in detail here. Low-pass filter 500 can be used to obtain custom characterV.sub.MPDcustom character, simply by replacing V.sub.X with V.sub.MPD. Likewise, low-pass filter 500 can be used to obtain custom characterV.sub.REFcustom character, simply by replacing V.sub.X with V.sub.REF. Once custom characterV.sub.MPDcustom character and custom characterV.sub.REFcustom character are obtained, they can be compared using a comparator, resulting in the first decision D.sub.1. Comparator is well known in the art and thus not described in detail here.

(29) In an embodiment depicted in FIG. 6A, a rectifier 600 is used for performing the operations needed to obtain custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character and custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character. Rectifier 600 includes a current source 601, eight NMOS transistors 611˜618, two resistors 621 and 622, and one capacitor 631. Rectifier 600 receives an input voltage V.sub.X along with its average custom characterV.sub.Xcustom character and output an average amplitude V.sub.R. FIG. 6B depicts a transfer characteristic of rectifier 600, wherein V.sub.R is an even function of V.sub.X−custom characterV.sub.Xcustom character and approximately proportional to |V.sub.X−custom characterV.sub.Xcustom character|, thus fulfilling a rectification function. Rectifier 600 is taught by Lin in U.S. Pat. No. 8,854,028, incorporated by reference, and not described in detail here. Capacitor 631 effectively performs an averaging function on V.sub.R. When V.sub.X and custom characterV.sub.Xcustom character are replaced with V.sub.MPD and custom characterV.sub.MPDcustom character, respectively, V.sub.R can be used as an estimate of custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character. Likewise, when V.sub.X and custom characterV.sub.Xcustom characterare replaced with V.sub.REF and custom characterV.sub.REFcustom character, respectively, V.sub.R can be used as an estimate of custom characterV.sub.REF−custom characterV.sub.REFcustom character|custom character. Once the estimates of custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom characterand custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom characterare available, they can be compared using a comparator, resulting in the second decision D.sub.2.

(30) In rectifier 600, V.sub.R is merely an estimate of custom character|V.sub.X−custom characterV.sub.Xcustom character|custom character that may not be accurate. In fact, the estimate is subject to an error. However, the error is systematic and common to both the estimate of custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character and the estimate of custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character. In other words, the errors in the estimates of custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character and custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character using rectifier 600 are common and will cancel one another when they are compared. As a result, the second decision D.sub.2 is still reliable and accurately indicative of whether custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character is greater than custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character, even though custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character and custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character themselves are not estimated accurately.

(31) Given the two target levels P.sub.0 and P.sub.1, the DSP 240 finds the corresponding values of the reference bias current I′.sub.BIAS and reference modulation current I′.sub.MOD based on the optical-to-electrical transfer characteristic of the MPD 212, and thus determines the reference bias code C′.sub.BIAS and the reference modulation code C′.sub.MOD accordingly. DSP 240 then adjusts the bias code C.sub.BIAS and the modulation code C.sub.MOD in a closed-loop manner in accordance with the first decision D.sub.1 and the second decision D.sub.2. In an embodiment, the DSP 240 adjusts the bias code C.sub.BIAS and the modulation code C.sub.MOD in accordance with the following truth table:

(32) TABLE-US-00001 D.sub.1 = 0 D.sub.1 = 1 D.sub.2 = 0 Increment C.sub.MOD Decrement C.sub.BIAS and increment C.sub.MOD D.sub.2 = 1 Increment C.sub.BIAS and Decrement C.sub.MOD decrement C.sub.MOD

(33) When D.sub.1 and D.sub.2 are both 0, indicating both the mean level and the mean amplitude of I.sub.MPD are too low, the DSP 240 will increment C.sub.MOD to raise both the mean level and the mean amplitude of I.sub.LD, thus raising both the mean level and the mean amplitude of I.sub.MPD. When D.sub.1 is 0 and D.sub.2 is 1, indicating the mean level of I.sub.MPD is too low but the mean amplitude is too high, the DSP 240 will increment C.sub.BIAS to raise the mean level of I.sub.LD and decrement C.sub.MOD to lower the mean amplitude of I.sub.LD, thus raising the mean level of I.sub.MPD but lowering the mean amplitude of I.sub.MPD. When D.sub.1 is 1 and D.sub.2 is 0, indicating the mean level of I.sub.MPD is too high but the mean amplitude is too low, the DSP 240 will decrement C.sub.BIAS to lower the mean level of I.sub.LD and increment I.sub.MOD to raise the mean amplitude of I.sub.LD, thus lowering the mean level of N.sub.MPD but raising the mean amplitude of N.sub.PD. When D.sub.1 and D.sub.2 are both 1, indicating both the mean level and the mean amplitude of I.sub.MPD are too high, the DSP 240 will decrement C.sub.MOD to lower both the mean level and the mean amplitude of I.sub.LD, thus lowering both the mean level and the mean amplitude of I.sub.MPD.

(34) As mentioned earlier, to embody the functions of the mean level comparison circuit 231 and the mean amplitude comparison circuit 232, circuits such as TIA (for current-to-voltage conversion), low-pass filter (for averaging), and rectifier (for estimating amplitude) are needed for both the MPD current I.sub.MPD and the reference current I.sub.REF in order to find their respective mean level and mean amplitude so that comparisons could be made to determine the first decision D.sub.1 and the second decision D.sub.2. In one embodiment, two sets of circuits are used, each including a TIA, a low-pass filter, and a rectifier, wherein one of the two sets is used to find a mean level and a mean amplitude of N.sub.PD, while the other is used to find a mean level and a mean amplitude of I.sub.REF. The mean level of I.sub.MPD is directly compared with the mean level of I.sub.REF to determine D.sub.1, while the mean amplitude of I.sub.MPD is directly compared with the mean amplitude of I.sub.REF to determine D.sub.2. A drawback of this embodiment is that: there may exist some mismatches between the two sets of circuits that may lead to errors. To eliminate the errors due to the mismatches, calibration is needed. In an alternative embodiment, only one set of circuits is used, which takes turns detecting I.sub.MPD and I.sub.REF. In this alternative embodiment, an analog-to-digital conversion using an analog-to-digital converter (ADC) is needed. When processing N.sub.PD, the mean level custom characterI.sub.MPDcustom character is detected and converted to a first digital word L.sub.MPD, and the mean amplitude custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character is detected and converted to a second digital word A.sub.MPD. When processing I.sub.REF, the mean level custom characterI.sub.REFcustom character is detected and converted to a third digital word L.sub.REF, and the mean amplitude custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character is detected and converted to a fourth digital word A.sub.REF. The mean level comparison circuit 231 then compares L.sub.MPD with L.sub.REF, which is equivalent to comparing custom characterI.sub.MPDcustom character with custom characterI.sub.REFcustom character, to determine D.sub.1. Likewise, the mean amplitude comparison circuit 232 compares A.sub.MPD with A.sub.REF, which is equivalent to comparing custom character|V.sub.MPD−custom characterV.sub.MPDcustom character|custom character with custom character|V.sub.REF−custom characterV.sub.REFcustom character|custom character, to determine D.sub.2.

(35) Although a burst-mode optical transmitter is used here as example, according to an exemplary embodiment it can also be used in a continuous mode optical transmitter, wherein the transmit enable signal TEN needs to be asserted all the time; in this case, TEN is stationary and no longer a meaningful variable signal, and thus can be removed from FIG. 2. Also note that, in the burst mode optical transmitter 200, I.sub.MPD and I.sub.REF are meaningful only when TEN is asserted. Consequently, D.sub.1 and D.sub.2 are meaningful only when TEN is asserted. The DSP 240 should disregard D.sub.1 and D.sub.2 when TEN is de-asserted and should not adapt C.sub.BIAS and C.sub.MOD based on the values of D.sub.1 and D.sub.2 when they are meaningless.

(36) In an embodiment illustrated by a flow diagram shown in FIG. 7, a method includes: step 701 of “Specifying a first target level and a second target level of light intensity”; step 702 of “Finding a reference bias current and a reference modulation current based on the first target level and the second target level in accordance with an optical-to-electrical transfer characteristic”; step 703 of “Emitting a light signal by modulating a laser diode current in accordance with a transmit data, a transmit enable signal, a bias control code, and a modulation control code”; step 704 of “Receiving a monitoring photodiode current excited by the light signal”; step 705 of “Establishing a reference current in accordance with the transmit data, the reference bias current, and the reference modulation current”; step 706 of “Comparing a mean level of the monitoring photodiode current with a mean level of the reference current to determine a first decision”; step 707 of “Comparing a mean amplitude of the monitoring photodiode current with a mean amplitude of the reference current to determine a second decision”; and step 708 of “Adjusting the bias control code and the modulation control code in accordance with the first decision and the second decision.” These steps are provided to establish reliable light detection and/or output levels of an optical transmitter.

(37) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the inventive concept. Accordingly, the above disclosure should be construed as limited only by the appended claims and their equivalents.