JP2013011449A - Light sensor - Google Patents

Light sensor Download PDF

Info

Publication number
JP2013011449A
JP2013011449A JP2011142720A JP2011142720A JP2013011449A JP 2013011449 A JP2013011449 A JP 2013011449A JP 2011142720 A JP2011142720 A JP 2011142720A JP 2011142720 A JP2011142720 A JP 2011142720A JP 2013011449 A JP2013011449 A JP 2013011449A
Authority
JP
Japan
Prior art keywords
signal
sensor
receiving element
light receiving
period
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2011142720A
Other languages
Japanese (ja)
Inventor
Takao Tsuruhara
貴男 鶴原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2011142720A priority Critical patent/JP2013011449A/en
Publication of JP2013011449A publication Critical patent/JP2013011449A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a light sensor capable of quickening responsibility.SOLUTION: A control part 30 for converting a sensor signal into a digital signal has comparison means 32 for comparing a sensor signal with a prescribed threshold, processing means 33 for outputting an AD conversion start signal on the basis of the comparison result of the comparison means 32 and first AD conversion means 31 for converting the sensor signal into a first digital signal. The control part 30 makes the processing means 33 input a sensor signal at the time when a prescribed period during which a light receiving element has been exposed has elapsed from an output control circuit to the comparison means 32. On the basis of the comparison result of the comparison means 32, the control part 30 makes the processing means 33 input the AD conversion start signal in the first AD conversion means 31 so as to convert the sensor signal into a first digital signal when the sensor signal is equal to or more than the threshold, while it makes the output control circuit extend an output period of the light receiving element and makes the processing means 33 input the sensor signal at the time when the extension period has elapsed in the comparison means 32 when the sensor signal is less than the threshold. Thus, processing on the basis of the comparison result of the comparison means 32 is performed.

Description

本発明は、センサ部から出力されるアナログ信号のセンサ信号をデジタル信号に変換して出力するライトセンサに関するものである。   The present invention relates to a light sensor that converts a sensor signal of an analog signal output from a sensor unit into a digital signal and outputs the digital signal.

従来より、露光量に応じてアナログ信号であるセンサ信号を出力するセンサ部と、センサ部の露光期間を制御する受光素子駆動回路と、AD変換回路を有する信号処理回路と、下限値が設定されたコンパレータとを備えたライトセンサが開示されている(例えば、特許文献1参照)。なお、露光量は、センサ部にて検出される測定光の照度と露光期間との積で求められるものであり、測定光が太陽光である場合には局所時間的には照度を一定とみなすことができるため、露光期間に比例して大きくなる。   Conventionally, a sensor unit that outputs a sensor signal that is an analog signal according to an exposure amount, a light receiving element driving circuit that controls an exposure period of the sensor unit, a signal processing circuit that has an AD conversion circuit, and a lower limit value are set. A light sensor including a comparator is disclosed (for example, see Patent Document 1). The exposure amount is obtained by the product of the illuminance of the measurement light detected by the sensor unit and the exposure period. When the measurement light is sunlight, the illuminance is considered to be constant in local time. Therefore, it increases in proportion to the exposure period.

このようなライトセンサでは、センサ部は、測定光に所定期間露光されると、露光量に応じたアナログ信号であるセンサ信号を出力する。そして、センサ信号は信号処理回路およびコンパレータに入力され、コンパレータにてセンサ信号と下限値とが比較される。下限値は任意に設定されるものであり、センサ信号とノイズとの比、つまりSN比が十分に大きくなる値に設定されている。そして、センサ信号が下限値より大きい場合には、信号処理回路にてセンサ信号がデジタル信号に変換される。また、センサ信号が下限値より小さい場合には、受光素子駆動回路にてセンサ信号が下限値より大きくなるようにセンサ部の露光期間が再度設定され、センサ部が再度設定された所定期間露光された後、センサ部から出力されるセンサ信号が信号処理回路にてデジタル信号に変換される。   In such a light sensor, when the sensor unit is exposed to the measurement light for a predetermined period, the sensor unit outputs a sensor signal that is an analog signal corresponding to the exposure amount. The sensor signal is input to the signal processing circuit and the comparator, and the comparator compares the sensor signal with the lower limit value. The lower limit is arbitrarily set, and is set to a value at which the ratio between the sensor signal and noise, that is, the SN ratio becomes sufficiently large. When the sensor signal is larger than the lower limit value, the signal processing circuit converts the sensor signal into a digital signal. When the sensor signal is smaller than the lower limit value, the exposure period of the sensor unit is set again so that the sensor signal becomes larger than the lower limit value in the light receiving element driving circuit, and the sensor unit is exposed for a predetermined period of time. After that, the sensor signal output from the sensor unit is converted into a digital signal by the signal processing circuit.

特開平08−247847号公報Japanese Patent Laid-Open No. 08-247847

しかしながら、上記ライトセンサでは、センサ信号が下限値より小さい場合には、露光期間を再度設定し直し、センサ部を再度設定された所定期間露光させた後にセンサ信号をデジタル信号に変換するため、応答性が悪くなるという問題がある。   However, in the above light sensor, when the sensor signal is smaller than the lower limit value, the exposure period is reset, and the sensor unit is exposed again for the predetermined period, and then the sensor signal is converted into a digital signal. There is a problem of getting worse.

本発明は上記点に鑑みて、応答性を早くすることができるライトセンサを提供することを目的とする。   An object of this invention is to provide the light sensor which can make responsiveness quick in view of the said point.

上記目的を達成するため、請求項1に記載の発明では、露光量に応じた電気的信号を出力する受光素子(11)と、受光素子(11)の出力期間を制御して所定時における電気的信号をアナログ信号であるセンサ信号として出力する出力制御回路(12)と、を有するセンサ部(10)と、アナログ信号であるセンサ信号をデジタル信号に変換する制御部(30)と、を備え、以下の点を特徴としている。   In order to achieve the above object, according to the first aspect of the present invention, the light receiving element (11) for outputting an electrical signal corresponding to the exposure amount, and the output period of the light receiving element (11) are controlled so that the electric power at a predetermined time is obtained. An output control circuit (12) that outputs an analog signal as a sensor signal that is an analog signal, and a control unit (30) that converts the sensor signal that is an analog signal into a digital signal. It is characterized by the following points.

すなわち、制御部(30)は、センサ信号が入力され、センサ信号と所定の閾値とを比較する比較手段(32)と、比較手段(32)の比較結果に基づいてAD変換開始信号を出力する処理手段(33)と、センサ信号が入力され、処理手段(33)からAD変換開始信号が入力されるとセンサ信号を第1デジタル信号に変換する第1AD変換手段(31)と、を有している。そして、処理手段(33)は、出力制御回路(12)に受光素子(11)が所定期間出力したときの所定期間経過時の電気的信号をセンサ信号として比較手段(32)に入力させ、比較手段(32)の比較結果に基づき、センサ信号が閾値以上のときは第1AD変換手段(31)にAD変換開始信号を入力してセンサ信号を第1デジタル信号に変換させ、センサ信号が閾値未満のときは出力制御回路(12)に受光素子(11)の出力期間を延長させ、延長期間経過時の電気的信号を比較手段(32)に入力させて比較手段(32)の比較結果に基づいた処理を行うことを特徴としている。   That is, the control unit (30) receives the sensor signal, and outputs the AD conversion start signal based on the comparison result of the comparison unit (32) that compares the sensor signal with a predetermined threshold, and the comparison unit (32). A processing unit (33); and a first AD conversion unit (31) that converts the sensor signal into a first digital signal when an AD conversion start signal is input from the processing unit (33). ing. Then, the processing means (33) causes the output control circuit (12) to input the electrical signal when the predetermined period has elapsed when the light receiving element (11) outputs for a predetermined period to the comparison means (32) as a sensor signal, and to compare Based on the comparison result of the means (32), when the sensor signal is equal to or greater than the threshold value, the AD conversion start signal is input to the first AD conversion means (31) to convert the sensor signal into the first digital signal, and the sensor signal is less than the threshold value. In this case, the output period of the light receiving element (11) is extended to the output control circuit (12), and an electrical signal at the time when the extension period has elapsed is input to the comparison means (32), and based on the comparison result of the comparison means (32). It is characterized by performing the processing.

