Set value automatic adjustment device and method

By designing the automatic setting value adjustment device, the comparison circuit and control logic circuit adjust the setting value according to the trigger event, the problem of the central processor intervening in the existing technology is solved, and the automatic adjustment effect of efficient and power-saving is achieved.

CN115145183BActive Publication Date: 2025-06-13NUVOTON
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111079870.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-31
Filing Date
2021-09-15
Publication Date
2025-06-13
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

Existing electronic devices require the central processor to intervene when changing the set value, resulting in inefficiency and waste of resources.

Method used

A set value automatic adjustment device is designed, including a first temporary storage circuit, a second temporary storage circuit, a control logic circuit and a comparison circuit. According to the trigger event, the device determines whether the set value is adjusted according to the incremental value or decreasing value to realize automatic adjustment.

Benefits of technology

The set value can be automatically adjusted without the intervention of the central processor, which improves efficiency, reduces resource waste, and achieves power saving effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145183B_ABST
    Figure CN115145183B_ABST
Patent Text Reader

Abstract

The present invention provides a set value automatic adjustment device and method. The set value automatic adjustment device includes a first temporary storage circuit, a second temporary storage circuit, a control logic circuit, and a comparison circuit. The first temporary storage circuit stores an increment value and a decrement value. The second temporary storage circuit stores a first set value. The control logic circuit is coupled to the first temporary storage circuit and the second temporary storage circuit, and determines whether to adjust the first set value according to the increment value or the decrement value according to a trigger event. The comparison circuit is coupled to the second temporary storage circuit and the control logic circuit. The comparison circuit receives an input value, and compares whether the input value is greater than or equal to the first set value to generate a trigger event for a central processing unit or a peripheral device. The present invention can automatically adjust its set value by itself without relying on a central processing unit, and can achieve the effect of power saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention are mainly related to a set value automatic adjustment technology, and particularly to a set value automatic adjustment device and method for determining whether to adjust a set value according to an increment value or a decrement value based on a trigger event. Background Art

[0002] When a general electronic device needs to change its set value, the central processing unit needs to intervene to change the set value stored in the register of the electronic device. For example, when using an analog-to-digital converter (ADC) controller to monitor the voltage on a circuit, two set values are set as the upper limit value and the lower limit value for ADC value comparison to form a monitor window. However, the range of the monitor window is fixed. If the range of the monitor window needs to be changed, the central processing unit needs to intervene to change the upper limit value and the lower limit value stored in the register of the ADC controller. Summary of the Invention

[0003] In view of the problems of the above prior art, embodiments of the present invention provide a set value automatic adjustment device and method.

[0004] According to an embodiment of the present invention, a set value automatic adjustment device is provided. The set value automatic adjustment device includes a first register circuit, a second register circuit, a control logic circuit, and a comparison circuit. The first register circuit stores an increment value and a decrement value. The second register circuit stores a first set value. The control logic circuit is coupled to the first register circuit and the second register circuit, and determines whether to adjust the first set value according to the increment value or the decrement value based on a trigger event. The comparison circuit is coupled to the second register circuit and the control logic circuit. The comparison circuit receives an input value, and compares whether the input value is greater than or equal to the first set value to generate the trigger event for a central processing unit or a peripheral device.

[0005] According to some embodiments, the second register circuit further stores a second set value, where the first set value is an upper limit value, and the second set value is a lower limit value.

[0006] According to some embodiments, the set value automatic adjustment device further includes a comparison circuit. The comparison circuit is coupled to the second temporary storage circuit and the control logic circuit. The comparison circuit compares whether the input value is greater than or equal to the upper limit value, and compares whether the input value is less than or equal to the lower limit value, to generate the trigger event. When the input value is greater than or equal to the upper limit value, the control logic circuit, according to the trigger event, adds the increment value to the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value. When the input value is less than or equal to the lower limit value, the control logic circuit, according to the trigger event, subtracts the decrement value from the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value.

