# US 2021/0081072 A1 · Optical proximity sensor with digital calibration circuit and digital calibration method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081072 A1
- Document ID: US20210081072A1
- Status: Published application
- Kind: A1
- Application number: 16/710,011
- Filed: 2019-12-11
- Published: 2021-03-18
- Earliest claimed: 2019-09-18
- Assignees: Anpec Electronics Corporation
- Applicants: Anpec Electronics Corporation
- Inventors: JING-MIN CHEN
- Web page: https://patentgrep.com/patent/US20210081072A1

## CPC

- G06F 3/0418: {for error correction or compensation, e.g. based on parallax, calibration or alignment}
- G06F 1/1626: {with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]}
- G06F 3/0304: {Detection arrangements using opto-electronic means (constructional details of pointing devices not related to the detection arrangement using opto-electronic means G06F3/033; optical digitisers G06F3/042)}
- H03K 17/941: {using an optical detector (H03K17/968 takes precedence)}
- G06F 3/0421: {by interrupting or reflecting a light beam, e.g. optical touch-screen}
- G06F 2203/04108: Touchless 2D- digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface without distance measurement in the Z direction
- H03K 2217/94031: Calibration involving digital processing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

An optical proximity sensor with a digital calibration circuit and a digital calibration method are provided. In a test mode, a test light emitted by a light transmitter is reflected by a cover of an electronic device to form a first reflected analog signal to a light receiver. A digital calibration circuit counts the first number of pulse waves of a first reflected digital signal. In a calibration mode, a light is emitted to a detected object through the cover and then is reflected by the detected object to form a second reflected analog signal to the light receiver. When the digital calibration circuit counts the number of pulse waves of a second reflected digital signal up to the first number, the digital calibration circuit clears the first number and then recounts the number of pulse waves of the second reflected digital signal to obtain the second number.

## Claims

### Claim 1

An optical proximity sensor, which is disposed in an electronic device including a cover disposed between the optical proximity sensor and a detected object, the optical proximity sensor comprising:
a light sensor circuit including a light transmitter and a light receiver, wherein in a calibration mode, a test light emitted by the light transmitter is reflected by the cover to form a first reflected analog signal to the light receiver in a test mode, and a light emitted by the light transmitter is reflected to the detected object by the cover and then is reflected by the detected object to form a second reflected analog signal to the light receiver;
an analog-digital converter circuit connected to the light receiver, and configured to convert the first reflected analog signal into a first reflected digital signal in the test mode and convert the second reflected analog signal into a second reflected digital signal in the calibration mode; and
a digital calibration circuit connected to the analog-digital converter circuit and configured to, in the test mode, count a first number of pulse waves of the first reflected digital signal in the test mode, and in the calibration mode, when the digital calibration circuit counts the number of pulse waves of the second reflected digital signal up to the first number, the digital calibration circuit clears the first number and then recounts the number of pulse waves of the second reflected digital signal to obtain a second number.

### Claim 2 (depends on 1)

The optical proximity sensor of claim 1, wherein the analog-digital converter circuit includes a comparator having a first input terminal connected to a capacitor and a second input terminal connected to a reference voltage source;
wherein a current of the first reflected analog signal charges the capacitor to have a first capacitor voltage, and the comparator compares the first capacitor voltage with a reference voltage of the reference voltage source to output the first reflected digital signal; and
wherein a current of the second reflected analog signal charges the capacitor to have a second capacitor voltage, and the comparator compares the second capacitor voltage with the reference voltage to output the second reflected digital signal.

### Claim 3 (depends on 2)

The optical proximity sensor of claim 2, wherein the digital calibration circuit further includes a switch component, a first terminal of the switch component is connected to the first input terminal, a second terminal of the switch component is grounded, and a control terminal of the switch component is connected to an output terminal of the comparator.

### Claim 4 (depends on 1)

The optical proximity sensor of claim 1, wherein the analog-digital converter circuit converts a leakage current analog signal of the optical proximity sensor into a leakage current digital signal, and the digital calibration circuit counts a third number of pulse waves of the leakage current digital signal, in a leakage current detection mode; and
wherein in the calibration mode, when the digital calibration circuit counts the number of pulse waves of the second reflected digital signal up to the first number and the third number, the digital calibration circuit clears the first number and the third number and then recounts the number of pulse waves of the second reflected digital signal to obtain the second number.

