WO2021060280A1 - 電流波形生成回路および発光素子駆動回路 - Google Patents

電流波形生成回路および発光素子駆動回路 Download PDF

Info

Publication number
WO2021060280A1
WO2021060280A1 PCT/JP2020/035810 JP2020035810W WO2021060280A1 WO 2021060280 A1 WO2021060280 A1 WO 2021060280A1 JP 2020035810 W JP2020035810 W JP 2020035810W WO 2021060280 A1 WO2021060280 A1 WO 2021060280A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
output
mirror
transistors
generation circuit
Prior art date
Application number
PCT/JP2020/035810
Other languages
English (en)
French (fr)
Inventor
満志 田畑
貴志 増田
鈴木 大輔
Original Assignee
ソニーセミコンダクタソリューションズ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ソニーセミコンダクタソリューションズ株式会社 filed Critical ソニーセミコンダクタソリューションズ株式会社
Publication of WO2021060280A1 publication Critical patent/WO2021060280A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03BGENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
    • H03B28/00Generation of oscillations by methods not covered by groups H03B5/00 - H03B27/00, including modification of the waveform to produce sinusoidal oscillations
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/56Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices
    • H03K17/687Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices the devices being field-effect transistors
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K4/00Generating pulses having essentially a finite slope or stepped portions
    • H03K4/02Generating pulses having essentially a finite slope or stepped portions having stepped portions, e.g. staircase waveform

