Detection circuit, display panel and detection method
By designing a detection circuit including conversion, storage, discrimination and output circuits, the brightness feedback problem caused by the long reaction time of the photosensitive sensor is solved, and a faster and more accurate environmental brightness detection is achieved.
Patent Information
- Application Number
- CN202180001169.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-18
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-05-18
AI Technical Summary
When existing photosensitive sensors convert light signals into electrical signals, the conversion time is long and cannot accurately and quickly feedback the changes in environmental brightness.
A detection circuit is designed, including a conversion circuit, a storage circuit, a discriminating circuit and an output circuit. The circuit obtains the photosensitive signal in real time, stores and compares multiple brightness values to determine whether the preset conditions are met, and outputs the default brightness value when the conditions are met, otherwise outputs the specific brightness value.
By quickly detecting the brightness changes of ambient light, the actual brightness situation can be more accurately feedback, reducing user experience problems caused by the photosensitive sensor due to the long reaction time.
Smart Images

Figure CN115643814B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and particularly to a detection circuit, a display panel, and a detection method. Background Art
[0002] In the related art, the photosensitive sensor is used to detect the ambient light and generate an electrical signal according to the change of the ambient light. The processor controls the brightness value of the screen according to the value of the electrical signal. However, when the photosensitive sensor in the related art converts the light signal into an electrical signal, the time required for the conversion of the photosensitive sensor varies due to the different ambient brightness. In addition, the conversion time is long, and the actual brightness change cannot be accurately and quickly fed back. Summary of the invention
[0003] On the one hand, a detection circuit is provided, comprising: a conversion circuit, for acquiring a photoelectric sensing signal in real time and converting the acquired photoelectric sensing signal into a brightness value; a storage circuit, connected to the conversion circuit, for storing N brightness values from the conversion circuit in a first-in-first-out manner; a discrimination circuit, connected to the storage circuit, for determining whether at least two brightness values among the N brightness values meet a preset condition; an output circuit, connected to the discrimination circuit and the storage circuit, for outputting a preset default brightness value when the at least two brightness values meet the preset condition, and outputting at least one of the N brightness values when the at least two brightness values do not meet the preset condition.
[0004] According to some exemplary embodiments, the discrimination circuit includes: a first discrimination subcircuit, connected to the storage circuit, for determining whether at least one brightness value among the N brightness values is less than a preset reference brightness value; and a second discrimination subcircuit, connected to the storage circuit, for determining whether a difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference.
[0005] According to some exemplary embodiments, the first discrimination subcircuit includes: a first register, used to store the preset reference brightness value; a first subtractor, connected to the storage circuit and the first register, used to subtract the first brightness value among the N brightness values from the preset reference brightness value stored in the first register to obtain a first difference; a first comparator, connected to the first subtractor, used to determine whether the first difference output by the first subtractor is greater than 0.
[0006] According to some exemplary embodiments, the second discrimination subcircuit includes: a second register for storing the reference brightness difference; a second subtractor connected to the storage circuit for subtracting the Ni-th brightness value from the N-th brightness value of the N brightness values to obtain a second difference, where i is an integer, 1≤i<N; a second comparator connected to the second register and the second subtractor for determining whether the second difference output by the second subtractor is less than the reference brightness difference stored in the second register.
[0007] According to some exemplary embodiments, the output circuit includes: a first selection subcircuit, connected to a first subtractor and a first comparator, and used to select and output a default brightness value that matches the first difference output by the first subtractor from a plurality of preset default brightnesses when a judgment result of the first comparator is that the first difference is greater than 0; a first switch subcircuit, connected to the first comparator, the second comparator and the storage circuit, and used to output the Nth brightness value among the N brightness values in at least one of the following cases: the judgment result of the first comparator is that the first difference is not greater than 0; the judgment result of the second comparator is that the second difference is less than the preset reference brightness difference.
[0008] According to some exemplary embodiments, the first selection subcircuit includes: a plurality of shift registers, respectively used to store a plurality of preset default brightness values; a third comparator, connected to the first subtractor and the first comparator, and used to determine a voltage range in which the first difference is located from the plurality of preset voltage ranges when a judgment result of the first comparator is that the first difference is greater than 0; and a multiplexer, used to control one of the plurality of shift registers to output the stored default brightness value according to the voltage range determined by the third comparator.
[0009] According to some exemplary embodiments, in the detection circuit, N=4, i=1.
[0010] According to some exemplary embodiments, in the detection circuit, the reference brightness value is in a range of 90 Lux to 110 Lux, and the reference brightness difference is in a range of 2 Lux to 4 Lux.
[0011] According to some exemplary embodiments, the reference brightness value includes a first reference brightness value and a second reference brightness value lower than the first reference brightness value, and the first discrimination subcircuit includes: a fourth register for storing the first reference brightness value; a fourth comparator for judging whether the 1+jth brightness value among the N brightness values is less than the first reference brightness value, where j is an integer, 1≤j<N; a fifth register for storing the second reference brightness value; and a fifth comparator for judging whether the Nth brightness value among the N brightness values is less than the second reference brightness value.
[0012] According to some exemplary embodiments, the preset reference brightness difference includes a first reference brightness difference and a second reference brightness difference, and the second discrimination subcircuit includes: a sixth register for storing the first reference brightness difference; a sixth comparator connected to the fourth comparator, the fifth comparator and the sixth register, for judging whether a difference between the first brightness value and the 1+j brightness value among the N brightness values is greater than the first reference brightness difference when the judgment result of the fourth comparator is that the 1+j brightness value is less than the first reference brightness value, and triggering the fifth comparator to judge whether the N brightness values are greater than the first reference brightness difference when the judgment result of the fourth comparator is that the 1+j brightness value is less than the first reference brightness value. a timer connected to the fifth comparator and used to start timing in response to the judgment result of the fifth comparator that the Nth brightness value among the N brightness values is less than the second reference brightness value; a seventh register for storing the second reference brightness difference; a seventh comparator connected to the storage circuit, the seventh register and the fifth comparator and used to determine whether the difference between the Nth brightness value among the N brightness values and the Nkth brightness value is less than the second reference brightness difference in response to the judgment result of the fifth comparator that the Nth brightness value among the N brightness values is less than the second reference brightness difference, where k is an integer, 1≤k<N.
[0013] According to some exemplary embodiments, the output circuit includes: a second selection subcircuit, connected to the seventh comparator and the timer, and used to output a preset default brightness value when the judgment result of the seventh comparator is that the difference between the Nth brightness value and the Nkth brightness value is less than the second reference brightness difference and the timer has not timed out; a second switch subcircuit, connected to the fourth comparator, the fifth comparator, the sixth comparator, the seventh comparator and the storage circuit, and used to output the Nth brightness value among the N brightness values in at least one of the following situations: the judgment result of the fourth comparator is that the 1+jth brightness value among the N brightness values is not less than the first reference brightness value; the judgment result of the fifth comparator is that the Nth brightness value among the N brightness values is not less than the second reference brightness value; the judgment result of the sixth comparator is that the difference between the first brightness value among the N brightness values and the 1+jth brightness value is not greater than the first reference brightness difference; the judgment result of the seventh comparator is that the difference between the Nth brightness value and the Nkth brightness value among the N brightness values is not less than the second reference brightness difference; the timer times out.
[0014] According to some exemplary embodiments, in the detection circuit, N=20, j=2, k=2.
[0015] According to some exemplary embodiments, the detection circuit, wherein the first reference brightness value is in the range of 90 Lux to 110 Lux; the second reference brightness value is in the range of 20 Lux to 40 Lux;
[0016] According to some exemplary embodiments, in the detection circuit, the first reference brightness difference is in the range of 150 Lux to 250 Lux; and the second reference brightness difference is in the range of 1 Lux to 3 Lux.
[0017] On the other hand, a display panel is provided, comprising: a photoelectric sensor for generating a photoelectric sensing signal by converting an optical signal into an electrical signal; and a detection circuit according to the above, the detection circuit being connected to the photoelectric sensor.
[0018] On the other hand, a detection method is provided, including: acquiring a photoelectric sensing signal in real time and converting the acquired photoelectric sensing signal into a brightness value; storing N brightness values from the conversion circuit in a first-in-first-out manner; determining whether at least two of the N brightness values meet a preset condition; if the at least two brightness values meet the preset condition, outputting a preset default brightness value, and if the at least two brightness values do not meet the preset condition, outputting at least one of the N brightness values.
[0019] According to some exemplary embodiments, determining whether at least two brightness values among N brightness values meet a preset condition includes: determining whether at least one brightness value among the N brightness values is less than a preset reference brightness value; and determining whether a difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments of the present disclosure with reference to the accompanying drawings.
[0021] Figure 1 The diagram schematically shows a brightness-frame number curve of a sensor of a detection circuit in the related art in response to changes in ambient light;
[0022] Figure 2 Schematically shows a structural diagram of a detection circuit of an exemplary embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram schematically shows a structure of a detection circuit of an exemplary embodiment of the present disclosure;
[0024] Figure 4 Schematically shows a structural diagram of a first selection sub-circuit of an exemplary embodiment of the present disclosure;
[0025] Figure 5 A mapping table of default brightness corresponding to the first difference value of an exemplary embodiment of the present disclosure is schematically shown;
[0026] Figure 6 Schematically shows an execution flow chart of a detection circuit of an exemplary embodiment of the present disclosure;
[0027] Figure 7 A schematic diagram schematically shows a structure of a detection circuit of another exemplary embodiment of the present disclosure;
[0028] Figure 8 Schematically shows an execution flow chart of a detection circuit according to another exemplary embodiment of the present disclosure;
[0029] Fig. 9 The structure diagram of the detection panel of the exemplary embodiment of the present disclosure is schematically shown;
[0030] Fig.10 The flowchart of the detection method of the exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0032] It should be noted that in the drawings, the size and relative size of the elements may be exaggerated for the purpose of clarity and / or description. Thus, the size and relative size of each element are not necessarily limited to the size and relative size shown in the drawings. In the specification and drawings, the same or similar reference numerals indicate the same or similar parts.
[0033] When an element is described as being "on" another element, "connected to" another element or "coupled to" another element, the element may be directly on the other element, directly connected to the other element or directly coupled to the other element, or there may be an intermediate element. However, when an element is described as being "directly on" another element, "directly connected to" another element or "directly coupled to" another element, there is no intermediate element. Other terms and / or expressions used to describe the relationship between elements should be interpreted in a similar manner, for example, "between..." versus "directly between...", "adjacent" versus "directly adjacent" or "on..." versus "directly on...", etc. In addition, the term "connection" may refer to a physical connection, an electrical connection, a communication connection and / or a fluid connection. In addition, the X-axis, the Y-axis and the Z-axis are not limited to the three axes of a rectangular coordinate system, and may be interpreted in a broader sense. For example, the X-axis, the Y-axis and the Z-axis may be perpendicular to each other, or may represent different directions that are not perpendicular to each other. For the purpose of this disclosure, "at least one of X, Y, and Z" and "at least one selected from the group consisting of X, Y, and Z" may be interpreted as only X, only Y, only Z, or any combination of two or more of X, Y, and Z such as XYZ, XYY, YZ, and ZZ. As used herein, the term "and / or" includes any and all combinations of one or more of the listed associated items.
[0034] It should be noted that, although the terms "first", "second", etc. may be used herein to describe various parts, components, elements, regions, layers and / or parts, these parts, components, elements, regions, layers and / or parts should not be limited by these terms. Instead, these terms are used to distinguish one part, component, element, region, layer and / or part from another. Thus, for example, the first part, first member, first element, first region, first layer and / or first part discussed below may be referred to as the second part, second member, second element, second region, second layer and / or second part without departing from the teachings of the present disclosure.
[0035] For ease of description, spatial relational terms, such as "upper", "lower", "left", "right", etc., may be used herein to describe the relationship of one element or feature to another element or feature as shown in the figure. It should be understood that the spatial relational terms are intended to cover other different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the figure is turned upside down, elements described as "below" or "beneath" other elements or features will be oriented "above" or "above" the other elements or features.
[0036] Figure 1 The diagram schematically shows a brightness-frame number curve of a sensor of a detection circuit in the related art in response to changes in ambient light.
[0037] in Figure 1 (a) in the figure indicates the number of frames required when the ambient brightness decreases from high brightness to low brightness. Figure 1 As shown in (a), the horizontal axis represents the number of frames and the vertical axis represents the brightness value. When the ambient brightness drops from 600 Lux to 100 Lux, fewer frames are required, such as 2-3 frames. After the brightness drops to 100 Lux, it takes more frames, such as 800 frames, to continue to drop from 100 Lux to 0 Lux. The more frames, the longer the time required, which leads to a lag in the feedback of the photosensor. Figure 1 (b) in FIG. 5 represents the number of frames required when the ambient brightness decreases from high brightness to the target low brightness, wherein the horizontal axis represents the number of frames and the vertical axis represents the brightness value. Figure 1 (b) shows the number of frames when the brightness decreases from high brightness to 0Lux, 30Lux, 41Lux, 49Lux, 55Lux, 61Lux, 68Lux, 74Lux, 81Lux, 87Lux, and 93Lux. In order to more clearly show the change in brightness within the range of 100Lux, Figure 1 (b) in FIG. 1 only shows the brightness-frame number curve when the brightness decreases from 100 Lux to the target brightness. As shown in the figure, the lower the target brightness value, the more frames are required to decrease from high brightness to low brightness, that is, the longer the time required.
[0038] according to Figure 1 The data in and the non-equilibrium carrier recombination formula:
[0039] Δp=Δp0a -t / τ (1)
[0040] Where τ is the non-equilibrium carrier lifetime, Δp is the non-equilibrium carrier concentration, and Δp0 is the equilibrium carrier concentration. Figure 1 The curve and formula (1) show that when the ambient light suddenly dims, the number of unbalanced carriers in the photosensor decreases rapidly first and then slowly. Therefore, when the ambient light brightness decreases from 100 Lux to 0 Lux, the response time of the photosensor in the TFT is too long, affecting the user experience.
[0041] Figure 2 The structure diagram of the detection circuit of the exemplary embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the detection circuit 200 of the embodiment of the present disclosure includes a conversion circuit 210, a storage circuit 220, a discrimination circuit 230, and an output circuit 240. The conversion circuit 210 is used to obtain a photoelectric sensing signal in real time and convert the obtained photoelectric sensing signal into a brightness value. For example, the conversion circuit collects a photoelectric sensing signal provided by a photoelectric sensor, and converts the photoelectric sensing signal into a brightness value through analog-to-digital conversion. The storage circuit 220 is connected to the conversion circuit 210, and is used to store N brightness values from the conversion circuit 210 in a first-in-first-out manner. The discrimination circuit 230 is connected to the storage circuit 220, and is used to determine whether at least two brightness values of the N brightness values meet a preset condition. The output circuit 240 is connected to the discrimination circuit 230 and the storage circuit 220, and is used to output a preset default brightness value when at least two brightness values meet the preset condition, and output at least one of the N brightness values when at least two brightness values do not meet the preset condition.
[0043] The detection circuit disclosed in the present invention can detect sudden changes in the brightness of ambient light and return a brightness value that is more in line with the actual ambient brightness changes to the processor (AP) based on the sudden changes, thereby compensating for the defect that the long response time of the photosensor leads to a poor user experience.
[0044] Figure 3 The schematic diagram shows the structure of a detection circuit of an exemplary embodiment of the present disclosure.
[0045] In the embodiments of the present disclosure, Figure 3As shown, the determination circuit 230 includes a first determination subcircuit 310, which is connected to the storage circuit 220 and is used to determine whether at least one brightness value among the N brightness values is less than a preset reference brightness value. The determination circuit 230 also includes a second determination subcircuit 320, which is connected to the storage circuit 220 and is used to determine whether the difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference.
[0046] The brightness data stored in the storage circuit 220 may be more than 4, for example, 4, 10, 20, etc. The specific number of brightness data may be adjusted according to actual needs.
[0047] The first determination subcircuit 310 obtains one or more brightness values stored in the storage circuit 220 and is used to determine whether the obtained brightness value is less than a preset reference brightness value. For example, the preset reference brightness value may be 100 Lux or other preset values.
[0048] The second determination subcircuit 320 obtains at least two brightness values in the storage circuit 220, and determines the relationship between the difference between the obtained multiple brightness values and the preset reference brightness difference. For example, the difference between the obtained brightness values is greater than the reference brightness difference, or the difference between the obtained brightness values is less than or equal to the reference brightness difference, etc. The steps to be performed are further determined according to the relationship between the difference between the obtained brightness values and the preset reference brightness difference.
[0049] like Figure 3 As shown, the first discrimination subcircuit includes a first register 311, a first subtractor 312 and a first comparator 313. The first register 311 is used to store a preset reference brightness value. The first subtractor 312 is connected to the storage circuit 220 and the first register 311, and is used to subtract the first brightness value among the N brightness values from the preset reference brightness value stored in the first register 311 to obtain a first difference value. The first comparator 313 is connected to the first subtractor 312, and is used to determine whether the first difference value output by the first subtractor 312 is greater than 0.
[0050] For example, the storage circuit 220 stores four brightness values, the first register 311 stores a preset reference brightness value of 100 Lux, the first subtractor 312 is used to subtract the first stored brightness value from the preset reference brightness value 100 Lux to obtain a first difference value. The first comparator 313 determines whether the first difference value is greater than zero.
[0051] The second discrimination subcircuit 320 includes a second register 321, a second subtractor 322, and a second comparator 323. The second register 321 is used to store a reference brightness difference. The second subtractor 322 is connected to the storage circuit 220 and is used to subtract the Ni-th brightness value from the N-th brightness value among the N brightness values to obtain a second difference value, where i is an integer, 1≤i<N. The second comparator 323 is connected to the second register 321 and the second subtractor 322 and is used to determine whether the second difference value output by the second subtractor 322 is less than the reference brightness difference stored in the second register 321.
[0052] For example, there are four brightness values stored in the storage circuit, and the reference brightness difference value stored in the second register 321 is 3, wherein the second subtractor 322 is used to subtract the third brightness value from the fourth brightness value of the four brightness values to obtain the second difference value. The second comparator 323 is used to determine whether the second difference value is less than 3.
[0053] The first selection subcircuit 330 is connected to the first subtractor 312 and the first comparator 313, and is used to select and output a default brightness value that matches the first difference output by the first subtractor 312 from a plurality of preset default brightnesses when the judgment result of the first comparator 313 is that the first difference is greater than 0.
[0054] For example, there are multiple preset default brightness values corresponding to different ranges. The first selection subcircuit 330 selects and outputs the default brightness value according to the determination result of the first comparator 313 .
[0055] The first switch subcircuit 340 is connected to the first comparator 313, the second comparator 323 and the storage circuit 220. The first switch subcircuit 340 can output the Nth brightness value among the N brightness values in at least one of the following situations: the judgment result of the first comparator 313 is that the first difference is not greater than 0; the judgment result of the second comparator 323 is that the second difference is less than the preset reference brightness difference.
[0056] For example, when the judgment result of the first comparator 313 is not greater than 0, the fourth brightness value among the four brightness values is output. Alternatively, when the judgment result of the second comparator 323 is that the second difference is less than the preset reference brightness difference 3, the fourth brightness value among the four brightness values is also output.
[0057] Figure 4 The structure diagram of the first selection sub-circuit of the exemplary embodiment of the present disclosure is schematically shown.
[0058] like Figure 4As shown, the first selection subcircuit 330 includes a plurality of shift registers 410, a third comparator 420 and a multiplexer 430. The plurality of shift registers 410 are respectively used to store a plurality of preset default brightness values. The third comparator 420 is connected to the first subtractor 312 and the first comparator 313, and is used to determine a voltage range where the first difference value is located from a plurality of preset voltage ranges when the judgment result of the first comparator 313 is that the first difference value is greater than 0. The multiplexer 430 is used to control a shift register 410 among the plurality of shift registers 410 to output the stored default brightness value according to the voltage range determined by the third comparator 420.
[0059] For example, when the judgment result of the first comparator 313 is that the first difference is greater than 0, since there are multiple small ranges in the preset voltage range, the brightness range where the first difference is located is determined according to the result obtained by the first subtractor 312 .
[0060] In the embodiment of the present disclosure, a specific value, ie, a corresponding brightness value, is stored in each shift register 410. The third comparator 420 compares the result of the first subtractor 312 with a preset range to determine the brightness range where the first difference value is located.
[0061] Figure 5 A mapping table of default brightness corresponding to the first difference value of an exemplary embodiment of the present disclosure is schematically shown.
[0062] In the embodiment of the present disclosure, for example, the preset reference brightness value stored in the first register 311 is 100 Lux, the first brightness value stored in the storage circuit 220 is L, and the first difference value obtained by the first subtractor is ΔL=100-L. The voltage range in the plurality of preset voltage ranges is determined according to ΔL. Specifically, Figure 5 As shown, each ΔL value corresponds to a set brightness range. For example, when ΔL is 88 Lux, it is in the range of 80 to 89, that is, the third comparator determines that ΔL is in the range of 80 to 89, and the multiplexer 430 controls the corresponding shift register 410 to output the stored default brightness value according to the range, for example, the input brightness value is 10 Lux.
[0063] Figure 6 The execution flow chart of the detection circuit of an exemplary embodiment of the present disclosure is schematically shown.
[0064] Among them, combined Figure 3 and Figure 6 The execution flow chart of the detection circuit of the exemplary embodiment of the present disclosure is described in detail. Specifically, Figure 3 The execution process 600 of the detection circuit includes operations S601 to S607.
[0065] In operation S601 , a photo-sensing signal is acquired in real time and the acquired photo-sensing signal is converted into a brightness value.
[0066] In operation S602, N brightness values from the conversion circuit are stored in a first-in-first-out manner. For example, the storage circuit can use a first-in-first-out (Fifo) memory, whose memory space is designed to be 4*16bit, which can store 4 16-bit brightness values, that is, corresponding to 4 frames of data. The brightness values are stored in the Fifo memory in a first-in-first-out manner. In other optional embodiments, other numbers of brightness values can be used, which can be set according to actual needs, and the present disclosure does not limit the number of stored brightness values.
[0067] In operation S603, a first difference ΔL1 between a first brightness value L among the N stored brightness values and a reference brightness value M1 is determined. The reference brightness value M1 is in the range of 90 to 110 Lux. For example, if the reference brightness value M1 is 100 Lux, the first difference ΔL1 = M1 - L, that is, ΔL1 = 100 - L.
[0068] In operation S604, it is determined whether the first difference ΔL1 is greater than 0. If it is greater than 0, operation S605 is performed, and if it is less than or equal to 0, operation S606 is performed.
[0069] In operation S605 , the first selection sub-circuit selects and outputs a default brightness value from a plurality of preset default brightnesses according to the value range of ΔL1 .
[0070] In operation S606, the first switch sub-circuit outputs the Nth brightness among the N measurement values. For example, the fourth brightness value among the four brightness values stored in the storage circuit is output to the processor.
[0071] At the same stage as operation S603, operation S607 is performed simultaneously. In operation S607, the second difference △L2 of the N-th brightness value minus the Ni-th brightness value among the N brightness values stored in the storage circuit is calculated, and it is determined whether the second difference △L2 is less than the reference brightness difference. The reference brightness difference is in the range of 2 to 4 Lux. For example, when the reference brightness difference is 3 Lux, it is determined whether the second difference △L2 between the 4th brightness value and the 3rd brightness value among the 4 brightness values stored in the storage circuit is less than 3 Lux. If the second difference is less than the reference brightness difference 3, operation S606 is performed. If it is not less than the reference brightness difference, the process ends.
[0072] Figure 7 A schematic structural diagram of a detection circuit according to another exemplary embodiment of the present disclosure is schematically shown.
[0073] In this exemplary embodiment, the first discrimination subcircuit 710 and the second discrimination subcircuit 720 in the detection circuit are different from those in the previous embodiment.
[0074] Specifically, Figure 7 As shown, the first discrimination subcircuit 710 includes a fourth register 711, a fourth comparator 712, a fifth register 713 and a fifth comparator 714. The fourth register 711 is used to store a first reference brightness value. The fourth comparator 712 is used to determine whether the 1+jth brightness value among the N brightness values is less than the first reference brightness value, where j is an integer, 1≤j<N. The fifth register 713 is used to store a second reference brightness value. The fifth comparator 714 is used to determine whether the Nth brightness value among the N brightness values is less than the second reference brightness value.
[0075] In an embodiment of the present disclosure, the reference brightness value includes a first reference brightness value L1 and a second reference brightness value L3 lower than the first reference brightness value. Specifically, the first reference brightness value is in the range of 90 Lux to 110 Lux, and the second reference brightness value is in the range of 20 Lux to 40 Lux.
[0076] For example, N is set to 20, and j is set to 2. The first reference brightness value L1 is set to 100 Lux, which is stored in the fourth register 711, and the number of brightness values N stored in the storage circuit 220 is 20. The third brightness value is obtained from the storage circuit 220, and the fourth comparator 712 determines whether the third brightness value is less than the first reference brightness value 100 Lux. The second reference brightness value L3 is set to 30 Lux, which is stored in the fifth register 713. The fifth comparator 714 can be used to determine whether the 20th brightness value among the 20 brightness values is less than the second reference brightness value 30 Lux.
[0077] The second discrimination subcircuit includes a sixth register 721, a sixth comparator 722, a timer 725, a seventh register 723, and a seventh comparator 724. The sixth register 721 is used to store the first reference brightness difference. The sixth comparator 722 is connected to the fourth comparator 712, the fifth comparator 714, and the sixth register 721, and is used to judge whether the difference between the first brightness value and the 1+j brightness value in the N brightness values is greater than the first reference brightness difference when the judgment result of the fourth comparator 712 is that the 1+j brightness value is less than the first reference brightness value, and trigger the fifth comparator 714 to judge whether the Nth brightness value in the N brightness values is less than the second reference brightness value when the difference between the first brightness value and the 1+j brightness value is greater than the first reference brightness difference. The timer 725 is connected to the fifth comparator 714, and is used to start timing in response to the judgment result of the fifth comparator that the Nth brightness value in the N brightness values is less than the second reference brightness value. The timer 725 may include a counter for counting the number of brightness values (e.g., the number of brightness values input / or output by the Fifo memory) to measure whether a timeout has occurred. In some embodiments, the timer 725 may be a timer based on a clock. The seventh register 723 is used to store a second reference brightness difference. The seventh comparator 724 is connected to the storage circuit 220, the seventh register 723, and the fifth comparator 714, and is used to determine whether the difference between the Nth brightness value and the Nkth brightness value in the N brightness values is less than the second reference brightness difference in response to the judgment result of the fifth comparator 714 that the Nth brightness value in the N brightness values is less than the second reference brightness difference, where k is an integer, 1≤k<N.
[0078] In an embodiment of the present disclosure, the preset reference brightness difference includes a first reference brightness difference and a second reference brightness difference, wherein the value of the first reference brightness difference is in the range of 150 Lux to 250 Lux, such as 150 Lux, 200 Lux or 250 Lux, and the value of the second reference brightness difference is in the range of 1 Lux to 3 Lux, such as 1 Lux, 2 Lux or 3 Lux.
[0079] For example, N is 20, j is 2, and k is 2. The first reference brightness difference can be set to 200 Lux, which is stored in the sixth register 721, and the second reference brightness difference is set to 2 Lux, which is stored in the seventh register 723. The sixth comparator 722 is used to determine whether the difference between the first brightness value and the third brightness value among the 20 brightness values is greater than the first reference brightness difference of 200 Lux when the judgment result of the fourth comparator 714 is that the third brightness value is less than the first reference brightness value of 100 Lux. If it is greater than the first reference brightness difference of 200 Lux, the fifth comparator 714 determines whether the 20th brightness value among the 20 brightness values is less than the second reference brightness value of 30 Lux. The timer 725 starts timing by obtaining the judgment result of the fifth comparator 714. For example, if the 20th brightness value among the 20 brightness values is less than the second reference brightness value of 30 Lux, the timer starts in time. The seventh comparator 724 is used to determine whether the difference between the 20th brightness value and the 18th brightness value among the 20 brightness values is less than the second reference brightness difference 2 Lux.
[0080] In the embodiments of the present disclosure, Figure 7 As shown, the output circuit includes a second selection subcircuit 730 and a second switch subcircuit 740. The second selection subcircuit 730 is connected to the seventh comparator 724 and the timer 725. The second selection subcircuit 730 can output a preset default brightness value when the judgment result of the seventh comparator 724 is that the difference between the Nth brightness value and the Nkth brightness value is less than the second reference brightness difference and the timer has not timed out (for example, not exceeding 300 brightness values). The second switch subcircuit 740 is connected to the fourth comparator 712, the fifth comparator 714, the sixth comparator 722, the seventh comparator 724 and the storage circuit 220. The second switch subcircuit 740 can output the Nth brightness value among N brightness values in at least one of the following situations: the judgment result of the fourth comparator 712 is that the 1+jth brightness value among the N brightness values is not less than the first reference brightness value; the judgment result of the fifth comparator 714 is that the Nth brightness value among the N brightness values is not less than the second reference brightness value; the judgment result of the sixth comparator 722 is that the difference between the first brightness value among the N brightness values and the 1+jth brightness value is not greater than the first reference brightness difference; the judgment result of the seventh comparator 724 is that the difference between the Nth brightness value and the Nkth brightness value among the N brightness values is not less than the second reference brightness difference; the timer times out.
[0081] For example, when the judgment result of the seventh comparator 724 is that the difference between the 20th brightness value and the 18th brightness value is less than the second reference brightness difference 2Lux and the timing result of the timer does not exceed 300 brightness values, the second selection subcircuit 730 outputs a preset default brightness value, which determines the default brightness value as 0Lux, or other numerical values, or other feasible methods for determining the default value.
[0082] For example, in the following case, the second switch subcircuit 740 outputs the 20th brightness value among the 20 brightness values. For example, the judgment result of the fourth comparator 712 is that the 3rd brightness value among the 20 brightness values is not less than the first reference brightness value of 100 Lux. For example, the judgment result of the fifth comparator 714 is that the 20th brightness value among the 20 brightness values is not less than the second reference brightness value of 30 Lux. For example, the judgment result of the sixth comparator 722 is that the difference between the 1st brightness value among the 20 brightness values minus the 3rd brightness value is not greater than the first reference brightness difference of 200 Lux. For another example, the judgment result of the seventh comparator 724 is that the difference between the 20th brightness value and the 18th brightness value among the 20 brightness values is not less than the second reference brightness difference of 2 Lux. Or the timer times out, for example, the timing duration exceeds the time required to store 300 frames of brightness values.
[0083] Figure 8 The execution flow chart of the detection circuit of another exemplary embodiment of the present disclosure is schematically shown.
[0084] Among them, combined Figure 7 and Figure 8 The execution flow chart of the detection circuit of the exemplary embodiment of the present disclosure is described in detail. Specifically, Figure 7 The execution process 800 of the detection circuit includes operations S801 to S808.
[0085] In operation S801 , a photo-sensing signal is acquired in real time and the acquired photo-sensing signal is converted into a brightness value.
[0086] In operation S802, N brightness values from the conversion circuit are stored in a first-in first-out manner. For example, the storage circuit may use Fifo memory, whose memory space is designed to be 20*16 bits, which can store 20 brightness values, corresponding to 20 frames of data.
[0087] In operation S803, it is determined whether the 1+jth brightness value among the N brightness values is less than the first reference brightness value stored in the fourth register. For example, N is 20, j is 2, and the first reference brightness value is 100 Lux. It is determined whether the 3rd brightness value among the 20 brightness values is less than the first reference brightness value 100 Lux. If it is less, operation S804 is performed, and if it is not less, operation S808 is performed.
[0088] In operation S804, it is determined whether the difference between the first brightness value and the first+j brightness value among the N brightness values is greater than the first reference brightness difference. And when the difference between the first brightness value and the first+j brightness value is greater than the first reference brightness difference, the fifth comparator is triggered to determine whether the Nth brightness value among the N brightness values is less than the second reference brightness value. For example, the first reference brightness difference is 200 Lux, and it is determined whether the difference between the first brightness value and the third brightness value among the 20 brightness values is greater than 200 Lux. If it is greater, the timer is triggered to start timing and operation S806 is executed. If it is not greater, operation S808 is executed.
[0089] In operation S805, it is determined whether the Nth brightness value among the N brightness values is less than the second reference brightness value stored in the fifth register. For example, as described above, the second reference brightness value is 30 Lux, then it is determined whether the 20th brightness value among the 20 brightness values is less than 30 Lux. If it is less than, operation S806 is performed, and if it is not less than, operation S808 is performed.
[0090] In operation S806, the timer starts timing and determines whether the difference between the Nth brightness value and the Nkth brightness value among the N brightness values is less than the second reference brightness difference and the timer has not timed out. If yes, operation S807 is performed, otherwise operation S808 is performed. For example, N is 20, k is 2, and the second reference brightness difference is 2Lux, then it is determined whether the difference between the 20th brightness value and the 18th brightness value among the 20 brightness values is less than 2Lux. The set time threshold is, for example, the time required to record 300 brightness values. If the difference is less than the second reference brightness difference and the timer has not timed out.
[0091] In operation S807, a preset default brightness value is outputted, and the default brightness value may be, for example, 0 Lux, or other set brightness values.
[0092] In operation S808, the Nth brightness value among the N brightness values is output. For example, the 20th brightness value among the 20 brightness values is output.
[0093] Fig. 9 The structure block diagram of the detection panel of the exemplary embodiment of the present disclosure is schematically shown.
[0094] Another aspect of the present disclosure further provides a display panel 900, which may include a photoelectric sensor 910 and a detection circuit 920, wherein the photoelectric sensor 910 is used to generate a photoelectric sensing signal by converting an optical signal into an electrical signal, wherein the detection circuit 920 is the detection circuit described above, and the detection circuit 920 is connected to the photoelectric sensor 910.
[0095] Fig.10 The flowchart of the detection method of the exemplary embodiment of the present disclosure is schematically shown.
[0096] Another aspect of the present disclosure also provides a detection method, such as Fig. 9 As shown, the detection method includes operations S1010 to S1040.
[0097] In operation S1010 , a photo-sensing signal is acquired in real time and the acquired photo-sensing signal is converted into a brightness value.
[0098] In operation S1020, N brightness values from the conversion circuit are stored in a first-in-first-out manner.
[0099] In operation S1030, it is determined whether at least two brightness values among the N brightness values meet a preset condition.
[0100] Wherein, determining whether at least two brightness values among the N brightness values meet a preset condition includes: (1) determining whether at least one brightness value among the N brightness values is less than a preset reference brightness value; and (2) determining whether a difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference.
[0101] In operation S1040, when at least two brightness values meet the preset condition, a preset default brightness value is output, and when at least two brightness values do not meet the preset condition, at least one of the N brightness values is output.
[0102] According to the embodiments of the present disclosure, the detection circuit and detection method of the present disclosure can effectively reduce the problem of poor user experience caused by the long reaction time of the photosensitive sensor due to changes in ambient light brightness.
[0103] Although some embodiments of the overall technical concept of the present disclosure have been shown and described, those skilled in the art will appreciate that changes may be made to these embodiments without departing from the principles and spirit of the overall technical concept, and the scope of the present disclosure is defined by the claims and their equivalents.
Claims
1. A detection circuit, comprising: A conversion circuit, used for acquiring a photoelectric sensing signal in real time and converting the acquired photoelectric sensing signal into a brightness value; A storage circuit, connected to the conversion circuit, for storing N brightness values from the conversion circuit in a first-in-first-out manner; A discrimination circuit, connected to the storage circuit, is used to determine whether at least two brightness values among the N brightness values meet a preset condition, Wherein, the discrimination circuit comprises: a first determination subcircuit, connected to the storage circuit, for determining whether at least one brightness value among the N brightness values is less than a preset reference brightness value; a second determination subcircuit, connected to the storage circuit, for determining whether a difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference; An output circuit is connected to the discrimination circuit and the storage circuit, and is used to output a preset default brightness value when the at least two brightness values meet the preset conditions, and to output at least one of the N brightness values when the at least two brightness values do not meet the preset conditions.
2. The detection circuit according to claim 1, wherein: The first determination subcircuit comprises: A first register, used to store the preset reference brightness value; a first subtractor, connected to the storage circuit and the first register, and configured to subtract a first brightness value among the N brightness values from the preset reference brightness value stored in the first register to obtain a first difference value; A first comparator is connected to the first subtractor, and is used to determine whether the first difference output by the first subtractor is greater than 0.
3. The detection circuit according to claim 2, wherein: The second determination subcircuit comprises: A second register, used to store the reference brightness difference; A second subtractor, connected to the storage circuit, for subtracting the Ni-th brightness value from the N-th brightness value of the N brightness values to obtain a second difference value, wherein i is an integer, 1≤i<N; A second comparator is connected to the second register and the second subtractor, and is used to determine whether the second difference output by the second subtractor is smaller than the reference brightness difference stored in the second register.
4. The detection circuit according to claim 3, wherein: The output circuit comprises: a first selection subcircuit connected to the first subtractor and the first comparator, and configured to select and output a default brightness value matching the first difference output by the first subtractor from a plurality of preset default brightnesses when the judgment result of the first comparator is that the first difference is greater than 0; A first switch subcircuit is connected to the first comparator, the second comparator and the storage circuit, and is used to output an Nth brightness value among the N brightness values in at least one of the following situations: The judgment result of the first comparator is that the first difference is not greater than 0; The judgment result of the second comparator is that the second difference is smaller than the preset reference brightness difference.
5. The detection circuit according to claim 4, wherein: The first selection subcircuit comprises: A plurality of shift registers, respectively used to store a plurality of preset default brightness values; a third comparator, connected to the first subtractor and the first comparator, and configured to determine a voltage range in which the first difference is located from a plurality of preset voltage ranges when a judgment result of the first comparator is that the first difference is greater than 0; A multiplexer is used to control one shift register among the plurality of shift registers to output a stored default brightness value according to the voltage range determined by the third comparator.
6. The detection circuit according to any one of claims 3 to 5, wherein: N=4, i=1.
7. The detection circuit according to any one of claims 2 to 5, wherein: The reference brightness value is in the range of 90 Lux to 110 Lux, and the reference brightness difference is in the range of 2 Lux to 4 Lux.
8. The detection circuit according to claim 6, wherein: The reference brightness value is in the range of 90 Lux to 110 Lux, and the reference brightness difference is in the range of 2 Lux to 4 Lux.
9. The detection circuit according to claim 1, wherein: The reference brightness value includes a first reference brightness value and a second reference brightness value lower than the first reference brightness value, and the first determination subcircuit includes: a fourth register, used to store the first reference brightness value; a fourth comparator, used to determine whether a 1+j th brightness value among the N brightness values is less than the first reference brightness value, where j is an integer, 1≤j<N; a fifth register, used for storing the second reference brightness value; A fifth comparator is used to determine whether the Nth brightness value among the N brightness values is less than the second reference brightness value.
10. The detection circuit according to claim 9, wherein: The preset reference brightness difference includes a first reference brightness difference and a second reference brightness difference, and the second determination subcircuit includes: a sixth register, used to store the first reference brightness difference; a sixth comparator, connected to the fourth comparator, the fifth comparator and the sixth register, for judging whether a difference between the first brightness value and the 1+j-th brightness value among the N brightness values is greater than the first reference brightness difference when the judgment result of the fourth comparator is that the 1+j-th brightness value is less than the first reference brightness value, and for triggering the fifth comparator to judge whether the N-th brightness value among the N brightness values is less than the second reference brightness value when the difference between the first brightness value and the 1+j-th brightness value is greater than the first reference brightness difference; a timer connected to the fifth comparator, and configured to start timing in response to a judgment result of the fifth comparator that the Nth brightness value among the N brightness values is less than the second reference brightness value; a seventh register, used for storing the second reference brightness difference; A seventh comparator is connected to the storage circuit, the seventh register and the fifth comparator, and is used to determine whether the difference between the Nth brightness value and the Nkth brightness value among the N brightness values is less than the second reference brightness difference in response to the judgment result of the fifth comparator that the Nth brightness value among the N brightness values is less than the second reference brightness difference, where k is an integer, 1≤k<N.
11. The detection circuit according to claim 10, wherein: The output circuit comprises: a second selection subcircuit, connected to the seventh comparator and the timer, and configured to output a preset default brightness value when a judgment result of the seventh comparator is that the difference between the Nth brightness value and the Nkth brightness value is less than the second reference brightness difference and the timer has not timed out; The second switch subcircuit is connected to the fourth comparator, the fifth comparator, the sixth comparator, the seventh comparator and the storage circuit, and is used to output the Nth brightness value among the N brightness values in at least one of the following situations: The judgment result of the fourth comparator is that the 1+jth brightness value among the N brightness values is not less than the first reference brightness value; The judgment result of the fifth comparator is that the Nth brightness value among the N brightness values is not less than the second reference brightness value; The judgment result of the sixth comparator is that the difference between the first brightness value and the 1+jth brightness value among the N brightness values is not greater than the first reference brightness difference; The judgment result of the seventh comparator is that the difference between the Nth brightness value and the Nkth brightness value among the N brightness values is not less than the second reference brightness difference; The timer has expired.
12. The detection circuit according to claim 11, wherein: N=20, j=2, k=2.
13. The detection circuit according to any one of claims 9 to 12, wherein: The first reference brightness value is in the range of 90 Lux to 110 Lux; The second reference brightness value is in the range of 20 Lux to 40 Lux.
14. The detection circuit according to any one of claims 10 to 12, wherein: The first reference brightness difference is in the range of 150 Lux to 250 Lux; The second reference brightness difference is in the range of 1 Lux to 3 Lux.
15. The detection circuit according to claim 13, wherein: The first reference brightness difference is in the range of 150 Lux to 250 Lux; The second reference brightness difference is in the range of 1 Lux to 3 Lux.
16. A display panel, comprising: A photoelectric sensor for generating a photoelectric sensing signal by converting an optical signal into an electrical signal; The detection circuit according to any one of claims 1 to 15, wherein the detection circuit is connected to the photosensor.
17. A detection method comprising: Acquire photoelectric sensing signals in real time and convert the acquired photoelectric sensing signals into brightness values; storing N brightness values from the conversion circuit in a first-in first-out manner; Determine whether at least two brightness values among the N brightness values meet a preset condition, The step of determining whether at least two brightness values among the N brightness values meet a preset condition comprises: determining whether at least one brightness value among the N brightness values is less than a preset reference brightness value; and Determining whether a difference between at least two brightness values among the N brightness values exceeds a preset reference brightness difference; When the at least two brightness values meet the preset condition, a preset default brightness value is output; when the at least two brightness values do not meet the preset condition, at least one of the N brightness values is output.
Citation Information
Patent Citations
Display screen brightness adjusting method
CN105185310A
Terminal screen brightness control method and terminal
CN112492102A