このようなライトセンサでは、受光素子(11)を所定期間出力(露光)させた後、センサ信号が閾値未満のときは受光素子(11)の出力期間を延長してそのまま受光素子(11)の出力(露光)を継続させている。そして、延長した期間が経過した後に再び比較手段(32)の比較結果に基づいた処理を行っている。このため、センサ部の露光量が下限値より小さい場合には再度露光期間を設定し直してセンサ部の露光を行う従来のものと比較して、センサ信号が閾値未満のときの露光期間を有効に利用することができ、応答性を早くすることができる。   In such a light sensor, after outputting (exposure) the light receiving element (11) for a predetermined period, when the sensor signal is less than the threshold value, the output period of the light receiving element (11) is extended and the light receiving element (11) is left as it is. Output (exposure) is continued. And after the extended period passes, the process based on the comparison result of the comparison means (32) is performed again. For this reason, when the exposure amount of the sensor part is smaller than the lower limit value, the exposure period when the sensor signal is less than the threshold value is effective compared to the conventional one in which the exposure period is reset and the sensor part is exposed again. It can be used for quick response.

この場合、請求項2に記載の発明のように、制御部(30)に、受光素子(11)の出力期間に応じ、第1デジタル信号を所定の出力期間に対する露光量を示す第2デジタル信号に変換する第2AD変換手段(33)を備えることができる。   In this case, as in the second aspect of the invention, the second digital signal indicating the exposure amount for the predetermined output period is sent to the control unit (30) according to the output period of the light receiving element (11). 2nd AD conversion means (33) which converts into (3) can be provided.

これによれば、第1AD変換手段(31)で変換された第1デジタル信号を第2AD変換手段(33)にて受光素子(11)の出力期間に応じて所定の出力(露光)期間に対する露光量を示す第2デジタル信号に変換することができるため、ライトセンサからの出力信号が入力される側の構造を複雑にすることを抑制することができる。   According to this, the first digital signal converted by the first AD conversion means (31) is exposed by the second AD conversion means (33) for a predetermined output (exposure) period according to the output period of the light receiving element (11). Since it can convert into the 2nd digital signal which shows quantity, it can suppress making the structure of the side by which the output signal from a light sensor is input complicated.

また、請求項3に記載の発明のように、第2AD変換手段(33)は、受光素子(11)の出力期間に応じて第1デジタル信号の最上位ビット側または/および最下位ビット側に0を追加することにより、所定の出力期間に対する露光量を示す第2デジタル信号に変換するものとすることができる。   Further, as in the invention described in claim 3, the second AD conversion means (33) is arranged on the most significant bit side or / and the least significant bit side of the first digital signal according to the output period of the light receiving element (11). By adding 0, it can be converted into a second digital signal indicating the exposure amount for a predetermined output period.

このように、第1デジタル信号の最上位ビット側または/および最下位ビット側に0を追加することにより、第1デジタル信号を1/2(n=0、1、2…)の値となる第2デジタル信号に変換することができる。 In this way, by adding 0 to the most significant bit side or / and the least significant bit side of the first digital signal, the first digital signal is set to a value of 1/2 n (n = 0, 1, 2,...). Can be converted to a second digital signal.

そして、請求項4に記載の発明のように、閾値を比較手段(32)に入力されるセンサ信号が取り得る最大値の1/2の値とし、処理手段(33)は、センサ信号が閾値未満のとき、出力制御回路(12)に受光素子(11)の出力期間を2倍に延長させ、延長期間が経過したときの比較手段(32)の比較結果に基づいた処理を行うものとすることができる。   Further, as in the invention described in claim 4, the threshold value is set to a value that is ½ of the maximum value that can be taken by the sensor signal input to the comparison means (32), and the processing means (33) If it is less, the output control circuit (12) causes the output period of the light receiving element (11) to be doubled, and the processing based on the comparison result of the comparison means (32) when the extension period has elapsed is performed. be able to.

これによれば、第1AD変換手段(31)にてセンサ信号を第1デジタル信号に変換するとき、センサ信号が飽和信号であることを抑制することができ、検出精度が低下することを抑制することができる。   According to this, when the sensor signal is converted into the first digital signal by the first AD conversion means (31), it can be suppressed that the sensor signal is a saturated signal, and the detection accuracy can be prevented from being lowered. be able to.

さらに、請求項5に記載の発明のように、第2AD変換手段(33)は、受光素子(11)の出力期間を延長した後のセンサ信号が閾値未満の場合であって、最上位ビット側および最下位ビット側に0を追加できる合計の数をn、受光素子(11)の最初の出力期間をTとしたとき、受光素子(11)の出力期間が2Tとなったとき、センサ信号が閾値未満の場合であってもその時点におけるセンサ信号を第1AD変換手段(31)にて第1デジタル信号に変換させるものとすることができる。 Further, as in the invention described in claim 5, the second AD conversion means (33) is a case where the sensor signal after extending the output period of the light receiving element (11) is less than the threshold value, and the most significant bit side When the total number that can add 0 to the least significant bit side is n, the initial output period of the light receiving element (11) is T, and the output period of the light receiving element (11) is 2 n T, the sensor Even if the signal is less than the threshold value, the sensor signal at that time can be converted into the first digital signal by the first AD conversion means (31).

また、請求項6に記載の発明のように、受光素子(11)と接続される増幅手段を備え、第1AD変換手段(31)および比較手段(32)には、増幅手段にて増幅されたセンサ信号が入力されるようにすることができる。   Further, as in the invention described in claim 6, an amplification means connected to the light receiving element (11) is provided, and the first AD conversion means (31) and the comparison means (32) are amplified by the amplification means. A sensor signal can be input.

そして、請求項7に記載の発明のように、請求項1ないし6のいずれか1つに記載のライトセンサは、車両に搭載されて用いられ、太陽光を検出するのに用いられるものとすることができる。   And like invention of Claim 7, the light sensor as described in any one of Claim 1 thru | or 6 shall be used mounted in a vehicle and shall be used for detecting sunlight. be able to.

なお、この欄および特許請求の範囲で記載した各手段の括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。   In addition, the code | symbol in the bracket | parenthesis of each means described in this column and the claim shows the correspondence with the specific means as described in embodiment mentioned later.

本発明の第1実施形態におけるライトセンサのブロック図である。It is a block diagram of the light sensor in a 1st embodiment of the present invention. 図1に示すセンサ部の回路図であるIt is a circuit diagram of the sensor part shown in FIG. センサ部の作動を示すタイミングチャートである。It is a timing chart which shows the action | operation of a sensor part. センサ信号と受光素子の出力期間との関係を示すタイミングチャートである。It is a timing chart which shows the relationship between a sensor signal and the output period of a light receiving element. 受光素子の出力期間と第2デジタル信号の関係を示す図である。It is a figure which shows the relationship between the output period of a light receiving element, and a 2nd digital signal. マイコンが実行するプログラムのフローチャートである。It is a flowchart of the program which a microcomputer performs.

(第1実施形態)
本発明の第1実施形態について図面を参照しつつ説明する。図1は、本実施形態におけるライトセンサのブロック図である。なお、本実施形態のライトセンサは、車両に搭載されて太陽光を検出するのに用いられると好適である。
(First embodiment)
A first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a light sensor in the present embodiment. The light sensor of this embodiment is preferably mounted on a vehicle and used to detect sunlight.

図1に示されるように、ライトセンサは、露光量に応じたアナログ信号のセンサ信号を出力するセンサ部10とセンサ信号をデジタル信号に変換する制御部30とを備えて構成されている。なお、露光量は、後述する受光素子にて検出される測定光の照度と露光期間との積で求められるものであり、測定光が太陽光である場合には局所時間的には照度を一定とみなすことができるため、露光期間に比例して大きくなる。   As shown in FIG. 1, the light sensor includes a sensor unit 10 that outputs an analog sensor signal corresponding to the exposure amount and a control unit 30 that converts the sensor signal into a digital signal. The exposure amount is obtained by the product of the illuminance of the measurement light detected by the light receiving element described later and the exposure period. When the measurement light is sunlight, the illuminance is constant in local time. Therefore, it increases in proportion to the exposure period.