[0007] According to some embodiments, when the input value is greater than or equal to the upper limit value, or the input value is less than or equal to the lower limit value, the comparison circuit transmits the trigger event to the central processing unit or the peripheral device.

[0008] According to some embodiments, the central processing unit adjusts the set value of the peripheral device according to the trigger event.

[0009] According to some embodiments, the peripheral device directly adjusts its set value according to the trigger event.

[0010] According to some embodiments, after the central processing unit provides the initial values of the increment value, the decrement value, the first set value, and the second set value, it enters a sleep mode.

[0011] According to some embodiments, the increment value and the decrement value may be the same or different.

[0012] According to an embodiment of the present invention, a method for automatically adjusting a set value is provided. The method for automatically adjusting a set value is applicable to a set value automatic adjustment device, where the set value automatic adjustment device is used to receive an input value and transmit a trigger event to trigger a central processing unit or a peripheral device. The steps of the method for automatically adjusting a set value include: comparing, by a comparison circuit of the set value automatic adjustment device, whether the input value is greater than or equal to a first set value to generate the trigger event; and judging, by a control logic circuit of the set value automatic adjustment device, according to the trigger event, whether to adjust the first set value according to an increment value or a decrement value, where the increment value and the decrement value are stored in a first temporary storage circuit of the set value automatic adjustment device, and the first set value is stored in a second temporary storage circuit of the set value automatic adjustment device.

[0013] Regarding other additional features and advantages of the present invention, those skilled in the art can make some modifications and refinements based on the set value automatic adjustment device and method disclosed in the implementation method of the present application without departing from the spirit and scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 FIG. is a block diagram showing a set value automatic adjustment device 100 according to an embodiment of the present invention;

[0015] Figure 2 FIG. is a block diagram showing a set value automatic adjustment device 200 according to an embodiment of the present invention;

[0016] Figure 3 FIG. is a schematic diagram showing adjusting the set value of a peripheral device according to an embodiment of the present invention;

[0017] Figure 4 FIG. is a schematic diagram showing adjusting the set value of a peripheral device according to another embodiment of the present invention;

[0018] Figure 5 FIG. is a flowchart of a set value automatic adjustment method according to an embodiment of the present invention;

[0019] Figure 6 FIG. is a flowchart of a set value automatic adjustment method according to another embodiment of the present invention.

[0020] REFERENCE NUMERALS:

[0021] 100, 200: Set value automatic adjustment device;

[0022] 110, 210: First temporary storage circuit;

[0023] 120, 220: Second temporary storage circuit;

[0024] 130, 230: Control logic circuit;

[0025] 240: Comparison circuit;

[0026] 300: Central processing unit;

[0027] 400: Peripheral device;

[0028] 410: Third temporary storage circuit;

[0029] 420: Fourth temporary storage circuit;

[0030] 430: Second control logic circuit;

[0031] D in : Input value;

[0032] E trigger : Trigger event;

[0033] S510, S520, S610, S620, S630, S640, S650, S660: Steps. Detailed implementation

[0034] What is described in this chapter is the preferred way to implement the present invention, aiming to illustrate the spirit of the present invention rather than to limit the protection scope of the present invention. The protection scope of the present invention shall be subject to the scope defined by the appended claims.

[0035] Figure 1 is a block diagram showing a set value automatic adjustment device 100 according to an embodiment of the present invention. As Figure 1 shown, the set value automatic adjustment device 100 may include at least one first register circuit 110, a second register circuit 120, and a control logic circuit 130. In addition, it should be noted that in Figure 1 the block diagram shown, it is only for the convenience of explaining the embodiments of the present invention, but the present invention is not limited to Figure 1 this.

[0036] According to an embodiment of the present invention, the set value automatic adjustment device 100 may be an analog-to-digital converter (ADC) controller or a pulse-width modulation (PWM) controller, but the present invention is not limited thereto.

