Breathing light control circuit and method, breathing response module, electronic device
By combining frequency division, channel selection, calibration, and sampling modules, the structure of the breathing light control circuit is simplified, solving the problems of large area and low flexibility of traditional breathing light modules, and achieving smaller chip size and higher flexibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2026-04-10
AI Technical Summary
Traditional breathing light control modules often have a large area or size when achieving a good breathing effect, and they have low flexibility, making it difficult to efficiently cut or add breathing channels.
A frequency divider module is used to divide the source clock to generate first and second clocks. A channel selection module selects the breathing channel, and a calibration module and a sampling module are used to perform time-division calibration and sampling of the breathing control signal, which simplifies the circuit structure and reduces the chip area.
While ensuring respiratory response, the structure of the control circuit has been simplified, the area of the control circuit and the cost of the chip have been reduced, and the flexibility of the control process has been improved, making it easy to add or cut respiratory channels.
Smart Images

Figure CN117545126B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit, in particular to a breathing light control circuit and method, a breathing response module and an electronic device. BACKGROUND
[0002] The breathing response module includes a chip and other modules that can achieve a breathing effect. Taking a light-emitting diode as an example, the breathing process can be divided into multiple states, including gradual brightening (RISE), constant brightening (ON), gradual dimming (FALL), and extinguishing (OFF), as shown in FIG. 1.
[0003] Compared with other forms of light-emitting response, the breathing response provided by the breathing light is similar to human breathing, which can achieve a good visual decoration effect and is widely used in various digital products, such as mobile phones, computers, sound systems, and / or automobiles. For example, the breathing light can be used for unread message prompts and charging prompts on a mobile phone, and for Bluetooth connection and disconnection prompts on a Bluetooth sound system, and so on.
[0004] In order to achieve a better breathing effect, the brightness of the light-emitting device such as an LED lamp needs to be calibrated over time (for example, gamma calibration), because the human eye is not linear in perceiving brightness, but is approximately a power function, and is more sensitive to the relative difference between darker tones than to the relative difference between brighter tones. The inventor has found that, for the process of calibrating the light-emitting device such as an LED lamp using a gamma calibration method, the size of the corresponding breathing control module is relatively large. Figure 1 b As shown in the picture, if the picture is not calibrated by gamma, the picture cannot allocate enough bandwidth to the shadow part sensitive to the human eye, and too much bandwidth is allocated to the highlights that the human eye cannot distinguish. As shown in the picture, in most cases, the human eye processes the input image according to a gamma<1 curve, as shown in the picture. Figure 1 c As shown in the picture, if the breathing brightness of the LED lamp is calibrated by gamma>1 in advance, a better gradual brightening and gradual dimming effect can be achieved visually, as shown in the picture. Figure 1 d Figure 1 e The inventor has found that, in order to achieve the above-mentioned better breathing effect, such as corresponding breathing control after the calibration process, the corresponding breathing control module often has a relatively large area or size.
[0005] The inventor has found that, in order to achieve the above-mentioned better breathing effect, such as corresponding breathing control after the calibration process, the corresponding breathing control module often has a relatively large area or size. SUMMARY
[0006] In view of this, the present application provides a breathing light control circuit and method, a breathing response module, and an electronic device to solve the technical problem that the breathing control module used in the conventional scheme has a relatively large area or size when achieving a better breathing effect.
[0007] The first aspect of the present application provides a control circuit of a breathing lamp, comprising a frequency division module, a calibration module, a channel selection module, a sampling module and a breathing module;
[0008] The frequency division module is configured to access a source clock, divide the source clock to obtain a first clock and a second clock, output the first clock to the channel selection module, and output the second clock to the breathing module.
[0009] The breathing module comprises a plurality of breathing channels corresponding to a plurality of groups of light emitting devices respectively, and is configured to output breathing control signals corresponding to each group of light emitting devices according to the second clock.
[0010] The calibration module is configured to calibrate breathing control signals corresponding to each breathing channel respectively according to the breathing channel selection signals in time to obtain calibration signals, and transmit the calibration signals to the sampling module.
[0011] The channel selection module is configured to select one breathing channel according to the first clock, transmit a breathing channel selection signal corresponding to the selected breathing channel to the calibration module, generate a sampling clock corresponding to the selected breathing channel, and transmit the sampling clock to the sampling module.
[0012] The sampling module is configured to sample the corresponding calibration signals using the sampling clock to obtain sampling signals, and output the sampling signals to a corresponding group of light emitting devices to drive the corresponding light emitting devices to respond to the breathing.
[0013] Optionally, the calibration module comprises a gating unit and a calibration unit; the gating unit comprises an input end corresponding to each breathing channel respectively, and is configured to turn on the corresponding breathing channel according to the breathing channel selection signal, store breathing control signals output by the turned-on breathing channel as modulation signals in sequence, and transmit the modulation signals to the calibration unit; and the calibration unit is configured to calibrate breathing control signals carried by the modulation signals in sequence to obtain calibration signals.
[0014] Optionally, the calibration unit is further configured to pre-store a mapping algorithm mapped from a linear relationship to an exponential relationship to map the modulation signals to calibration signals in an exponential relationship.
[0015] Optionally, the channel selection module comprises a counter, a judging unit, a flip-flop, a NOT gate, a first AND gate, a second AND gate and a gating unit; the input of the counter is connected to the first output of the frequency division module, the output is connected to the first input of the judging unit, the output of the judging unit is connected to the first input of the second AND gate, the second input of the second AND gate is connected to the state output of the breathing module, the third input is connected to the output of the first AND gate, the output is connected to the input of the gating unit, the clock end of the gating unit is connected to the source clock, the output is connected to the sampling module, the input of the flip-flop is connected to the first output of the frequency division module, the clock end is connected to the source clock, the output is connected to the first input of the first AND gate, the input of the NOT gate is connected to the first output of the frequency division module, and the output is connected to the second input of the first AND gate.
[0016] Optionally, the upper limit of the count value of the counter is determined according to the number of breathing channels currently adopted by the breathing module.
[0017] Optionally, the control circuit of the breathing lamp further comprises a processing module; the processing module is connected to the breathing module and the judging unit respectively, and is used for determining the breathing channel currently adopted by the breathing module.
[0018] Optionally, the processing module is further used for updating the breathing channel to be accessed in the control process.
[0019] Optionally, the frequency of the source clock is 1MHz, the frequency of the first clock is 2kHz, and the frequency of the second clock is 256Hz.
[0020] The application further provides a control method of a breathing lamp, which is applied to any one of the control circuits of the breathing lamp, and the control method comprises the following steps of:
[0021] The source clock is frequency-divided to obtain a first clock and a second clock;
[0022] The breathing control signals corresponding to each group of light emitting devices are output according to the second clock;
[0023] One breathing channel is selected according to the first clock, and a sampling clock corresponding to the selected breathing channel is generated;
[0024] The breathing control signals corresponding to each breathing channel are calibrated in time according to the breathing channel selection signal, and a calibration signal is obtained;
[0025] The corresponding calibration signal is sampled by using the sampling clock, and the sampling signal is output to the corresponding group of light emitting devices, so as to drive the corresponding light emitting devices to perform breathing response.
[0026] Optionally, the control method further comprises: updating the breathing passage needing to be accessed in the control process.
[0027] The application further provides a breathing response module comprising the control circuit of any of the breathing lamps.
[0028] Optionally, the breathing response module further comprises a plurality of groups of light emitting devices; each group of the light emitting devices corresponds to one breathing passage.
[0029] Optionally, each group of the light emitting devices comprises at least one LED lamp.
[0030] The application further provides an electronic device comprising any of the breathing response modules.
[0031] The control circuit and method of the breathing lamp, the breathing response module and the electronic device provided by the application can divide the source clock by using a frequency division module to obtain a first clock and a second clock, so that the breathing module can output breathing control signals corresponding to each group of the light emitting devices according to the second clock, the channel selection module can select one breathing passage according to the first clock, transmit a breathing passage selection signal corresponding to the selected breathing passage to the calibration module, and generate a sampling clock corresponding to the selected breathing passage, so that the calibration module can calibrate the breathing control signals corresponding to each breathing passage respectively by using a relatively simple circuit structure to obtain calibration signals corresponding to each breathing control signal, and the sampling module can sample the corresponding calibration signals by using the sampling clock to obtain sampling signals, output the sampling signals to the corresponding group of light emitting devices, and drive the corresponding light emitting devices to perform breathing response, thereby effectively simplifying the structure of the entire control circuit, reducing the area or size of the control circuit, reducing the area or size of the chip on which the control circuit is located, and reducing the cost of the corresponding chip.
[0032] Further, the application can conveniently add or trim the breathing passage accessed in the control process, efficiently update the breathing passage used in the control process, update the corresponding breathing effect, and improve the flexibility in the control process on the basis of simplifying the corresponding circuit structure and reducing the chip cost. BRIEF DESCRIPTION OF DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0034] Figure 1 a , Figure 1 b , Figure 1 c , Figure 1 d andFigure 1 e is a schematic diagram of a breathing process analysis of a light emitting device;
[0035] Figure 2a and Figure 2b is a schematic diagram of a breathing curve;
[0036] Figure 3a 、 Figure 3b 、 Figure 3c and Figure 3d is a timing diagram corresponding to the circuit diagram adopted by the inventor during the research process;
[0037] Figure 4 is a schematic diagram of a control circuit structure of a breathing lamp according to an embodiment of the present application;
[0038] Figure 5 is a schematic diagram of a control circuit structure of a breathing lamp according to an embodiment of the present application;
[0039] Figure 6 is a schematic diagram of a calibration unit structure according to an embodiment of the present application;
[0040] Figure 7 is a schematic diagram of a judging unit structure according to an embodiment of the present application;
[0041] Figure 8 is a schematic diagram of a signal timing according to an embodiment of the present application;
[0042] Figure 9 is a schematic diagram of a signal timing according to another embodiment of the present application;
[0043] Figure 10 is a schematic diagram of a control method flow of a breathing lamp according to an embodiment of the present application. DETAILED DESCRIPTION
[0044] The inventor has researched the breathing control process such as gamma calibration of LED lamps and other light emitting devices, and found that the calibration curve and other breathing curves are important tools for implementing the calibration function such as gamma calibration, and the calibration module corresponding to the breathing curve is an important component of the breathing control module, as shown in Figure 2a and Figure 2b After the luminance curve of the LED lamp shown in Figure 2a is calibrated by the calibration module corresponding to the breathing curve, the gradual change process such as gradual brightening and gradual dimming is more consistent with the light sensing characteristics of the human eye, and has better breathing effect. The inventor has also found in the research process that the breathing curve is generally implemented using a lookup table, and in order to achieve higher incremental and decremental accuracy, the lookup table adopted by the existing breathing chip and other breathing control modules is very large, and each breathing channel corresponds to a breathing curve, resulting in a large area or size of the calibration curve and other breathing curves after synthesis. Therefore, the traditional breathing control module often has a large area or size.
[0045] The inventors conducted in-depth research on the breathing light chip, which includes eight breathing channels, and further discovered that, if... Figure 3a As shown, a calibration module corresponding to a breathing curve is used for breathing control for each of the eight breathing channels, such as... Figure 3a The diagram shows that the first calibration module U0_LOG is used to control breathing in the first breathing channel BRE_CH0, the second calibration module U1_LOG is used to control breathing in the first breathing channel BRE_CH1, ..., and the eighth calibration module U7_LOG is used to control breathing in the first breathing channel BRE_CH7. Figure 3a The corresponding timing diagram can be referenced. Figure 3b As shown, the corresponding working process can include: a 1MHz clock as the source clock, which is divided by the frequency divider module div8192 to obtain a 2KHz clock and a 256Hz clock. The 256Hz clock is provided to 8 breathing channels (BRE_CH0~BRE_CH7). If the i-th breathing channel is OFF, then pat_st[i] is 0, otherwise it is 1. Each breathing channel outputs the initial values lev_out0~lev_out7 for breathing. The increment and decrement of lev_out0 to lev_out7 are linear functions. Correspondingly, there are 8 breathing curves (also called calibration curves) and corresponding calibration modules (such as U0_LOG to U7_LOG) to convert the linear increment and decrement of lev_out0 to lev_out7 into exponential increment and decrement. The conversion results are lev_log0~lev_log7. lev_log0~lev_log7 can be transformed at the rising edge of the 256Hz clock. A 2kHz clock is used to generate the gating clock enable signal dim_gclk_en[i]. First, the falling edge of the 2kHz clock is taken, and the obtained falling edge signal is ANDed with the breathing state of the breathing module to obtain dim_gclk_en[i]. After passing through the gating unit, the gating clock clk_dim_pat[i] is obtained. From this, clk_dim_pat[i] and signals lev_log0 to lev_log7 are obtained, where clk_dim_pat[0] corresponds to lev_log0, clk_dim_pat[1] corresponds to lev_log1, ..., clk_dim_pat[7] corresponds to lev_log7. Thus, 8 breathing signals can be transmitted to the register DIMxx (xx takes 0 to 7). The inventors analyzed and found that if the following is used Figure 3a The circuit shown, which sets corresponding calibration curves for each breathing channel, still easily leads to an oversized chip area after integration.
[0046] Moreover, for the circuit shown in 3a, when cutting 8-way breathing channels, for example, cutting CH0-CH3 to have no breathing function, the circuit also needs to be modified as follows: first, delete the breathing channels BRE_CH0-BRE_CH3 of CH0-CH3, and the corresponding calibration curves U0_LOG-U3_LOG are also deleted, then modify the 2KHz clock to 1KHz, the range of i in pat_st[i] is modified to 4-7, and finally the breathing output register is also reduced to 4, so that only the 4-way breathing function of CH4-CH7 can be realized. The modified circuit can be referred to as Figure 3c shown in 3a, Figure 3c The timing diagram corresponding to the circuit shown in 3a can be referred to as Figure 3d shown in 3a, Figure 3c The filled part in 3a needs to be modified accordingly, such as the related breathing channels (such as BRE_CH0-BRE_CH7), flip-flops, gate units, etc. It should be noted that, Figure 3a to Figure 3b in 3a, i represents the i-th breathing channel, and xx represents the output register of the xx-th breathing channel. As can be seen, when the circuit shown in 3a needs to be cut, the circuit needs to be modified greatly, which is time-consuming and laborious and prone to errors.
[0047] The inventors found that Figure 3a to Figure 3d corresponding working process and timing characteristics, if a calibration module corresponding to each breathing channel is used to control the breathing of the corresponding breathing channel, it will bring trouble to the digital back-end layout and wiring, and increase the area of the chip and the manufacturing cost of the corresponding chip. From the perspective of circuit design, Figure 3a The circuit shown in 3a also has the problem of low flexibility.
[0048] To solve the above problems, in this application, the calibration module can use a relatively simple circuit structure to time-share the calibration of the breathing control signals corresponding to each breathing channel to obtain the calibration signals corresponding to each breathing control signal. The sampling module can use a sampling clock to sample the corresponding calibration signals to obtain sampling signals, and output the sampling signals to a corresponding group of light-emitting devices to drive the corresponding light-emitting devices to respond to the breathing. On the basis of ensuring the breathing response effect, the structure of the entire control circuit can be effectively simplified, and the area or size of the control circuit can be reduced, thereby reducing the area or size of the chip where the control circuit is located, and reducing the cost of the corresponding chip. It is also convenient to add or cut the breathing channels accessed in the control process. On the basis of simplifying the structure of the corresponding circuit and reducing the cost of the chip, the breathing channels used in the control process are efficiently updated, the corresponding breathing effect is updated, and the flexibility in the control process is improved.
[0049] With reference to the drawings, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work are within the protection scope of the present application. In the case of no conflict, each of the described embodiments and technical features can be combined with each other.
[0050] The first aspect of the present application provides a breathing lamp control circuit, referring to Figure 4 and Figure 5 The breathing lamp control circuit comprises a frequency division module 100, a calibration module 200, a channel selection module 300, a sampling module 400 and a breathing module 500.
[0051] The frequency division module 100 is used to access a source clock, divide the source clock to obtain a first clock and a second clock, output the first clock to the channel selection module 300, and output the second clock to the breathing module 500.
[0052] The breathing module 500 comprises a plurality of breathing channels corresponding to a plurality of groups of light emitting devices (not shown), respectively, and is used to output breathing control signals corresponding to each group of light emitting devices according to the second clock. Figure 4
[0053] The calibration module 200 is used to calibrate breathing control signals corresponding to each breathing channel respectively according to the breathing channel selection signal in time, obtain calibration signals, and transmit the calibration signals to the sampling module 400.
[0054] The channel selection module 300 is used to select a breathing channel according to the first clock, transmit a breathing channel selection signal corresponding to the selected breathing channel to the calibration module 200, generate a sampling clock corresponding to the selected breathing channel, and send the sampling clock to the sampling module 400.
[0055] The sampling module 400 is used to sample the corresponding calibration signals by using the sampling clock to obtain sampling signals, and output the sampling signals to a corresponding group of light emitting devices to drive the corresponding light emitting devices to respond to breathing.
[0056] Specifically, the frequency division module 100 can comprise a frequency divider or the like to divide the source clock into two clock signals. The breathing module 500 comprises a plurality of breathing channels corresponding to a plurality of groups of light emitting devices respectively, for example Figure 5 The first to eighth breathing channels BRE_CH0 to BRE_CH7 are shown. Each breathing channel corresponds to a group of light emitting components, which are configured to output a breathing control signal corresponding to the group of light emitting devices. The breathing control signals can have a relatively simple linear relationship (e.g., an increasing or decreasing linear relationship) with each other. Optionally, each group of light emitting components includes at least one light emitting device, which can include an LED lamp and / or a background lamp and the like for providing a light effect.
[0057] Specifically, the calibration module 200 can be pre-written with a calibration algorithm or calibration model corresponding to a breathing control signal. After receiving each breathing control signal, the calibration module 200 can calibrate each breathing control signal in time to generate a calibration signal corresponding to each breathing control signal, thereby achieving the purpose of calibrating multiple breathing control signals using one calibration algorithm or calibration model, and effectively simplifying the structure of the calibration module 200. The channel selection module 300 can include flip-flops, counters, AND gates, and the like, which can assist each other to select one breathing channel according to the first clock and generate a sampling clock corresponding to the selected breathing channel.
[0058] The above-mentioned control circuit of the breathing lamp divides the source clock by the frequency division module 100 to obtain the first clock and the second clock, so that the breathing module 500 can output the breathing control signals corresponding to each group of light emitting devices according to the second clock, and the channel selection module 300 can select one breathing channel according to the first clock and generate a sampling clock corresponding to the selected breathing channel. In this way, the calibration module 200 can calibrate each breathing control signal corresponding to each breathing channel in time using a relatively simple circuit structure to obtain a calibration signal corresponding to each breathing control signal. The sampling module 400 can sample the corresponding calibration signal using the sampling clock to obtain a sampling signal, which is output to the corresponding group of light emitting devices to drive the corresponding light emitting devices to respond to the breathing. On the basis of ensuring the breathing response effect, the structure of the entire control circuit can be effectively simplified, the area or size of the control circuit can be reduced, and thus the area or size of the chip on which the control circuit is located can be reduced.
[0059] In one embodiment, with reference to Figure 5As shown, the calibration module 200 includes a gating unit 210 and a calibration unit 220; the gating unit 210 includes input ends corresponding to the breathing channels respectively, and is configured to turn on the corresponding breathing channel according to the breathing channel selection signal pat_sel, store the breathing control signal (e.g., lev_out0, lev_out1, or lev_out7, etc.) output by the turned-on breathing channel as a modulation signal lev_lin in sequence, and send the modulation signal lev_lin to the calibration unit 220; the calibration unit 220 is configured to calibrate the breathing control signal carried by the modulation signal lev_lin in sequence, to perform time-sharing calibration on the breathing control signal included in the modulation signal lev_lin, and obtain the corresponding calibration signal lev_log.
[0060] Optionally, the gating unit 210 can include a counter and / or a multiplexer, etc., for selecting and turning on one breathing channel in the multiple breathing channels. Optionally, the calibration unit 220 can include an AND gate, a NOT gate, an OR gate, and / or a selector, etc., which, after being connected, can map the breathing control signal to the corresponding calibration signal.
[0061] In one example, referring to Figure 6 As shown, the calibration unit 220 can include a multiplexer, each input of which can correspond to an output, so as to map the breathing control signal to the corresponding calibration signal according to the correspondence between the input and the output.
[0062] Specifically, the calibration unit 220 can calibrate the breathing control signals lev_out0 to lev_out7 carried by the modulation signal lev_lin in sequence, to obtain the calibration signal lev_log corresponding to each breathing control signal respectively, e.g., the calibration signal lev_log can include the first calibration signal lev_log0 corresponding to the first breathing channel BRE_CH0, the first calibration signal lev_log1 corresponding to the second breathing channel BRE_CH1, …, the eighth calibration signal lev_log7 corresponding to the eighth breathing channel BRE_CH7, etc. The sampling clock output by the channel selection module 300 can be referred to as a gate clock clk_dim_pat[i], which can include the clock signal corresponding to each breathing channel in time sequence, e.g., the first gate clock clk_dim_pat[0] corresponding to the first breathing channel BRE_CH0 to the eighth gate clock clk_dim_pat[7] corresponding to the eighth breathing channel BRE_CH7, etc. When receiving the gate clock clk_dim_pat[i], the sampling module 400 can sample the corresponding calibration signal according to the gate clock clk_dim_pat[i], to obtain the corresponding sampling signal.
[0063] The inventor has found that the breathing control signals output by the respective breathing channels of some breathing modules 500 can have a linear relationship, for example, a linear relationship in which the RISE segment increases linearly, or a linear relationship in which the FALL segment increases linearly. In this case, the breathing control signals having a linear relationship with each other need to be calibrated to signals having an exponential relationship with each other, so that the corresponding gradual brightening or gradual dimming and other gradual changes are more in line with the light-sensing characteristics of the human eye, and so that the breathing effect of the light-emitting assembly is improved. Figure 2a Figure 2a The inventor has found that the breathing control signals output by the respective breathing channels of some breathing modules 500 can have a linear relationship, for example, a linear relationship in which the RISE segment increases linearly, or a linear relationship in which the FALL segment increases linearly. In this case, the breathing control signals having a linear relationship with each other need to be calibrated to signals having an exponential relationship with each other, so that the corresponding gradual brightening or gradual dimming and other gradual changes are more in line with the light-sensing characteristics of the human eye, and so that the breathing effect of the light-emitting assembly is improved.
[0064] Based on the above findings, in one example, the calibration unit 220 is also configured to pre-store a mapping algorithm that maps a linear relationship to an exponential relationship, to sequentially map each breathing control signal included in the modulation signal lev_lin to obtain a corresponding calibration signal lev_log for each breathing control signal, and to control the breathing of each group of light-emitting assemblies according to the calibration signals lev_log, which can effectively improve the breathing effect.
[0065] In one embodiment, the channel selection module 300 includes a counter 310, a judgment unit 320, a flip-flop 330, a NOT gate 340, a first AND gate 350, a second AND gate 360, and a gating unit 370. The input end of the counter 310 is connected to the first output end of the frequency division module 100 to access the first clock, and the output end is connected to the first input end of the judgment unit 320. The judgment unit 320 obtains the serial number corresponding to the currently connected breathing channel through the second input end, obtains the serial number corresponding to the currently connected breathing channel through other means, and the output end of the judgment unit 320 is connected to the first input end of the second AND gate 360. The second input end of the second AND gate 360 is connected to the state output end of the breathing module 500, the third input end is connected to the output end of the first AND gate 350, and the output end is connected to the input end of the gating unit 370. The clock end of the gating unit 370 is connected to the source clock, and the output end is connected to the sampling module 400. The input end of the flip-flop 330 is connected to the first output end of the frequency division module 100 to access the first clock, the clock end is connected to the source clock, and the output end is connected to the first input end of the first AND gate 350. The input end of the NOT gate 340 is connected to the first output end of the frequency division module 100 to access the first clock, and the output end is connected to the second input end of the first AND gate 350.
[0066] In one example, the upper limit of the count value of the counter 310 is determined according to the number of the breathing channels currently adopted by the breathing module 500; for example, the breathing module 500 currently adopts the first breathing channel BRE CH0 to the eighth breathing channel BRE CH7, at this time, the number of the breathing channels is 8, the initial value of the counter 310 is 0, the upper limit of the count value is equal to 7, and the count step value is 1, so that there are totally 8 numbers between the initial value and the upper limit of the count value, which can make the counter 310 accurately count according to the working characteristics of the breathing module 500.
[0067] Optionally, the counter 310 can count at the rising edge of the first clock, for example, add 1 at the rising edge of the first clock to obtain the count signal of the breathing channel currently connected by the breathing module 500, so as to realize the counting between the initial value and the upper limit of the count value, and the count signal can represent the breathing channel selection signal pat sel. The breathing channel selection signal pat sel is provided to the gating unit 210, so that the gating unit 210 can connect the breathing channel corresponding to the breathing channel selection signal pat sel.
[0068] Optionally, the judging unit 320 can include a comparator and / or a selector and other devices capable of realizing corresponding judging logic. The judging unit 320 is used to judge the breathing channel selection signal pat sel and the serial number of the breathing channel currently connected, if the breathing channel selection signal pat sel is consistent with the serial number of the breathing channel currently connected, a signal representing the consistency of the judging objects, such as high level (for example, 1), can be output, if the breathing channel selection signal pat sel is inconsistent with the serial number of the breathing channel currently connected, a signal representing the inconsistency of the judging objects, such as low level (for example, 0), can be output. The second AND gate 360 is used to perform AND operation on the breathing state pat st[i] of the breathing module 500, the output result of the judging unit 320 and the output result of the first AND gate 350 to obtain the enable signal dim gclk en[i]. Specifically, as shown in the following table, the output result of the judging unit 320 is consistent with the breathing state pat st[i] of the breathing module 500, and the output result of the first AND gate 350 is low level (for example, 0), so that the output result of the second AND gate 360 is low level (for example, 0). Figure 5As shown, the trigger 330 is clocked by the source clock, and generates a trigger signal as one input signal of the first AND gate 350 according to the first clock. The inverter 340 takes the NOT of the first clock as another input signal of the first AND gate 350, so that the enable signal dim_gclk_en[i] takes the falling edge of the first clock. The falling edge signal, the breathing state pat_st[i] of the breathing module 500, and the output result of the judging unit 320 are ANDed. The enable signal dim_gclk_en[i] is sampled by the gating unit 370 to obtain the sampling clock clk_dim_pat[i], which can also be referred to as a gated clock. Further, the gating unit 370 can access the source clock as a sampling pulse to ensure the orderliness of the sampling work. Optionally, the breathing state pat_st[i] includes the serial number range of the breathing channel to be used in the current control process.
[0069] In one example, referring to Figure 7 As shown, the judging unit 320 can include a two-input gate corresponding to each breathing channel, and each two-input gate corresponds to the serial number of the corresponding breathing channel. In each two-input gate, the first input end is connected to high level 1, the second input end is connected to ground, and the control end is connected to the breathing channel selection signal pat_sel. When pat_sel=i, i.e., the breathing channel selection signal pat_sel is consistent with the serial number i of the breathing channel corresponding to the two-input gate, the two-input gate outputs high level 1, otherwise, it outputs low level 0.
[0070] In one example, as Figure 5 As shown, the frequency of the source clock is 1 MHz, the frequency of the first clock is 2 kHz, and the frequency of the second clock is 256 Hz. Specifically, the working process shown in Figure 5 is described in detail taking the clock parameters used in the present example as an example. Figure 5In the embodiment, the respiratory module 500 currently adopts the eight respiratory channels BRE_CH0-BRE_CH7, the source clock is 1MHz, the first clock 2KHz and the second clock 256Hz are obtained through the frequency division module 100, the first clock 2KHz is used to generate the respiratory channel selection signal pat_sel and the enable signal dim_gclk_en[i] of the gated clock, wherein the respiratory channel selection signal pat_sel is the output of a modulo 8 counter (i.e. the counter 310), which is incremented by 1 at the rising edge of the first clock 2KHz, achieving a count of 0-7, and for the enable signal dim_gclk_en[i], the output of the judgment of whether the respiratory channel selection signal pat_sel is consistent with the respiratory channel number i according to the falling edge signal of the first clock 2KHz, the respiratory state pat_st[i] of the respiratory module 500 and the respiratory channel selection signal pat_sel, the gated clock clk_dim_pat[i] is obtained by the gating unit 370 according to the enable signal dim_gclk_en[i] and the source clock 1MHz. The second clock 256Hz is used to control the eight respiratory channels (BRE_CH0-BRE_CH7), and each respiratory channel outputs the initial value lev_out0-lev_out7 (i.e. the respiratory control signal) for breathing, wherein the increment and decrement of lev_out0-lev_out7 are a linear function, the respiratory channel selection signal pat_sel is used to traverse the eight respiratory channels, and the values of the eight respiratory channels are placed in the same modulation signal lev_lin, achieving the modulation of the output values of the eight respiratory channels, and the modulation signal lev_lin is calibrated through the corresponding respiratory calibration curve of the calibration module 200, and the exponential respiratory curve lev_log (i.e. the calibration signal) can be output. Thus, the gated clock clk_dim_pat[i] and the calibration signal lev_log are obtained, wherein the gated clock clk_dim_pat[i] can include the first gated clock clk_dim_pat[0] corresponding to the first respiratory channel BRE_CH0 to the eighth gated clock clk_dim_pat[7] corresponding to the eighth respiratory channel BRE_CH7 in turn. The calibration signal lev_log can include the first calibration signal lev_log0 corresponding to the first respiratory channel BRE_CH0 to the eighth calibration signal lev_log8 corresponding to the eighth respiratory channel BRE_CH7. The first gated clock clk_dim_pat[0] is used to sample the first calibration signal lev_log0 to obtain the first sampling signal DIM00; the second gated clock clk_dim_pat[1] is used to sample the second calibration signal lev_log1 to obtain the second sampling signal DIM01; …; the eighth gated clock clk_dim_pat[7] is used to sample the eighth calibration signal lev_log7 to obtain the eighth sampling signal DIM07; wherein Figure 5The timing diagram corresponding to each signal in the control circuit shown can refer to Figure 8 Thereby, the sampling signals corresponding to the 8 breathing channels can be obtained, i.e., sampling according to the corresponding gate clock clk_dim_pat[i], and driving the corresponding set of light emitting components according to each sampling signal, for example, the 8 sampling signals can be transmitted to the DIMxx register for driving the corresponding light emitting components.
[0071] In one example, the control circuit of the breathing lamp described above further includes a processing module (not shown in the figure); the processing module can be integrated into the master module of the electronic device, or can include an independent intelligent processing chip such as a microprocessor. The processing module is connected to the breathing module 500 and the judgment unit 320 respectively, for determining the currently adopted breathing channel of the breathing module 500, and making the breathing module 500 adopt the currently adopted breathing channel to output the corresponding breathing control signal to the calibration module 200 in turn.
[0072] In one example, the processing module is further configured to update the breathing channel to be accessed in the control process. Specifically, the processing module can update the breathing channel to be accessed by modifying the breathing channel sequence number range corresponding to the breathing state pat_st[i]. For example, the breathing channel sequence number range to be adopted first is the first sequence number range, and the breathing channel sequence number range to be adopted after updating is the second sequence number range. The processing module can modify the breathing state pat_st[i] from the first sequence number range to the second sequence number range to update the breathing channel to be accessed, and realize adding or pruning the breathing channel to be accessed in the control process. This example can conveniently add or prune the breathing channel to be accessed in the control process, and on the basis of simplifying the corresponding circuit structure and reducing the chip cost, it can also efficiently update the breathing channel to be adopted in the control process, update the corresponding breathing effect, and improve the flexibility in the control process.
[0073] Optionally, the processing module can determine the second sequence number range to be updated by timing to obtain the second sequence number range to be updated or receiving the second sequence number range input by the user, etc., to modify the breathing state pat_st[i] from the first sequence number range to the second sequence number range.
[0074] Optionally, the processing module is further connected to the breathing module 500, the judgment unit 320 and the sampling module 400 respectively, to modify the corresponding parameters of the breathing module 500, the judgment unit 320 and the sampling module 400 respectively, so that the parameters adopted by the flip-flop 330, the gate unit 370 and the sampling module 400 match the breathing channel to be accessed after updating.
[0075] For example, Figure 5For example, the breathing module 500 adopts eight breathing channels, including a first breathing channel BRE_CH0 to an eighth breathing channel BRE_CH7. If the first breathing channel BRE_CH0 to the third breathing channel BRE_CH3 need to be pruned, the processing module can modify the index range (i.e., the range of i) in the judging unit 320 pat_st[i] to 4-7. The corresponding sampling module 400 retains the fourth breathing channel BRE_CH4 to the eighth breathing channel BRE_CH7, and the fourth breathing channel BRE_CH4 to the eighth breathing channel BRE_CH7 can realize the corresponding breathing function of the four breathing channels. The timing diagram of each signal can be referred to Figure 9 The processing module only needs to modify the related configuration parameters of the breathing module 500, the judging unit 320, and the sampling module 400, and the breathing channels adopted in the breathing control process can be pruned quickly.
[0076] In the control circuit of the breathing lamp, the breathing module 500 can output the breathing control signals corresponding to each group of light emitting devices according to the second clock, transmit the breathing channel selection signal corresponding to the selected breathing channel to the calibration module 200, and the channel selection module 300 can select one breathing channel according to the first clock and generate the sampling clock corresponding to the selected breathing channel. In this way, the calibration module 200 can use a relatively simple circuit structure to calibrate the breathing control signals corresponding to each breathing channel respectively, obtain the calibration signals corresponding to each breathing control signal, and the sampling module 400 can sample the corresponding calibration signals using the sampling clock to obtain the sampling signals. The sampling signals are output to the corresponding group of light emitting devices to drive the corresponding light emitting devices to perform breathing response. On the basis of ensuring the breathing response effect, the structure of the entire control circuit can be effectively simplified, and the area or size of the control circuit can be reduced, thereby reducing the area or size of the chip where the control circuit is located. In addition, the control circuit of the breathing lamp described above can conveniently add or prune the breathing channels accessed in the control process. On the basis of simplifying the corresponding circuit structure and reducing the chip cost, the breathing channels adopted in the control process can be efficiently updated, the corresponding breathing effect can be updated, and the flexibility in the control process can be improved.
[0077] The present application provides a control method of a breathing lamp in a second aspect, which can be applied to the control circuit of the breathing lamp described in any of the above embodiments. Referring to Figure 10 The control method of the breathing lamp described above includes:
[0078] S610, frequency division of the source clock to obtain the first clock and the second clock;
[0079] S620, output the breathing control signals corresponding to each group of light emitting devices according to the second clock;
[0080] S630, according to the first clock, a breath channel is selected, and a selected breath channel corresponding sampling clock is generated;
[0081] S640, according to the breath channel selection signal, each breath channel corresponding breath control signal is calibrated respectively, and a calibration signal is obtained;
[0082] S650, the sampling clock is used to sample the corresponding calibration signal, and the sampling signal is output to a corresponding group of light emitting devices to drive the corresponding light emitting devices to respond to the breath.
[0083] In one embodiment, the above-mentioned breath lamp control method further comprises updating the breath channel to be accessed during the control process. Specifically, the embodiment can update the breath channel to be accessed by modifying the breath channel sequence number range corresponding to the breath state pat_st[i]. For example, the first breath channel sequence number range is required to be used first, and the second breath channel sequence number range is required to be used after updating. The breath state pat_st[i] can be modified from the first sequence number range to the second sequence number range to update the breath channel to be accessed, and to add or cut the breath channel to be accessed in the current control process.
[0084] The above-mentioned breath lamp control method can be applied to the breath lamp control circuit described in any of the above-mentioned embodiments. The related features can refer to the breath lamp control circuit described in any of the above-mentioned embodiments, and have all the beneficial effects of the breath lamp control circuit described in any of the above-mentioned embodiments, which will not be repeated here.
[0085] The present application provides a breath response module in a third aspect, which comprises the breath lamp control circuit described in any of the above-mentioned embodiments, so as to control the breath response process by using a simple control circuit, reduce the size of the breath response module, and reduce the production cost of the breath response module. The breath channel used in the control process can also be updated efficiently, and the corresponding breath effect can be controlled flexibly.
[0086] In one embodiment, the above-mentioned breath response module further comprises a plurality of groups of light emitting devices; each group of light emitting devices corresponds to a breath channel.
[0087] Optionally, each group of light emitting devices comprises at least one LED lamp, so as to control a corresponding group of LED lamps through each breath channel, and improve the breath response effect of the LED lamp.
[0088] The fourth aspect of the present application provides an electronic device comprising the breathing response module of any of the above embodiments, so as to improve the breathing response function by using a relatively small breathing response module, improve the flexibility in the design process of the corresponding electronic device, reduce the production cost of the electronic device, and improve the flexibility in the breathing control process.
[0089] Although the present application has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based on the foregoing description and accompanying drawings. The present application includes all such modifications and alterations and is limited only by the scope of the following claims. In particular regard to the various functions performed by the above described components, the terms (including a reference to a "means") used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function (e.g., a functionally equivalent structure that performs the same function, even if not structurally equivalent to the disclosed structure) which
[0090] That is, the above-described embodiments are merely exemplary implementations of the present application, and do not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation made by using the content of the present application specification and drawings, such as the mutual combination of technical features between embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
[0091] In addition, the terms "first", "second" are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.
[0092] The above description has been given to enable any person skilled in the art to practice and use the present application. In the above description, various details are listed for the purpose of explanation. It should be understood that those skilled in the art can realize the present application without using these specific details. In other embodiments, well-known processes will not be described in detail to avoid unnecessary details making the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed.
Claims
1. A control circuit for a breathing light, characterized in that The frequency division module, the calibration module, the channel selection module, the sampling module and the breathing module are included. The frequency division module is used for accessing a source clock, dividing the source clock to obtain a first clock and a second clock, outputting the first clock to the channel selection module, and outputting the second clock to the breathing module. The breathing module includes a plurality of groups of light emitting devices corresponding to breathing channels, respectively, and is used for outputting breathing control signals corresponding to each group of light emitting devices according to the second clock. The calibration module is used for calibrating breathing control signals corresponding to each breathing channel in time according to a breathing channel selection signal to obtain a calibration signal, and transmitting the calibration signal to the sampling module. The channel selection module is used for selecting a breathing channel according to the first clock, transmitting a breathing channel selection signal corresponding to the selected breathing channel to the calibration module, and generating a sampling clock corresponding to the selected breathing channel to send the sampling clock to the sampling module. The sampling module is used for sampling the corresponding calibration signal by using the sampling clock to obtain a sampling signal, and outputting the sampling signal to the corresponding group of light emitting devices to drive the corresponding light emitting devices to respond to breathing.
2. The breathing light control circuit according to claim 1, wherein The calibration module includes a gating unit and a calibration unit. The gating unit includes an input end corresponding to each breathing channel, is used for turning on the corresponding breathing channel according to the breathing channel selection signal, and sequentially stores the breathing control signal output by the turned-on breathing channel as a modulation signal to send the modulation signal to the calibration unit. The calibration unit is used for sequentially calibrating the breathing control signal carried by the modulation signal to obtain a calibration signal.
3. The breathing light control circuit according to claim 2, wherein, The calibration unit is also used for pre-storing a mapping algorithm mapped from a linear relationship to an exponential relationship to map the modulation signal to a calibration signal in an exponential relationship.
4. The breathing light control circuit according to claim 1, wherein, The channel selection module includes a counter, a judgment unit, a flip-flop, a NOT gate, a first AND gate, a second AND gate and a gating unit. The input end of the counter is connected to the first output end of the frequency division module, the output end is connected to the first input end of the judgment unit, the output end of the judgment unit is connected to the first input end of the second AND gate, the second input end of the second AND gate is connected to the state output end of the breathing module, the third input end is connected to the output end of the first AND gate, the output end is connected to the input end of the gating unit, the clock end of the gating unit is connected to the source clock, and the output end is connected to the sampling module.
5. The breathing light control circuit according to claim 4, wherein, The input end of the flip-flop is connected to the first output end of the frequency division module, the clock end is connected to the source clock, and the output end is connected to the first input end of the first AND gate.
6. The breathing light control circuit according to claim 4, wherein, The upper limit of the count value of the counter is determined according to the number of breathing channels currently used by the breathing module. The processing module is also included.
7. The breathing light control circuit according to claim 6, wherein, The processing module is connected to the breathing module and the judgment unit, respectively, and is used for determining the breathing channel currently used by the breathing module. The processing module is also used for updating the breathing channel to be accessed in the control process.
8. The breathing light control circuit of claim 1, wherein, The frequency of the source clock is 1MHz, the frequency of the first clock is 2kHz, and the frequency of the second clock is 256Hz.
9. A control method of a breathing light, characterized by, The control method is applied to the control circuit of the breathing lamp of any one of claims 1 to 8, and the control method comprises: frequency division of the source clock to obtain the first clock and the second clock; outputting the breathing control signal corresponding to each group of light emitting devices according to the second clock; selecting a breathing channel according to the first clock to generate a sampling clock corresponding to the selected breathing channel; time division calibration of the breathing control signal corresponding to each breathing channel according to the breathing channel selection signal to obtain a calibration signal; sampling the corresponding calibration signal by using the sampling clock, and outputting the sampling signal to the corresponding group of light emitting devices to drive the corresponding light emitting devices to perform breathing response.
10. The control method of a breathing light according to claim 9, wherein The control method further comprises: updating the breathing channel to be accessed during the control process.
11. A respiratory response module, comprising: The control circuit of the breathing lamp of any one of claims 1 to 8.
12. The breath-responsive module of claim 11, wherein, Further comprising a plurality of groups of light emitting devices, and each group of light emitting devices corresponds to a breathing channel.
13. The breath-responsive module of claim 12, wherein, Each group of light emitting devices comprises at least one LED lamp.
14. An electronic device, comprising: The breathing response module of any one of claims 11 to 13.
Citation Information
Patent Citations
Light control circuit, device and system, and chip
CN111405725A
Light emitting display and drive method thereof
CN1855202A