Definitions

  • the present disclosure relates to a current waveform generation circuit and a light emitting element drive circuit.
  • a sine wave current may be supplied to the circuit that drives the light emitting element to drive the light emitting element.
  • a circuit for generating a sine wave current there are circuits described in Patent Document 1 and Patent Document 2.
  • a sine wave is generated by using a time constant consisting of the product of a resistor and a capacitor.
  • a sine wave is generated while changing the pulse width of the reference clock signal and changing the current.
  • Patent Document 1 and Patent Document 2 have room for improvement in finely adjusting the generated waveform.
  • the current waveform generation circuit includes a mirror source transistor that serves as a current mirror source, and a plurality of mirror destination transistors that serve as current mirror destinations of the mirror source transistor in a state of being electrically connected to the current mirror path.
  • the light emitting element drive circuit has a drive unit that generates a drive current based on the current waveform output from the above current waveform generation circuit, and the light emitting element is generated by the drive current generated by the drive unit. Drive.
  • FIG. 5 is a side view of the structure including the LDD chip and the LD array as viewed from the lower end side of FIG. 25A. It is a block diagram which shows the structure of an example of the distance measuring apparatus which concerns on 3rd Embodiment. It is a figure which shows the histogram of an example based on the time when the light receiving part received light, which is applicable to the 3rd Embodiment.
  • FIG. 1 is a block diagram showing a configuration of an example of a light source device applicable to each embodiment.
  • the light emitting element is a laser diode (LD).
  • Laser diodes are excellent in straightness and light collection, have a high response speed, and take advantage of their characteristics such as low power consumption, such as distance measurement, optical transmission, and electrophotographic printers. It is used in various fields.
  • the light emitting device applicable to the present disclosure is not limited to the laser diode.
  • an LED Light Emitting Diode
  • the light source device 1 includes a driver 10 which is a light emitting element drive circuit and a laser diode (LD) 12.
  • the controller 11 may be included in the light source device 1.
  • the driver 10 drives the laser diode 12 under the control of the controller 11 to cause the laser diode 12 to emit light.
  • the controller 11 includes, for example, a CPU (Central Processing Unit) and a memory, and supplies a control signal 40 generated by the CPU according to a program stored in the memory in advance to the driver 10 to control the driver 10.
  • a CPU Central Processing Unit
  • the driver 10 includes a drive unit 20 and a detection unit 21.
  • the drive unit 20 generates a drive current for causing the laser diode 12 to emit light according to the control signal 40 supplied from the controller 11, and supplies the generated drive current to the laser diode 12. Further, the drive unit 20 can control the on / off of the light emission of the laser diode 12 according to the control signal 43 supplied from the controller 11. Further, the drive unit 20 supplies the detection unit 21 with a signal 41 indicating the current value of the drive current that drives the laser diode 12. The detection unit 21 supplies the detection signal 42 based on the signal 41 supplied from the drive unit 20 to the controller 11. The controller 11 can detect the overcurrent of the drive current that drives the laser diode 12 based on the detection signal 42.
  • FIG. 2 is a diagram showing a configuration of an example of a driver according to an existing technique.
  • the drivers 10a and 10b correspond to the driver 10 of FIG. 1 described above, respectively.
  • the driver 10a includes a resistor R D, the transistor 203 is a MOS (Metal Oxide Semiconductor) transistor of P-channel, a current waveform generating circuit 103 as a current source for supplying a current I L, a.
  • the current IL is, for example, a current for causing the laser diode 12 to emit light with a predetermined amount of light.
  • one end of the resistor R D is connected to the power supply of the voltage V DD.
  • the other end of the resistor R D is connected to the anode of the laser diode 12 via the drain-source and coupling portion 202a of the transistor 203.
  • the cathode of the laser diode 12 is connected to the current waveform generation circuit 103 via the coupling portion 202b.
  • the light emission of the laser diode 12 can be controlled by controlling the operation of the current waveform generation circuit 103 by a drive circuit (not shown) included in the drive unit 20.
  • a drive circuit included in the drive unit 20.
  • the laser diode 12 can be made to emit light with an amount of light corresponding to the duty.
  • the coupling portions 202a and 202b are provided to connect the laser diode 12 and the driver 10a when they have different configurations.
  • the controller 11 outputs a control signal 43 for controlling the on / off of the light emission of the laser diode 12.
  • the control signal 43 is input to the gate of the transistor 203 of the driver 10a to control the on (closed) / off (open) of the transistor 203.
  • 3 and 4 are diagrams showing first and second examples of configurations when a plurality of laser diodes 12 are driven.
  • the LD arrays 1200a and 1200b are, for example, VCSELs (Vertical Cavity Surface Emitting LASER).
  • Each of the laser diodes 12 1 , 12 2 , ..., 12 n is connected to the current waveform generation circuits 103 1 , 103 2 , ..., 103 n , which can be controlled independently, one-to-one. That is, each current waveform generation circuit 103 1 , 103 2 , ..., 103 n is controlled by, for example, on / off of each current waveform generation circuit 103 1 , 103 2 , ..., 103 n by a drive circuit (not shown). The light emission of each of the laser diodes 12 1 , 12 2 , ..., 12 n corresponding to one-to-one can be controlled independently.
  • FIG. 3 is a diagram showing a configuration example of the driver 10b according to the first example when driving a plurality of laser diodes 12.
  • the laser diode 12 1, 12 2, ... show examples of LD arrays 1200a to each anode and each cathode is independent of the 12 n.
  • LD array 1200a the laser diode 12 1, 12 2, ..., each anode of the 12 n, coupling portions 100a 1, 100a 2, ..., are connected to the drain of the transistor 101 through the 100a n.
  • the cathodes of the laser diodes 12 1 , 12 2 , ..., 12 n are connected to the coupling portions 100b 1 , 100b 2 , ..., 100 b n, and the current waveform generation circuits 103 1 , 103 2 , ... , 103 n on a one-to-one basis.
  • FIG. 4 is a diagram showing a configuration example of the driver 10c according to the second example in the case of driving a plurality of laser diodes 12.
  • FIG. 4 shows an example of an LD array 1200b in which the anodes of the laser diodes 12 1 , 12 2 , ..., 12 n are commonly connected and the cathodes are independent.
  • the anodes of the laser diodes 12 1 , 12 2 , ..., 12 n are commonly connected to the coupling portion 100a, and are connected to the drain of the transistor 101 via the coupling portion 100a.
  • the cathodes of the laser diodes 12 1 , 12 2 , ..., 12 n are connected to the current waveform generation circuits 103 1 , 103 2 , ..., Through the coupling portions 100b 1 , 100b 2 , ..., 100 b n ,. It is connected to 103 n on a one-to-one basis.
  • FIG. 5 is a diagram showing an example of a driver 10d to which a capacitor 140 connected to the drain of the transistor 101 is added.
  • the capacitor 140 stores an electric charge corresponding to the voltage V DD of the power supply supplied via the transistor 101.
  • the current waveform generation circuits 103 1 to 103 n supply current to each laser diode 12 1 to 12 n included in the driver 10d by PWM (Pulse Width Modulation) drive, the current is stored in the capacitor 140. The current is supplied to the laser diode 12 by using the charged charge.
  • the voltage V DD of the power supply is supplied from the external substrate of the driver 10d to the pad on the chip of the driver 10d, for example, by wire bonding.
  • a steep voltage change occurs due to PWM drive, a large voltage drop occurs due to the inductance of the wire used for this wire bonding. Therefore, for each laser diode 12 1 ⁇ 12 n, by supplying the current I L on the basis of the charge stored in the capacitor 140, it is possible to avoid the influence of this voltage drop.
  • FIG. 6 is a diagram showing a current waveform generation circuit 103 according to the first comparative example.
  • the current waveform generation circuit 103 includes a current mirror unit CM, a current source 13, a switching unit SW, and a control unit 105.
  • the current waveform generation circuit 103 outputs the current waveform of the current mirror unit CM.
  • the current mirror unit CM includes a mirror source transistor Tr0 that is diode-connected and serves as a current mirror source, and a plurality of mirror destination transistors Tr1 that serve as current mirror destinations of the mirror source transistor Tr0 in a state of being electrically connected to the current mirror path. ⁇ Tr11 and.
  • the current mirror unit CM generates the current I_SIN, which is the output current.
  • the current I_SIN is a drive current for driving the laser diode which is a light emitting element.
  • the current mirror unit CM passes a current I_SIN, which is a drive current, through a laser diode, which is a light emitting element.
  • the laser diode emits light when the current I_SIN flows.
  • the capacitor C P is a parasitic capacitance generated in the signal line current I_SIN. Further, a parasitic resistor (not shown) exists in the signal line of the current I_SIN.
  • the current source 13 supplies a current to the mirror source transistor Tr0 of the current mirror unit CM.
  • the switching unit SW changes the number of effective mirror destination transistors among the plurality of mirror destination transistors Tr1 to Tr11 that are electrically connected to the current mirror path.
  • the switching unit SW has switches S1 to S11 having a one-to-one correspondence with the mirror destination transistors Tr1 to Tr11.
  • the switches S1 to S11 can be turned on or off by the output signals Oshift_reg1 to Oshift_reg11 of the shift registers SR1 to SR11.
  • a transfer gate can be used for each of the switches S1 to S11.
  • the control unit 105 controls the number of transistors that are effective as mirror destination transistors that are electrically connected by the switching unit SW based on the waveform shape of the current waveform to be generated.
  • the control unit 105 has shift registers SR1 to SR11.
  • the shift register SR1 has N flip-flops F1 to FN (N is an integer of 2 or more).
  • the flip-flops F1 to FN are, for example, D-type flip-flops.
  • the N flip-flops F1 to FN of the shift register SR1 are connected in cascade. That is, the shift register SR1 is composed of flip-flops F1 to FN which are connected in N stages.
  • a common clock is input to the N flip-flops F1 to FN.
  • Each time the common clock level changes the flip-flops F1 to FN of each stage send the stored data to the next stage.
  • the final stage flip-flop FN sends the stored data to the first stage flip-flop F1.
  • the output of the flip-flop FN in the final stage becomes the output signal of the shift register.
  • the final-stage flip-flop FN is output as the output signal Oshift_reg1 of the shift register SR1.
  • the other shift registers SR2 to SR11 also have the same configuration as the shift register SR1 and output the output signals Oshift_reg2 to Oshift_reg11.
  • the output signals Oshift_reg1 to Oshift_reg11 are input to the corresponding switches S1 to S11.
  • the switches S1 to S11 are turned on or off by the output signals Oshift_reg1 to Oshift_reg11.
  • FIG. 7 is a time chart showing an example of the output signals Oshift_reg1 to Oshift_reg11 output from the shift registers SR1 to SR11 of the control unit 105.
  • the shift registers SR1 to SR11 output waveform output signals Oshift_reg1 to Oshift_reg11, which rise at different times and fall at different times.
  • the waveform of the output signal Oshift_reg1 that rises first has the longest high-level period
  • the waveform of the output signal Oshift_reg11 that rises last has the shortest high-level period.
  • the output signal Oshift_reg1 has a low level at time T1, a high level at times T2 to T23, and a low level at time T24. Therefore, at times T2 to T23 when the output signal Oshift_reg1 is at a high level, the switch S1 corresponding to the shift register SR1 is turned on, and the corresponding transistor Tr1 becomes the mirror destination transistor.
  • the output signal Oshift_reg2 is low level at times T1 to T2, high level at times T3 to T22, and low level at times T23 to T24. Therefore, at times T3 to T22 when the output signal Oshift_reg2 is at a high level, the switch S2 corresponding to the shift register SR2 is turned on, and the corresponding transistor Tr2 becomes the mirror destination transistor.
  • the output signal Oshift_reg3 is low level at times T1 to T3, high level at times T4 to T21, and low level at times T22 to T24. Therefore, at times T4 to T21 when the output signal Oshift_reg3 is at a high level, the switch S3 corresponding to the shift register SR3 is turned on, and the corresponding transistor Tr3 becomes the mirror destination transistor.
  • the output signal Oshift_reg4 has a low level at times T1 to T4, a high level at times T5 to T20, and a low level at times T21 to T24. Therefore, the switch S4 (not shown) corresponding to the shift register SR4 is turned on, and the corresponding transistor Tr4 (not shown) becomes the mirror destination transistor.
  • the output signal Oshift_reg5 is low level at times T1 to T5, high level at times T6 to T19, and low level at times T20 to T24. Therefore, the switch S5 (not shown) corresponding to the shift register SR5 is turned on, and the corresponding transistor Tr5 (not shown) becomes the mirror destination transistor.
  • the output signal Oshift_reg6 is low level at times T1 to T6, high level at times T7 to T18, and low level at times T19 to T24. Therefore, the switch S6 (not shown) corresponding to the shift register SR6 is turned on, and the corresponding transistor Tr6 (not shown) becomes the mirror destination transistor.
  • the output signal Oshift_reg7 is low level at times T1 to T7, high level at times T8 to T17, and low level at times T18 to T24. Therefore, the switch S7 (not shown) corresponding to the shift register SR7 is turned on, and the corresponding transistor Tr7 (not shown) becomes the mirror destination transistor.
  • the output signal Oshift_reg8 is low level at times T1 to T8, high level at times T9 to T16, and low level at times T17 to T24. Therefore, the switch S8 (not shown) corresponding to the shift register SR8 is turned on, and the corresponding transistor Tr8 (not shown) becomes the mirror destination transistor.
  • the output signal Oshift_reg9 is low level at times T1 to T9, high level at times T10 to T15, and low level at times T16 to T24. Therefore, the switch S9 corresponding to the shift register SR9 is turned on, and the corresponding transistor Tr9 becomes the mirror destination transistor.
  • the output signal Oshift_reg10 is low level at times T1 to T10, high level at times T11 to T14, and low level at times T15 to T24. Therefore, the switch S10 corresponding to the shift register SR10 is turned on, and the corresponding transistor Tr10 becomes the mirror destination transistor.
  • the output signal Oshift_reg11 is low level at times T1 to T11, high level at times T12 to T13, and low level at times T14 to T24. Therefore, the switch S11 corresponding to the shift register SR11 is turned on, and the corresponding transistor Tr11 becomes the mirror destination transistor.
  • the number of transistors effective as mirror destination transistors at times T1 to T12 is gradually increased, and as mirror destination transistors at subsequent times T13 to T24.
  • the number of effective transistors can be gradually reduced.
  • the transistors Tr1 to Tr11 become effective as the transistors at the mirror destination, and the current I_SIN becomes the maximum value.
  • neither transistor is effective as a transistor at the mirror destination, and the current I_SIN becomes the minimum value.
  • the number of effective transistors as mirror destination transistors electrically connected to the current mirror path of the current mirror unit CM changes depending on the output signals Oshift_reg1 to Oshift_reg11. That is, the number of transistors effective as mirror destination transistors changes in the same manner as the output signals Oshift_reg1 to Oshift_reg11 shown in FIG. 7.
  • the value of the current I_SIN repeatedly changes between the maximum value and the minimum value.
  • Actual current I_SIN as shown in FIG. 7, rather than changed stepwise, gradually rises by the influence of the parasitic resistance of the capacitor C P, and the signal line is a parasitic capacitance, a waveform shape down falling slowly .. Therefore, the current I_SIN should have a waveform having a sinusoidal shape or a shape close to it.
  • FIG. 8 is a diagram showing a current waveform generation circuit 103'according to the second comparative example.
  • the current waveform generation circuit 103' according to the second comparative example has 22 mirror destination transistors Tr1 to Tr22. Therefore, as compared with the current waveform generation circuit 103 described with reference to FIG. 6, the number of mirror destination transistors of the current mirror unit CM'is doubled. Therefore, the switching unit SW'has twice as many switches S1 to S22 as the current waveform generation circuit 103 described with reference to FIG. Further, the control unit 105'has twice as many shift registers SR1 to SR22 as the current waveform generation circuit 103 described with reference to FIG.
  • FIG. 9 is a time chart showing an example of the output signals Oshift_reg1 to Oshift_reg22 output from the shift registers SR1 to SR22 of the control unit 105'.
  • the output signal Oshift_reg1 has a low level at time T1, a high level at times T2 to T12, and a low level at times T13 to T24. Therefore, at times T2 to T12 when the output signal Oshift_reg1 is at a high level, the switch S1 corresponding to the shift register SR1 is turned on, and the transistor Tr1 corresponding to the switched on is the transistor at the mirror destination.
  • the output signals Oshift_reg2 to Oshift_reg11 become high levels at different times T2 to T12, and the transistor corresponding to the switch to be turned on becomes the transistor at the mirror destination. Therefore, at times T1 to T12, the number of effective transistors as mirror destination transistors gradually increases.
  • the output signals Oshift_reg1 to Oshift_reg11 are low level at times T13 to T24. Therefore, at times T13 to T24, the number of effective transistors as mirror destination transistors is 0. Therefore, at times T2 to T12 when the output signals Oshift_reg1 to Oshift_reg11 are at a high level, the switches S1 to S11 corresponding to the shift registers SR1 to SR11 are turned on, and the corresponding transistors Tr1 to Tr11 become effective as the mirror destination transistor. .. As a result, the value of the current I_SIN gradually increases.
  • the output signals Oshift_reg12 to Oshift_reg22 are at a high level at time T13.
  • the number of transistors that are valid as mirror destination transistors gradually decreases.
  • the number of transistors that are valid as the transistors at the mirror destination is 0. Therefore, at times T3 to T23 when the output signals Oshift_reg12 to Oshift_reg22 are at a high level, the switches S12 to S22 corresponding to the shift registers SR12 to SR22 are turned on, and the corresponding transistors Tr12 to Tr22 become effective as the mirror destination transistor. .. As a result, the value of the current I_SIN gradually decreases.
  • the value of the current I_SIN repeatedly changes between the maximum value and the minimum value.
  • Actual current I_SIN as shown in FIG. 9, rather than changed stepwise, gradually rises by the influence of the capacitor C P is a parasitic capacitance, a waveform shape down falling slowly. Therefore, the current I_SIN should have a waveform having a sinusoidal shape or a shape close to it.
  • the waveform shape can be adjusted by the mirror destination transistors Tr1 to Tr11 at times T2 to T12 when the value of the current I_SIN increases. Further, at the times T13 to T23 when the value of the current I_SIN decreases, the waveform shape can be adjusted by the mirror destination transistors Tr12 to Tr22. As described above, the waveform shape can be adjusted by the separate mirror destination transistors Tr1 to Tr11 and Tr12 to Tr22 at the times T2 to T12 when the value of the current I_SIN increases and the times T13 to T23 when the value of the current I_SIN decreases. That is, the shape of the rising portion and the shape of the falling portion of the generated waveform (sine wave) can be adjusted separately.
  • FIG. 10 is a diagram showing an example of the waveform shape of the current I_SIN.
  • the current I_SIN may drop sharply in a short time.
  • the current I_SIN does not have a sine wave or a waveform having a shape close to it.
  • the current value is reduced from about 2.0 mA to about 1.0 mA in the portion corresponding to the time T12 to the time T13 in FIG.
  • the current waveform generation circuit according to the first embodiment when the number of transistors effective as mirror destination transistors is changed, a part of a plurality of mirror destination transistors at a certain time is mirrored at the next time by controlling a switch. By using a leading transistor and repeating it, the change in the current I_SIN is moderated. By doing so, the current I_SIN does not change abruptly, and the abrupt decrease of the current I_SIN shown in FIG. 10 is eliminated.
  • FIGS. 11A to 11C are diagrams showing the current waveform generation circuit 103a according to the first embodiment.
  • the current waveform generation circuit 103a according to the first embodiment is shown by FIGS. 11A to 11C.
  • the current waveform generation circuit 103a includes a current mirror unit CMa, a current source 13, and a switching unit SWa.
  • the current mirror unit CMa includes a mirror source transistor Tr0 which is a current mirror source, and a plurality of mirror destination transistors Tr1 to TrN (N) which are current mirror destinations of the mirror source transistor Tr0 in a state of being electrically connected to the current mirror path.
  • Tr0 which is a current mirror source
  • N plurality of mirror destination transistors Tr1 to TrN (N) which are current mirror destinations of the mirror source transistor Tr0 in a state of being electrically connected to the current mirror path.
  • the switching unit SWa has switches S1 to SN that have a one-to-one correspondence with the mirror destination transistors Tr1 to TrN.
  • a transfer gate can be used for each of the switches S1 to SN.
  • the current source 13 may be not a constant current source but a variable current source whose current value setting can be changed. Thereby, the amplitude of the generated waveform shape can be changed.
  • the current waveform generation circuit 103a has a control unit 105a and a selection unit 106.
  • the control unit 105a has shift registers SR1 to SRN.
  • the shift registers SR1 to SRN output the output signals Oshift_reg1 to Oshift_regN.
  • the shift registers SR1 to SRN have the configurations already described with reference to FIG.
  • the selection unit 106 inputs the output signals Oshift_reg1 to Oshift_regN of the shift registers SR1 to SRN.
  • the selection unit 106 outputs a signal for setting each switch S1 to SN of the switching unit SWa on or off.
  • the selection unit 106 has selectors SS11, SS12, SS21 to SS24, SS31 to SS34, ..., SSN1 to SSN3.
  • Each selector of the selection unit 106 is a 2-input 1-output selector, and one of the two input signals is selected based on the selection signal.
  • Each selector of the selection unit 106 selects the input signal on the “0” side when the selection signal is “L” level (low level), and “H” level (high level) when the selection signal is “H” level (high level). Select the input signal on the "1" side.
  • Each selector of the selection unit 106 outputs the selected signal as an output signal.
  • the selectors SS11, SS12 and SS13 always output the output signal Oshift_reg1 based on the selection signal input at the fixed "L" level.
  • the selector SS21 selects and outputs the output signal Oshift_reg1 or the output signal Oshift_reg2 based on the selection signal SEL_1.
  • the selector SS22 selects and outputs the output signal Oshift_reg1 or the output signal Oshift_reg2 based on the selection signal SEL_2.
  • the selectors SS23 and SS24 always output the output signal Oshift_reg2 based on the selection signal input at a fixed "H" level.
  • the selector SS31 selects and outputs the output signal Oshift_reg2 or the output signal Oshift_reg3 based on the selection signal SEL_3.
  • the selector SS32 selects and outputs the output signal Oshift_reg2 or the output signal Oshift_reg3 based on the selection signal SEL_4.
  • the selectors SS33 and SS34 always output the output signal Oshift_reg3 based on the selection signal input at a fixed “L” level.
  • the other selector also selects and outputs an output signal based on the fixed “L” level, fixed “H” level, “L” level, or “H” level selection signal.
  • the selector SSN1 selects and outputs an output signal Oshift_reg (N-1) or an output signal Oshift_regN (not shown) based on the selection signal SEL_N.
  • the selectors SSN2, SSN3 and SSN4 always output the output signal Oshift_regN based on the selection signal input at a fixed "H" level.
  • the output signal Oshift_reg1 is branched and input to the five selectors SS11, SS12, SS13, SS21, and SS22. Therefore, based on the selection signals SEL_1 and SEL_2, a maximum of five switches S1 to S5 can be turned on at the same time to obtain currents from the five mirror destination transistors. Also, pay attention to the output signal Oshift_reg2.
  • the output signal Oshift_reg2 is branched and input to the six selectors SS21, SS22, SS23, SS24, SS31, and SS32. Therefore, based on the selection signals SEL_1 to SEL_1, a maximum of six switches S4 to S9 can be turned on at the same time, and currents can be obtained from the six mirror destination transistors.
  • a plurality of switches including switches S1 to S3, for example, four switches S1 to S4 or five switches S1 to S5 are turned on at the same time.
  • a plurality of switches including switches S6 to S7 for example, three switches S5 to S7, three switches S6 to S8, or four switches S6 to S9 (switch S9 is not shown) are turned on at the same time.
  • switches S10 to S11 for example, four switches S8 to S11 (switches S9 to S11 are not shown), or three switches S9 to S11 (not shown), or The four switches S9 to S12 (not shown), the five switches S9 to S13 (not shown), or the four switches S10 to S13 (not shown) are turned on at the same time.
  • turning on a plurality of switches at the same time is repeated.
  • the number of switches to be turned on at the same time is not a fixed value, but the number of switches to be turned on at the same time is changed. Thereby, in the process of rising of the waveform, the shape of the rising can be adjusted.
  • the number of effective transistors as mirror destination transistors is maximized, and the current value of current I_SIN is maximized.
  • the plurality of switches are sequentially turned off from the state where the current value of the current I_SIN is maximized.
  • the last switched on that is, a plurality of switches including the switch SN are turned off at the same time.
  • a plurality of switches are repeatedly turned off at the same time until the switches turned on at the first time are turned off at the same time.
  • the number of switches to be turned off at the same time is not a fixed value, and by changing the number of switches to be turned off at the same time, the shape of the falling edge can be adjusted in the process of falling of the waveform.
  • the current waveform generation circuit 103a includes selectors SE1 to SEN, a logic unit 1050, an AND gate G1, a NOR gate G2, a delay element 14, and a D-type flip-flop. It has FF1 and.
  • Selectors SE1 to SEN output one of the two input signals based on the signal OUPDN described later.
  • Each selector SE1 to SEN selects the input signal on the "0" side when the signal OUPDN is "L” level (low level), and “1" when the signal OUPDN is “H” level (high level). Select the input signal on the side.
  • the outputs of the selectors SE1 to SEN are input to the corresponding selectors in the selection unit 106 as selection signals SEL_1 to SEL_N.
  • the AND gate G1 inputs the output signal Oshift_reg1 which is the first rising output signal and the Oshift_regN which is the last rising output signal.
  • the AND gate G1 outputs the result of logically ANDing the output signal Oshift_reg1 and the output signal Oshift_regN.
  • the AND gate G1 outputs a level "H” when both the output signal Oshift_reg1 and the output signal Oshift_regN are at the level "H”.
  • the AND gate G1 outputs the level "L” when at least one of the output signal Oshift_reg1 and the output signal Oshift_regN is the level "L”.
  • the output signal OAND of the AND gate G1 is input to the D-type flip-flop FF1 as a clock.
  • the NOR gate G2 receives the output signals Oshift_reg1 and Oshift_regN as inputs. The NOR gate G2 reverses and outputs the result of ORing the output signal Oshift_reg1 and the output signal Oshift_regN. The NOR gate G2 outputs a level “H” when both the output signal Oshift_reg1 and the output signal Oshift_regN are at the level "L”. The NOR gate G2 outputs a level "L” when at least one of the output signal Oshift_reg1 and the output signal Oshift_regN is the level "H".
  • the delay element 14 inputs the output signal of the NOR gate G2.
  • the delay element 14 outputs a signal delayed by a predetermined time.
  • the output signal of the NOR gate G2 delayed by the delay element 14 for a predetermined time becomes a reset signal RST to the D-type flip-flop FF1.
  • the D-type flip-flop FF1 inputs a fixed "H" level.
  • the D-type flip-flop FF1 outputs a signal OUPDN for switching between a state in which the current value of the current I_SIN increases and a state in which the current value of the current I_SIN decreases.
  • the signal OUPDN is a signal generated based on the output signal Oshift_reg1 that rises first and the output signal Oshift_regN that rises last.
  • the signal OUPDN switches between a state in which the current value of the output current increases and a state in which the current value of the output current decreases.
  • the logic unit 1050 outputs a preset signal.
  • the signal output from the logic unit 1050 is an input signal to each selector SE1 to SEN.
  • the logic unit 1050 turns on / off the switches S1 to SN of FIG. 11A and outputs a signal for obtaining a current I_SIN having a sine wave or a shape close to the sine wave.
  • the current value at each time is changed by setting the number of tradistas at the mirror destination to a predetermined set value.
  • the logic unit 1050 may turn on / off the switches S1 to SN of FIG. 11A to output a signal for obtaining a triangular wave or a current I_SIN having a shape close to the triangular wave.
  • the selectors SS11, SS12 and SS13 always output the output signal Oshift_reg1.
  • the selectors SS21 and SS22 may select the output signal Oshift_reg1 or the output signal Oshift_reg2.
  • the selector SS21 and SS22 both select the output signal Oshift_reg1, the selector SS21 selects the output signal Oshift_reg1, the selector SS22 selects the output signal Oshift_reg2, and both the selectors SS21 and SS22 select the output signal Oshift_reg2.
  • the selection signals SEL_1 and SEL_2 to the selectors SS21 and SS22 can match the number of transistors turned on at a certain time by the output signal Oshift_reg1 and the number of transistors turned on at the next time by the output signal Oshift_reg2.
  • the selection signals SEL_1 and SEL_2 to the selectors SS21 and SS22 can make the number of transistors turned on at a certain time by the output signal Oshift_reg1 different from the number of transistors turned on at the next time by the output signal Oshift_reg2. ..
  • the selection unit 106 shown in FIG. 11B includes a selector that outputs each output signal in a fixed manner corresponding to each output signal.
  • the selectors SS11 to SS13 corresponding to the output signal Oshift_reg1 output the output signal Oshift_reg1 in a fixed manner.
  • the selectors SS23 to SS24 corresponding to the output signal Oshift_reg2 output the output signal Oshift_reg2 in a fixed manner.
  • the selectors SS33 to SS34 corresponding to the output signal Oshift_reg3 output the output signal Oshift_reg3 in a fixed manner.
  • the other selector provided between the selectors that output each of these output signals in a fixed manner that is, the selector provided between the selectors provided between the adjacent output signals, outputs the output signal selected by the selected signal.
  • the two selectors SS21 and SS22 provided between the selector SS13 and the selector 23 both input the output signal Oshift_reg1 and the output signal Oshift_reg2 and output the output signal selected by the selection signals SEL_1 and SEL_2. To do.
  • the two selectors SS31 and SS32 provided between the selector SS24 and the selector 33 both input the output signal Oshift_reg2 and the output signal Oshift_reg3, and output the output signal selected by the selection signals SEL_3 and SEL_4. To do.
  • the selectors can be turned on or simultaneously at each time.
  • the number of transistors to be turned off can be the same.
  • the current value that increases or the current value that decreases at each time can be set to the same value.
  • selectors SS22 and SS23 two selectors that output fixedly corresponding to each output signal, and two selectors provided between adjacent output signals (for example, selectors SS22 and SS23) are provided.
  • selectors SS31 and SS32 are used.
  • three selectors for the output signals Oshift_reg1 and Oshift_regN located at both ends, three selectors (for example, selectors SS11 to SS13) that output fixedly corresponding to the output signal are provided between adjacent output signals.
  • the number of selectors provided is two (for example, selectors SS21 and SS22). That is, the correspondence between adjacent output signals overlaps.
  • the selectors SS21 and SS22 correspond to the output signal Oshift_reg1 and also to the output signal Oshift_reg2.
  • the selectors SS31 and SS32 correspond to the output signal Oshift_reg2 and also to the output signal Oshift_reg3.
  • the decrease in output current at the fourth time can be made larger than the decrease in output current at the third time.
  • the decrease in output current at the fourth time can be made smaller than the decrease in output current at the third time. In this way, the change in the current value of the current I_SIN can be adjusted by adjusting the number of output signals selected by the selector which is the selection unit.
  • the change in the current value of the current I_SIN can be adjusted by the selection signal to each selector. Therefore, the current value of the current I_SIN can be made into a desired waveform shape. Moreover, the change in the current value can be adjusted separately for the rising edge where the current value increases and the falling edge where the current value decreases. It should be noted that the rising edge where the current value increases and the falling edge where the current value decreases can be adjusted in the same manner.
  • FIG. 12 is a time chart showing the operation of the current waveform generation circuit 103a shown in FIGS. 11A to 11C.
  • FIG. 12 shows changes in the current I_SIN in FIG. 11A, the signal OUPDN in FIG. 11C, the reset signal RST, and the signal OAND and the output signals Oshift_reg1 to Oshift_regN in FIG. 11B.
  • “Current UP” of the current I_SIN indicates that the current value is increasing
  • “Current DN” of the current I_SIN indicates that the current value is decreasing.
  • the signal OUPDN is at a low level
  • the current value of the current I_SIN is in an increasing state.
  • the current value of the current I_SIN decreases with a slight delay.
  • the current value of the current I_SIN increases with a slight delay.
  • the signal OUPDN when the signal OUPDN is at a low level, the number of output signals Oshift_reg1 to Oshift_regN that change from low level to high level gradually increases. At this time, if the number of switches that are turned on is gradually increased, the number of transistors that are effective as mirror destination transistors gradually increases. Then, when all of the output signals Oshift_reg1 to Oshift_regN become high level, the signal OAND becomes high level. As a result, the signal OUPDN changes to a high level.
  • the signal OUPDN When the signal OUPDN is at a high level, the number of output signals Oshift_reg1 to Oshift_regN that change from high level to low level gradually increases. At this time, if the number of switches that are turned on is gradually reduced, the number of transistors that are effective as mirror destination transistors is gradually reduced. Then, when all of the output signals Oshift_reg1 to Oshift_regN become low level, the reset signal RST becomes high level. As a result, the signal OUPDN changes to a low level.
  • the number of switches S1 to SN that are turned on by the output signals Oshift_reg1 to Oshift_regN increases or decreases.
  • the number of effective transistors as mirror destination transistors increases or decreases.
  • the current value of the current I_SIN increases or decreases.
  • a sine wave or a current having a shape close to that of a sine wave can be obtained.
  • a plurality of switches are turned on at the same time at a certain time, and while the plurality of switches that have been turned on are turned on, another plurality of switches are turned on at the same time at the next time. Further, in the current waveform generation circuit 103a, a plurality of switches are simultaneously turned off at a certain time, and while the plurality of switches that have been turned off are turned off, the other plurality of switches are simultaneously turned off at the next time. In this way, the rising portion of the sine wave can be generated by gradually increasing the number of transistors effective as the mirror destination transistor. Further, by gradually reducing the number of transistors effective as mirror destination transistors, a falling portion of a sine wave can be generated.
  • the output signals Oshift_reg1 to Oshift_regN in the period when the signal OUPDN is at a low level correspond to the rising portion of the current waveform. Focusing on this rising portion, if the number of switches to be turned on at each time is the same normal setting, each step of the stepped waveform is the same. The greater the number of switches that are turned on, the greater the change (ie, increase) in that step. The smaller the number of switches that are turned on, the smaller the change (that is, the increase) in that step. Therefore, the shape of the rising portion can be adjusted by adjusting the number of switches to be turned on. The same applies to the shape of the falling portion.
  • the output signals Oshift_regN to Oshift_reg1 during the period when the signal OUPDN is at a high level correspond to the rising portion of the current waveform. Focusing on the falling part of this waveform, if the number of switches to be turned off at each time is the same normal setting, each step of the stepped waveform is the same. The greater the number of switches that are turned off, the greater the change (ie, decrease) in that step. The smaller the number of switches that are turned off, the smaller the change (ie, decrease) in that step. Therefore, the shape of the falling portion can be adjusted by adjusting the number of switches to be turned off.
  • FIG. 13 is a diagram showing a waveform in which the falling portion of the waveform shape is changed from the normal setting.
  • the normal setting is a state in which the waveform shape is not adjusted.
  • the waveform that changes stepwise as shown in FIG. 13 becomes a waveform that changes slowly as shown in FIG. 14 due to the influence of the parasitic capacitance of the capacitor CP and the parasitic resistance of the signal line.
  • FIG. 14 is a diagram showing a waveform in which the falling portion of the waveform shape is changed from the normal setting.
  • the waveform shape changes from the solid line to the broken line at the falling portion of the waveform shape.
  • the waveform shape can be changed from the broken line in FIG. 14 as shown by the solid line.
  • FIG. 15 is a diagram showing the discrete Fourier transform result of the waveform in which the falling portion of the waveform shape is changed from the normal setting.
  • the spectrum of the discrete Fourier transform result has a peak at a target frequency (eg, 210.0 MHz).
  • the spectrum other than the target frequency has a very small value.
  • FIG. 16 is a diagram showing a waveform in which the rising portion of the waveform shape is changed from the normal setting.
  • the waveform that changes stepwise as shown in FIG. 16 becomes a waveform that changes slowly as shown in FIG. 17 due to the influence of the parasitic capacitance of the capacitor CP and the parasitic resistance of the signal line.
  • FIG. 17 is a diagram showing a waveform in which the rising portion of the waveform shape is changed from the normal setting.
  • the waveform shape changes from a solid line to a broken line, for example.
  • the waveform shape can be changed from the broken line in FIG. 17 as shown by the solid line.
  • FIG. 18 is a diagram showing the discrete Fourier transform result of the waveform in which the falling portion of the waveform shape is changed from the normal setting.
  • the spectrum of the discrete Fourier transform result has a peak at a target frequency (eg, 210.0 MHz).
  • the spectrum other than the target frequency has a very small value.
  • VCSELs for VCSELs, a certain high voltage may be used and the voltage level may be shifted, causing the waveform shape to collapse.
  • the current waveform generation circuit 103a by adopting the current waveform generation circuit 103a, it is possible to adjust the waveform shape and correct the distortion of the waveform, and it is possible to generate an accurate sine wave or triangular wave.
  • FIG. 19 is a diagram showing a current waveform generation circuit 103b according to a modification 1 of the first embodiment.
  • the current waveform generation circuit 103b has a current mirror unit CMb and a switching unit SWb.
  • the current mirror unit CMb has transistors Tr1 to Tr11.
  • the switching unit SWb has switches S1 to S11 corresponding to the transistors Tr1 to Tr11.
  • FIG. 20 is an enlarged view of the shift register SR6 in FIG. As shown in FIG. 20, the shift register SR6 has 11 flip-flops F1 to F11.
  • the output signal Oshift_reg6'of the fifth flip-flop F6 of the shift register SR6 is taken out and used as the signal OUPDN described with reference to FIG. That is, instead of the signal OUPDN in FIG. 11C, the output signal Oshift_reg6'is input to each selector SE1 to SEN as a selection signal.
  • the output signal of the flip-flop in the middle of the multiple-stage flip-flop is taken out, and based on the signal, the state in which the current value of the output current increases and the state in which the current value of the output current decreases are switched.
  • FIG. 21 is a diagram showing the operation of the current waveform generation circuit 103b.
  • FIG. 21 shows the output signal Oshift_reg6'of the fifth flip-flop F5 of the shift register SR6.
  • the output signal Oshift_reg6' is the same as the signal OUPDN described with reference to FIG. 12, and by using the output signal Oshift_reg6'instead of the signal OUPDN, the current value of the current I_SIN increases or decreases. It is possible to determine whether it is in a state. Therefore, the current value of the current I_SIN can be gradually switched from an increasing state to a decreasing state.
  • the number of circuit elements can be reduced. Specifically, the AND gate G1, the NOR gate G2, the delay element 14, and the flip-flop FF1 described with reference to FIG. 11C are not required, and the mounting area can be reduced.
  • FIG. 22 is a diagram showing a current waveform generation circuit according to the second modification of the first embodiment.
  • the output signal Oshift_reg12 is the same as the signal obtained by inverting the output signal Oshift_reg1 and shifting the phase by 180 degrees. Therefore, as shown in FIG. 22, the output signal of the twelfth flip-flop F12 located between the 24 flip-flops F1 to F24 is taken out, and the signal is inverted by the inverting circuit 15.
  • the output signal of the flip-flop F24 is a signal A
  • the output signal of the flip-flop F12 is a signal B
  • the output signal of the inversion circuit 15 is a signal C.
  • FIG. 23 is a diagram showing signals of each part of the shift register SR shown in FIG. 22.
  • the signal A which is the output signal of the flip-flop F24
  • the signal B which is the output signal of the flip-flop F12
  • the signal C is obtained by taking out the output signal of the flip-flop F12 of FIG. 22 and inverting the signal by the inverting circuit 15.
  • the signal C is the same as the output signal Oshift_reg1.
  • the output signal of the flip-flop in the middle stage of the shift register is taken out, the signal is inverted by the inverting circuit, and the inverted signal is used in another shift register. Use instead of output.
  • the circuit elements can be reduced. Specifically, the number of shift registers can be reduced and the mounting area can be reduced.
  • the output signal Oshift_reg2 and output signal Oshift_reg10, the output signal Oshift_reg3 and output signal Oshift_reg9, the output signal Oshift_reg4 and output signal Oshift_reg8, and the output signal Oshift_reg5 and output signal Oshift_reg7 have the same relationship as above. Therefore, with the same configuration, the output signal of the flip-flop in the middle stage of the shift register can be taken out, and the signal can be inverted by the inverting circuit and used.
  • FIG. 24 is a diagram showing a current waveform generation circuit 103c according to a modification 3 of the first embodiment.
  • the current waveform generation circuit 103c according to the third modification of the first embodiment has a current mirror unit CMb, a current source 13, and a switching unit SWb.
  • the current mirror unit CMb includes a mirror source transistor Tr0 that serves as a current mirror source, and a plurality of mirror destination transistors Tr1 to Tr11 that serve as current mirror destinations of the mirror source transistor Tr0 in a state of being electrically connected to the current mirror path.
  • Has. It has transistors Tr1 to Tr11.
  • the switching unit SWb has switches S1 to S11 corresponding to the transistors Tr1 to Tr11.
  • the output signals Oshift_reg1 and Oshift_reg2 are input to all the selectors SS11, SS12, SS21, SS22a, SS23a, SS24a, SS25a, SS26a ... Regarding the selectors SS21, SS22a, SS23a, SS24a, SS25a, SS26a ..., Among the input signals, the signal selected based on the selection signals SEL_1, SEL_2, SEL_3, SEL_4, SEL_5, SEL_6 ... Is output.
  • the selectors SS22a, SS23a, SS24a, SS25a, SS26a are selectors with 3 inputs and 1 output.
  • the three-input, one-output selectors SS22a, SS23a, SS24a, SS25a, SS26a ... Select one of the three input signals based on the selection signal.
  • One of the three inputs of the selectors SS22a, SS23a, SS24a, SS25a, SS26a ... Is the reference potential. That is, the selectors SS22a, SS23a, SS24a, SS25a, SS26a ...
  • the selection signals SEL_2, SEL_3, SEL_4, SEL_5, SEL_6 ... are 2-bit signals in this example.
  • FIG. 24 shows a part of the selector, the switch, and the mirror destination transistor of the current waveform generation circuit 103c for the convenience of drawing.
  • a large number of selectors, switches, and mirror destination transistors are provided in the current waveform generation circuit 103c, and the selection conditions of the selector are set by the selection signal.
  • the selectors SS22a, SS23a, SS24a, SS25a, SS26a ... Select one of the three input signals based on the selection signals SEL_2, SEL_3, SEL_4, SEL_5, SEL_6 ...
  • the switch corresponding to the selector remains off and the mirror destination transistor corresponding to the switch is not used.
  • the above-mentioned current waveform generation circuits 103a, 103b, and 103c can be incorporated into the light emitting element drive circuit.
  • the light emitting element can be driven by the drive current based on the generated current waveform. That is, the light emitting element drive circuit incorporating the current waveform generation circuit has a drive unit that generates a drive current based on the generated current waveform, and drives the light emitting element by the drive current generated by the drive unit. ..
  • FIG. 25A is a diagram showing an implementation example of the light emitting element drive circuit according to the second embodiment of the present disclosure.
  • the LD array 1200b is arranged on a light emitting element drive circuit incorporating the current waveform generation circuits 103a, 103b or 103c, that is, an LDD (laser diode driver) chip 1000 in which each element included in the driver is arranged.
  • LDD laser diode driver
  • FIG. 25A shows the LDD chip 1000 and the LD array 1200b viewed from the surface (upper surface) on which the light emitting portion of each laser diode 12 included in the LD array 1200b is arranged.
  • the LD array 1200b is shown in a state where the side (back surface) connected to the LDD chip 1000 is seen through from the upper surface side where the light emitting portion of the laser diode 12 is arranged. There is.
  • the LDD chip 1000 is one semiconductor chip, and is connected to an external circuit by wire bonding, for example, to a plurality of pads 1001 arranged in a peripheral portion.
  • the LDD chip 1000 is supplied with a voltage V DD from the outside via the pad 1001.
  • FIG. 25B is a diagram schematically showing the configuration of the LD array 1200b. As shown in FIG. 25B, the cathode terminals 1201 of each of the plurality of laser diodes 12 included in the LD array 1200b and the anode terminals 1202 common to the plurality of laser diodes 12 are aligned with respect to the back surface of the LD array 1200b. Be placed.
  • the cathode terminals 1201 are arranged in the central portion of the LD array 1200b by a grid-like arrangement of C rows ⁇ L columns. That is, in this example, (C ⁇ L) laser diodes 1201 are arranged with respect to the LD array 1200b. Further, the anode terminals 1202 are arranged in a grid pattern of C rows ⁇ A 1 column on the left end side of the LD array 1200b and C rows ⁇ A 2 columns on the right end side.
  • each cathode terminal 1201 corresponds to, for example, the coupling portions 100b 1 , 100b 2 , ..., 100b n in FIG.
  • each anode terminal 1202 collectively corresponds to, for example, the coupling portion 100a in FIG.
  • FIG. 25C is a side view of the structure including the LDD chip 1000 and the LD array 1200b as viewed from the lower end side of FIG. 25A.
  • the LDD chip 1000 and the LD array 1200b have a structure in which the LD array 1200b is laminated on the LDD chip 1000.
  • Each cathode terminal 1201 and each anode terminal 1202 are connected to the LDD chip 1000 by, for example, micro bumps.
  • the third embodiment is an example in which the light source device including the light emitting element drive circuit according to the second embodiment is applied to a distance measuring device that performs distance measuring using a laser beam.
  • FIG. 26 is a block diagram showing a configuration of an example of the distance measuring device according to the third embodiment.
  • the laser diode 12, the laser diodes 12 1 to 12 n, and the like will be described by being represented by the laser diode 12. More preferably, it is conceivable to apply the configuration described with reference to FIG. 25B or FIG. 25C.
  • the distance measuring device 70 as an electronic device according to the third embodiment includes a driver 10, a laser diode 12, a controller 11, a distance measuring unit 51, and a light receiving unit 302.
  • the driver 10 is a light emitting element drive circuit incorporating the current waveform generation circuits 103a, 103b or 103c.
  • the driver 10 generates a drive signal that drives the laser diode 12 to emit light in a pulsed manner in response to the control signal supplied from the controller 11, and causes the laser diode 12 to emit light based on the generated drive signal.
  • the driver 10 passes a signal indicating the timing at which the laser diode 12 is made to emit light to the ranging unit 51.
  • the light receiving unit 302 includes a light receiving element that outputs a light receiving signal by photoelectric conversion based on the received laser light.
  • a single photon avalanche diode can be applied as the light receiving element.
  • the single photon avalanche diode is also called SPAD (Single Photon Avalanche Diode), and has a characteristic that electrons generated in response to the incident of one photon cause avalanche multiplication and a large current flows. By utilizing this characteristic of SPAD, the incident of one photon can be detected with high sensitivity.
  • the light receiving element 302 to which the light receiving unit 302 can be applied is not limited to SPAD, but an avalanche photodiode (APD) or an ordinary photodiode can also be applied.
  • APD avalanche photodiode
  • the distance measuring unit 51 calculates the distance D between the object 61 and the object 61 based on the time t 0 when the laser beam is emitted from the laser diode 12 and the time t 1 when the light is received by the light receiving unit 302.
  • the laser beam 60 emitted from the laser diode 12 at the timing of time t 0 is reflected by the object 61, for example, and is received by the light receiving unit 302 at the timing of time t 1 as the reflected light 62. ..
  • the ranging unit 51 determines the distance D to the object 61 based on the difference between the time t 1 when the reflected light 62 is received by the light receiving unit 302 and the time t 0 when the laser light is emitted by the laser diode 12. Ask.
  • the distance D is calculated as the speed of light constant c (2.9979 ⁇ 10 8 [m / sec]) by the following equation (1).
  • D (c / 2) ⁇ (t 1 ⁇ t 0 )... (1)
  • the ranging unit 51 repeats the above-mentioned processing a plurality of times.
  • the distance D may be calculated based on each light receiving timing in which the light receiving unit 302 includes a plurality of light receiving elements and the reflected light 62 is received by each light receiving element.
  • the ranging unit 51 classifies the time t m (called the light receiving time t m ) from the light emitting timing time t 0 to the light receiving timing when the light is received by the light receiving unit 302 based on the class (bins). Generate a histogram.
  • the light received by the light receiving unit 302 during the light receiving time t m is not limited to the reflected light 62 in which the light emitted by the laser diode 12 is reflected by the object to be measured.
  • the ambient light around the light receiving unit 302 is also received by the light receiving unit 302.
  • FIG. 27 is a diagram showing an example histogram based on the time when the light receiving unit 302 receives light, which is applicable to the third embodiment.
  • the horizontal axis indicates the bin and the vertical axis indicates the frequency for each bin.
  • the bins are obtained by classifying the light receiving time t m for each predetermined unit time d. Specifically, bin # 0 is 0 ⁇ t m ⁇ d, bin # 1 is d ⁇ t m ⁇ 2 ⁇ d, bin # 2 is 2 ⁇ d ⁇ t m ⁇ 3 ⁇ d, ..., Bin # (N). -2) is (N-2) ⁇ d ⁇ t m ⁇ (N-1) ⁇ d.
  • the ranging unit 51 counts the number of times the light receiving time t m is acquired based on the bins to obtain the frequency 310 for each bin, and generates a histogram.
  • the light receiving unit 302 also receives light other than the reflected light reflected from the light emitted from the laser diode 12.
  • the ambient light there is the above-mentioned ambient light.
  • the portion indicated by the range 311 in the histogram includes the ambient light component due to the ambient light.
  • the ambient light is light that is randomly incident on the light receiving unit 302 and becomes noise with respect to the reflected light of interest.
  • the target reflected light is light received according to a specific distance, and appears as an active light component 312 in the histogram.
  • the bin corresponding to the frequency of the peak in the active light component 312 becomes the bin corresponding to the distance D of the object to be measured 303.
  • the distance measuring unit 51 acquires the representative time of the bottle (for example, the time in the center of the bottle) as the time t 1 described above, and calculates the distance D to the object to be measured 303 according to the formula (1) described above. be able to. In this way, by using a plurality of light receiving results, it is possible to perform appropriate distance measurement for random noise.
  • the current waveform generation circuit 103a has a current mirror unit CMa, a switching unit SWa, and a control unit 105a, and outputs the output current of the current mirror unit CMa.
  • the current mirror unit CMa includes a mirror source transistor Tr0 that serves as a current mirror source, and a plurality of mirror destination transistors Tr1 to TrN that serve as current mirror destinations of the mirror source transistor Tr0 in a state of being electrically connected to the current mirror path.
  • the switching unit SWa changes the number of effective mirror destination transistors among the plurality of mirror destination transistors Tr1 to TrN that are electrically connected to the current mirror path.
  • the control unit 105a controls the number of transistors that are effective as mirror destination transistors that are electrically connected by the switching unit SWa based on the waveform shape of the current waveform to be generated.
  • the current waveform generation circuit 103a can adjust the change of the current value of the current I_SIN, which is the output current of the current mirror unit CMa. Therefore, the current waveform generation circuit 103a can make the current value of the current I_SIN into a desired waveform shape.
  • the control unit 105a forms a rising portion of the current waveform to be generated by gradually increasing the number of transistors that are effective as mirror destination transistors that are electrically connected to the current mirror path, and forms a rising portion of the current waveform to be generated, and the control unit 105a forms the rising portion of the current mirror path.
  • the switching unit SWa is controlled so as to form a falling portion of the current waveform to be generated.
  • the current waveform generation circuit 103a can separately adjust the change in the current value for the rising portion and the falling portion of the current waveform to be generated.
  • the switching unit SWa has a plurality of switches S1 to SN corresponding to each of the plurality of mirror destination transistors.
  • the switching unit SWa increases and decreases the number of transistors effective as mirror destination transistors by turning on and off a plurality of switches S1 to SN.
  • the current waveform generation circuit 103a can separately adjust the change in the current value for the rising portion and the falling portion of the current waveform to be generated.
  • the control unit 105a includes a plurality of shift registers SR1 to SRN.
  • the plurality of shift registers SR1 to SRN are waveforms that rise sequentially at different times and fall sequentially at different times, and the waveform of the output signal that rises first has the longest high-level period and is the output signal that rises last.
  • the waveform outputs each output signal with the shortest high-level period.
  • the current waveform generation circuit 103a has a selection unit 106 that selects and outputs the output signals of the plurality of shift registers SR1 to SRN.
  • the number of transistors effective as the mirror destination transistor is changed by turning on / off the plurality of switches S1 to SN by the output signal selected by the selection unit 106.
  • the current waveform generation circuit 103a can adjust the change of the current value of the current I_SIN, which is the output current of the current mirror unit CMa.
  • the current waveform generation circuit 103a can separately adjust the change in the current value for the rising portion and the falling portion of the current waveform to be generated.
  • the current waveform generation circuit 103a has a state in which the current value of the output current increases and a state in which the current value of the output current decreases, depending on the signal generated based on the output signal that rises first and the output signal that rises last. To switch.
  • the current waveform generation circuit 103a can separately adjust the change in the current value for the rising portion and the falling portion of the current waveform to be generated.
  • Each of the plurality of shift registers SR1 to SRN includes a plurality of stages of flip-flops connected in cascade.
  • the multi-stage flip-flop sends the data stored in each stage to the next stage each time the common clock level changes, and the final stage flip-flop transfers the stored data to the first stage flip-flop. send.
  • the output of the flip-flop in the final stage becomes the output signal of the shift register.
  • the current waveform generation circuit 103a can adjust the change in the current value of the current I_SIN.
  • the current waveform generation circuit 103a has a state in which the current value of the output current increases and a state in which the current value of the output current decreases, based on the signal obtained by extracting the output signal of the flip-flop in the middle of the flip-flops in the plurality of stages. May be switched.
  • the number of circuit elements can be reduced and the mounting area can be reduced.
  • the current waveform generation circuit 103a may take out the output signal of the flip-flop in the middle of the flip-flops of the plurality of stages and use the inverted signal instead of the output of another shift register.
  • the number of circuit elements can be reduced and the mounting area can be reduced.
  • the selection unit 106 turns on X of a plurality of switches (X is an integer of 2 or more) at the first time among the first and second consecutive times, and then at the second time.
  • X is an integer of 2 or more
  • Y is an integer of 2 or more
  • the output current at the second time is larger than the increase of the output current at the first time.
  • the output signal is selected so that the amount of increase in output current in the second time is smaller than the amount of increase in output current in the first time.
  • the selection unit 106 turns off X of a plurality of switches (X is an integer of 2 or more) at the third time among the third and fourth consecutive times, and then turns off the fourth switch.
  • X is an integer of 2 or more
  • Y is an integer of 2 or more
  • the output current is reduced at the fourth time rather than the decrease at the third time.
  • the output signal is selected so that the decrease in output current at the fourth time is smaller than the decrease in output current at the third time. ..
  • the current value of the current I_SIN can be adjusted by changing the increase or decrease in the number of transistors effective as the mirror destination transistor, and the waveform shape of the rising portion and the falling portion of the current I_SIN can be changed. be able to.
  • the selection unit 106 takes a plurality of output signals as inputs and outputs a signal selected by the selection signal.
  • the current waveform generation circuit 103a can adjust the change in the current value of the current I_SIN.
  • the selection unit 106 may input a plurality of output signals and reference potentials and output a signal selected by the selection signal.
  • the electrical connection state can be flexibly changed based on the selection signal even after the current waveform generation circuit 103a is incorporated in a semiconductor chip or the like. As a result, a desired waveform shape can be generated.
  • the signal line that outputs the output current of the current mirror unit CMa preferably has a parasitic capacitance and a parasitic resistance.
  • the output current has a waveform that changes slowly due to the influence of the parasitic capacitance of the capacitor and the parasitic resistance of the signal line.
  • the mirror source transistor Tr0 of the current mirror portion CMa is connected to a diode and serves as a current mirror source.
  • the transistor of the current mirror source can be obtained.
  • the light emitting element drive circuit includes a current waveform generation circuit 103a and a drive unit 20 that generates a drive current based on the current waveform output from the current waveform generation circuit 103a, and the light emitting element is generated by the drive current generated by the drive unit 20. Drives the laser diode 12 which is.
  • the present technology can also have the following configurations.
  • a current mirror unit having a mirror source transistor serving as a current mirror source and a plurality of mirror destination transistors serving as current mirror destinations of the mirror source transistor in a state of being electrically connected to the current mirror path.
  • a switching unit that changes the number of transistors that are effective as mirror destination transistors that are electrically connected to the current mirror path.
  • a control unit that controls the number of transistors that are effective as mirror destination transistors that are electrically connected by the switching unit based on the waveform shape of the current waveform to be generated.
  • a current waveform generation circuit that outputs the output current of the current mirror unit.
  • the control unit By gradually increasing the number of transistors that are effective as the mirror destination transistors that are electrically connected to the current mirror path, a rising portion of the current waveform to be generated is formed, and a rising portion of the current waveform to be generated is formed. By gradually reducing the number of transistors that are effective as the mirror destination transistors that are electrically connected to the current mirror path, the switching unit is controlled so as to form a falling portion of the current waveform to be generated.
  • the current waveform generation circuit according to (1) above.
  • the switching unit is It has a plurality of switches corresponding to each of the plurality of mirror destination transistors, and has a plurality of switches.
  • the current waveform generation circuit according to (1) or (2), wherein the number of transistors effective as the mirror destination transistor is increased or decreased by turning on / off the plurality of switches.
  • the control unit It is a waveform that rises sequentially at different times and falls sequentially at different times.
  • the waveform of the output signal that rises first has the longest high-level period, and the waveform of the output signal that rises last has the shortest high-level period.
  • the number of transistors effective as the mirror destination transistor is changed by turning on / off the plurality of switches according to the output signals selected by the selection unit (3).
  • the current waveform generation circuit described. (5) The signal generated based on the output signal that rises first and the output signal that rises last switches between a state in which the current value of the output current increases and a state in which the current value of the output current decreases.
  • Each of the plurality of shift registers includes a plurality of stages of flip-flops connected in cascade.
  • the multi-stage flip-flop sends the data stored in each stage to the next stage each time the common clock level changes, and the final stage flip-flop sends the stored data to the first stage flip-flop. Send to The output of the final stage flip-flop becomes the output signal of the shift register.
  • the current waveform generation circuit according to (6) The current waveform generation circuit according to (6).
  • the increase in the output current at the second time is smaller than the increase in the output current at the first time, and
  • X of the plurality of switches are turned off at the 3rd time among the 3rd and 4th consecutive times, and then Y of the multiple switches are turned off at the 4th time.
  • the decrease in output current at the fourth time is made larger than the decrease in output current at the third time, and by setting X> Y, the output at the third time is output.
  • the current waveform generation circuit according to any one of (4) to (8) above, wherein the decrease in output current at a fourth time is made smaller than the decrease in current.
  • the current waveform generation circuit according to any one of (1) to (12) above, wherein the mirror source transistor is connected to a diode and serves as a current mirror source. (14) It has a current waveform generation circuit according to any one of (1) to (13), and a drive unit that generates a drive current based on a current waveform output from the current waveform generation circuit.
  • a light emitting element drive circuit that drives a light emitting element by a drive current generated by the drive unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