[0037] According to an embodiment of the present invention, the first register circuit 110 may include a register (not shown in the figure) for storing an increment value and a decrement value. According to another embodiment of the present invention, the first register circuit 110 may include a first register (not shown in the figure) and a second register (not shown in the figure), wherein the first register is used to store an increment value and the second register is used to store a decrement value. According to an embodiment of the present invention, the increment value and the decrement value may be the same or different.

[0038] According to an embodiment of the present invention, the second register circuit 120 may include a register (not shown in the figure) for storing a first set value. According to an embodiment of the present invention, the second register circuit 120 may include a first register (not shown in the figure) and a second register (not shown in the figure), wherein the first register is used to store a first set value and the second register is used to store a second set value.

[0039] According to an embodiment of the present invention, the initial values of the increment value and the decrement value stored in the first temporary storage circuit 110 and the initial values of the first setting value and the second setting value stored in the second temporary storage circuit 120 are provided by a central processing unit (CPU) 300. According to an embodiment of the present invention, after the central processing unit 300 sets the initial values of the increment value and the decrement value stored in the first temporary storage circuit 110 and the initial values of the first setting value and the second setting value stored in the second temporary storage circuit 120, the central processing unit 300 can enter a sleep mode.

[0040] According to an embodiment of the present invention, the control logic circuit 130 can determine whether to adjust the first setting value (and the second setting value) stored in the second temporary storage circuit 120 according to the received trigger event E trigger , based on the increment value or the decrement value stored in the first temporary storage circuit 110. The detailed content will be described below by taking Figure 2 as an example.

[0041] Figure 2 FIG. is a block diagram showing a setting value automatic adjustment device 200 according to an embodiment of the present invention. The setting value automatic adjustment device 200 is an ADC controller. As Figure 2 shown, the setting value automatic adjustment device 200 may include at least one first temporary storage circuit 210, a second temporary storage circuit 220, a control logic circuit 230, and a comparison circuit 240. It should be noted that the block diagram shown in Figure 2 is only for conveniently explaining the embodiments of the present invention, but the present invention is not limited to Figure 2 . In addition, Figure 1 the first temporary storage circuit 110, the second temporary storage circuit 120, and the control logic circuit 130 shown in Figure 2 can be applied to the first temporary storage circuit 210, the second temporary storage circuit 220, and the control logic circuit 230 of Figure 1 . In addition, according to an embodiment of the present invention, Figure 2 the control logic circuit 130 shown in

[0042] can also be included in the control logic circuit 230 and the comparison circuit 240 of

[0043] In this embodiment, the first temporary storage circuit 210 can store an increment value and a decrement value. The second temporary storage circuit 220 can store a first setting value and a second setting value, where the first setting value can be an upper limit value, and the second setting value can be a lower limit value. The upper limit value and the lower limit value can be used to define the range of a monitor window of the setting value automatic adjustment device 200 (ADC controller).

[0043] In this embodiment, when the comparison circuit 240 receives an input value D converted by an analog-to-digital converter (ADC) (not shown in the figure)in (e.g., the digital value after converting the input voltage value), the comparison circuit 240 will compare the received input value D in with the upper limit value and the lower limit value to compare the input value D in to see if it is greater than or equal to the upper limit value, and to compare the input value D in to see if it is less than or equal to the lower limit value. When the input value D in is greater than or equal to the upper limit value, or the input value D in is less than or equal to the lower limit value, the comparison circuit 240 will generate a trigger event E trigger , and transmit the trigger event E trigger to the control logic circuit 230. According to an embodiment of the present invention, when the input value D in is greater than or equal to the upper limit value, the trigger event E trigger will be a first numerical value, and when the input value D in is less than or equal to the lower limit value, the trigger event E trigger will be a second numerical value.