まず、センサ部10の構成について説明する。図2は、本実施形態におけるセンサ部10の回路図である。図2に示されるように、センサ部10は、露光量に応じた電気的信号を出力するフォトダイオード等で構成される受光素子11と、制御部30からリセット信号や出力制御信号が入力されて受光素子11の出力を制御する出力制御回路12とを備えている。   First, the configuration of the sensor unit 10 will be described. FIG. 2 is a circuit diagram of the sensor unit 10 in the present embodiment. As shown in FIG. 2, the sensor unit 10 receives a reset signal or an output control signal from the light receiving element 11 configured by a photodiode or the like that outputs an electrical signal corresponding to the exposure amount, and the control unit 30. And an output control circuit 12 for controlling the output of the light receiving element 11.

出力制御回路12は、Pチャネル型で構成される第1〜第4PMOSトランジスタ(以下では単に、第1〜第4トランジスタという)13〜16と、第1、第2、第4トランジスタ13、14、16のゲート端子に接続され、駆動信号RST、TG、BIASを入力して第1、第2、第4トランジスタ13、14、16のオン、オフを制御する駆動回路17とを備えている。   The output control circuit 12 includes P-channel type first to fourth PMOS transistors (hereinafter simply referred to as first to fourth transistors) 13 to 16, first, second, and fourth transistors 13, 14, And a drive circuit 17 connected to the 16 gate terminals and configured to input drive signals RST, TG, and BIAS to control on / off of the first, second, and fourth transistors 13, 14, and 16.

第1トランジスタ13は、ソース端子が受光素子11と接続されていると共に第2トランジスタ14のドレイン端子と接続されている。また、第1トランジスタ13のドレイン端子はグランドと接続されている。第2トランジスタ14は、ソース端子が第3トランジスタ15のゲート端子と接続されている。第3トランジスタ15は、ドレイン端子がグランドと接続されており、ソース端子が第4トランジスタ16のドレイン端子と接続されている。第4トランジスタ16は、ソース端子が電源18に接続されている。また、第3トランジスタ15のソース端子と第4トランジスタ16のドレイン端子との接続点が端子19と接続されており、端子19からセンサ信号が出力されるようになっている。駆動回路17は端子20と接続されており、制御部30からの信号に応じて各駆動信号RST、TG、BIASを第1、第2、第4トランジスタ13、14,16に入力するようになっている。なお、第3トランジスタ15は、増幅率が1倍のアンプとして機能するものであり、第4トランジスタ16は第3トランジスタ15を駆動させるための定電流素子として機能するものである。   The first transistor 13 has a source terminal connected to the light receiving element 11 and a drain terminal of the second transistor 14. The drain terminal of the first transistor 13 is connected to the ground. The source terminal of the second transistor 14 is connected to the gate terminal of the third transistor 15. The third transistor 15 has a drain terminal connected to the ground and a source terminal connected to the drain terminal of the fourth transistor 16. The fourth transistor 16 has a source terminal connected to the power supply 18. A connection point between the source terminal of the third transistor 15 and the drain terminal of the fourth transistor 16 is connected to the terminal 19, and a sensor signal is output from the terminal 19. The drive circuit 17 is connected to the terminal 20 and inputs the drive signals RST, TG, and BIAS to the first, second, and fourth transistors 13, 14, and 16 in accordance with signals from the control unit 30. ing. Note that the third transistor 15 functions as an amplifier having an amplification factor of 1, and the fourth transistor 16 functions as a constant current element for driving the third transistor 15.

次に、上記センサ部10の作動について説明する。図3は、センサ部10の作動を示すタイミングチャートである。なお、センサ部10が作動している期間は、駆動回路17は制御信号BIASとしてロー信号を入力して第4トランジスタ16を常にオンしている。また、以下では、図2に示されるように、第1トランジスタ13のソース端子と第2トランジスタ14の接続点をA点、第2トランジスタ14のドレイン端子と第3トランジスタ15のゲート端子との接続点をB点として説明する。   Next, the operation of the sensor unit 10 will be described. FIG. 3 is a timing chart showing the operation of the sensor unit 10. During the period when the sensor unit 10 is operating, the drive circuit 17 inputs a low signal as the control signal BIAS and always turns on the fourth transistor 16. In the following, as shown in FIG. 2, the connection point between the source terminal of the first transistor 13 and the second transistor 14 is the point A, and the connection between the drain terminal of the second transistor 14 and the gate terminal of the third transistor 15. The point will be described as point B.

まず、センサ部10は、時点T0において制御部30からリセット信号が入力されると、受光素子11の電荷をリセットするために駆動回路17から制御信号RSTとしてロー信号を入力して第1トランジスタ13をオンし、受光素子11に蓄積されている電荷をグランドに放出する。このとき、第2トランジスタ14がオフしているとB点の電位が不定になってセンサ信号が不定になるため、駆動回路17から制御信号TGとしてロー信号を入力して第2トランジスタ14もオンする。   First, when a reset signal is input from the control unit 30 at time T0, the sensor unit 10 inputs a low signal as the control signal RST from the drive circuit 17 in order to reset the charge of the light receiving element 11, and the first transistor 13 Is turned on, and the charge accumulated in the light receiving element 11 is discharged to the ground. At this time, if the second transistor 14 is off, the potential at the point B becomes indeterminate and the sensor signal becomes indefinite. Therefore, the low signal is input from the drive circuit 17 as the control signal TG, and the second transistor 14 is also turned on. To do.

続いて、時点T1では、制御部30から出力(露光)開始信号が入力され、駆動回路17から駆動信号RSTとしてハイ信号を入力して第1トランジスタ13をオフする。これにより、時点T1以降では、受光素子11には露光量に応じた電荷が蓄積されていき、A点の電位が露光量に応じて高くなっていく。このとき、駆動回路17の制御信号TGをロー信号のままにして第2トランジスタ14のオン状態を維持することにより、A点とB点との電位が同電位となる。したがって、第3トランジスタ15は増幅率が1倍のアンプとして機能するため、端子19からA点の電位(電圧)がセンサ信号として出力される。   Subsequently, at time T1, an output (exposure) start signal is input from the control unit 30, a high signal is input from the drive circuit 17 as the drive signal RST, and the first transistor 13 is turned off. As a result, after the time point T1, charges corresponding to the exposure amount are accumulated in the light receiving element 11, and the potential at the point A becomes higher according to the exposure amount. At this time, by keeping the control signal TG of the drive circuit 17 as a low signal and maintaining the ON state of the second transistor 14, the potentials at the points A and B become the same potential. Therefore, since the third transistor 15 functions as an amplifier having an amplification factor of 1, the potential (voltage) at point A is output from the terminal 19 as a sensor signal.

そして、時点T2、つまり時点T1から所定期間経過した後では、制御部30から第1出力制御信号が入力され、駆動回路17から駆動信号TGとしてハイ信号を入力して第2トランジスタ14をオフする。これにより、A点とB点とが電気的に分離されるため、時点T2以降ではB点の電位は時点T2の電位に維持される。つまり、時点T2以降ではこの電圧がセンサ信号として出力される。なお、A点の電位は、時点T2以降も露光期間に応じて高くなっていく。すなわち、受光素子11の出力(露光)期間とは、A点の電位が端子19から出力される期間のことであり、図3では時点T1から時点T2の期間のことである。   Then, after the time T2, that is, after a lapse of a predetermined period from the time T1, the first output control signal is input from the control unit 30, the high signal is input as the drive signal TG from the drive circuit 17, and the second transistor 14 is turned off. . As a result, the point A and the point B are electrically separated, so that the potential at the point B is maintained at the potential at the time T2 after the time T2. That is, this voltage is output as a sensor signal after time T2. Note that the potential at the point A increases in accordance with the exposure period after the time T2. That is, the output (exposure) period of the light receiving element 11 is a period during which the potential at the point A is output from the terminal 19, and in FIG. 3 is a period from the time point T1 to the time point T2.

その後、時点T3では、時点T0と同様に、制御部30からリセット信号が入力され、駆動回路17から駆動信号RST、TGとしてロー信号を入力して第1、第2トランジスタ13、14をオンし、受光素子11に蓄積された電荷をグランドに放出する。   After that, at time T3, similarly to time T0, a reset signal is input from the control unit 30, and a low signal is input from the drive circuit 17 as the drive signals RST and TG to turn on the first and second transistors 13 and 14. The charge accumulated in the light receiving element 11 is discharged to the ground.