電流波形生成回路は、電流ミラー元となるミラー元トランジスタ(Tr0)と、電流ミラー経路に電気的に接続された状態でミラー元トランジスタ(Tr0)の電流ミラー先となる、複数のミラー先トランジスタ(Tr1~Tr8…)と、を有する電流ミラー部(CMa)と、複数のミラー先トランジスタ(Tr1~Tr8…)のうち、電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる切替え部(SWa)と、生成すべき電流波形の波形形状に基づいて、切替え部(SWa)によって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する制御部と、を有し、電流ミラー部(CMa)の出力電流を出力する。

Description

電流波形生成回路および発光素子駆動回路
 本開示は、電流波形生成回路および発光素子駆動回路に関する。
 発光素子を駆動する回路に、正弦波の電流を供給し、発光素子を駆動することがある。正弦波の電流を生成する回路として、特許文献1、特許文献2に記載されている回路がある。特許文献1に開示の回路では、抵抗とコンデンサの容量との積からなる時定数を利用して正弦波を生成している。特許文献2に開示の回路では、基準のクロック信号のパルス幅を変えて、電流を変えながら正弦波を生成している。
特開2002-111388号公報 特開2004-336152号公報
 しかしながら、特許文献1、特許文献2に開示の技術は、生成する波形を細かく調整することについて改善の余地がある。
 そこで、本開示では、生成する波形を細かく調整することができる電流波形生成回路および発光素子駆動回路を提案する。
 本開示に係る電流波形生成回路は、電流ミラー元となるミラー元トランジスタと、電流ミラー経路に電気的に接続された状態で前記ミラー元トランジスタの電流ミラー先となる、複数のミラー先トランジスタと、を有する電流ミラー部と、前記複数のミラー先トランジスタのうち、前記電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる切替え部と、生成すべき電流波形の波形形状に基づいて、前記切替え部によって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する制御部と、を有し、前記電流ミラー部の出力電流を出力する。
 また、本開示に係る発光素子駆動回路は、上記の電流波形生成回路から出力される電流波形に基づく駆動電流を生成する駆動部を有し、前記駆動部によって生成される駆動電流によって発光素子を駆動する。