[0044] After receiving the trigger event E trigger , the control logic circuit 230 can, according to the trigger event E trigger , know that the input value D in is greater than or equal to the upper limit value, or the input value D in is less than or equal to the lower limit value. When the input value D in is greater than or equal to the upper limit value, the control logic circuit 230 will add an increment value to the upper limit value and the lower limit value, and send the adjusted upper limit value and lower limit value back to the second register circuit 220 to update the upper limit value and the lower limit value stored in the second register circuit 220. When the input value D in is less than or equal to the lower limit value, the control logic circuit 230 will subtract a decrement value from the upper limit value and the lower limit value, and send the adjusted upper limit value and lower limit value to the second register circuit 220 to update the upper limit value and the lower limit value stored in the second register circuit 220. Therefore, in this embodiment, the set value automatic adjustment device 200 (ADC controller) can automatically adjust the range of the monitoring window (i.e., adjust the upper limit value and the lower limit value) according to the received trigger event E trigger . That is to say, in this embodiment, without the intervention of the central processing unit (i.e., the central processing unit does not need to be woken up), the set value automatic adjustment device 200 (ADC controller) can automatically adjust the range of the monitoring window according to the received trigger event E trigger , thus achieving the effect of power saving.

[0045] After the upper limit value and the lower limit value stored in the second register circuit 220 are updated, the comparison circuit 240 will judge the newly received input value D according to the updated upper limit value and lower limit valuein 。

[0046] In this embodiment, the comparison circuit 240 may also transmit the trigger event E trigger to the central processing unit or a peripheral device (for example: PWM controller, Digital-to-analog converter (DAC) controller, Peripheral Direct Memory Access controller (PDMA), Timer, General-Purpose Input / Output (GPIO), or Analog Comparator (ACMP) controller, but the present invention is not limited thereto).

[0047] According to an embodiment of the present invention, the central processing unit may adjust the setting value of the peripheral device according to the trigger event E trigger , as will be described below with Figure 3 as an example.

[0048] According to another embodiment of the present invention, the peripheral device may directly receive the trigger event E from the setting value automatic adjustment device 200 trigger , and adjust its setting value according to the trigger event E trigger , as will be described below with Figure 4 as an example.

[0049] Figure 3 is a schematic diagram showing the adjustment of the setting value of a peripheral device according to an embodiment of the present invention. As Figure 3 shown, when the comparison circuit 240 transmits a trigger event E trigger to the central processing unit 300, the central processing unit 300 may adjust a duty setting value of the peripheral device 400 (for example: a PWM controller, but the present invention is not limited thereto) according to the received trigger event E trigger .

[0050] Figure 4 is a schematic diagram showing the adjustment of the setting value of a peripheral device according to another embodiment of the present invention. As Figure 4 shown, the comparison circuit 240 may directly transmit a trigger event E trigger to the peripheral device 400 (for example: a PWM controller, but the present invention is not limited thereto). After the peripheral device 400 receives the trigger event E trigger , it may directly adjust its duty setting value according to the received trigger event E trigger . Specifically, as Figure 4As shown, the peripheral device 400 may include a third register circuit 410, a fourth register circuit 420, and a second control logic circuit 430. In this embodiment, Figure 1 the first register circuit 110, the second register circuit 120, and the control logic circuit 130 shown can be applied to Figure 4 the third register circuit 410, the fourth register circuit 420, and the second control logic circuit 430 of

[0051] The third register circuit 410 can be used to store an increment value and a decrement value. The fourth register circuit 420 can be used to store a duty setting value of the peripheral device 400. The second control logic circuit 430 can determine whether to add the increment value to the duty setting value or subtract the decrement value from the duty setting value according to the received trigger event E trigger , compared with Figure 3 the architecture of Figure 4 In this embodiment, after the central processing unit 300 sets the initial values of the increment value and the decrement value stored in the third register circuit 410 and the initial value of the duty setting value stored in the fourth register circuit 420, the central processing unit 300 can enter a sleep mode. That is to say, the central processing unit 300 does not need to be awakened to adjust the duty setting value of the peripheral device 400. Therefore, a more power-saving effect can be achieved in this embodiment. The following will illustrate Figure 4 the operation with an application example.