なお、具体的には、後述するが、制御部30は、時点T2から時点T3の期間にセンサ信号の閾値判定を行い、センサ信号が閾値未満のときには、第2出力制御信号をセンサ部10に入力する。そして、駆動回路17から駆動信号TGとしてロー信号を入力させて第2トランジスタ14をオンさせ、再びB点の電位をA点の電位と等しくさせる。その後、所定期間後に第1出力制御信号を再びセンサ部10に入力し、駆動信号TGとしてハイ信号を入力させて第2トランジスタ14をオフさせ、B点の電位を時点T1から時点T2の期間およびその後の所定期間経過後の受光素子11の出力(露光)期間に応じた電位に維持させる。そして、センサ信号の閾値判定を再び行う。すなわち、時点T3は可変であり、時点T3以降の作動は制御部30がセンサ信号の閾値判定を行って当該センサ信号をデジタル信号に変換した後に行われる。   Specifically, as will be described later, the control unit 30 performs the threshold determination of the sensor signal during the period from the time point T2 to the time point T3. When the sensor signal is less than the threshold value, the second output control signal is sent to the sensor unit 10. input. Then, a low signal is input as a drive signal TG from the drive circuit 17 to turn on the second transistor 14, and the potential at the point B is again made equal to the potential at the point A. After that, after a predetermined period, the first output control signal is input to the sensor unit 10 again, a high signal is input as the drive signal TG, the second transistor 14 is turned off, and the potential at the point B is changed from the time T1 to the time T2. Thereafter, the potential is maintained at a potential corresponding to an output (exposure) period of the light receiving element 11 after a predetermined period. Then, the threshold determination of the sensor signal is performed again. That is, the time T3 is variable, and the operation after the time T3 is performed after the control unit 30 performs threshold determination of the sensor signal and converts the sensor signal into a digital signal.

制御部30は、図1に示されるように、AD変換器31、コンパレータ32、マイクロコンピュータ(以下、単にマイコンという)33を備えている。なお、本実施形態では、AD変換器31は本発明の第1AD変換手段に相当しており、コンパレータ32は本発明の比較手段に相当しており、マイコン33は本発明の処理手段および第2AD変換手段に相当している。   As shown in FIG. 1, the control unit 30 includes an AD converter 31, a comparator 32, and a microcomputer (hereinafter simply referred to as a microcomputer) 33. In the present embodiment, the AD converter 31 corresponds to the first AD conversion means of the present invention, the comparator 32 corresponds to the comparison means of the present invention, and the microcomputer 33 includes the processing means and the second AD of the present invention. It corresponds to the conversion means.

AD変換器31は、センサ部10およびマイコン33と接続されており、マイコン33からAD変換開始信号が入力されると、センサ信号を第1デジタル信号に変換して当該第1デジタル信号をマイコン33に出力する。なお、特に限定されるものではないが、本実施形態では、センサ信号を10ビットの第1デジタル信号に変換してマイコン33に出力する。   The AD converter 31 is connected to the sensor unit 10 and the microcomputer 33. When an AD conversion start signal is input from the microcomputer 33, the AD converter 31 converts the sensor signal into a first digital signal and converts the first digital signal into the microcomputer 33. Output to. Although not particularly limited, in this embodiment, the sensor signal is converted into a 10-bit first digital signal and output to the microcomputer 33.

コンパレータ32は、センサ部10およびマイコン33と接続され、センサ部10からセンサ信号が入力されると共に、基準電圧Vrefから抵抗R1、R2により分圧された閾値としての電圧が入力される。そして、センサ信号と閾値との大小に応じた比較信号をマイコン33に出力する。本実施形態では、基準電圧Vrefはコンパレータ32に入力されるセンサ信号の最大値、つまり飽和信号と等しくされている。また、抵抗R1と抵抗R2とは等しくされており、閾値として基準電圧の1/2の電圧が入力されるようになっている。   The comparator 32 is connected to the sensor unit 10 and the microcomputer 33, and receives a sensor signal from the sensor unit 10, and also receives a voltage as a threshold value divided by the resistors R1 and R2 from the reference voltage Vref. Then, a comparison signal corresponding to the magnitude of the sensor signal and the threshold value is output to the microcomputer 33. In the present embodiment, the reference voltage Vref is set equal to the maximum value of the sensor signal input to the comparator 32, that is, the saturation signal. Further, the resistor R1 and the resistor R2 are equal to each other, and a voltage that is ½ of the reference voltage is input as a threshold value.

マイコン33は、図示しないRAM、ROM等を有しており、記憶されたプログラムを実行する。具体的には、出力制御回路12に上記リセット信号、出力(露光)開始信号、第1、第2出力制御信号を出力し、出力制御回路12に第1出力制御信号を出力した時点(図3中では時点T2)におけるコンパレータ32の比較結果に基づいて、センサ信号と閾値との大小を判定する。そして、センサ信号が閾値以上のときはAD変換器31にAD変換開始信号を入力してセンサ信号を第1デジタル信号に変換させ、当該第1デジタル信号が入力されるとこの第1デジタル信号を受光素子11の出力(露光)期間に応じた第2デジタル信号に変換して出力する。また、センサ信号が閾値未満のときは出力制御回路12に第2出力制御信号を出力して受光素子11の出力(露光)期間を延長し、所定期間経過後に再び出力制御回路12に第1出力制御信号を出力してセンサ信号と閾値との大小を判定して判定結果に基づいた処理を行う。なお、受光素子11の出力(露光)期間を延長するとは、言い換えると、受光素子11の出力(露光)をそのまま継続させることであり、再度受光素子11の出力(露光)期間を設定し直すものではない。   The microcomputer 33 has a RAM, a ROM, etc. (not shown) and executes a stored program. Specifically, the reset signal, the output (exposure) start signal, the first and second output control signals are output to the output control circuit 12, and the first output control signal is output to the output control circuit 12 (FIG. 3). Among them, the magnitude of the sensor signal and the threshold is determined based on the comparison result of the comparator 32 at time T2). When the sensor signal is equal to or greater than the threshold value, an AD conversion start signal is input to the AD converter 31 to convert the sensor signal into a first digital signal. When the first digital signal is input, the first digital signal is converted into the first digital signal. It converts into the 2nd digital signal according to the output (exposure) period of the light receiving element 11, and outputs it. When the sensor signal is less than the threshold value, a second output control signal is output to the output control circuit 12 to extend the output (exposure) period of the light receiving element 11, and the first output is again output to the output control circuit 12 after a predetermined period. A control signal is output to determine the magnitude of the sensor signal and the threshold value, and processing based on the determination result is performed. In addition, extending the output (exposure) period of the light receiving element 11 means, in other words, continuing the output (exposure) of the light receiving element 11 as it is, and resetting the output (exposure) period of the light receiving element 11 again. is not.

次に、マイコン33が受光素子11の出力(露光)期間に応じて第1デジタル信号を第2デジタル信号に変換する方法について説明する。マイコン33は、センサ信号が閾値以上と判定したとき、受光素子11の出力(露光)期間に基づき、第1デジタル信号に対して、最上位ビット(以下、単にMSBという)側、または/および最下位ビット(以下、単にLSBという)側に0を追加して15ビットの第2デジタル信号に変換する。例えば、LSB側に0を5つ追加することにより第1デジタル信号をそのままの大きさ(1倍)の第2デジタル信号に変換することができ、MSB側に0を1つ追加すると共にLSB側に0を4つ追加することにより第1デジタル信号を1/2の値となる第2デジタル信号に変換することができ、MSB側に0を2つ追加すると共にLSB側に0を3つ追加することにより第1デジタル信号を1/4の値となる第2デジタル信号に変換することができる。そして、MSB側に0を3つ追加すると共にLSB側に0を2つ追加することにより第1デジタル信号を1/8の値となる第2デジタル信号に変換することができ、MSB側に0を4つ追加すると共にLSB側に0を1つ追加することにより第1デジタル信号を1/16の値となる第2デジタル信号に変換することができ、MSB側に0を5つ追加することにより第1デジタル信号を1/32の値となる第2デジタル信号に変換することができる。   Next, a method in which the microcomputer 33 converts the first digital signal into the second digital signal according to the output (exposure) period of the light receiving element 11 will be described. When the microcomputer 33 determines that the sensor signal is equal to or greater than the threshold value, the microcomputer 33 determines the most significant bit (hereinafter simply referred to as MSB) side and / or the highest digital signal based on the output (exposure) period of the light receiving element 11. 0 is added to the lower bit (hereinafter, simply referred to as LSB) side to convert it into a 15-bit second digital signal. For example, by adding 5 0s to the LSB side, the first digital signal can be converted to a 2nd digital signal of the same size (1 time), and one 0 is added to the MSB side and the LSB side By adding four zeros to the first digital signal, it is possible to convert the first digital signal to a second digital signal having a half value. Two zeros are added to the MSB side and three zeros are added to the LSB side. Thus, the first digital signal can be converted into a second digital signal having a value of ¼. Then, by adding three 0s on the MSB side and adding two 0s on the LSB side, the first digital signal can be converted into a second digital signal having a value of 1/8, and 0 on the MSB side. The first digital signal can be converted to a second digital signal having a value of 1/16 by adding four 0s and one 0 on the LSB side, and adding five 0s on the MSB side Thus, the first digital signal can be converted into a second digital signal having a value of 1/32.