各実施形態に適用可能な光源装置の構成例を示すブロック図である。 既存技術によるドライバの一例の構成を示す図である。 複数のレーザダイオードを駆動する場合の構成例を示す図である。 複数のレーザダイオードを駆動する場合の構成例を示す図である。 各トランジスタのドレインに共通して接続されるキャパシタを追加したドライバの例を示す図である。 第1の比較例による電流波形生成回路を示す図である。 シフトレジスタから出力される出力信号の例を示すタイムチャートである。 第2の比較例による電流波形生成回路を示す図である。 シフトレジスタから出力される出力信号の例を示すタイムチャートである。 電流の波形形状の例を示す図である。 第1の実施形態による電流波形生成回路を示す図である。 第1の実施形態による電流波形生成回路を示す図である。 第1の実施形態による電流波形生成回路を示す図である。 電流波形生成回路の動作を示すタイムチャートである。 通常設定から波形形状の立ち下り部分を変化させた波形を示す図である。 通常設定から波形形状の立ち下り部分を変化させた波形を示す図である。 通常設定から波形形状の立ち下り部分を変化させた波形の離散フーリエ変換結果を示す図である。 通常設定から波形形状の立ち上り部分を変化させた波形を示す図である。 通常設定から波形形状の立ち上り部分を変化させた波形を示す図である。 通常設定から波形形状の立ち下り部分を変化させた波形の離散フーリエ変換結果を示す図である。 第1の実施形態の変形例1による電流波形生成回路を示す図である。 図19中のシフトレジスタを拡大して示す図である。 電流波形生成回路の動作を示す図である。 第1の実施形態の変形例2による電流波形生成回路を示す図である。 図22に示すシフトレジスタの各部の信号を示す図である。 第1の実施形態の変形例3による電流波形生成回路を示す図である。 本開示の第2の実施形態にかかる発光素子駆動回路の実装例を示す図である。 LDアレイの構成を模式的に示す図である。 LDDチップおよびLDアレイからなる構造を、図25Aの下端側から見た側面図である。 第3の実施形態に係る測距装置の一例の構成を示すブロック図である。 第3の実施形態に適用可能な、受光部が受光した時刻に基づく一例のヒストグラムを示す図である。
 以下に、本開示の実施形態について図面に基づいて詳細に説明する。なお、以下の各実施形態において、同一の部位には同一の符号を付することにより重複する説明を省略する。
 また、以下に示す項目順序に従って本開示を説明する。
 0.各実施形態に共通の構成
  0.1既存技術による構成例
  0.2 第1の比較例
  0.2.1 構成
  0.2.2 動作
  0.3 第2の比較例
  0.3.1 構成
  0.3.2 動作
 1.第1の実施形態
  1.1 構成
  1.2 動作
  1.3 効果
 2.第1の実施形態の変形例1
  2.1 構成
  2.2 動作
  2.3 効果
 3.第1の実施形態の変形例2
  3.1 構成
  3.2 動作
  3.3 効果
 4.第1の実施形態の変形例3
  4.1 構成
  4.2 動作
  4.3 効果
 5.第2の実施形態
 6.第3の実施形態
 7.まとめ
 [0.各実施形態に共通の構成]
 本開示は、レーザダイオードなどの、電流に応じて発光する発光素子の制御に関するものである。図1は、各実施形態に適用可能な光源装置の一例の構成を示すブロック図である。
 なお、以下では、発光素子がレーザダイオード(LD)であるものとして説明を行う。レーザダイオードは、光の直進性や集光性に優れ、応答速度が高速であり、また、低消費電力であるなどの特性を活かして、測距、光伝送、電子写真方式のプリンタなど、様々な分野に用いられている。なお、本開示に適用可能な発光素子は、レーザダイオードに限られない。例えば、発光素子としてLED(Light Emitting Diode)を適用することもできる。
 図1において、光源装置1は、発光素子駆動回路であるドライバ10と、レーザダイオード(LD)12と、を含む。コントローラ11を光源装置1に含めてもよい。ドライバ10は、コントローラ11の制御に従い、レーザダイオード12を駆動し、レーザダイオード12を発光させる。コントローラ11は、例えばCPU(Central Processing Unit)およびメモリを含み、CPUによりメモリに予め記憶されたプログラムに従い生成した制御信号40をドライバ10に供給し、ドライバ10を制御する。
 ドライバ10は、駆動部20および検出部21を含む。駆動部20は、コントローラ11から供給される制御信号40に従いレーザダイオード12を発光させるための駆動電流を生成し、生成した駆動電流をレーザダイオード12に供給する。また、駆動部20は、コントローラ11から供給される制御信号43に応じて、レーザダイオード12の発光のオン/オフを制御することができる。さらに、駆動部20は、レーザダイオード12を駆動する駆動電流の電流値を示す信号41を検出部21に供給する。検出部21は、駆動部20から供給された信号41に基づく検出信号42を、コントローラ11に供給する。なお、コントローラ11は、検出信号42に基づいて、レーザダイオード12を駆動する駆動電流の過電流を検出することができる。
 [0.1既存技術による構成例]
 次に、本開示の説明に先立って、既存技術によるレーザダイオード12の駆動電流を検出するための構成例について、図2および図3を用いて説明する。図2は、既存技術によるドライバの一例の構成を示す図である。図2および図3において、ドライバ10aおよび10bは、それぞれ、上述した図1のドライバ10に対応する。
 ドライバ10aは、抵抗RDと、PチャネルのMOS(Metal Oxide Semiconductor)トランジスタであるトランジスタ203と、電流ILを供給する電流源となる電流波形生成回路103と、を含む。電流ILは、例えばレーザダイオード12を所定の光量で発光させるための電流である。
 図2において、電圧VDDの電源に抵抗RDの一端が接続される。抵抗RDの他端がトランジスタ203のドレイン-ソースおよび結合部202aを介してレーザダイオード12のアノードに接続される。レーザダイオード12のカソードは、結合部202bを介して電流波形生成回路103に接続される。
 例えば駆動部20に含まれる図示されない駆動回路により、電流波形生成回路103の動作を制御することで、レーザダイオード12の発光を制御できる。例えば、電流波形生成回路103によって所定のデューティの矩形波を生成することで、レーザダイオード12をデューティに応じた光量で発光させることができる。
 なお、結合部202aおよび202bは、レーザダイオード12とドライバ10aとが異なる構成とされている場合に、これらを接続するために設けられている。
 この構成において、コントローラ11は、レーザダイオード12の発光のオン/オフを制御するための制御信号43を出力する。制御信号43は、ドライバ10aのトランジスタ203のゲートに入力され、トランジスタ203のオン(閉)/オフ(開)を制御する。
 図3および図4は、複数のレーザダイオード12を駆動する場合の構成の第1および第2の例を示す図である。
 図3、図4は、それぞれ、トランジスタ101のドレインに対して複数のレーザダイオード121、122、…、12nを含むLD(レーザダイオード)アレイ1200a、1200bが接続されている。LDアレイ1200a、1200bは、例えばVCSEL(Vertical Cavity Surface Emitting LASER)である。
 各レーザダイオード121、122、…、12nそれぞれは、それぞれ独立して制御可能な電流波形生成回路1031、1032、…、103nそれぞれが一対一に接続される。すなわち、図示されない駆動回路により、各電流波形生成回路1031、1032、…、103nの例えばオン/オフをそれぞれ制御することで、各電流波形生成回路1031、1032、…、103nに一対一に対応する各レーザダイオード121、122、…、12nの発光を、それぞれ独立して制御できる。
 図3は、複数のレーザダイオード12を駆動する場合の第1の例によるドライバ10bの構成例を示す図である。図3において、各レーザダイオード121、122、…、12nの各アノードおよび各カソードが独立しているLDアレイ1200aの例を示す。LDアレイ1200aにおいて、各レーザダイオード121、122、…、12nの各アノードが、結合部100a1、100a2、…、100anを介してトランジスタ101のドレインに接続される。
 また、各レーザダイオード121、122、…、12nの各カソードが、結合部100b1、100b2、…、100bnと、を介して、各電流波形生成回路1031、1032、…、103nに一対一で接続される。
 図4は、複数のレーザダイオード12を駆動する場合の第2の例によるドライバ10cの構成例を示す図である。図4において、各レーザダイオード121、122、…、12nの各アノードが共通に接続され、各カソードが独立しているLDアレイ1200bの例を示す。LDアレイ1200bにおいて、各レーザダイオード121、122、…、12nの各アノードが結合部100aに共通に接続され、結合部100aを介してトランジスタ101のドレインに接続される。
 また、各レーザダイオード121、122、…、12nの各カソードが、結合部100b1、100b2、…、100bn、を介して、各電流波形生成回路1031、1032、…、103nに一対一で接続される。
 次に、ドライバに対してキャパシタをさらに配置する場合の例について、図5を用いて説明する。図5は、トランジスタ101のドレインに接続されるキャパシタ140を追加したドライバ10dの例を示す図である。
 キャパシタ140は、トランジスタ101を介して供給された電源の電圧VDDに応じた電荷を蓄積する。各電流波形生成回路1031~103nによる、ドライバ10dに含まれる各レーザダイオード121~12nに対する電流の供給を、PWM(Pulse Width Modulation)駆動によりを行う場合に、このキャパシタ140に蓄積された電荷を用いて、レーザダイオード12に対する電流の供給を行う。
 すなわち、電源の電圧VDDは、ドライバ10dの外部の基板からドライバ10dのチップ上のパッドに対して、例えば、ワイヤボンディングにより供給される。PWM駆動により急峻な電圧の変化が生じると、このワイヤボンディングに用いるワイヤのインダクタンスにより、大きな電圧降下が発生する。そのため、各レーザダイオード121~12nに対して、キャパシタ140に蓄積された電荷に基づき電流ILを供給することで、この電圧降下の影響を回避することができる。
 本開示の実施形態の理解を容易にするため、比較例を先に説明する。
 [0.2 第1の比較例]
 図6は、第1の比較例による電流波形生成回路103を示す図である。
 [0.2.1 構成]
 図6において、電流波形生成回路103は、電流ミラー部CMと、電流源13と、切替え部SWと、制御部105とを有する。電流波形生成回路103は、電流ミラー部CMの電流波形を出力する。
 電流ミラー部CMは、ダイオード接続されて電流ミラー元となるミラー元トランジスタTr0と、電流ミラー経路に電気的に接続された状態でミラー元トランジスタTr0の電流ミラー先となる、複数のミラー先トランジスタTr1~Tr11と、を有する。
 電流ミラー部CMは、出力電流である電流I_SINを生成する。電流I_SINは、発光素子であるレーザダイオードを駆動するための駆動電流となる。電流ミラー部CMは、発光素子であるレーザダイオードに、駆動電流である電流I_SINを流す。電流I_SINが流れることによって、レーザダイオードが発光する。なお、キャパシタCは、電流I_SINの信号線路に生じる寄生容量である。また、電流I_SINの信号線路には、寄生抵抗(図示せず)が存在する。
 電流源13は、電流ミラー部CMのミラー元トランジスタTr0に電流を供給する。
 切替え部SWは、複数のミラー先トランジスタTr1~Tr11のうち、前記電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる。切替え部SWは、ミラー先トランジスタTr1~Tr11に一対一に対応するスイッチS1~S11を有する。スイッチS1~S11は、シフトレジスタSR1~SR11の出力信号Oshift_reg1~Oshift_reg11によってオンまたはオフに設定できる。各スイッチS1~S11には、例えば、トランスファゲートを用いることができる。
 制御部105は、生成すべき電流波形の波形形状に基づいて、切替え部SWによって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する。
 制御部105は、シフトレジスタSR1~SR11を有する。シフトレジスタSR1は、N個のフリップフロップF1~FN(Nは2以上の整数)を有する。フリップフロップF1~FNは、例えば、D型フリップフロップである。シフトレジスタSR1のN個のフリップフロップF1~FNは縦続接続される。すなわち、シフトレジスタSR1はN段縦続接続されたフリップフロップF1~FNによって構成される。N個のフリップフロップF1~FNには共通のクロックが入力される。共通のクロックのレベルが遷移する毎に、各段のフリップフロップF1~FNは、記憶しているデータを次段に送る。最終段のフリップフロップFNは、記憶しているデータを初段のフリップフロップF1に送る。最終段のフリップフロップFNの出力は、そのシフトレジスタの出力信号になる。
 N個のフリップフロップF1~FNのうち、最終段のフリップフロップFNは、シフトレジスタSR1の出力信号Oshift_reg1として出力される。他のシフトレジスタSR2~SR11も、シフトレジスタSR1と同様の構成を有し、出力信号Oshift_reg2~Oshift_reg11を出力する。出力信号Oshift_reg1~Oshift_reg11は、対応するスイッチS1~S11に入力される。スイッチS1~S11は、出力信号Oshift_reg1~Oshift_reg11によってオンまたはオフに設定される。
 [0.2.2 動作]
 次に、図6に示す電流波形生成回路103の動作例について説明する。図7は、制御部105のシフトレジスタSR1~SR11から出力される出力信号Oshift_reg1~Oshift_reg11の例を示すタイムチャートである。シフトレジスタSR1~SR11は、互いに異なる時刻に立ち上がりかつ互いに異なる時刻に立ち下がる波形の出力信号Oshift_reg1~Oshift_reg11をそれぞれ出力する。出力信号Oshift_reg1~Oshift_reg11は、最先に立ち上がる出力信号Oshift_reg1の波形はハイレベルの期間が最も長く、最後に立ち上がる出力信号Oshift_reg11の波形はハイレベルの期間が最も短い。
 図7において、出力信号Oshift_reg1は、時刻T1においてローレベルで、時刻T2~T23においてハイレベル、時刻T24においてローレベルである。したがって、出力信号Oshift_reg1がハイレベルの時刻T2~T23において、シフトレジスタSR1に対応するスイッチS1がオンになり、対応するトランジスタTr1がミラー先のトランジスタになる。
 出力信号Oshift_reg2は、時刻T1~T2においてローレベルで、時刻T3~T22においてハイレベル、時刻T23~T24においてローレベルである。したがって、出力信号Oshift_reg2がハイレベルの時刻T3~T22において、シフトレジスタSR2に対応するスイッチS2がオンになり、対応するトランジスタTr2がミラー先のトランジスタになる。
 出力信号Oshift_reg3は、時刻T1~T3においてローレベルで、時刻T4~T21においてハイレベル、時刻T22~T24においてローレベルである。したがって、出力信号Oshift_reg3がハイレベルの時刻T4~T21において、シフトレジスタSR3に対応するスイッチS3がオンになり、対応するトランジスタTr3がミラー先のトランジスタになる。
 以下、同様に、出力信号Oshift_reg4は、時刻T1~T4においてローレベルで、時刻T5~T20においてハイレベル、時刻T21~T24においてローレベルである。このため、シフトレジスタSR4に対応するスイッチS4(図示せず)がオンになり、対応するトランジスタTr4(図示せず)がミラー先のトランジスタになる。
 出力信号Oshift_reg5は、時刻T1~T5においてローレベルで、時刻T6~T19においてハイレベル、時刻T20~T24においてローレベルである。このため、シフトレジスタSR5に対応するスイッチS5(図示せず)がオンになり、対応するトランジスタTr5(図示せず)がミラー先のトランジスタになる。
 出力信号Oshift_reg6は、時刻T1~T6においてローレベルで、時刻T7~T18においてハイレベル、時刻T19~T24においてローレベルである。このため、シフトレジスタSR6に対応するスイッチS6(図示せず)がオンになり、対応するトランジスタTr6(図示せず)がミラー先のトランジスタになる。
 出力信号Oshift_reg7は、時刻T1~T7においてローレベルで、時刻T8~T17においてハイレベル、時刻T18~T24においてローレベルである。このため、シフトレジスタSR7に対応するスイッチS7(図示せず)がオンになり、対応するトランジスタTr7(図示せず)がミラー先のトランジスタになる。
 出力信号Oshift_reg8は、時刻T1~T8においてローレベルで、時刻T9~T16においてハイレベル、時刻T17~T24においてローレベルである。このため、シフトレジスタSR8に対応するスイッチS8(図示せず)がオンになり、対応するトランジスタTr8(図示せず)がミラー先のトランジスタになる。
 出力信号Oshift_reg9は、時刻T1~T9においてローレベルで、時刻T10~T15においてハイレベル、時刻T16~T24においてローレベルである。このため、シフトレジスタSR9に対応するスイッチS9がオンになり、対応するトランジスタTr9がミラー先のトランジスタになる。
 出力信号Oshift_reg10は、時刻T1~T10においてローレベルで、時刻T11~T14においてハイレベル、時刻T15~T24においてローレベルである。このため、シフトレジスタSR10に対応するスイッチS10がオンになり、対応するトランジスタTr10がミラー先のトランジスタになる。
 出力信号Oshift_reg11は、時刻T1~T11においてローレベルで、時刻T12~T13においてハイレベル、時刻T14~T24においてローレベルである。このため、シフトレジスタSR11に対応するスイッチS11がオンになり、対応するトランジスタTr11がミラー先のトランジスタになる。
 以上のように、出力信号Oshift_reg1~Oshift_reg11を変化させることにより、時刻T1~T12においてミラー先のトランジスタとして有効になるトランジスタの数を徐々に増加させ、その後の時刻T13~T24においてミラー先のトランジスタとして有効になるトランジスタの数を徐々に減少させることができる。そして、時刻T12~T13において、トランジスタTr1~Tr11がミラー先のトランジスタとして有効になり、電流I_SINは最大値になる。また、時刻T1および時刻T24において、いずれのトランジスタもミラー先のトランジスタとして有効になっておらず、電流I_SINは最小値になる。このように、出力信号Oshift_reg1~Oshift_reg11によって、電流ミラー部CMの電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数が変化することになる。すなわち、ミラー先トランジスタとして有効になるトランジスタの数は、図7に示す出力信号Oshift_reg1~Oshift_reg11と同様に変化する。
 以上の動作が繰り返し行われることにより、電流I_SINの値は最大値と最小値との間で繰り返し変化する。実際の電流I_SINは、図7に示すように、階段状に変化するのではなく、寄生容量であるキャパシタCおよび信号線路の寄生抵抗の影響によって緩やかに立ち上がり、緩やかに立ち下る波形形状になる。このため、電流I_SINは、正弦波形状またはそれに近い形状の波形になるはずである。
 [0.3 第2の比較例]
 図8は、第2の比較例による電流波形生成回路103’を示す図である。
 [0.3.1 構成]
 図8に示すように、第2の比較例による電流波形生成回路103’は、22個のミラー先トランジスタTr1~Tr22を有する。このため、図6を参照して説明した電流波形生成回路103に比べて、電流ミラー部CM’のミラー先トランジスタの個数が2倍になっている。このため、切替え部SW’は、図6を参照して説明した電流波形生成回路103に比べて、2倍の個数のスイッチS1~S22を有する。また、制御部105’は、図6を参照して説明した電流波形生成回路103に比べて、2倍の個数のシフトレジスタSR1~SR22を有する。
 [0.3.2 動作]
 次に、図8に示す電流波形生成回路103’の動作例について説明する。図9は、制御部105’のシフトレジスタSR1~SR22から出力される出力信号Oshift_reg1~Oshift_reg22の例を示すタイムチャートである。
 図9において、出力信号Oshift_reg1は、時刻T1においてローレベルで、時刻T2~T12においてハイレベル、時刻T13~T24においてローレベルである。したがって、出力信号Oshift_reg1がハイレベルの時刻T2~T12において、シフトレジスタSR1に対応するスイッチS1がオンになり、オンになるスイッチに対応するトランジスタTr1がミラー先のトランジスタになる。以下、同様に、出力信号Oshift_reg2~Oshift_reg11は、それぞれ別々の時刻T2~T12にハイレベルになり、オンになるスイッチに対応するトランジスタがミラー先のトランジスタになる。したがって、時刻T1~T12において、ミラー先のトランジスタとして有効になっているトランジスタの数が徐々に増加する。また、出力信号Oshift_reg1~Oshift_reg11は、時刻T13~T24においてローレベルである。このため、時刻T13~T24はミラー先のトランジスタとして有効になっているトランジスタの数が0である。このため、出力信号Oshift_reg1~Oshift_reg11がハイレベルの時刻T2~T12において、シフトレジスタSR1~SR11に対応するスイッチS1~S11がオンになり、対応するトランジスタTr1~Tr11がミラー先のトランジスタとして有効になる。これにより、電流I_SINの値は徐々に増加する。
 また、図9において、出力信号Oshift_reg12~Oshift_reg22は、時刻T13においてハイレベルである。出力信号Oshift_reg12~Oshift_reg22がハイレベルの時刻T13~T23において、ミラー先のトランジスタとして有効になっているトランジスタの数が徐々に減少する。そして、時刻T24はミラー先のトランジスタとして有効になっているトランジスタの数が0である。このため、出力信号Oshift_reg12~Oshift_reg22がハイレベルの時刻T3~T23において、シフトレジスタSR12~SR22に対応するスイッチS12~S22がオンになり、対応するトランジスタTr12~Tr22がミラー先のトランジスタとして有効になる。これにより、電流I_SINの値は徐々に減少する。
 以上の動作が繰り返し行われることにより、電流I_SINの値は最大値と最小値との間で繰り返し変化する。実際の電流I_SINは、図9に示すように、階段状に変化するのではなく、寄生容量であるキャパシタCの影響によって緩やかに立ち上がり、緩やかに立ち下る波形形状になる。このため、電流I_SINは、正弦波形状またはそれに近い形状の波形になるはずである。
 ここで、この波形形状に関して、電流I_SINの値が増加する時刻T2~T12についてはミラー先トランジスタTr1~Tr11によって波形形状を調整できる。また、電流I_SINの値が減少する時刻T13~T23についてはミラー先トランジスタTr12~Tr22によって波形形状を調整できる。このように、電流I_SINの値が増加する時刻T2~T12、電流I_SINの値が減少する時刻T13~T23について、別々のミラー先トランジスタTr1~Tr11、Tr12~Tr22によって波形形状を調整できる。すなわち、生成する波形(正弦波)の立ち上がり部分の形状と立下り部分の形状とを別々に、調整できる。
 しかしながら、実際には、電流I_SINは、正弦波形状またはそれに近い形状の波形にならないことがある。図10は、電流I_SINの波形形状の例を示す図である。図10に示すように、電流I_SINが短い時間で急激に低下することがある。図10に示す場合、電流I_SINは、正弦波またはそれに近い形状の波形になっていない。図10に示す例では、図9の時刻T12から時刻T13に相当する部分において、電流値が2.0mA程度から1.0mA程度まで低下している。これはトランジスタTr1~Tr11がオンになっている状態から、トランジスタTr12~Tr22がオンになっている状態へ遷移すると、遷移のタイミングの差によって短い期間に電流値が大きく変動するためである。なお、図10に示すような、電流I_SINの急激な低下を防ぐには、例えば、PVT(Process-Voltage-Temperature)を考慮して調整する必要がある。
 [1.第1の実施形態]
 次に、第1の実施形態による電流波形生成回路について、説明する。第1の実施形態による電流波形生成回路では、ミラー先トランジスタとして有効になるトランジスタの数を変化させる際、スイッチの制御によって、ある時刻の複数のミラー先トランジスタの一部を次の時刻においてもミラー先トランジスタとし、それを繰り返すことにより、電流I_SINの変化を緩やかにする。こうすることにより、電流I_SINが急激に変化することがなくなり、図10に示す電流I_SINの急激な低下をなくす。
 [1.1 構成]
 図11Aから図11Cは、第1の実施形態による電流波形生成回路103aを示す図である。作図の都合により、第1の実施形態による電流波形生成回路103aを図11Aから図11Cによって示している。
 図11Aに示すように、第1の実施形態による電流波形生成回路103aは、電流ミラー部CMaと、電流源13と、切替え部SWaとを有する。電流ミラー部CMaは、電流ミラー元となるミラー元トランジスタTr0と、電流ミラー経路に電気的に接続された状態でミラー元トランジスタTr0の電流ミラー先となる、複数のミラー先トランジスタTr1~TrN(Nは、2以上の整数、以下同じ)と、を有する。
 切替え部SWaは、ミラー先トランジスタTr1~TrNに一対一に対応するスイッチS1~SNを有する。各スイッチS1~SNには、例えば、トランスファゲートを用いることができる。
 なお、電流源13を、定電流源ではなく、電流値の設定を変えることができる、可変電流源にしてもよい。これにより、生成する波形形状の振幅を変えることができる。
 図11Bに示すように、第1の実施形態による電流波形生成回路103aは、制御部105aと、選択部106とを有する。制御部105aは、シフトレジスタSR1~SRNを有する。シフトレジスタSR1~SRNは、出力信号Oshift_reg1~Oshift_regNを出力する。シフトレジスタSR1~SRNは、図6を参照してすでに説明した構成を有する。
 選択部106は、シフトレジスタSR1~SRNの出力信号Oshift_reg1~Oshift_regNを入力とする。選択部106は、切替え部SWaの各スイッチS1~SNをオンまたはオフに設定するための信号を出力する。
 選択部106は、セレクタSS11、SS12、SS21~SS24、SS31~SS34、…、SSN1~SSN3を有する。選択部106の各セレクタは、2入力1出力のセレクタであり、2つの入力信号のうちの一方を、選択信号に基づいて選択する。選択部106の各セレクタは、選択信号が「L」レベル(ローレベル)である場合に「0」側の入力信号を選択し、選択信号が「H」レベル(ハイレベル)である場合に「1」側の入力信号を選択する。選択部106の各セレクタは、選択した信号を出力信号として出力する。
 セレクタSS11、SS12およびSS13は、固定の「L」レベルで入力される選択信号に基づいて、出力信号Oshift_reg1を常に出力する。セレクタSS21は、選択信号SEL_1に基づいて、出力信号Oshift_reg1または出力信号Oshift_reg2を選択し、出力する。セレクタSS22は、選択信号SEL_2に基づいて、出力信号Oshift_reg1または出力信号Oshift_reg2を選択し、出力する。セレクタSS23およびSS24は、固定の「H」レベルで入力される選択信号に基づいて、出力信号Oshift_reg2を常に出力する。セレクタSS31は、選択信号SEL_3に基づいて、出力信号Oshift_reg2または出力信号Oshift_reg3を選択し、出力する。セレクタSS32は、選択信号SEL_4に基づいて、出力信号Oshift_reg2または出力信号Oshift_reg3を選択し、出力する。セレクタSS33およびSS34は、固定の「L」レベルで入力される選択信号に基づいて、出力信号Oshift_reg3を常に出力する。以下同様に、他のセレクタも固定の「L」レベル、固定の「H」レベル、「L」レベルまたは「H」レベルの選択信号に基づいて、出力信号を選択し、出力する。
 セレクタSSN1は、選択信号SEL_Nに基づいて、図示しない出力信号Oshift_reg(N-1)または出力信号Oshift_regNを選択し、出力する。セレクタSSN2、SSN3およびSSN4は、固定の「H」レベルで入力される選択信号に基づいて、出力信号Oshift_regNを常に出力する。
 ここで、出力信号Oshift_reg1に着目する。出力信号Oshift_reg1は、分岐されて、5つのセレクタSS11、SS12、SS13、SS21、および、SS22に入力されている。したがって、選択信号SEL_1、SEL_2に基づき、最大5つのスイッチS1~S5を同時にオンさせ、5つのミラー先トランジスタによる電流を得ることができる。また、出力信号Oshift_reg2に着目する。出力信号Oshift_reg2は、分岐されて、6つのセレクタSS21、SS22、SS23、SS24、SS31、および、SS32に入力されている。したがって、選択信号SEL_1~SEL_4に基づき、最大6つのスイッチS4~S9を同時にオンさせ、6つのミラー先トランジスタによる電流を得ることができる。
 本例では、最初の時刻においてスイッチS1~S3を含む複数のスイッチ、例えば4つのスイッチS1~S4または5つのスイッチS1~S5を同時にオンさせる。次の時刻においてスイッチS6~S7を含む複数のスイッチ、例えば3つのスイッチS5~S7、または3つのスイッチS6~S8、または4つのスイッチS6~S9(スイッチS9は不図示)を同時にオンさせる。さらに、次の時刻においてスイッチS10~S11(不図示)を含む複数のスイッチ、例えば4つのスイッチS8~S11(スイッチS9~S11は不図示)、または3つのスイッチS9~S11(不図示)、または4つのスイッチS9~S12(不図示)、または5つのスイッチS9~S13(不図示)、または4つのスイッチS10~S13(不図示)を同時にオンさせる。以下同様に、複数のスイッチを同時にオンさせることを繰り返す。このとき、同時刻にオンさせるスイッチの数は固定値ではなく、同時にオンさせるスイッチの数を変化させる。これにより、波形の立ち上りの過程において、その立ち上りの形状を調整することができる。
 すべてのスイッチがオンになった状態では、ミラー先トランジスタとして有効になるトランジスタの数が最大になり、電流I_SINの電流値が最大になる。その後、電流I_SINの電流値が最大になった状態から、複数のスイッチを順次オフさせて行く。このとき、最後にオンさせたスイッチ、すなわちスイッチSNを含む複数のスイッチを同時にオフさせる。その後、最初の時刻おいてオンさせたスイッチを同時にオフさせるまで、複数のスイッチを同時刻にオフさせることを繰り返す。このとき、同時刻にオフさせるスイッチの数は固定値ではなく、同時にオフさせるスイッチの数を変化させることにより、波形の立ち下がりの過程において、その立ち下がりの形状を調整することができる。
 1つのトランジスタに着目すると、ある時刻にオンさせた状態にすると、その後は連続してオンさせた状態とする。すなわち、最大電流値に到達するまでオンさせたままの状態とする。そして、最大電流値に到達した後、各トランジスタは、最小電流値に向かう過程で複数個ずつ順次オフされる。
 図11Cに示すように、第1の実施形態による電流波形生成回路103aは、セレクタSE1~SENと、ロジック部1050と、ANDゲートG1と、NORゲートG2と、遅延素子14と、D型フリップフロップFF1とを有する。
 セレクタSE1~SENは、後述する信号OUPDNに基づいて、2つの入力信号のうちの一方を出力する。各セレクタSE1~SENは、信号OUPDNが「L」レベル(ローレベル)である場合に「0」側の入力信号を選択し、信号OUPDNが「H」レベル(ハイレベル)である場合に「1」側の入力信号を選択する。セレクタSE1~SENの出力は、選択信号SEL_1~SEL_Nとして、選択部106内の対応するセレクタに入力される。
 ANDゲートG1は、最先に立ち上がる出力信号である出力信号Oshift_reg1と、最後に立ち上がる出力信号であるOshift_regNとを入力とする。ANDゲートG1は、出力信号Oshift_reg1と出力信号Oshift_regNとを論理積演算した結果を出力する。ANDゲートG1は、出力信号Oshift_reg1と出力信号Oshift_regNとが共にレベル「H」であるときにレベル「H」を出力する。ANDゲートG1は、出力信号Oshift_reg1と出力信号Oshift_regNとの少なくとも一方がレベル「L」であるときにレベル「L」を出力する。ANDゲートG1の出力信号OANDは、クロックとしてD型フリップフロップFF1に入力される。
 NORゲートG2は、出力信号Oshift_reg1およびOshift_regNを入力とする。NORゲートG2は、出力信号Oshift_reg1と出力信号Oshift_regNとを論理和演算した結果を反転して出力する。NORゲートG2は、出力信号Oshift_reg1と出力信号Oshift_regNとが共にレベル「L」であるときにレベル「H」を出力する。NORゲートG2は、出力信号Oshift_reg1と出力信号Oshift_regNとの少なくとも一方がレベル「H」であるときにレベル「L」を出力する。
 遅延素子14は、NORゲートG2の出力信号を入力とする。遅延素子14は、所定時間遅れた信号を出力する。遅延素子14によって所定時間遅れた、NORゲートG2の出力信号は、D型フリップフロップFF1へのリセット信号RSTとなる。
 D型フリップフロップFF1は、固定の「H」レベルを入力とする。D型フリップフロップFF1は、電流I_SINの電流値が増加する状態と、電流I_SINの電流値が減少する状態とを切り替えるための信号OUPDNを出力する。信号OUPDNは、最先に立ち上がる出力信号Oshift_reg1と、最後に立ち上がる出力信号Oshift_regNとに基づいて生成される信号である。信号OUPDNによって、出力電流の電流値が増加する状態と出力電流の電流値が減少する状態とを切り替える。
 ロジック部1050は、予め設定された信号を出力する。ロジック部1050から出力される信号は、各セレクタSE1~SENへの入力信号となる。ロジック部1050は、図11Aの各スイッチS1~SNをオンオフさせて正弦波またはそれに近い形状の電流I_SINを得るための信号を出力する。ミラー先のトラジスタの数を、予め決めておいた設定値にすることにより、各時刻における電流値を変更する。なお、ロジック部1050は、図11Aの各スイッチS1~SNをオンオフさせて三角波またはそれに近い形状の電流I_SINを得るための信号を出力するようにしてもよい。
 再び図11Bを参照すると、セレクタSS11、SS12およびSS13は、出力信号Oshift_reg1を常に出力する。これに対し、セレクタSS21およびSS22は、出力信号Oshift_reg1を選択する場合と出力信号Oshift_reg2を選択する場合とがある。
 ここで、セレクタSS21およびSS22に着目すると、3通りの選択状態が考えられる。すなわち、セレクタSS21およびSS22の両方が出力信号Oshift_reg1を選択する状態、セレクタSS21が出力信号Oshift_reg1を選択し、セレクタSS22が出力信号Oshift_reg2を選択する状態、セレクタSS21およびSS22の両方が出力信号Oshift_reg2を選択する状態、の3通りである。したがって、セレクタSS21およびSS22への選択信号SEL_1、SEL_2によって、出力信号Oshift_reg1によってある時刻にオンさせるトランジスタの数と出力信号Oshift_reg2によって次の時刻にオンさせるトランジスタの数とを一致させることができる。また、セレクタSS21およびSS22への選択信号SEL_1、SEL_2によって、出力信号Oshift_reg1によってある時刻にオンさせるトランジスタの数と出力信号Oshift_reg2によって次の時刻にオンさせるトランジスタの数とが異なるようにすることができる。
 図11Bに示す選択部106は、各出力信号に対応して、各出力信号を固定的に出力するセレクタを含む。例えば、出力信号Oshift_reg1に対応する、セレクタSS11~SS13は、出力信号Oshift_reg1を固定的に出力する。出力信号Oshift_reg2に対応する、セレクタSS23~SS24は、出力信号Oshift_reg2を固定的に出力する。出力信号Oshift_reg3に対応する、セレクタSS33~SS34は、出力信号Oshift_reg3を固定的に出力する。これらの各出力信号を固定的に出力するセレクタ同士の間に設けられている他のセレクタすなわち、隣接する出力信号に同士の間に設けられているセレクタは、選択信号によって選択された出力信号を出力する。例えば、セレクタSS13とセレクタ23との間に設けられている2つのセレクタSS21およびSS22は、いずれも出力信号Oshift_reg1と出力信号Oshift_reg2とを入力とし、選択信号SEL_1、SEL_2によって選択された出力信号を出力する。また、セレクタSS24とセレクタ33との間に設けられている2つのセレクタSS31およびSS32は、いずれも出力信号Oshift_reg2と出力信号Oshift_reg3とを入力とし、選択信号SEL_3、SEL_4によって選択された出力信号を出力する。このように、各出力信号を固定的に出力するセレクタ同士の間に設けられている他のセレクタの数を複数個(本例では2個)としておくことにより、各時刻において同時にオンさせるまたは同時にオフさせるトランジスタの数を同じ数にすることができる。これにより、各時刻において増加する電流値または減少する電流値を同じ値にすることができる。本例では、原則として、各出力信号に対応して固定的に出力するセレクタを2個(例えば、セレクタSS22およびSS23)、隣接する出力信号に同士の間に設けられているセレクタを2個(例えば、セレクタSS31およびSS32)としている。例外として、両端に位置している出力信号Oshift_reg1、Oshift_regNについては、出力信号に対応して固定的に出力するセレクタを3個(例えば、セレクタSS11~SS13)、隣接する出力信号に同士の間に設けられているセレクタを2個(例えば、セレクタSS21およびSS22)としている。つまり、隣接する出力信号同士の間で、対応関係が重複している。例えば、セレクタSS21およびSS22については、出力信号Oshift_reg1に対応するとともに、出力信号Oshift_reg2にも対応している。また、セレクタSS31およびSS32については、出力信号Oshift_reg2に対応するとともに、出力信号Oshift_reg3にも対応している。このように隣接する出力信号に重複して対応するセレクタを設けておくことにより、各時刻において増加または減少させる電流値を調整することができる。すなわち、ミラー先トランジスタとして有効になるトランジスタの数を各時刻において調整することができ、電流I_SINの電流値を各時刻において調整することができる。
 ここで、連続する第1および第2の時刻のうち、第1の時刻において複数のスイッチのうちX個(Xは2以上の整数)のスイッチをオンさせた後、第2の時刻において複数のスイッチのうちY個(Yは2以上の整数)のスイッチをオンさせる場合に、X<Yとすることによって、第1の時刻における出力電流の増加分よりも第2の時刻における出力電流の増加分を大きくすることができる。逆に、X>Yとすることによって、第1の時刻における出力電流の増加分よりも第2の時刻における出力電流の増加分を小さくすることができる。また、連続する第3および第4の時刻のうち、第3の時刻において複数のスイッチのうちX個のスイッチをオフさせた後、第4の時刻において複数のスイッチのうちY個のスイッチをオフさせる場合に、X<Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を大きくすることができる。逆に、X>Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を小さくすることができる。このように、選択部であるセレクタによって選択する出力信号の数を調整することによって、電流I_SINの電流値の変化を調整することができる。
 したがって、各セレクタへの選択信号によって、電流I_SINの電流値の変化を調整することができる。このため、電流I_SINの電流値を所望の波形形状にすることができる。しかも、電流値が増加する立ち上がりと、電流値が減少する立ち下がりとについて、別々に電流値の変化を調整できる。なお、電流値が増加する立ち上がりと、電流値が減少する立ち下がりとについて、同様に調整を行うこともできる。
 [1.2 動作]
 図12は、図11Aから図11Cに示す電流波形生成回路103aの動作を示すタイムチャートである。図12は、図11A中の電流I_SIN、図11C中の信号OUPDN、リセット信号RST、および、信号OAND、図11B中の出力信号Oshift_reg1~Oshift_regNの変化を示す。
 図12において、電流I_SINの「Current UP」は電流値が増加する状態であることを示し、電流I_SINの「Current DN」は電流値が減少する状態であることを示す。信号OUPDNがローレベルの間、電流I_SINの電流値は増加する状態である。信号OUPDNがローレベルからハイレベルに変化した後、少し遅れて電流I_SINの電流値が減少する状態になる。その後、信号OUPDNがハイレベルからローレベルに変化した後、少し遅れて電流I_SINの電流値が増加する状態になる。
 図12に示すように、信号OUPDNがローレベルであるとき、出力信号Oshift_reg1~Oshift_regNのうち、ローレベルからハイレベルに変化する信号数が徐々に増加する。このとき、オンさせているスイッチの数を徐々に増加させれば、ミラー先トランジスタとして有効になるトランジスタの数が徐々に増加する。そして、出力信号Oshift_reg1~Oshift_regNのすべてがハイレベルになったとき、信号OANDがハイレベルになる。これにより、信号OUPDNがハイレベルに変化する。
 信号OUPDNがハイレベルであるとき、出力信号Oshift_reg1~Oshift_regNのうち、ハイレベルからローレベルに変化する信号数が徐々に増加する。このとき、オンさせているスイッチの数を徐々に減少させれば、ミラー先トランジスタとして有効になるトランジスタの数が徐々に減少する。そして、出力信号Oshift_reg1~Oshift_regNのすべてがローレベルになったとき、リセット信号RSTがハイレベルになる。これにより、信号OUPDNがローレベルに変化する。
 電流波形生成回路103aが以上の動作を繰り返すことにより、スイッチS1~SNのうち、出力信号Oshift_reg1~Oshift_regNによってオンになる数が増加したり減少したりする。これにより、ミラー先トランジスタとして有効になるトランジスタの数が増加したり減少したりする。これにより、電流I_SINの電流値が増加したり減少したりする。その結果、正弦波またはそれに近い形状の電流を得ることができる。
 電流波形生成回路103aでは、ある時刻に複数のスイッチを同時にオンさせ、オンさせた複数のスイッチをオンさせたまま、次の時刻において他の複数のスイッチを同時にオンさせる。また、電流波形生成回路103aでは、ある時刻に複数のスイッチを同時にオフさせ、オフさせた複数のスイッチをオフさせたまま、次の時刻において他の複数のスイッチを同時にオフさせる。このように、ミラー先トランジスタとして有効になるトランジスタの数を徐々に増加させることにより、正弦波の立ち上がり部分を生成することができる。また、ミラー先トランジスタとして有効になるトランジスタの数を徐々に減少させることにより、正弦波の立ち下がり部分を生成することができる。ここで、信号OUPDNがローレベルの期間における出力信号Oshift_reg1~Oshift_regNは、電流波形の立ち上がり部分に対応する。この立ち上がり部分に着目すると、各時刻においてオンさせるスイッチの数が同じ通常設定であるなら、階段状波形の各ステップは同じである。オンさせるスイッチの数を多くすると、そのステップの変化(つまり増加分)は大きくなる。オンさせるスイッチの数を少なくすると、そのステップの変化(つまり増加分)は小さくなる。したがって、オンさせるスイッチの数を調整することにより、立ち上がり部分の形状を調整できる。立ち下がり部分の形状についても同様である。すなわち、信号OUPDNがハイレベルの期間における出力信号Oshift_regN~Oshift_reg1は、電流波形の立ち上がり部分に対応する。この波形の立ち下がり部分に着目すると、各時刻においてオフさせるスイッチの数が同じ通常設定であるなら、階段状波形の各ステップは同じである。オフさせるスイッチの数を多くすると、そのステップの変化(つまり減少分)は大きくなる。オフさせるスイッチの数を少なくすると、そのステップの変化(つまり減少分)は小さくなる。したがって、オフさせるスイッチの数を調整することにより、立ち下がり部分の形状を調整できる。
 図13は、通常設定から波形形状の立ち下り部分を変化させた波形を示す図である。通常設定とは、波形形状の調整を行っていない状態である。図13に示すような階段状に変化する波形は、寄生容量であるキャパシタCおよび信号線路の寄生抵抗の影響によって、図14に示すような緩やかに変化する波形になる。
 図14は、通常設定から波形形状の立ち下り部分を変化させた波形を示す図である。図14に示すように、波形形状の立ち下り部分において、実線から破線のように波形形状が変化する。図14に示すように、波形形状の立ち上り部分については、波形形状に変化はない。このように、波形形状の立ち下り部分だけを調整することができる。なお、ロジック部1050の設定によっては、図14中の破線から実線のように波形形状を変化させることができる。
 図15は、通常設定から波形形状の立ち下り部分を変化させた波形の離散フーリエ変換結果を示す図である。図15に示すように、離散フーリエ変換結果のスペクトラムは、目標とする周波数(例えば、210.0MHz)においてピークを有する。目標とする周波数以外のスペクトラムは非常に小さい値になっている。
 一方、図16は、通常設定から波形形状の立ち上り部分を変化させた波形を示す図である。図16に示すような階段状に変化する波形は、寄生容量であるキャパシタCおよび信号線路の寄生抵抗の影響によって、図17に示すような緩やかに変化する波形になる。
 図17は、通常設定から波形形状の立ち上り部分を変化させた波形を示す図である。図17に示すように、波形形状の立ち上り部分において、例えば、実線から破線のように波形形状が変化する。図17に示すように、波形形状の立ち下り部分については、波形形状に変化はない。このように、波形形状の立ち上り部分だけを調整することができる。ロジック部1050の設定によっては、図17中の破線から実線のように波形形状を変化させることができる。
 図18は、通常設定から波形形状の立ち下り部分を変化させた波形の離散フーリエ変換結果を示す図である。図18に示すように、離散フーリエ変換結果のスペクトラムは、目標とする周波数(例えば、210.0MHz)においてピークを有する。目標とする周波数以外のスペクトラムは非常に小さい値になっている。
 [1.3 効果]
 以上説明した第1の実施形態の電流波形生成回路103aによれば、より正確な正弦波や三角波を生成することができる。しかも、電流波形について、正確な正弦波や三角波を生成するのみならず、発光素子を駆動して得られる光について正確な正弦波や三角波に沿って変化させることができる。
 VCSELを用いて測距精度を上げる方法として、VCSELに流れる電流を正弦波にすることが考えられる。
 また、VCSELについてはある程度の高い電圧を使用し、電圧レベルをシフトさせることがあり、波形形状が崩れることがある。そのような場合に、電流波形生成回路103aを採用することによって、波形形状を調整して波形の歪みを補正することができ、正確な正弦波や三角波を生成することができる。
 [2.第1の実施形態の変形例1]
 次に、第1の実施形態による電流波形生成回路の変形例1について、説明する。第1の実施形態による電流波形生成回路の変形例1では、シフトレジスタの途中の出力を利用する。
 [2.1 構成]
 図19は、第1の実施形態の変形例1による電流波形生成回路103bを示す図である。図19において、電流波形生成回路103bは、電流ミラー部CMbと、切替え部SWbとを有する。電流ミラー部CMbは、トランジスタTr1~Tr11を有する。切替え部SWbは、トランジスタTr1~Tr11に対応するスイッチS1~S11を有する。
 電流波形生成回路103bにおいては、24個のシフトレジスタSR1~SR11の中心位置のシフトレジスタSR6の途中の出力を利用する。図20は、図19中のシフトレジスタSR6を拡大して示す図である。図20に示すように、シフトレジスタSR6は、11個のフリップフロップF1~F11を有する。シフトレジスタSR6の5番目のフリップフロップF6の出力信号Oshift_reg6’を取り出し、図12を参照して説明した信号OUPDNとして利用する。すなわち、図11Cにおける信号OUPDNの代わりに、出力信号Oshift_reg6’を選択信号として、各セレクタSE1~SENに入力する。
 つまり、複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出し、その信号に基づいて、出力電流の電流値が増加する状態と出力電流の電流値が減少する状態とを切り替える。
 [2.2 動作]
 図21は、電流波形生成回路103bの動作を示す図である。図21には、出力信号Oshift_reg0~Oshift_reg11の他に、シフトレジスタSR6の5番目のフリップフロップF5の出力信号Oshift_reg6’を示す。出力信号Oshift_reg6は時刻T7で立ち上り、出力信号Oshift_reg6’は5クロック分遅れて時刻T12で立ち上がっている。このため、出力信号Oshift_reg6と出力信号Oshift_reg6’との位相差は、15°×5=75°である。
 出力信号Oshift_reg6’は図12を参照して説明した信号OUPDNと同じであり、出力信号Oshift_reg6’を信号OUPDNの代わりに利用することによって、電流I_SINの電流値が増加する状態であるか、減少する状態であるかを判別することができる。したがって、電流I_SINの電流値が増加する状態から減少する状態へ緩やかに切り替えることができる。
 [2.3 効果]
 電流波形生成回路103bによれば、回路要素を削減できる。具体的には、図11Cを参照して説明した、ANDゲートG1、NORゲートG2、遅延素子14およびフリップフロップFF1が不要になり、実装面積を小さくすることができる。
 [3.第1の実施形態の変形例2]
 次に、第1の実施形態による電流波形生成回路の変形例2について、説明する。第1の実施形態による電流波形生成回路の変形例2では、シフトレジスタの途中の段の出力を反転して利用する。図22は、第1の実施形態の変形例2による電流波形生成回路を示す図である。
 [3.1 構成]
 制御部105を構成するシフトレジスタSRが24個のフリップフロップF1~F24を有する場合において、例えば、出力信号Oshift_reg12は、出力信号Oshift_reg1を反転して位相を180度ずらした信号と同じである。そこで、図22に示すように、24個のフリップフロップF1~F24の中間に位置する、12番目のフリップフロップF12の出力信号を取り出し、その信号を反転回路15によって反転する。フリップフロップF24の出力信号を信号A、フリップフロップF12の出力信号を信号B、反転回路15の出力信号を信号Cとする。
 [3.2 動作]
 図23は、図22に示すシフトレジスタSRの各部の信号を示す図である。図23に示すように、フリップフロップF24の出力信号である信号Aと、フリップフロップF12の出力信号である信号Bとは、位相が180度ずれている。このため、図22のフリップフロップF12の出力信号を取り出し、その信号を反転回路15によって反転することにより、信号Cが得られる。信号Cは、出力信号Oshift_reg1と同じである。
 [3.3 効果]
 第1の実施形態による電流波形生成回路の変形例2では、シフトレジスタの途中の段のフリップフロップの出力信号を取り出し、その信号を反転回路で反転し、反転した信号を、他のシフトレジスタの出力の代わりに用いる。こうすることにより、回路要素を削減できる。具体的には、シフトレジスタの数を削減でき、実装面積を小さくすることができる。
 なお、出力信号Oshift_reg2と出力信号Oshift_reg10、出力信号Oshift_reg3と出力信号Oshift_reg9、出力信号Oshift_reg4と出力信号Oshift_reg8、出力信号Oshift_reg5と出力信号Oshift_reg7、についても上記と同じ関係である。このため、これらについても同様の構成により、シフトレジスタの途中の段のフリップフロップの出力信号を取り出し、その信号を反転回路で反転し、利用することができる。
 [4.第1の実施形態の変形例3]
 次に、第1の実施形態による電流波形生成回路の変形例3について、説明する。
 [4.1 構成]
 図24は、第1の実施形態の変形例3による電流波形生成回路103cを示す図である。図24に示すように、第1の実施形態の変形例3による電流波形生成回路103cは、電流ミラー部CMbと、電流源13と、切替え部SWbとを有する。電流ミラー部CMbは、電流ミラー元となるミラー元トランジスタTr0と、電流ミラー経路に電気的に接続された状態でミラー元トランジスタTr0の電流ミラー先となる、複数のミラー先トランジスタTr1~Tr11と、を有する。トランジスタTr1~Tr11を有する。切替え部SWbは、トランジスタTr1~Tr11に対応するスイッチS1~S11を有する。 
 第1の実施形態の変形例3による電流波形生成回路103cにおいては、出力信号Oshift_reg1、Oshift_reg2が、すべてのセレクタSS11、SS12、SS21、SS22a、SS23a、SS24a、SS25a、SS26a…に入力されている。セレクタSS21、SS22a、SS23a、SS24a、SS25a、SS26a…については、入力信号のうち、選択信号SEL_1、SEL_2、SEL_3、SEL_4、SEL_5、SEL_6…に基づいて選択された信号を出力する。
 ここで、セレクタSS22a、SS23a、SS24a、SS25a、SS26a…は、3入力1出力のセレクタである。3入力1出力のセレクタSS22a、SS23a、SS24a、SS25a、SS26a…は、3つの入力信号のうちの1つを、選択信号に基づいて選択する。セレクタSS22a、SS23a、SS24a、SS25a、SS26a…の3入力のうちの1つは基準電位である。すなわち、セレクタSS22a、SS23a、SS24a、SS25a、SS26a…は、3入力1出力のセレクタであり、2つの出力信号の他に基準電位を入力とする。3つの入力信号のうちの1つを選択するため、選択信号SEL_2、SEL_3、SEL_4、SEL_5、SEL_6…は、本例では2ビットの信号である。
 なお、図24においては、作図の都合から電流波形生成回路103cのセレクタ、スイッチ、ミラー先トランジスタの一部を示している。セレクタ、スイッチ、ミラー先トランジスタは、電流波形生成回路103c内に多数設けられ、選択信号によってセレクタの選択条件が設定される。
 [4.2 動作]
 セレクタSS22a、SS23a、SS24a、SS25a、SS26a…は、選択信号SEL_2、SEL_3、SEL_4、SEL_5、SEL_6…に基づいて、3つの入力信号のうちの1つを選択する。選択信号SEL_2、SEL_3、SEL_4、SEL_5、SEL_6…に基づいて基準電位が選択された場合、そのセレクタに対応するスイッチはオフのままとなり、そのスイッチに対応するミラー先トランジスタは使用されない。
 選択信号SEL_2、SEL_3、SEL_4、SEL_5、SEL_6…に基づいて出力信号Oshift_reg1、Oshift_reg2…を選択すれば、ミラー先トランジスタの接続数を変更することができ、所望の波形形状を得ることができる。
 [4.3 効果]
 電流波形生成回路103cに、セレクタならびにスイッチおよびミラー先トランジスタを多数用意しておけば、電流波形生成回路103cを半導体チップなどに組込んだ後でも選択信号に基づいて電気的な接続状態を柔軟に変更できる。その結果、所望の波形形状を発生させることができる。
 [5.第2の実施形態]
 上述した電流波形生成回路103a、103b、103cを発光素子駆動回路に組込むことができる。図2から図5を参照して説明したように、電流波形生成回路103a、103b、103cを発光素子駆動回路に組込むことにより、生成した形状の電流波形に基づく駆動電流によって発光素子を駆動できる。つまり、電流波形生成回路を組込んだ発光素子駆動回路は、生成した形状の電流波形に基づく駆動電流を生成する駆動部を有し、その駆動部によって生成される駆動電流によって発光素子を駆動する。
 図25Aは、本開示の第2の実施形態にかかる発光素子駆動回路の実装例を示す図である。図25Aは、電流波形生成回路103a、103bまたは103cを組込んだ発光素子駆動回路、すなわちドライバに含まれる各要素が配置されるLDD(レーザダイオードドライバ)チップ1000上にLDアレイ1200bが配置される様子を模式的に示す図である。図25Aは、LDDチップ1000およびLDアレイ1200bを、LDアレイ1200bに含まれる各レーザダイオード12の発光部が配置される面(上面とする)から見た様子を示している。なお、この図25Aおよび後述する図25Bにおいて、LDアレイ1200bは、LDDチップ1000と接続される側(裏面)を、レーザダイオード12の発光部が配置される上面側から透視した状態で示されている。
 LDDチップ1000は、1つの半導体チップであって、周辺部に配置される複数のパッド1001に対して、例えばワイヤボンディングにより、外部の回路と接続される。例えば、LDDチップ1000に対して、パッド1001を介して外部から電圧VDDの電源が供給される。
 図25Bは、LDアレイ1200bの構成を模式的に示す図である。図25Bに示すように、LDアレイ1200bの裏面に対し、LDアレイ1200bに含まれる複数のレーザダイオード12それぞれのカソード端子1201と、当該複数のレーザダイオード12に共通するアノード端子1202とが整列して配置される。
 図25Bの例では、図の横方向を行、縦方向を列とするとき、カソード端子1201は、C行×L列の格子状の配列により、LDアレイ1200bの中央部に配置されている。すなわち、この例では、LDアレイ1200bに対して、(C×L)個のレーザダイオード1201が配置されることになる。また、アノード端子1202は、LDアレイ1200bの左端側にC行×A1列、右端側にC行×A2列の各格子状の配列により配置されている。
 ここで、各カソード端子1201は、例えば図4における結合部100b1、100b2、…、100bnに対応する。また、各アノード端子1202は、纏めて、例えば図4における結合部100aに対応する。各レーザダイオード12のアノードが共通して接続される結合部100aを複数のアノード端子1202により複数形成することで、当該各アノードをLDDチップ1000に接続する際の接続抵抗を低く抑えることが可能となる。
 図25Cは、LDDチップ1000およびLDアレイ1200bからなる構造を、図25Aの下端側から見た側面図である。このように、LDDチップ1000およびLDアレイ1200bは、LDDチップ1000に対してLDアレイ1200bが積層された構造とされる。各カソード端子1201および各アノード端子1202は、例えばマイクロバンプによりLDDチップ1000に接続される。
 [6.第3の実施形態]
 次に、第3の実施形態について説明する。第3の実施形態は、第2の実施形態にかかる発光素子駆動回路を含む光源装置を、レーザ光を用いて測距を行う測距装置に適用した場合の例である。
 図26は、第3の実施形態に係る測距装置の一例の構成を示すブロック図である。なお、以下では、レーザダイオード12、レーザダイオード121~12nなどを、レーザダイオード12で代表させて説明を行う。より好ましくは、図25Bまたは図25Cを用いて説明した構成を適用することが考えられる。
 図26において、第3の実施形態に係る、電子機器としての測距装置70は、ドライバ10と、レーザダイオード12と、コントローラ11と、測距部51と、受光部302と、を含む。ドライバ10は、電流波形生成回路103a、103bまたは103cを組込んだ発光素子駆動回路である。ドライバ10は、コントローラ11から供給される制御信号に応じて、レーザダイオード12をパルス状に発光させるように駆動する駆動信号を生成し、生成した駆動信号に基づきレーザダイオード12を発光させる。ドライバ10は、レーザダイオード12を発光させたタイミングを示す信号を、測距部51に渡す。
 受光部302は、受光したレーザ光に基づく光電変換により受光信号を出力する受光素子を含む。受光素子としては、例えば単一フォトンアバランシェダイオードを適用することができる。単一フォトンアバランシェダイオードは、SPAD(Single Photon Avalanche Diode)とも呼ばれ、1フォトンの入射に応じて発生した電子がアバランシェ増倍を生じ、大電流が流れる特性を有する。SPADのこの特性を利用することで、1フォトンの入射を高感度で検知することができる。受光部302適用可能な受光素子は、SPADに限らず、アバランシェフォトダイオード(APD)や、通常のフォトダイオードを適用することも可能である。
 測距部51は、レーザダイオード12からレーザ光が射出された時間t0と、受光部302に光が受光された時間t1とに基づき、対象物61との間の距離Dを算出する。
 上述の構成において、レーザダイオード12から例えば時間t0のタイミングで射出されたレーザ光60は、例えば対象物61により反射され、反射光62として、時間t1のタイミングで受光部302に受光される。測距部51は、受光部302で反射光62が受光された時間t1と、レーザダイオード12にてレーザ光が射出された時間t0との差分に基づき、対象物61までの距離Dを求める。距離Dは、定数cを光速度(2.9979×108[m/sec])として次式(1)により計算される。
