This application claims the benefit of priority to China Patent Application No. 201910521843.9, filed on Jun. 17, 2019 in People's Republic of China. The entire content of the above identified application is incorporated herein by reference.
Some references, which may include patents, patent applications and various publications, may be cited and discussed in the description of this disclosure. The citation and/or discussion of such references is provided merely to clarify the description of the present disclosure and is not an admission that any such reference is “prior art” to the disclosure described herein. All references cited and discussed in this specification are incorporated herein by reference in their entireties and to the same extent as if each reference was individually incorporated by reference.
The present disclosure relates to a fault detector circuit, and more particularly to a fault detector circuit for detecting or controlling any signal related to a laser emitter in an electronic device.
When a user uses a smartphone, the user almost always focuses his/her eyes on a display screen at a close range. In order to ensure safety of such use, a VCSEL as a light source of a proximity sensor must be used in compliance with relevant eye safety regulations and additional safety measures, for example, a fault detector circuit disposed within the proximity sensor.
In response to the above-referenced technical inadequacies, the present disclosure provides a fault detector circuit for detecting a sensor in an electronic device, especially for a proximity sensor with a laser emitter.
In one aspect, the present disclosure provides a sensor which works with a laser emitter in an electronic device. A fault detector circuit is provided for detecting or controlling any signal related to the laser emitter. The fault detector circuit includes a first NMOS transistor and a comparator. The first NMOS transistor has a drain coupled to a first supply voltage through the laser emitter, a gate coupled to a control voltage, and a source grounded. The comparator has an inverting terminal coupled to the drain of the first NMOS transistor and a non-inverting terminal coupled to a reference voltage. Before the laser emitter is driven by the first supply voltage, the first NMOS transistor is turned off by the control voltage, and the comparator compares a voltage of the drain of the first NMOS transistor with the reference voltage to generate a first detecting signal for determining whether or not the first supply voltage of the laser emitter needs to be cut off.
In certain embodiments, the fault detector circuit further includes a first current source coupled to the drain of the first NMOS transistor through a first switch. Before the laser emitter is driven by the first supply voltage, the first switch is turned on such that the first current source provides a current to the drain of the first NMOS transistor.
In certain embodiments, when the voltage of the drain of the first NMOS transistor is lower than the reference voltage, the comparator generates the first detecting signal at a high voltage level such that a digital controller in the fault detector circuit outputs an interrupt signal to a microcontroller in the electronic device according to the first detecting signal to cut off the first supply voltage of the laser emitter.
In certain embodiments, after the laser emitter is driven by the first supply voltage, the first NMOS transistor is turned on by the control voltage, and the comparator continually compares the voltage of the drain of the first NMOS transistor with the reference voltage. When the voltage of the drain of the first NMOS transistor is lower than the reference voltage, the comparator generates the first detecting signal at the high voltage level, such that the digital controller included in the electronic device cuts off the first supply voltage of the laser emitter via the microcontroller included in the electronic device according to the first detecting signal.
In certain embodiments, the fault detector circuit further includes a first current source coupled to the drain of the first NMOS transistor through a first switch. Before the laser emitter is driven by the first supply voltage, the first switch is turned on such that the first current source provides a current to the drain of the first NMOS transistor.
In another aspect, the present disclosure provides a fault detector circuit for detecting an optical sensor which works with a laser emitter in an electronic device. The fault detector circuit includes a switch transistor, a first NMOS transistor, and a comparator. The switch transistor has a first terminal coupled to a first supply voltage. The first NMOS transistor has a drain coupled to a third terminal of the switch transistor through the laser emitter, a gate coupled to a control voltage, and a source grounded. The comparator has an inverting terminal coupled to the drain of the first NMOS transistor and a non-inverting terminal coupled to a reference voltage. Before the laser emitter is driven by the first supply voltage, the first NMOS transistor is turned off by the control voltage, and the comparator compares a voltage of the drain of the first NMOS transistor with the reference voltage to generate a first detecting signal. A digital controller outputs a control signal to the switch transistor and the first NMOS transistor to turn on or turn off the switch transistor and the first NMOS transistor according to the first detecting signal.
These and other aspects of the present disclosure will become apparent from the following description of the embodiment taken in conjunction with the following drawings and their captions, although variations and modifications therein may be affected without departing from the spirit and scope of the novel concepts of the disclosure.
The present disclosure will become more fully understood from the following detailed description and accompanying drawings.
The present disclosure will become more fully understood from the following detailed description and accompanying drawings.
The present disclosure is more particularly described in the following examples that are intended as illustrative only since numerous modifications and variations therein will be apparent to those skilled in the art. Like numbers in the drawings indicate like components throughout the views. As used in the description herein and throughout the claims that follow, unless the context clearly dictates otherwise, the meaning of “a”, “an”, and “the” includes plural reference, and the meaning of “in” includes “in” and “on”. Titles or subtitles can be used herein for the convenience of a reader, which shall have no influence on the scope of the present disclosure.
The terms used herein generally have their ordinary meanings in the art. In the case of conflict, the present document, including any definitions given herein, will prevail. The same thing can be expressed in more than one way. Alternative language and synonyms can be used for any term(s) discussed herein, and no special significance is to be placed upon whether a term is elaborated or discussed herein. A recital of one or more synonyms does not exclude the use of other synonyms. The use of examples anywhere in this specification including examples of any terms is illustrative only, and in no way limits the scope and meaning of the present disclosure or of any exemplified term. Likewise, the present disclosure is not limited to various embodiments given herein. Numbering terms such as “first”, “second” or “third” can be used to describe various components, signals or the like, which are for distinguishing one component/signal from another one only, and are not intended to, nor should be construed to impose any substantive limitations on the components, signals or the like.
The present disclosure provides a fault detector circuit disposed in an IC package of an optical sensor or an extra IC in an electronic device. The fault detector circuit is configured to detect whether or not a short circuit, leakage or other failure occurs in the IC and timely cuts off a voltage supplied by a laser emitter, thereby preventing a user's eyes from being exposed to un-expected laser radiation, wherein the optical sensor can be a proximity sensor and the laser emitter can be a VCSEL. The fault detector circuit is described in following embodiments of the present disclosure, but the present disclosure is not limited thereto.
Reference is made to
As shown in
In the embodiment, the fault detector circuit is disposed in the IC package in the electronic device. The sensor has the laser emitter as a light source for a sensing operation. More specifically, in the embodiment, the fault detector circuit is mainly used to detect whether or not a short circuit or leakage occurs in the IC package of the sensor in the electronic device. The following describes how the fault detector circuit in the embodiment detects any fault signal occurs in the IC package of the sensor in the electronic device.
Before the sensor in the electronic device starts to operate, the fault detector circuit in the embodiment detects whether or not a short circuit or leakage occurs in the IC of the sensor, thereby preventing a user's eyes from being exposed to high energy laser radiation of a laser emitter that abnormally operates after the sensor in the electronic device is driven.
Therefore, before the sensor in the electronic device starts to operate, the first NMOS transistor N1 is turned off by the control voltage VC. Then, in order to detect whether or not a short circuit occurs in the IC of the sensor, the comparator COM compares a voltage of the drain of the first NMOS transistor N1 with the reference voltage Vref to generate a first detecting signal DET. A digital controller in the electronic device determines whether or not the first supply voltage VDD1 of the laser emitter EM needs to be cut off by a microcontroller in the electronic device according to the first detecting signal DET. For convenience of explanation, in the embodiment, the reference voltage Vref is exemplified as 0.25V, the first supply voltage VDD1 is exemplified as 3V and a current provided by the first current source Idet is exemplified as 20 mA, but the present disclosure is not limited thereto.
When a short circuit does not occur in the IC of the sensor, a voltage of a node LDR through which the IC of the sensor is connected to the laser emitter EM is reduced to be equal to the first supply voltage VDD1. However, when a short circuit occurs in the IC of the sensor, the voltage of the node LDR through which the IC of the sensor is connected to the laser emitter EM is equal to be a ground voltage that is 0V.
When a short circuit does not occur in the IC of the sensor, the voltage of the node LDR (e.g., 3V) is higher than a reference voltage (e.g., 0.25V). Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a low voltage level. It is determined that a short circuit does not occur in the IC of the sensor according to the first detecting signal DET at the low voltage level.
However, when a short circuit occurs in the IC of the sensor, the voltage of the node LDR (e.g., 0V) is lower than the reference voltage (e.g., 0.25V). Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a high voltage level. The IC of the sensor outputs an interrupt signal to a microcontroller MCU in the electronic device according to the first detecting signal DET at the high voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
In addition, in order to detect whether or not leakage occurs in the IC of the sensor, the first switch SW1 is turned on such that the first current source Idet provides a current to the drain of the first NMOS transistor N1. At this time, when leakage does not occur in the IC of the sensor, the voltage of the node LDR through which the IC of the sensor is connected to the laser emitter EM is equal to the first supply voltage VDD1. However, when leakage occurs in the IC of the sensor, a leakage resistance is formed between the drain of the first NMOS transistor N1 and the source of the first NMOS transistor N1. Under this condition, the voltage of the node LDR through which the IC of the sensor is connected to the laser emitter EM is equal to the leakage resistance multiplied by the current provided by the first current source Idet.
When leakage does not occur in the IC of the sensor, the voltage of the node LDR (e.g., 3V) is higher than the reference voltage (e.g., 0.25V). Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a low voltage level. It is determined that leakage does not occur in the IC of the sensor according to the first detecting signal DET at the low voltage level.
When leakage occurs in the IC of the sensor (e.g., the leakage resistance is 1000 ohms), the voltage of the node LDR (e.g., 0.02V) is lower than the reference voltage (e.g., 0.25V). Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a high voltage level. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the high voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal. In this way, the fault detector circuit in the embodiment can detect leakage caused by the leakage resistance of 10000 ohms or less.
In addition, in the embodiment, after the sensor in the electronic device operates, the fault detector circuit still continuously detects whether or not a short circuit or leakage occurs in the IC of the sensor. That is, after the laser emitter EM is driven by the first supply voltage VDD1 and the first NMOS transistor N1 is turned on by the control voltage VC, the comparator COM continuously compares the reference voltage Vref with the voltage of the drain of the first NMOS transistor N1, which is equal to the voltage of the node LDR through which the IC of the sensor is connected to the laser emitter EM. When the voltage of the drain of the first NMOS transistor N1 is lower than the reference voltage Vref, the comparator COM generates the first detecting signal DET at a high voltage level, which means that a short circuit or leakage occurs in the IC of the sensor. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the high voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
In the embodiment, the switch transistor SWP may be a PMOS transistor, the first, second, and third terminal of which are a source, a gate, and a drain respectively.
In comparison with the fault detector circuit shown in
Further, when a short circuit or leakage does not occur in the IC of the sensor, the voltage of the node LDR is higher than the reference voltage. Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a low voltage level to the digital controller. The digital controller generates the pull-down signal DOWN according to the first detecting signal DET at the low voltage level, such that a control signal ENB at a low voltage level is generated to turn on the switch transistor SWP. The digital controller SWP is a PMOS transistor, which is turned on by the control signal ENB at the low voltage level such that a conduction path is formed between the laser emitter EM and the first supply voltage VDD1.
Conversely, when a short circuit or leakage occurs in the IC of the sensor, the voltage of the node LDR is lower than the reference voltage. Under this condition, the comparator COM compares the voltage of the node LDR with the reference voltage to output the first detecting signal DET at a high voltage level. The digital controller generates the pull-up signal UP according to the first detecting signal DET at the high voltage level, such that the control signal ENB at a high voltage level is generated to turn off the switch transistor SWP. The digital controller SWP that is the PMOS transistor is turned off by the control signal ENB at the high voltage level such that the conduction path between the laser emitter EM and the first supply voltage VDD1 is cut off.
The fault detector circuit in the embodiment and the fault detector circuit shown in
Reference is made to
In the embodiment, the fault detector circuit is not only capable of detecting whether or not a short circuit or leakage occurs in the IC of the sensor in the electronic device, but is also capable of detecting whether or not the switch transistor SWP operates normally. A principle of detecting whether or not the switching transistor SWP is capable of operating normally by the fault detector circuit of the embodiment is further described in the following.
Before the sensor in the electronic device starts operating, the fault detector circuit in the embodiment detects whether or not the switching transistor SWP is capable of operating normally. When the fault detector circuit determines that a short circuit or leakage occurs in the IC of the sensor, the switching transistor SWP must be timely turned off such that the conduction path between the laser emitter EM and the first supply voltage VDD1 is cut off.
Before the laser emitter EM is driven by the first supply voltage VDD1, the first NMOS transistor N1 is turned off and the first switch SW1 is turned on in the second embodiment, but the first NMOS transistor N1 is turned on by the control voltage VC and the first switch SW1 is turned off in the third embodiment. In order to test whether or not the switching transistor SWP is turned off by the control signal ENB, the PMOS transistor P1 is turned on by the pull-up signal UP and the second NMOS transistor N2 is turned off by the pull-down signal DOWN to output the control signal ENB at a high voltage level.
When the switching transistor SWP normally operates and receives the control signal ENB at the high voltage level, the switching transistor SWP is turned off. At this time, the node LDR is equivalent to being grounded and the voltage of the node LDR is a ground voltage. That is, the voltage of the node LDR is zero. Under this condition, the voltage of the drain of the first NMOS transistor N1 is lower than the reference voltage Vref. However, when the switching transistor SWP abnormally operates and receives the control signal ENB at the high voltage level, the switching transistor SWP cannot be turned off normally. At this time, the voltage of the node LDR is equal to the first supply voltage VDD1 minus a voltage across the laser emitter EM, such that the voltage of the drain of the first NMOS transistor N1 is higher than or equal to the reference voltage Vref. Therefore, the comparator COM generates the first detecting signal DET at a low voltage level. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the low voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
On the other hand, in order to test whether or not the switching transistor SWP is turned on by the control signal ENB, the PMOS transistor P2 is turned off by the pull-up signal UP and the second NMOS transistor N2 is turned on by the pull-down signal DOWN to output the control signal ENB at a low voltage level.
When the switching transistor SWP normally operates and receives the control signal ENB at the low voltage level, the switching transistor SWP is turned on. At this time, the voltage of the node LDR is equal to the first supply voltage VDD1 minus the voltage across the laser emitter EM. Under this condition, the voltage of the drain of the first NMOS transistor N1 is higher than or equal to the reference voltage Vref. However, when the switching transistor SWP abnormally operates and receives the control signal ENB at the low voltage level, the switching transistor SWP cannot be turned on normally. At this time, the node LDR is equivalent to being grounded and the voltage of the node LDR is a ground voltage such that the voltage of the drain of the first NMOS transistor N1 is lower than the reference voltage Vref. That is, the voltage of the node LDR is zero. Therefore, the comparator COM generates the first detecting signal DET at a high voltage level. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the high voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
When detecting whether or not the switching transistor SWP can be turned off normally and the voltage of the node LDR is higher than or equal to the reference voltage, the comparator COM outputs the first detecting signal DET at a low voltage level. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the low voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal. However, when detecting whether or not the switching transistor SWP can be turned off normally and the voltage of the node LDR is lower than the reference voltage, the comparator COM outputs the first detecting signal DET at a high voltage level. The digital controller in the IC of the sensor outputs an interrupt signal to the microcontroller MCU in the electronic device according to the first detecting signal DET at the high voltage level. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
Reference is made to
The fault detector circuit in the embodiment and the fault detector circuit shown in
Before the sensor in the electronic device starts operating, the fault detector circuit of the embodiment detects whether or not the control signal ENB can be normally controlled. When the control signal ENB can be normally controlled and a short circuit or leakage occurs in the IC of the sensor, the switching transistor SWP can be timely turned off by the control signal ENB such that the conduction path between the laser emitter EM and the first supply voltage VDD1 is cut off.
Before the laser emitter EM is driven by the first supply voltage VDD1, the first NMOS transistor N1 is turned off by the control voltage VC. In addition, the PMOS transistor P2 is turned off by the pull-up signal UP and the second NMOS transistor N2 is turned off by the pull-down signal DOWN. In the embodiment, whether or not a short circuit occurs between the control signal ENB and the first supply voltage VDD1 and whether or not a short circuit occurs between the control signal ENB and a ground terminal are detected to test whether or not the control signal ENB is controlled normally.
Further, when whether or not a short circuit occurs between the control signal ENB and the first supply voltage VDD1 is detected, the second switch SW2 is turned off and the third switch SW3 is turned on. At this time, if the short circuit does not occur between the control signal ENB and the first supply voltage VDD1, a voltage of the control signal ENB is reduced to a ground voltage. That is, the voltage of the control signal ENB is zero. Conversely, if the short circuit occurs between the control signal ENB and the first supply voltage VDD1, the voltage of the control signal ENB is equal to the first supply voltage VDD1. Therefore, when whether or not the short circuit occurs between the control signal ENB and the first supply voltage VDD1 is detected, and the voltage of the control signal ENB received by the digital controller is equal to the first supply voltage VDD1, the digital controller outputs an interrupt signal to the microcontroller MCU in the electronic device. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
On the other hand, when whether or not the short circuit occurs between the control signal ENB and the ground terminal is detected, the second switch SW2 is turned on and the third switch SW3 is turned off. At this time, if the short circuit does not occur between the control signal ENB and the ground terminal, the voltage of the control signal ENB increases to be equal to the first supply voltage VDD1. Conversely, if a short circuit occurs between the control signal ENB and the ground terminal, the voltage of the control signal ENB is equal to be a ground voltage. That is, the voltage of the control signal ENB is zero. Therefore, when whether or not a short circuit occurs between the control signal ENB and the ground terminal is detected, and the voltage of the control signal ENB received by the digital controller is zero, the digital controller outputs an interrupt signal to the microcontroller MCU in the electronic device. The microcontroller MCU cuts off the first supply voltage VDD1 of the laser emitter EM according to the interrupt signal.
In summary, before the sensor in the electronic device starts to operate, the fault detector circuit of the present disclosure is capable of detecting whether or not a short circuit or leakage occurs in the IC of the sensor in the electronic device, detecting whether or not the switch transistor SWP operates normally, and detecting whether or not the control signal ENB is controlled normally. Further, when the sensor in the electronic device starts operating, the fault detector circuit of the present disclosure is still capable of detecting whether or not a short circuit or leakage occurs in the IC of the sensor in the electronic device.
When the IC in the sensor is found to be unable to operate normally due to the above-mentioned conditions, the fault detector circuit of present disclosure cuts off the first supply voltage of the laser emitter by using the microcontroller of the electronic device or the switch transistor disposed in the fault detector circuit. As a result, the fault detector circuit of the present disclosure can effectively prevent from the user's eyes being damaged by a laser emitter operating abnormally after the sensor in the electronic device is driven.
The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching.
The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others skilled in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those skilled in the art to which the present disclosure pertains without departing from its spirit and scope.
Number | Date | Country | Kind |
---|---|---|---|
201910521843.9 | Jun 2019 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20120313536 | Kim | Dec 2012 | A1 |
20140159996 | Nathan | Jun 2014 | A1 |
20160081148 | Liang | Mar 2016 | A1 |
20190208589 | Satterfield | Jul 2019 | A1 |
Number | Date | Country |
---|---|---|
101059537 | Oct 2007 | CN |
Number | Date | Country | |
---|---|---|---|
20200395734 A1 | Dec 2020 | US |