すなわち、本実施形態のマイコン33は、最初にセンサ信号と閾値との大小を判定したときの受光素子11の出力(露光)期間をTとしたとき、受光素子11の出力(露光)期間が2T(n=0〜5)であるときの第1デジタル信号を受光素子11の出力(露光)期間がTであるときの露光量を示す第2デジタル信号に変換する。 That is, the microcomputer 33 of the present embodiment has an output (exposure) period of 2 for the light receiving element 11 when T is an output (exposure) period for the light receiving element 11 when the magnitude of the sensor signal and the threshold value is first determined. The first digital signal when n T (n = 0 to 5) is converted into a second digital signal indicating the exposure amount when the output (exposure) period of the light receiving element 11 is T.

図4は、センサ信号と受光素子11の出力(露光)期間との関係を示すタイミングチャートである。なお、図4において、Vccはセンサ信号が取り得る最大値であり、閾値は1/2Vccとされている。また、図4では、オフセットやノイズ等は無視している。   FIG. 4 is a timing chart showing the relationship between the sensor signal and the output (exposure) period of the light receiving element 11. In FIG. 4, Vcc is the maximum value that can be taken by the sensor signal, and the threshold value is ½ Vcc. Further, in FIG. 4, offset, noise, and the like are ignored.

図4に示されるように、AD変換器31およびコンパレータ32にセンサ信号1〜4が入力される場合を考える。上記のように、センサ信号は受光素子11の出力(露光)期間に依存するものである。この場合、例えば、時点Tでは、センサ信号1〜4をデジタル信号に変換することができるが、センサ信号2〜4は閾値を超えておらず、SN比が小さくなるためにセンサ信号2〜4をデジタル信号に変換しても検出精度が低い。一方、時点32Tでは、センサ信号1〜4の出力が全て閾値を越えているが、センサ信号1〜3は飽和状態になっているために正確な検出を行うことができず、センサ信号1〜3をデジタル信号に変換しても検出精度が低い。   Consider the case where sensor signals 1 to 4 are input to the AD converter 31 and the comparator 32 as shown in FIG. As described above, the sensor signal depends on the output (exposure) period of the light receiving element 11. In this case, for example, at time T, the sensor signals 1 to 4 can be converted into digital signals. However, since the sensor signals 2 to 4 do not exceed the threshold value and the SN ratio is small, the sensor signals 2 to 4 are reduced. Even if it is converted into a digital signal, the detection accuracy is low. On the other hand, at the time 32T, the outputs of the sensor signals 1 to 4 all exceed the threshold value, but the sensor signals 1 to 3 cannot be accurately detected because the sensor signals 1 to 3 are saturated. Even if 3 is converted into a digital signal, the detection accuracy is low.

そして、マイコン33は、上記のように、MSB側または/およびLSB側に0を追加することにより、第1デジタル信号を1倍、1/2倍、1/4倍、1/8倍、1/16倍、1/32倍のいずれかの値とした第2デジタル信号に変換することができる。したがって、本実施形態のマイコン33は、2T(n=0〜5)の時点において、センサ信号が閾値を越えている場合にAD変換器31にセンサ信号を第1デジタル信号に変換させ、当該第1デジタル信号から受光素子11の出力(露光)期間Tにおける第2デジタル信号に変換する。 Then, as described above, the microcomputer 33 adds 0 to the MSB side and / or the LSB side, thereby making the first digital signal 1 ×, 1/2 ×, 1/4 ×, 1/8 ×, It can be converted into a second digital signal having a value of / 16 times or 1/32 times. Therefore, the microcomputer 33 of the present embodiment causes the AD converter 31 to convert the sensor signal into the first digital signal when the sensor signal exceeds the threshold at the time of 2 n T (n = 0 to 5), The first digital signal is converted into a second digital signal in the output (exposure) period T of the light receiving element 11.

図5は、受光素子11の出力(露光)期間と第2デジタル信号の構造の関係を示す図である。なお、図5において、AD(15)とは第2デジタル信号が15ビットであることを示しており、AD(10)とは10ビットの第1デジタル信号を示している。図4および図5に示されるように、例えば、センサ信号2のような場合には、時点Tではセンサ信号が閾値を超えていないため、マイコン33は、時点2Tにてセンサ信号をAD変換器31にて第1デジタル信号に変換させる。そして、第1デジタル信号に対してMSB側に0を1つ追加すると共にLSB側に0を4つ追加して第1デジタル信号の1/2の値となる第2デジタル信号に変換する。すなわち、マイコン33は、第1デジタル信号を受光素子11の出力(露光)期間がTであるときの露光量を示す第2デジタル信号に変換する。   FIG. 5 is a diagram showing the relationship between the output (exposure) period of the light receiving element 11 and the structure of the second digital signal. In FIG. 5, AD (15) indicates that the second digital signal is 15 bits, and AD (10) indicates the 10-bit first digital signal. As shown in FIGS. 4 and 5, for example, in the case of the sensor signal 2, since the sensor signal does not exceed the threshold value at the time point T, the microcomputer 33 converts the sensor signal to the AD converter at the time point 2T. In step 31, the first digital signal is converted. Then, one 0 is added to the MSB side with respect to the first digital signal and four 0s are added to the LSB side to convert the first digital signal into a second digital signal having a value half that of the first digital signal. That is, the microcomputer 33 converts the first digital signal into a second digital signal indicating the exposure amount when the output (exposure) period of the light receiving element 11 is T.

また、例えば、センサ信号3のような場合には、時点T、時点2T、時点4Tではセンサ信号が閾値を超えていない。このため、マイコン33は、時点8Tにてセンサ信号をAD変換器31にて第1デジタル信号に変換させ、当該第1デジタル信号に対してMSB側に0を3つ追加すると共にLSB側に0を2つ追加して第1デジタル信号の1/16の値となる第2デジタル信号に変換する。すなわち、マイコン33は、第1デジタル信号を受光素子11の出力(露光)期間がTであるときの露光量を示す第2デジタル信号に変換する。   Further, for example, in the case of the sensor signal 3, the sensor signal does not exceed the threshold at time T, time 2T, and time 4T. For this reason, the microcomputer 33 converts the sensor signal into the first digital signal at the time point 8T by the AD converter 31, and adds three 0s to the MSB side and 0 to the LSB side with respect to the first digital signal. Are converted into a second digital signal having a value 1/16 of the first digital signal. That is, the microcomputer 33 converts the first digital signal into a second digital signal indicating the exposure amount when the output (exposure) period of the light receiving element 11 is T.

なお、本実施形態のコンパレータ32の閾値がセンサ信号が取り得る最大値の1/2の値とされているのは、上記のように、マイコン33は、受光素子11の出力(露光)期間が2Tであるときの第1デジタル信号であれば、当該第1デジタル信号を出力(露光)期間がTであるときの露光量を示す第2デジタル信号に変換することができるためである。つまり、センサ信号が閾値未満である場合には、その時点から受光素子11の出力(露光)期間が2倍経過した後であってもセンサ信号が飽和せず、正確な露光量を検出できるためである。 Note that the threshold value of the comparator 32 of the present embodiment is set to a value that is ½ of the maximum value that the sensor signal can take, as described above, the microcomputer 33 has an output (exposure) period of the light receiving element 11. This is because if the first digital signal is 2 n T, the first digital signal can be converted into a second digital signal indicating the exposure amount when the output (exposure) period is T. That is, when the sensor signal is less than the threshold value, the sensor signal does not saturate even after the output (exposure) period of the light receiving element 11 has doubled from that point, and an accurate exposure amount can be detected. It is.