D=(c/2)×(t1-t0)  …(1)
 測距部51は、上述の処理を、複数回繰り返して実行する。受光部302が複数の受光素子を含み、各受光素子に反射光62が受光された各受光タイミングに基づき距離Dをそれぞれ算出してもよい。測距部51は、発光タイミングの時間t0から受光部302に光が受光された受光タイミングまでの時間tm(受光時間tmと呼ぶ)を階級(ビン(bins))に基づき分類し、ヒストグラムを生成する。
 なお、受光部302が受光時間tmに受光した光は、レーザダイオード12が発光した光が被測定物により反射された反射光62に限られない。例えば、受光部302の周囲の環境光も、受光部302に受光される。
 図27は、第3の実施形態に適用可能な、受光部302が受光した時刻に基づく一例のヒストグラムを示す図である。図27において、横軸はビン、縦軸は、ビン毎の頻度を示す。ビンは、受光時間tmを所定の単位時間d毎に分類したものである。具体的には、ビン#0が0≦tm<d、ビン#1がd≦tm<2×d、ビン#2が2×d≦tm<3×d、…、ビン#(N-2)が(N-2)×d≦tm<(N-1)×dとなる。受光部302の露光時間を時間tepとした場合、tep=N×dである。
 測距部51は、受光時間tmを取得した回数をビンに基づき計数してビン毎の頻度310を求め、ヒストグラムを生成する。ここで、受光部302は、レーザダイオード12から射出された光が反射された反射光以外の光も受光する。このような、対象となる反射光以外の光の例として、上述した環境光がある。ヒストグラムにおいて範囲311で示される部分は、環境光による環境光成分を含む。環境光は、受光部302にランダムに入射される光であって、対象となる反射光に対するノイズとなる。
 一方、対象となる反射光は、特定の距離に応じて受光される光であって、ヒストグラムにおいてアクティブ光成分312として現れる。このアクティブ光成分312内のピークの頻度に対応するビンが、被測定物303の距離Dに対応するビンとなる。測距部51は、そのビンの代表時間(例えばビンの中央の時間)を上述した時間t1として取得することで、上述した式(1)に従い、被測定物303までの距離Dを算出することができる。このように、複数の受光結果を用いることで、ランダムなノイズに対して適切な測距を実行可能となる。
 [7.まとめ]
 電流波形生成回路103aは、電流ミラー部CMaと、切替え部SWaと、制御部105aとを有し、電流ミラー部CMaの出力電流を出力する。電流ミラー部CMaは、電流ミラー元となるミラー元トランジスタTr0と、電流ミラー経路に電気的に接続された状態でミラー元トランジスタTr0の電流ミラー先となる、複数のミラー先トランジスタTr1~TrNと、を有する。切替え部SWaは、複数のミラー先トランジスタTr1~TrNのうち、電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる。制御部105aは、生成すべき電流波形の波形形状に基づいて、切替え部SWaによって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する。
 これにより、電流波形生成回路103aは、電流ミラー部CMaの出力電流である、電流I_SINの電流値の変化を調整することができる。このため、電流波形生成回路103aは、電流I_SINの電流値を所望の波形形状にすることができる。
 制御部105aは、電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を徐々に増加させることによって、生成すべき電流波形の立ち上がり部分を形成し、かつ、電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を徐々に減少させることによって、生成すべき電流波形の立ち下がり部分を形成するように切替え部SWaを制御する。
 これにより、電流波形生成回路103aは、生成すべき電流波形の立ち上がり部分と立ち下がり部分とについて、別々に電流値の変化を調整できる。
 切替え部SWaは、複数のミラー先トランジスタそれぞれに対応する複数のスイッチS1~SNを有する。切替え部SWaは、複数のスイッチS1~SNをオンオフさせることによって、ミラー先トランジスタとして有効になるトランジスタの数を増加および減少させる。
 これにより、電流波形生成回路103aは、生成すべき電流波形の立ち上がり部分と立ち下がり部分とについて、別々に電流値の変化を調整できる。
 制御部105aは、複数のシフトレジスタSR1~SRNを含む。複数のシフトレジスタSR1~SRNは、互いに異なる時刻に順次立ち上がりかつ互いに異なる時刻に順次立ち下がる波形であり、最先に立ち上がる出力信号の波形はハイレベルの期間が最も長く、最後に立ち上がる出力信号の波形はハイレベルの期間が最も短い出力信号をそれぞれ出力する。
 さらに、電流波形生成回路103aは、複数のシフトレジスタSR1~SRNの出力信号を選択して出力する選択部106を有する。複数のシフトレジスタSR1~SRNの出力信号のうち、選択部106によって選択された出力信号によって複数のスイッチS1~SNをオンオフさせることにより、ミラー先トランジスタとして有効になるトランジスタの数を変化させる。
 これにより、電流波形生成回路103aは、電流ミラー部CMaの出力電流である、電流I_SINの電流値の変化を調整することができる。電流波形生成回路103aは、生成すべき電流波形の立ち上がり部分と立ち下がり部分とについて、別々に電流値の変化を調整できる。
 電流波形生成回路103aは、最先に立ち上がる出力信号と、最後に立ち上がる出力信号とに基づいて生成される信号によって、出力電流の電流値が増加する状態と出力電流の電流値が減少する状態とを切り替える。
 これにより、電流波形生成回路103aは、生成すべき電流波形の立ち上がり部分と立ち下がり部分とについて、別々に電流値の変化を調整できる。
 複数のシフトレジスタSR1~SRNは、それぞれ、縦続接続される複数段のフリップフロップを含む。複数段のフリップフロップは、共通のクロックのレベルが遷移する毎に、各段に記憶しているデータを次段に送り、最終段のフリップフロップは、記憶しているデータを初段のフリップフロップに送る。最終段のフリップフロップの出力は、そのシフトレジスタの出力信号になる。
 これにより、電流波形生成回路103aは、電流I_SINの電流値の変化を調整することができる。
 電流波形生成回路103aは、複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出した信号に基づいて、出力電流の電流値が増加する状態と出力電流の電流値が減少する状態とを切り替えるようにしてもよい。
 これにより、回路要素を削減でき、実装面積を小さくすることができる。
 電流波形生成回路103aは、複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出して、反転した信号を、他のシフトレジスタの出力の代わりに用いるようにしてもよい。
 これにより、回路要素を削減でき、実装面積を小さくすることができる。
 選択部106は、連続する第1および第2の時刻のうち、第1の時刻において複数のスイッチのうちX個(Xは2以上の整数)のスイッチをオンさせた後、第2の時刻において複数のスイッチのうちY個(Yは2以上の整数)のスイッチをオンさせる場合に、X<Yとすることによって、第1の時刻における出力電流の増加分よりも第2の時刻における出力電流の増加分を大きくし、X>Yとすることによって、第1の時刻における出力電流の増加分よりも第2の時刻における出力電流の増加分が小さくなるように、出力信号を選択する。また、選択部106は、連続する第3および第4の時刻のうち、第3の時刻において複数のスイッチのうちX個(Xは2以上の整数)のスイッチをオフさせた後、第4の時刻において複数のスイッチのうちY個(Yは2以上の整数)のスイッチをオフさせる場合に、X<Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を大きくし、X>Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分が小さくなるように、出力信号を選択する。
 これにより、ミラー先トランジスタとして有効になるトランジスタの数の増加数または減少数を変化させて電流I_SINの電流値を調整でき、電流I_SINの立ち上がり部分の波形形状、立ち下がり部分の波形形状を変化させることができる。
 選択部106は、複数の出力信号を入力とし、選択信号によって選択された信号を出力する。
 これにより、電流波形生成回路103aは、電流I_SINの電流値の変化を調整することができる。
 選択部106は、複数の出力信号および基準電位を入力とし、選択信号によって選択された信号を出力するようにしてもよい。
 これにより、電流波形生成回路103aを半導体チップなどに組込んだ後でも選択信号に基づいて電気的な接続状態を柔軟に変更できる。その結果、所望の波形形状を発生させることができる。
 電流ミラー部CMaの出力電流を出力する信号線路は、寄生容量および寄生抵抗を有することが好ましい。
 寄生容量であるキャパシタおよび信号線路の寄生抵抗の影響により、出力電流は緩やかに変化する波形になる。
 電流ミラー部CMaのミラー元トランジスタTr0は、ダイオード接続されて電流ミラー元となることが好ましい。
 ダイオード接続により、電流ミラー元のトランジスタを得ることができる。
 発光素子駆動回路は、電流波形生成回路103aと、電流波形生成回路103aから出力される電流波形に基づく駆動電流を生成する駆動部20を有し、駆動部20によって生成される駆動電流によって発光素子であるレーザダイオード12を駆動する。
 これにより、VCSELの発光に強弱をつけることができる。
 なお、本明細書に記載された効果はあくまで例示であって限定されるものでは無く、また他の効果があってもよい。また、本明細書に記載された構成は適宜組み合わせることが可能である。
 なお、本技術は以下のような構成も取ることができる。