[0052] The following application example will be described with reference to Figure 4 The following example assumes that the setting value automatic adjustment device 200 (i.e., the ADC controller) is implemented to adjust the brightness of a light bulb by a knob. In this example, when the knob is rotated clockwise, the output voltage will increase. Conversely, when the knob is rotated counterclockwise, the output voltage will decrease. When the value output by the ADC (i.e., the input value D in ) is larger, the duty setting value output by the peripheral device 400 (e.g., the PWM controller) is larger, making the light bulb brighter. Conversely, when the value output by the ADC is smaller, the duty setting value output by the peripheral device 400 is smaller, making the light bulb dimmer. First, the central processing unit 300 will first set the initial values of the registers of the relevant setting value automatic adjustment device 200 and the peripheral device 400, and then enter the sleep mode. Assume that the initial values of the increment value and the decrement value stored in the first register circuit 210 are 50, the initial values of the upper limit value and the lower limit value stored in the second register circuit 220 are 600 and 500, the initial values of the increment value and the decrement value stored in the third register circuit 410 are 100, and the initial value of the duty setting value stored in the fourth register circuit 420 is 1000.

[0053] When the value output by the ADC is 550, the trigger event E will not be triggered. trigger When the knob is slowly rotated clockwise, the value output by the ADC also gradually increases. When the value output by the ADC is 610, the condition of being greater than the upper limit value is satisfied. At this time, the control logic circuit 230 will perform an addition operation on the upper limit value and the increment value (i.e., 600 + 50 = 650), and update the upper limit value to 650. In addition, the control logic circuit 230 will perform an addition operation on the lower limit value and the increment value (i.e., 500 + 50 = 550), and update the lower limit value to 550. At this time, the comparison circuit 240 will also send the trigger event E trigger to the peripheral device 400. The second control logic circuit 430 will, according to the received trigger event E trigger , perform an addition operation on the duty setting value and the increment value (i.e., 1000 + 100 = 1100), and update the duty setting value to 1100.

[0054] When the newly received value output by the ADC is 540, the condition of being less than the updated lower limit value is satisfied. At this time, the control logic circuit 230 will perform a subtraction operation on the lower limit value and the decrement value (i.e., 550 - 50 = 500), and update the lower limit value to 500. In addition, the control logic circuit 230 will perform a subtraction operation on the upper limit value and the decrement value (i.e., 650 - 50 = 600), and update the upper limit value to 600. At this time, the comparison circuit 240 will also send the trigger event E trigger to the peripheral device 400. The second control logic circuit 430 will, according to the received trigger event E trigger , perform a subtraction operation on the duty setting value and the decrement value (i.e., 1100 - 100 = 1000), and update the duty setting value to 1000.

[0055] It should be specifically noted that the above examples are only used to illustrate the embodiments of the present invention, but the present invention is not limited thereto.

[0056] Figure 5 is a flowchart of a set value automatic adjustment method according to an embodiment of the present invention. The set value automatic adjustment method is applicable to the set value automatic adjustment device 100. In step S510, a comparison circuit of the set value automatic adjustment device 100 compares whether an input value is greater than or equal to a first set value to generate a trigger event. In step S520, a control logic circuit of the set value automatic adjustment device 100 determines whether to adjust a first set value according to an increment value or a decrement value according to the above trigger event, where the increment value and the decrement value are stored in a first temporary storage circuit of the set value automatic adjustment device 100, and the first set value is stored in a second temporary storage circuit of the set value automatic adjustment device 100.

[0057] In this embodiment, the second temporary storage circuit can further store a second set value, where the first set value can be an upper limit value, and the second set value can be a lower limit value. In this embodiment, the increment value and the decrement value can be the same or different.

[0058] In this embodiment, the steps of the set value automatic adjustment method can further include that a comparison circuit of the set value automatic adjustment device 100 compares whether the input value is greater than or equal to the upper limit value and whether the input value is less than or equal to the lower limit value to generate a trigger event. When the input value is greater than or equal to the upper limit value, the control logic circuit, according to the trigger event, adds the increment value to the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value. When the input value is less than or equal to the lower limit value, the control logic circuit, according to the trigger event, subtracts the decrement value from the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value.