次に、このようなライトセンサの作動について説明する。図6は、本実施形態におけるライトセンサのマイコン33が実行するプログラムのフローチャートである。マイコン33は、例えば、車両に搭載されて用いられる場合には、イグニッションスイッチがオンされて外部光の照度を要求する要求信号が入力されると以下の制御を実行する。   Next, the operation of such a light sensor will be described. FIG. 6 is a flowchart of a program executed by the microcomputer 33 of the light sensor in the present embodiment. For example, when the microcomputer 33 is mounted on a vehicle and used, when the ignition switch is turned on and a request signal for requesting the illuminance of external light is input, the microcomputer 33 executes the following control.

図6に示されるように、ステップ100では、出力制御回路12にリセット信号を入力し(図2中時点T0)、受光素子11をリセットさせる。具体的には、上記で説明したように、駆動回路17から制御信号RST、TGとしてロー信号を入力させて受光素子11に蓄積された電荷を放出させる。   As shown in FIG. 6, in step 100, a reset signal is input to the output control circuit 12 (time T0 in FIG. 2), and the light receiving element 11 is reset. Specifically, as described above, a low signal is input as the control signals RST and TG from the drive circuit 17 to release the charge accumulated in the light receiving element 11.

ステップ101では、出力制御回路12に出力(露光)開始信号を入力し(図2中時点T1)、駆動回路17から制御信号RSTとしてハイ信号を入力させて図2中のA点の電位を受光素子11の露光量に応じた電位とすると共に図2中のB点の電位をA点の電位に等しくさせる。これにより、センサ部10から受光素子11の露光量に応じたセンサ信号がAD変換器31およびコンパレータ32に入力される。また、マイコン33は、受光素子11の露光期間を計測する。   In step 101, an output (exposure) start signal is input to the output control circuit 12 (time T1 in FIG. 2), and a high signal is input from the drive circuit 17 as the control signal RST to receive the potential at point A in FIG. A potential corresponding to the exposure amount of the element 11 is set and the potential at point B in FIG. 2 is made equal to the potential at point A. As a result, a sensor signal corresponding to the exposure amount of the light receiving element 11 is input from the sensor unit 10 to the AD converter 31 and the comparator 32. The microcomputer 33 measures the exposure period of the light receiving element 11.

続いて、受光素子11に期間tとしての所定期間Tの露光を行わせた後(ステップ102)、ステップ103では、出力制御回路12に第1出力制御信号を入力し(図2中時点T2)、駆動回路17から制御信号TGとしてハイ信号を入力させてB点の電位を受光素子11の露光期間Tのときの露光量に応じた電位に維持させる。そして、この状態でコンパレータ32に入力されるセンサ信号と閾値との大小を判定し、センサ信号が閾値未満である場合にはステップ104に進む。またセンサ信号が閾値以上であるときにはステップ106に進む。   Subsequently, after the light receiving element 11 is exposed for a predetermined period T as a period t (step 102), in step 103, a first output control signal is input to the output control circuit 12 (time point T2 in FIG. 2). Then, a high signal is input as the control signal TG from the drive circuit 17 to maintain the potential at the point B at a potential corresponding to the exposure amount during the exposure period T of the light receiving element 11. In this state, the magnitude of the sensor signal input to the comparator 32 and the threshold value is determined. If the sensor signal is less than the threshold value, the process proceeds to step 104. If the sensor signal is greater than or equal to the threshold value, the process proceeds to step 106.

ステップ104では、受光素子11の露光期間tが32T未満であるかを判定する。本実施形態におけるマイコン33は、MSB側または/およびLSB側に0を追加することにより10ビットの第1デジタル信号を15ビットの第2デジタル信号に変換するものであり、最大でMSB側に0を5つ追加して第1デジタル信号を1/32の値の第2デジタル信号に変換するものである。すなわち、受光素子11の出力(露光)期間が32T以上である場合には、マイコン33では入力された第1デジタル信号を受光素子11の出力(露光)期間がTであるときの露光量を示す第2デジタル信号に変換することができない。このため、センサ信号が閾値未満である場合であっても、露光期間が32T以上である場合には、ステップ106に進む。なお、ステップ104は、言い換えると、受光素子11の露光期間tが32Tであるか否かを判定するステップである。   In step 104, it is determined whether the exposure period t of the light receiving element 11 is less than 32T. The microcomputer 33 in the present embodiment converts a 10-bit first digital signal into a 15-bit second digital signal by adding 0 to the MSB side and / or LSB side, and at most 0 to the MSB side. Are added to convert the first digital signal into a second digital signal having a value of 1/32. That is, when the output (exposure) period of the light receiving element 11 is 32T or more, the microcomputer 33 indicates the exposure amount when the output (exposure) period of the light receiving element 11 is T. It cannot be converted to the second digital signal. For this reason, even if the sensor signal is less than the threshold, if the exposure period is 32T or more, the process proceeds to step 106. In other words, step 104 is a step for determining whether or not the exposure period t of the light receiving element 11 is 32T.

また、ステップ104にて受光素子11の出力(露光)期間が32T未満であると判定した場合には、ステップ105に進み、ステップ102における受光素子11の出力(露光)期間tを2倍にし、受光素子11の出力(露光)を継続させる。すなわち、例えば、ステップ102における受光素子11の出力(露光)期間tがTである場合には、受光素子11の出力(露光)期間を2Tにし、ステップ103の判定を行う際のセンサ信号が受光素子11の出力(露光)期間が2Tであるときの信号となるようにする。また、ステップ102における受光素子11の出力(露光)期間tが2Tである場合には、受光素子11の出力(露光)期間を4Tにし、ステップ103の判定を行う際のセンサ信号が受光素子11の出力(露光)期間が4Tであるときの信号となるようにする。具体的には、上記のように、出力制御回路12に第2出力制御信号を入力し、駆動回路17から制御信号TGとしてロー信号を入力させてB点の電位をA点の電位と等しくさせる。そして、延長期間経過後に再び出力制御回路12に第1出力制御信号を入力し、ステップ103の判定を行う。   If it is determined in step 104 that the output (exposure) period of the light receiving element 11 is less than 32T, the process proceeds to step 105, and the output (exposure) period t of the light receiving element 11 in step 102 is doubled. The output (exposure) of the light receiving element 11 is continued. That is, for example, if the output (exposure) period t of the light receiving element 11 in step 102 is T, the output (exposure) period of the light receiving element 11 is set to 2T, and the sensor signal when performing the determination in step 103 is received. A signal when the output (exposure) period of the element 11 is 2T is set. When the output (exposure) period t of the light receiving element 11 in step 102 is 2T, the output (exposure) period of the light receiving element 11 is set to 4T, and the sensor signal when performing the determination in step 103 is the light receiving element 11. This is a signal when the output (exposure) period is 4T. Specifically, as described above, the second output control signal is input to the output control circuit 12, and a low signal is input from the drive circuit 17 as the control signal TG, so that the potential at the point B is equal to the potential at the point A. . Then, after the extension period has elapsed, the first output control signal is input to the output control circuit 12 again, and the determination in step 103 is performed.

ステップ106では、AD変換器31にAD変換開始信号を入力し、センサ信号を第1デジタル信号に変換させて当該第1デジタル信号をマイコン33に入力させる。なお、本実施形態では、第1デジタル信号は10ビットのデジタル信号である。   In step 106, an AD conversion start signal is input to the AD converter 31, the sensor signal is converted into a first digital signal, and the first digital signal is input to the microcomputer 33. In the present embodiment, the first digital signal is a 10-bit digital signal.