(1)
 電流ミラー元となるミラー元トランジスタと、電流ミラー経路に電気的に接続された状態で前記ミラー元トランジスタの電流ミラー先となる、複数のミラー先トランジスタと、を有する電流ミラー部と、
 前記複数のミラー先トランジスタのうち、前記電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる切替え部と、
 生成すべき電流波形の波形形状に基づいて、前記切替え部によって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する制御部と、
 を有し、
前記電流ミラー部の出力電流を出力する電流波形生成回路。
(2)
 前記制御部は、
 前記電流ミラー経路に電気的に接続する前記ミラー先トランジスタとして有効になるトランジスタの数を徐々に増加させることによって、前記生成すべき電流波形の立ち上がり部分を形成し、かつ、
 前記電流ミラー経路に電気的に接続する前記ミラー先トランジスタとして有効になるトランジスタの数を徐々に減少させることによって、前記生成すべき電流波形の立ち下がり部分を形成するように前記切替え部を制御する
前記(1)に記載の電流波形生成回路。
(3)
 前記切替え部は、
 前記複数のミラー先トランジスタそれぞれに対応する複数のスイッチを有し、
 前記複数のスイッチをオンオフさせることによって、前記ミラー先トランジスタとして有効になるトランジスタの数を増加および減少させる前記(1)または(2)に記載の電流波形生成回路。