### Claim 5 (depends on 4)

The optical proximity sensor of claim 4, wherein the analog-digital converter circuit includes a comparator having a first input terminal connected to a capacitor and a second input terminal connected to a reference voltage source;
wherein a current of the leakage current analog signal flows to the capacitor to charge the capacitor to have a leakage current capacitor voltage, and the comparator compares the leakage current capacitor voltage with a reference voltage of the reference voltage source to output the leakage current digital signal.

### Claim 6 (depends on 5)

The optical proximity sensor of claim 5, wherein the digital calibration circuit further includes a switch component, a first terminal of the switch component is connected to the first input terminal, a second terminal of the switch component is grounded, and a control terminal of the switch component is connected to an output terminal of the comparator.

### Claim 7

A digital calibration method of an optical proximity sensor, wherein the optical proximity sensor is disposed in an electronic device including a cover disposed between the optical proximity sensor and a detected object, the digital calibration method comprising the following steps:
emitting, in a test mode, a test light to the cover by a light transmitter of a light sensor circuit, and reflecting the test light to form a first reflected analog signal to a light receiver of the light sensor circuit by the cover;
converting the first reflected analog signal into a first reflected digital signal by an analog-digital converter circuit in the test mode;
counting a first number of pulse waves of the first reflected digital signal by a digital calibration circuit in the test mode;
emitting a light to the cover by the light transmitter, then reflecting the light to the detected object through the cover, and then reflecting the light to form a second reflected analog signal to the light receiver by the detected object, in a calibration mode;
converting the second reflected analog signal into a second reflected digital signal by the analog-digital converter circuit in the calibration mode;
start counting the number of pulse waves of the second reflected digital signal by the digital calibration circuit in the calibration mode; and
clearing, in the calibration mode, the first number and then recounting the number of pulse waves of the second reflected digital signal to obtain a second number, when counting the number of pulse waves of the second reflected digital signal up to the first number by the digital calibration circuit.

### Claim 8 (depends on 7)

The digital calibration method of claim 7, further comprising steps of:
charging a capacitor to have a first capacitor voltage by a current of the first reflected analog signal;
comparing the first capacitor voltage with a reference voltage of a reference voltage source to output the first reflected digital signal by a comparator of the analog-digital converter circuit;
charging the capacitor to have a second capacitor voltage by a current of the second reflected analog signal; and
comparing the second capacitor voltage with the reference voltage to output the second reflected digital signal by the comparator.

### Claim 9 (depends on 8)

The digital calibration method of claim 8, further comprising steps of:
turning on a switch component by the first reflected digital signal to reduce a voltage of an input terminal of the comparator to zero from the first capacitor voltage; and
turning on the switch component by the second reflected digital signal to reduce a voltage of the input terminal of the comparator to zero from the second capacitor voltage.

### Claim 10 (depends on 7)

The digital calibration method of claim 7, further comprising steps of:
converting a leakage current analog signal of the optical proximity sensor into a leakage current digital signal by the analog-digital converter circuit in a leakage current detection mode;
counting a third number of the leakage current digital signal by the digital calibration circuit in the leakage current detection mode; and
clearing, in the calibration mode, the first number and the third number and then recounting the number of pulse waves of the second reflected digital signal to obtain the second number, when counting the number of pulse waves of the second reflected digital signal up to the first number and the third number by the digital calibration circuit.

### Claim 11 (depends on 10)

The digital calibration method of claim 10, further comprising steps of:
flowing a current of the leakage current analog signal to the capacitor to charge the capacitor to have a leakage current capacitor voltage; and
comparing the leakage current capacitor voltage with a reference voltage of a reference voltage source to output the leakage current digital signal by a comparator of the analog-digital converter circuit.

### Claim 12 (depends on 11)

The digital calibration method of claim 11, further comprising a step of:
turning on a switch component by the leakage current digital signal to reduce a voltage of an input terminal of the comparator to zero from the leakage current capacitor voltage.