続いて、ステップ107では、受光素子11の出力(露光)期間tに応じてAD変換器31から入力された第1デジタル信号を第2デジタル信号に変換する。例えば、受光素子11の出力(露光)期間tがTである場合には、第1デジタル信号をLSB側に0を5つ追加した第2デジタル信号に変換し、受光素子11の出力(露光)期間が2Tである場合には、第1デジタル信号をMSB側に0を1つ追加すると共にLSB側に0を4つ追加した第2デジタル信号に変換する。すなわち、第1デジタル信号から受光素子11を所定期間Tだけ出力(露光)させたときの露光量を示す第2デジタル信号に変換する。そして、ステップ108にて15ビットの第2デジタル信号を外部回路に出力する。   Subsequently, in step 107, the first digital signal input from the AD converter 31 is converted into a second digital signal in accordance with the output (exposure) period t of the light receiving element 11. For example, when the output (exposure) period t of the light receiving element 11 is T, the first digital signal is converted into a second digital signal obtained by adding five 0s to the LSB side, and the output (exposure) of the light receiving element 11 When the period is 2T, the first digital signal is converted into a second digital signal in which one 0 is added to the MSB side and four 0s are added to the LSB side. That is, the first digital signal is converted into a second digital signal indicating an exposure amount when the light receiving element 11 is output (exposed) for a predetermined period T. In step 108, the 15-bit second digital signal is output to the external circuit.

以上説明したように、本実施形態では、センサ信号が閾値未満の場合には、受光素子11の出力(露光)期間をそのまま延長している。すなわち、センサ部の露光量が下限値より小さい場合には再度露光期間を設定し直してセンサ部の露光を行う従来のものと比較して、露光量が閾値未満のときの露光期間を有効に利用することができ、応答性を早くすることができる。   As described above, in this embodiment, when the sensor signal is less than the threshold value, the output (exposure) period of the light receiving element 11 is extended as it is. In other words, when the exposure amount of the sensor unit is smaller than the lower limit value, the exposure period when the exposure amount is less than the threshold value is made effective compared to the conventional method in which the exposure period is reset and the exposure of the sensor unit is performed again. It can be used and responsiveness can be accelerated.

また、マイコン33では、AD変換器31で変換された第1デジタル信号に対してMSB側および/またはLSB側に0を追加することにより、第1デジタル信号を受光素子11の出力(露光)期間Tに応じた第2デジタル信号に変換しているため、第2デジタル信号が入力される側の構造を複雑にすることもない。   Further, the microcomputer 33 adds 0 to the MSB side and / or the LSB side with respect to the first digital signal converted by the AD converter 31, thereby outputting the first digital signal to the output (exposure) period of the light receiving element 11. Since the second digital signal is converted according to T, the structure on the side where the second digital signal is input is not complicated.

(他の実施形態)
上記第1実施形態では、センサ部10からのセンサ信号がそのままAD変換器31およびコンパレータ32に入力される構成について説明したが、例えば、センサ部10からのセンサ信号が増幅手段としてのアンプで所定倍に増幅された後、増幅されたセンサ信号がAD変換器31およびコンパレータ32に入力されるようにしてもよい。
(Other embodiments)
In the first embodiment, the configuration in which the sensor signal from the sensor unit 10 is directly input to the AD converter 31 and the comparator 32 has been described. For example, the sensor signal from the sensor unit 10 is predetermined by an amplifier as an amplifying unit. After the amplification, the amplified sensor signal may be input to the AD converter 31 and the comparator 32.

また、上記第1実施形態では、10ビットの第1デジタル信号を15ビットの第2デジタル信号に変換して出力する例について説明したが、例えば、10ビットの第1デジタル信号を20ビットの第2デジタル信号に変換するようにしてもよい。すなわち、MSB側または/およびLSB側に追加する0の数を適宜変更することにより、第2デジタル信号のビット数を適宜変更することができる。そして、上記第1実施形態ではステップ104にて露光期間tが32T未満であるか否かを判定する例について説明したが、例えば、第2デジタル信号が20ビットである場合にはステップ104にて露光期間tが1024T未満であるか否かを判定するようにすることができる。   In the first embodiment, an example in which a 10-bit first digital signal is converted into a 15-bit second digital signal and output has been described. For example, a 10-bit first digital signal is converted into a 20-bit first digital signal. Two digital signals may be converted. That is, the number of bits of the second digital signal can be appropriately changed by appropriately changing the number of zeros added to the MSB side and / or the LSB side. In the first embodiment, the example in which it is determined in step 104 whether or not the exposure period t is less than 32T has been described. For example, in the case where the second digital signal is 20 bits, in step 104. It can be determined whether or not the exposure period t is less than 1024T.

さらに、上記第1実施形態では、受光素子11の出力(露光)期間に応じて第1デジタル信号を除算して第2デジタル信号に変換する例について説明したが、受光素子11の出力(露光)期間に応じて第1デジタル信号を乗算して第2デジタル信号に変換するようにしてもよい。すなわち、上記第1実施形態では、第2デジタル信号を受光素子11の出力(露光)期間がTであるときの露光量を示す信号とする例について説明したが、例えば、第2デジタル信号を受光素子11の出力(露光)期間が32Tであるときの露光量を示す信号とすることもできる。   Furthermore, in the first embodiment, the example in which the first digital signal is divided and converted into the second digital signal according to the output (exposure) period of the light receiving element 11 has been described. However, the output (exposure) of the light receiving element 11 Depending on the period, the first digital signal may be multiplied and converted to the second digital signal. That is, in the first embodiment, the example in which the second digital signal is a signal indicating the exposure amount when the output (exposure) period of the light receiving element 11 is T has been described, but for example, the second digital signal is received. A signal indicating the exposure amount when the output (exposure) period of the element 11 is 32T may be used.

そして、上記第1実施形態では、コンパレータ32の閾値を入力されるセンサ信号が取り得る最大値の1/2の値とし、センサ信号が閾値未満の場合には受光素子11の出力(露光)期間を2倍にする例について説明したが、閾値や受光素子11の出力(露光)延長期間は適宜変更可能である。   In the first embodiment, the threshold value of the comparator 32 is set to ½ of the maximum value that can be taken by the input sensor signal. When the sensor signal is less than the threshold value, the output (exposure) period of the light receiving element 11 However, the threshold and the output (exposure) extension period of the light receiving element 11 can be changed as appropriate.

また、上記第1実施形態では、マイコン33は、本発明の処理手段と第2AD変換手段とを備えているものを説明したが、例えば、マイコン33は処理手段のみを有し、第2AD変換手段を行う別のAD変換器を新たに備えてもよい。また、マイコン33は、本発明の第1AD変換手段や比較手段を備えたものとすることもできる。   In the first embodiment, the microcomputer 33 has been described as including the processing means and the second AD conversion means of the present invention. For example, the microcomputer 33 includes only the processing means, and the second AD conversion means. Another AD converter for performing the above may be newly provided. Further, the microcomputer 33 may include the first AD conversion unit and the comparison unit of the present invention.

さらに、上記第1実施形態では、第1デジタル信号を受光素子11の出力(露光)期間に応じて第2デジタル信号に変換する例について説明したが、例えば、マイコン33は第1デジタル信号を第2デジタル信号に変換せずにそのまま出力するようにしてもよい。このようなライトセンサを構成したとしても、制御部30はセンサ信号が閾値未満のときは受光素子11の出力(露光)期間をそのまま延長するため、本発明の効果を得ることができる。   In the first embodiment, the example in which the first digital signal is converted into the second digital signal in accordance with the output (exposure) period of the light receiving element 11 has been described. For example, the microcomputer 33 converts the first digital signal into the first digital signal. Alternatively, it may be output as it is without being converted into two digital signals. Even if such a light sensor is configured, the control unit 30 extends the output (exposure) period of the light receiving element 11 as it is when the sensor signal is less than the threshold value, so that the effect of the present invention can be obtained.

10 センサ部
11 受光素子
12 出力制御回路
30 制御部
31 AD変換器
32 コンパレータ
33 マイコン
DESCRIPTION OF SYMBOLS 10 Sensor part 11 Light receiving element 12 Output control circuit 30 Control part 31 AD converter 32 Comparator 33 Microcomputer

Claims (7)