(4)
 前記制御部は、
 互いに異なる時刻に順次立ち上がりかつ互いに異なる時刻に順次立ち下がる波形であり、最先に立ち上がる出力信号の波形はハイレベルの期間が最も長く、最後に立ち上がる出力信号の波形はハイレベルの期間が最も短い出力信号をそれぞれ出力する複数のシフトレジスタを含み、
 さらに、前記複数のシフトレジスタの出力信号を選択して出力する選択部を有し、
 前記複数のシフトレジスタの出力信号のうち、前記選択部によって選択された出力信号によって前記複数のスイッチをオンオフさせることにより、前記ミラー先トランジスタとして有効になるトランジスタの数を変化させる前記(3)に記載の電流波形生成回路。
(5)
 前記最先に立ち上がる出力信号と、前記最後に立ち上がる出力信号とに基づいて生成される信号によって、前記出力電流の電流値が増加する状態と前記出力電流の電流値が減少する状態とを切り替える前記(4)に記載の電流波形生成回路。
(6)
 前記複数のシフトレジスタは、それぞれ、縦続接続される複数段のフリップフロップを含み、
 前記複数段のフリップフロップは、共通のクロックのレベルが遷移する毎に、各段に記憶しているデータを次段に送り、最終段のフリップフロップは、記憶しているデータを初段のフリップフロップに送り、
 前記最終段のフリップフロップの出力は、そのシフトレジスタの出力信号になる、