[0059] In this embodiment, the steps of the set value automatic adjustment method can further include that when the input value is greater than or equal to the upper limit value, or the input value is less than or equal to the lower limit value, the comparison circuit transmits the trigger event to a central processing unit or a peripheral device. In one embodiment, the central processing unit adjusts the set value of the peripheral device according to the trigger event. In another embodiment, the peripheral device directly adjusts its set value according to the trigger event.

[0060] In this embodiment, a central processing unit can be used to provide the initial values of the increment value, the decrement value, the first set value, and the second set value to the set value automatic adjustment device 100, and then enter a sleep mode.

[0061] Figure 6 It is a flowchart of the set value automatic adjustment method according to another embodiment of the present invention. The set value automatic adjustment method is applicable to the set value automatic adjustment device 200. In step S610, the set value automatic adjustment device 200 obtains the initial values of the increment value, the decrement value, the first set value, and the second set value from a central processing unit. The increment value and the decrement value are stored in a first temporary storage circuit of the set value automatic adjustment device 200, and the first set value and the second set value are stored in a second temporary storage circuit of the set value automatic adjustment device 200. In this embodiment, the first set value can be an upper limit value, and the second set value can be a lower limit value.

[0062] In step S620, a comparison circuit of the set value automatic adjustment device 200 compares whether an input value is greater than or equal to an upper limit value to determine whether to generate a trigger event. When the input value is greater than or equal to the upper limit value, step S630 is performed. In step S630, a control logic circuit of the set value automatic adjustment device 200 adds an increment value to the upper limit value and the lower limit value according to the trigger event, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value.

[0063] When the input value is not greater than or equal to the upper limit value, step S640 is performed. In step S640, the comparison circuit compares whether the input value is less than or equal to the lower limit value to determine whether to generate a trigger event. When the input value is less than or equal to the lower limit value, step S650 is performed. In step S650, the control logic circuit subtracts a decrement value from the upper limit value and the lower limit value according to the trigger event, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value.

[0064] According to another embodiment of the present invention, the order of step S620 and step S640 can be swapped.

[0065] After the upper limit value and the lower limit value of the second temporary storage circuit are updated, step S660 is performed. In step S660, the comparison circuit transmits the trigger event to a central processing unit or a peripheral device.

[0066] According to the set value automatic adjustment method proposed by the present invention, the set value automatic adjustment device can automatically adjust its set value without relying on a central processing unit. Therefore, the power saving effect can be achieved.

[0067] The serial numbers in this specification and the scope of the patent application, such as "first", "second", etc., are only for convenience of description and there is no sequential relationship between them.

[0068] The steps of the methods and algorithms disclosed in the specification of the present invention can be directly applied to hardware, software modules, or a combination of both by executing a processor. A software module (including executable instructions and related data) and other data can be stored in a data memory, such as a random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), register, hard disk, portable hard disk, compact disc read-only memory (CD-ROM), DVD, or any other computer-readable storage media format in the art. A storage medium can be coupled to a machine device, for example, a computer / processor (for the sake of illustration, represented as a processor in this specification), and the above-mentioned processor can read information (such as program code) and write information to the storage medium. A storage medium can integrate a processor. An application-specific integrated circuit (ASIC) includes a processor and a storage medium. A user device includes an application-specific integrated circuit. In other words, the processor and the storage medium are included in the user device in a manner that does not directly connect to the user device. In addition, in some embodiments, any suitable computer program product includes a readable storage medium, where the readable storage medium includes program code related to one or more disclosed embodiments. In some embodiments, the computer program product may include packaging materials.

[0069] The above paragraphs are described at multiple levels. Obviously, the implementation of the present application can be achieved in various ways, and any specific architecture or function disclosed in the embodiments is only a representative situation. According to the implementation of the present application, any person skilled in the art should understand that each level disclosed in the present application can be implemented independently or two or more levels can be combined and implemented.

[0070] Although the present disclosure has been disclosed as above with embodiments, it is not intended to limit the present disclosure. Any person skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the invention shall be subject to the scope defined by the appended claims.

Claims

1. An automatic set value adjustment device, characterized in that, comprising: a first temporary storage circuit for storing an increment value and a decrement value; a second temporary storage circuit for storing a first set value; a control logic circuit coupled to the first temporary storage circuit and the second temporary storage circuit, and judging whether to adjust the first set value according to the increment value or the decrement value according to a trigger event; and a comparison circuit coupled to the second temporary storage circuit and the control logic circuit, wherein the comparison circuit receives an input value and compares whether the input value is greater than or equal to the first set value to generate the trigger event for a central processing unit or a peripheral device, wherein the second temporary storage circuit further stores a second set value, wherein the first set value is an upper limit value and the second set value is a lower limit value, wherein the comparison circuit compares whether the input value is greater than or equal to the upper limit value and whether the input value is less than or equal to the lower limit value to generate the trigger event, wherein when the input value is greater than or equal to the upper limit value, the control logic circuit, according to the trigger event, adds the increment value to the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value; and when the input value is less than or equal to the lower limit value, the control logic circuit, according to the trigger event, subtracts the decrement value from the upper limit value and the lower limit value, and updates the upper limit value and the lower limit value stored in the second temporary storage circuit according to the adjusted upper limit value and lower limit value.

2. The automatic set value adjustment device according to claim 1, characterized in that, when the input value is greater than or equal to the upper limit value, or the input value is less than or equal to the lower limit value, the comparison circuit transmits the trigger event to the central processing unit or the peripheral device, and wherein the central processing unit adjusts the set value of the peripheral device according to the trigger event, or the peripheral device directly adjusts its set value according to the trigger event.

3. An automatic set value adjustment method, characterized in that, applied to an automatic set value adjustment device, the automatic set value adjustment device is used to receive an input value and transmit a trigger event to a central processing unit or a peripheral device, comprising: comparing, by a comparison circuit of the automatic set value adjustment device, whether the input value is greater than or equal to a first set value to generate the trigger event; and judging, by a control logic circuit of the automatic set value adjustment device, whether to adjust the first set value according to an increment value or a decrement value according to the trigger event, wherein the increment value and the decrement value are stored in a first temporary storage circuit of the automatic set value adjustment device, and the first set value is stored in a second temporary storage circuit of the automatic set value adjustment device, further comprising: the second temporary storage circuit further stores a second set value, wherein the first set value is an upper limit value and the second set value is a lower limit value; By means of the above comparison circuit, compare whether the above input value is greater than or equal to the above upper limit value and whether the above input value is less than or equal to the above lower limit value to generate the above trigger event; When the above input value is greater than or equal to the above upper limit value, by means of the above control logic circuit, according to the above trigger event, add the above increment value to the above upper limit value and the above lower limit value, and update the above upper limit value and the above lower limit value stored in the above second temporary storage circuit according to the adjusted above upper limit value and above lower limit value; and When the above input value is less than or equal to the above lower limit value, by means of the above control logic circuit, according to the above trigger event, subtract the above decrement value from the above upper limit value and the above lower limit value, and update the above upper limit value and the above lower limit value stored in the above second temporary storage circuit according to the adjusted above upper limit value and above lower limit value.

4. The automatic set value adjustment method according to claim 3, wherein, further comprising: When the above input value is greater than or equal to the above upper limit value, or the above input value is less than or equal to the above lower limit value, the above comparison circuit transmits the above trigger event to the above central processing unit or the above peripheral device, and the above central processing unit adjusts the set value of the above peripheral device according to the above trigger event, or the above peripheral device directly adjusts its set value according to the above trigger event.

Citation Information

Patent Citations

  • VGA color signal auto-gain regulator for monitors

    TW369771B