露光量に応じた電気的信号を出力する受光素子(11)と、前記受光素子(11)の出力期間を制御して所定時における前記電気的信号をアナログ信号であるセンサ信号として出力する出力制御回路(12)と、を有するセンサ部(10)と、
前記アナログ信号であるセンサ信号をデジタル信号に変換する制御部(30)と、を備え、
前記制御部(30)は、
前記センサ信号が入力され、前記センサ信号と所定の閾値とを比較する比較手段(32)と、
前記比較手段(32)の比較結果に基づいてAD変換開始信号を出力する処理手段(33)と、
前記センサ信号が入力され、処理手段(33)から前記AD変換開始信号が入力されると前記センサ信号を第1デジタル信号に変換する第1AD変換手段(31)と、を有し、
前記処理手段(33)は、前記出力制御回路(12)に前記受光素子(11)が所定期間出力したときの所定期間経過時の前記電気的信号を前記センサ信号として前記比較手段(32)に入力させ、前記比較手段(32)の比較結果に基づき、前記センサ信号が前記閾値以上のときは前記第1AD変換手段(31)に前記AD変換開始信号を入力して前記センサ信号を前記第1デジタル信号に変換させ、前記センサ信号が前記閾値未満のときは前記出力制御回路(12)に前記受光素子(11)の出力期間を延長させ、延長期間経過時の前記電気的信号を前記センサ信号として前記比較手段(32)に入力させて前記比較手段(32)の比較結果に基づいた処理を行うことを特徴とするライトセンサ。
A light receiving element (11) for outputting an electrical signal corresponding to the exposure amount, and an output control for controlling the output period of the light receiving element (11) and outputting the electrical signal at a predetermined time as a sensor signal which is an analog signal. A sensor unit (10) having a circuit (12);
A controller (30) that converts the sensor signal, which is an analog signal, into a digital signal,
The control unit (30)
A comparison means (32) for receiving the sensor signal and comparing the sensor signal with a predetermined threshold;
Processing means (33) for outputting an AD conversion start signal based on the comparison result of the comparison means (32);
First AD conversion means (31) for converting the sensor signal into a first digital signal when the sensor signal is input and the AD conversion start signal is input from the processing means (33);
The processing means (33) provides the comparison means (32) with the electrical signal at the elapse of a predetermined period when the light receiving element (11) outputs to the output control circuit (12) as a sensor signal. Based on the comparison result of the comparison means (32), when the sensor signal is greater than or equal to the threshold value, the AD conversion start signal is input to the first AD conversion means (31) to input the sensor signal to the first signal. When the sensor signal is less than the threshold, the output control circuit (12) extends the output period of the light receiving element (11), and the electrical signal at the elapse of the extension period is converted to the sensor signal. The light sensor is inputted to the comparison means (32) and performs processing based on the comparison result of the comparison means (32).
前記制御部(30)は、前記受光素子(11)の出力期間に応じ、前記第1デジタル信号を所定の出力期間に対する露光量を示す第2デジタル信号に変換する第2AD変換手段(33)を備えていることを特徴とする請求項1に記載のライトセンサ。   The controller (30) includes second AD conversion means (33) for converting the first digital signal into a second digital signal indicating an exposure amount for a predetermined output period according to an output period of the light receiving element (11). The light sensor according to claim 1, wherein the light sensor is provided. 前記第2AD変換手段(33)は、前記受光素子(11)の出力期間に応じて前記第1デジタル信号の最上位ビット側または/および最下位ビット側に0を追加することにより、前記所定の出力期間に対する露光量を示す前記第2デジタル信号に変換することを特徴とする請求項2に記載のライトセンサ。   The second AD conversion means (33) adds the 0 to the most significant bit side or / and the least significant bit side of the first digital signal in accordance with the output period of the light receiving element (11), whereby the predetermined AD The light sensor according to claim 2, wherein the light sensor is converted into the second digital signal indicating an exposure amount with respect to an output period. 前記閾値は、前記比較手段(32)に入力される前記センサ信号が取り得る最大値の1/2の値とされており、
前記処理手段(33)は、前記センサ信号が前記閾値未満のとき、前記出力制御回路(12)に前記受光素子(11)の出力期間を2倍に延長させ、延長期間が経過したときの前記比較手段(32)の比較結果に基づいた処理を行うことを特徴とする請求項3に記載のライトセンサ。
The threshold value is a half value of the maximum value that can be taken by the sensor signal input to the comparison means (32).
The processing means (33), when the sensor signal is less than the threshold value, causes the output control circuit (12) to double the output period of the light receiving element (11), and when the extension period has elapsed, 4. The light sensor according to claim 3, wherein processing is performed based on a comparison result of the comparison means (32).
前記第2AD変換手段(33)は、前記受光素子(11)の出力期間を延長した後の前記センサ信号が前記閾値未満の場合であって、前記最上位ビット側および前記最下位ビット側に0を追加できる合計の数をn、前記受光素子(11)の最初の出力期間をTとしたとき、前記受光素子(11)の出力期間が2Tとなったとき、前記センサ信号が前記閾値未満の場合であってもその時点における前記センサ信号を前記第1AD変換手段(31)にて第1デジタル信号に変換させることを特徴とする請求項4に記載のライトセンサ。 The second AD conversion means (33) is a case where the sensor signal after extending the output period of the light receiving element (11) is less than the threshold value, and is 0 on the most significant bit side and the least significant bit side. Where n is the total number that can be added, and T is the first output period of the light receiving element (11), and when the output period of the light receiving element (11) is 2 n T, the sensor signal is the threshold value. 5. The light sensor according to claim 4, wherein the sensor signal at that time is converted into a first digital signal by the first AD conversion means (31) even if it is less than the value. 前記センサ部(10)と接続される増幅手段を備え、
前記第1AD変換手段(31)および前記比較手段(32)には、前記増幅手段にて増幅された前記センサ信号が入力されることを特徴とする請求項1ないし5のいずれか1つに記載のライトセンサ。
Amplifying means connected to the sensor unit (10),
6. The sensor signal amplified by the amplifying means is input to the first AD converting means (31) and the comparing means (32). Light sensor.
請求項1ないし6のいずれか1つに記載のライトセンサは、車両に搭載されて用いられ、太陽光を検出するのに用いられることを特徴とする車両用ライトセンサ。
The light sensor according to any one of claims 1 to 6, wherein the light sensor is mounted on a vehicle and used to detect sunlight.
JP2011142720A 2011-06-28 2011-06-28 Light sensor Pending JP2013011449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011142720A JP2013011449A (en) 2011-06-28 2011-06-28 Light sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011142720A JP2013011449A (en) 2011-06-28 2011-06-28 Light sensor

Publications (1)

Publication Number Publication Date
JP2013011449A true JP2013011449A (en) 2013-01-17

Family

ID=47685450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011142720A Pending JP2013011449A (en) 2011-06-28 2011-06-28 Light sensor

Country Status (1)

Country Link
JP (1) JP2013011449A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08247847A (en) * 1995-03-14 1996-09-27 Hioki Ee Corp Spectrophotometer
JP2010271194A (en) * 2009-05-21 2010-12-02 Seiko Instruments Inc Photodetector

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08247847A (en) * 1995-03-14 1996-09-27 Hioki Ee Corp Spectrophotometer
JP2010271194A (en) * 2009-05-21 2010-12-02 Seiko Instruments Inc Photodetector

Similar Documents

Publication Publication Date Title
JP5063939B2 (en) Microcomputer
KR20160112415A (en) Comparator with current addition function, and analog-digital converting system using that
TWI546641B (en) Biasing voltage generating circuit for avalanche photodiode and related control circuit
KR20100083729A (en) Detection circuit and sensor device
TW200512556A (en) Sensors and sensor circuits which convert sense currents to digital values
JP2017040580A (en) Current sensing circuit
JP2005150550A (en) Solenoid driving device
JP2013085443A (en) Overcurrent protection circuit
JP2007243808A (en) Reset detection circuit in semiconductor integrated circuit
JP2013011449A (en) Light sensor
JP6372780B2 (en) Infrared detector
JP5508233B2 (en) Double integral type A / D converter
JP2010085319A (en) Sensor signal detection circuit, ratiometric correction circuit, and sensor device
TWI502210B (en) Torqueestimating circuit of remote control servo motor and torqueestimating method thereof
CN110418082B (en) Column-level analog-to-digital converter and analog-to-digital conversion method applied to column-level analog-to-digital converter
JP5190014B2 (en) Integrating AD conversion circuit and AD conversion method
JP2007074016A (en) A/d converter
JP2015204540A (en) A/d converter and photosensor using the same
JP2014014054A (en) A/d conversion device
JP2013242281A (en) Secondary battery monitoring device
JP6455052B2 (en) Semiconductor device
JP2006128909A (en) Voltage generation circuit and audio signal processor using the same
CN111707297B (en) Sensor compensation circuit
JP2012112665A (en) Sensor device
JP5103203B2 (en) Amplifying device and voice processing device using the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130911

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141007

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150224