前記(5)に記載の電流波形生成回路。
(7)
 前記複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出した信号に基づいて、前記出力電流の電流値が増加する状態と前記出力電流の電流値が減少する状態とを切り替える、前記(6)に記載の電流波形生成回路。
(8)
 前記複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出して、反転した信号を、他のシフトレジスタの出力の代わりに用いる、前記(6)に記載の電流波形生成回路。
(9)
 前記選択部は、
 連続する第1および第2の時刻のうち、前記第1の時刻において前記複数のスイッチのうちX個(Xは2以上の整数)のスイッチをオンさせた後、前記第2の時刻において前記複数のスイッチのうちY個(Yは2以上の整数)のスイッチをオンさせる場合に、X<Yとすることによって、前記第1の時刻における前記出力電流の増加分よりも前記第2の時刻における前記出力電流の増加分を大きくし、X>Yとすることによって、前記第1の時刻における前記出力電流の増加分よりも前記第2の時刻における前記出力電流の増加分を小さくし、かつ、連続する第3および第4の時刻のうち、第3の時刻において複数のスイッチのうちX個のスイッチをオフさせた後、第4の時刻において複数のスイッチのうちY個のスイッチをオフさせる場合に、X<Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を大きくし、X>Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を小さくする前記(4)から(8)のいずれか1つに記載の電流波形生成回路。
(10)
 前記選択部は、複数の前記出力信号を入力とし、選択信号によって選択された信号を出力する前記(4)から(8)のいずれか1つに記載の電流波形生成回路。
(11)
 前記選択部は、複数の前記出力信号および基準電位を入力とし、選択信号によって選択された信号を出力する前記(4)から(8)のいずれか1つに記載の電流波形生成回路。
(12)
 前記電流ミラー部の出力電流を出力する信号線路は、寄生容量および寄生抵抗を有する前記(1)から(11)のいずれか1つに記載の電流波形生成回路。
(13)
 前記ミラー元トランジスタは、ダイオード接続されて電流ミラー元となる前記(1)から(12)のいずれか1つに記載の電流波形生成回路。
(14)
 前記(1)から(13)のいずれか1つに記載の電流波形生成回路と、前記電流波形生成回路から出力される電流波形に基づく駆動電流を生成する駆動部を有し、
 前記駆動部によって生成される駆動電流によって発光素子を駆動する
発光素子駆動回路。
12 レーザダイオード
13 電流源
20 駆動部
21 検出部
51 測距部
61 対象物
70 測距装置
101 トランジスタ
103、103a、103b、103c 電流波形生成回路
105、105a 制御部
106 選択部
140 キャパシタ
1050 ロジック部
CM、CMa、CMb 電流ミラー部
S1~S22、SN スイッチ
SE1~SEN セレクタ
SR1~-SR22、SRN シフトレジスタ
SW、SWa、SWb 切替え部
Tr0、Tr1~Tr22、TrN トランジスタ

Claims (14)

  1.  電流ミラー元となるミラー元トランジスタと、電流ミラー経路に電気的に接続された状態で前記ミラー元トランジスタの電流ミラー先となる、複数のミラー先トランジスタと、を有する電流ミラー部と、
     前記複数のミラー先トランジスタのうち、前記電流ミラー経路に電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を変化させる切替え部と、
     生成すべき電流波形の波形形状に基づいて、前記切替え部によって電気的に接続するミラー先トランジスタとして有効になるトランジスタの数を制御する制御部と、
     を有し、
    前記電流ミラー部の出力電流を出力する電流波形生成回路。
  2.  前記制御部は、
     前記電流ミラー経路に電気的に接続する前記ミラー先トランジスタとして有効になるトランジスタの数を徐々に増加させることによって、前記生成すべき電流波形の立ち上がり部分を形成し、かつ、
     前記電流ミラー経路に電気的に接続する前記ミラー先トランジスタとして有効になるトランジスタの数を徐々に減少させることによって、前記生成すべき電流波形の立ち下がり部分を形成するように前記切替え部を制御する
    請求項1に記載の電流波形生成回路。
  3.  前記切替え部は、
     前記複数のミラー先トランジスタそれぞれに対応する複数のスイッチを有し、
     前記複数のスイッチをオンオフさせることによって、前記ミラー先トランジスタとして有効になるトランジスタの数を増加および減少させる請求項1に記載の電流波形生成回路。
  4.  前記制御部は、
     互いに異なる時刻に順次立ち上がりかつ互いに異なる時刻に順次立ち下がる波形であり、最先に立ち上がる出力信号の波形はハイレベルの期間が最も長く、最後に立ち上がる出力信号の波形はハイレベルの期間が最も短い出力信号をそれぞれ出力する複数のシフトレジスタを含み、
     さらに、前記複数のシフトレジスタの出力信号を選択して出力する選択部を有し、
     前記複数のシフトレジスタの出力信号のうち、前記選択部によって選択された出力信号によって前記複数のスイッチをオンオフさせることにより、前記ミラー先トランジスタとして有効になるトランジスタの数を変化させる請求項3に記載の電流波形生成回路。
  5.  前記最先に立ち上がる出力信号と、前記最後に立ち上がる出力信号とに基づいて生成される信号によって、前記出力電流の電流値が増加する状態と前記出力電流の電流値が減少する状態とを切り替える請求項4に記載の電流波形生成回路。
  6.  前記複数のシフトレジスタは、それぞれ、縦続接続される複数段のフリップフロップを含み、
     前記複数段のフリップフロップは、共通のクロックのレベルが遷移する毎に、各段に記憶しているデータを次段に送り、最終段のフリップフロップは、記憶しているデータを初段のフリップフロップに送り、
     前記最終段のフリップフロップの出力は、そのシフトレジスタの出力信号になる、
    請求項5に記載の電流波形生成回路。
  7.  前記複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出し、その信号に基づいて、前記出力電流の電流値が増加する状態と前記出力電流の電流値が減少する状態とを切り替える、請求項6に記載の電流波形生成回路。
  8.  前記複数段のフリップフロップの途中の段のフリップフロップの出力信号を取り出して、反転した信号を、他のシフトレジスタの出力の代わりに用いる、請求項6に記載の電流波形生成回路。
  9.  前記選択部は、
     連続する第1および第2の時刻のうち、前記第1の時刻において前記複数のスイッチのうちX個(Xは2以上の整数)のスイッチをオンさせた後、前記第2の時刻において前記複数のスイッチのうちY個(Yは2以上の整数)のスイッチをオンさせる場合に、X<Yとすることによって、前記第1の時刻における前記出力電流の増加分よりも前記第2の時刻における前記出力電流の増加分を大きくし、X>Yとすることによって、前記第1の時刻における前記出力電流の増加分よりも前記第2の時刻における前記出力電流の増加分を小さくし、かつ、連続する第3および第4の時刻のうち、第3の時刻において複数のスイッチのうちX個のスイッチをオフさせた後、第4の時刻において複数のスイッチのうちY個のスイッチをオフさせる場合に、X<Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を大きくし、X>Yとすることによって、第3の時刻における出力電流の減少分よりも第4の時刻における出力電流の減少分を小さくする請求項4に記載の電流波形生成回路。
  10.  前記選択部は、複数の前記出力信号を入力とし、選択信号によって選択された信号を出力する請求項4に記載の電流波形生成回路。
  11.  前記選択部は、複数の前記出力信号および基準電位を入力とし、選択信号によって選択された信号を出力する請求項4に記載の電流波形生成回路。
  12.  前記電流ミラー部の出力電流を出力する信号線路は、寄生容量および寄生抵抗を有する請求項1に記載の電流波形生成回路。
  13.  前記ミラー元トランジスタは、ダイオード接続されて電流ミラー元となる請求項1に記載の電流波形生成回路。
  14.  請求項1に記載の電流波形生成回路と、前記電流波形生成回路から出力される電流波形に基づく駆動電流を生成する駆動部を有し、
     前記駆動部によって生成される駆動電流によって発光素子を駆動する
    発光素子駆動回路。
PCT/JP2020/035810 2019-09-23 2020-09-23 電流波形生成回路および発光素子駆動回路 WO2021060280A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962904390P 2019-09-23 2019-09-23
US62/904,390 2019-09-23

Publications (1)

Publication Number Publication Date
WO2021060280A1 true WO2021060280A1 (ja) 2021-04-01

Family

ID=75166127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/035810 WO2021060280A1 (ja) 2019-09-23 2020-09-23 電流波形生成回路および発光素子駆動回路

Country Status (1)

Country Link
WO (1) WO2021060280A1 (ja)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6198003A (ja) * 1984-10-19 1986-05-16 Hitachi Ltd 信号形成回路
US20090051576A1 (en) * 2007-07-27 2009-02-26 Fujitsu Limited Switching circuitry
JP2010109097A (ja) * 2008-10-29 2010-05-13 Mitsumi Electric Co Ltd 半導体装置
JP2010118973A (ja) * 2008-11-14 2010-05-27 Seiko Epson Corp 電流負荷駆動回路、集積回路装置、電子機器及び駆動方法
JP2015139081A (ja) * 2014-01-22 2015-07-30 ソニー株式会社 イメージセンサ、駆動方法、及び、電子機器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6198003A (ja) * 1984-10-19 1986-05-16 Hitachi Ltd 信号形成回路
US20090051576A1 (en) * 2007-07-27 2009-02-26 Fujitsu Limited Switching circuitry
JP2010109097A (ja) * 2008-10-29 2010-05-13 Mitsumi Electric Co Ltd 半導体装置
JP2010118973A (ja) * 2008-11-14 2010-05-27 Seiko Epson Corp 電流負荷駆動回路、集積回路装置、電子機器及び駆動方法
JP2015139081A (ja) * 2014-01-22 2015-07-30 ソニー株式会社 イメージセンサ、駆動方法、及び、電子機器

Similar Documents

Publication Publication Date Title
EP0704948B1 (en) Drive circuit for semiconductor light-emitting device
US8169163B2 (en) Control device and LED light emitting device using the control device
US10460667B2 (en) Driving control system for driving pixel driving circuit and display apparatus thereof
US6882329B2 (en) Drive signal generator and image display apparatus
US20110121755A1 (en) Method of controlling supply voltage, multi-channel light-emitting diode driving circuit and multi-channel system using the same
US20040207451A1 (en) Impedance trimming circuit
US20060092099A1 (en) Light emitting diode driving device and optical transmission device including the same
US11988776B2 (en) Optical light emitter device and method
CN115336124A (zh) 脉冲激光二极管驱动器
US5914484A (en) Circuit for adjusting luminous energy of light-emitting element and optical device using same
WO2021060280A1 (ja) 電流波形生成回路および発光素子駆動回路
CN108230989B (zh) 栅极驱动电路及其输出模块、显示面板
US20220014187A1 (en) Pulse generator circuit, related system and method
CN100466032C (zh) 电子发射显示器以及驱动该电子发射显示器的方法
JP6914010B2 (ja) 駆動装置
TWI675273B (zh) 升壓電路、輸出緩衝電路與顯示面板
US11996676B2 (en) Pulsed resonant laser diode array driver
US20220069545A1 (en) Controlling optical pulse shape of a laser diode
US20210344347A1 (en) Dll circuit, time difference amplifier circuit, and distance-measuring imaging device
WO2020189137A1 (ja) 電流生成回路および測距システム
JP6931250B2 (ja) 補償電流校正裝置
CN114648941A (zh) 像素电路及驱动方法
WO2021059756A1 (ja) 光源装置
WO2024043129A1 (ja) 光源装置及び測距装置
US20240069173A1 (en) Output stage circuit, dac, tof system and current driving method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20869002

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20869002

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP