1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device with an overclocking mode and a method of overclocking mode.
2. Description of Related Art
In a prior art, in order to improve a whole capability of a processor, the processor usually works in an overclocking mode. However, the processor usually automatically generates an instruction to depress a working frequency of the processor to switch the processor from the overclocking mode to a non-overclocking mode when the processor works in the overclocking mode, which results in a lower capability of the processor.
Therefore, what is needed is an electronic device to overcome the described limitations.
The digital controller 10 includes a monitor module 11, a determining module 12, a first writing module 13, an implementing module 14, and a second writing module 15.
The monitor module 11 monitors the value of the working current of the processor 20. The determining module 12 determines whether the value of the working current is within the first range. The first writing module 13 writes the value of the working current in the first register 101 when the value of the working current is within the first range. The implementing module 14 decreases a value from the value written in the first register 101 to acquire a new value of the working current. The second writing module 15 writes the new value of the working current in the second register 102. The processor 20 reads the new value of the working current from the second register 102, detects whether the new value of the working current is within in the second range, and keeps itself in the overclocking mode when the new value of the working current is within in the second range.
For example, when the processor 20 is in the non-overclocking mode, the second range of the value of the working current of the processor 20 is from 1 A to 10 A; when the processor 20 is in the overclocking mode, the first range of the value of the working current of the processor 20 is from 11 A to 15 A. Suppose, the value of the working current of the processor 20 monitored by the monitor module 11 is 13 A, and a working frequency of processor 20 is 2.3 GHZ corresponding to the working current 13A. Because the value of the working current 13A is within the first range, the value of the working current 13A is written by the first writing module 13 in the first register 101. The implementing module 14 decreases a value 4A from the value of the working current 13A to acquire a new value of the working current 9A which is written by the second writing module 15 in the second register 102. Then, the processor 20 reads the new value of the working current 9A, and detects whether the new value of the working current 9A is within the second range. If it is apparent that the new value of the working current 9A is within the second range, the processor 20 will keep itself in the overclocking mode. That is, although the processor 20 is already in the overclocking mode based on the working current 13A, the processor 20 does not depress the working frequency of the processor 20. Therefore, the processor 20 may stay in the overclocking mode for a long time, thereby improving a whole capability of the processor 20. However, in prior art, the conventional processor will directly read the value of the working current 13A, and detect whether the value of the working current 13A is within the second range. It is apparent that the value of the working current 13A is out of the second range, so, the conventional processor depresses the working frequency of itself to switch the conventional processor from the overclocking mode to the non-overclocking mode. That is, the conventional processor cannot work in the overclocking mode for the long time.
In one embodiment, the implementing module 14 further decreases another value from the new value of the working current to acquire a new value of the working current when the new value of the working current in the second register is out of the second range. The second writing module 15 further writes the new value of the working current in the second register 102 to replace a previous value of the working current. The processor 20 reads the new value of the working current from the second register 102, detects whether the new value of the working current is within in the second range, and keeps itself in the overclocking mode when the new value of the working current is within in the second range.
In one embodiment, the first writing module 13 further writes the value of the working current in the second register 102 when the value of the working current monitored by the monitor module 11 is within the second range. That is, when the value of the working current monitored by the monitor module 11 is within the second range, it means that the processor 20 is in the non-overclocking mode; there is no need to decrease a value from the value of the working current.
In one embodiment, when the value of the working current monitored by the monitor module 11 is out of the second range and the first range, the processor 20 generates an instruction to reduce the value of the working current until the monitored value of the working current is within the first range, thereby keeping the processor 20 in the overclocking mode. For example, the second range is from 0 A to 10 A, the first range is from 11 A to 15 A, the value of the working current of the processor 20 is 17 A, and the working frequency of the processor 20 is 2.7 GHZ. Because the value of the working current 17A is out of the first range, and the working frequency of the processor 20 is overloaded, which results in the processor 20 breaking down. So, it is needed for the processor 20 to generate the instruction to reduce the value of the working current until it is within the first range, thereby keeping the processor 20 in the overclocking mode, and preventing the processor 20 from breaking down.
In step S601, the monitor module 11 monitors the value of the working current of the processor 20.
In step S602, the determining module 12 determines whether the value of the working current is within the first range, if yes, the procedure goes to step S603, if no, the procedure goes to step S608 when the value of the working current is out of the first range and within the second range, or the procedure goes to step S609 when the value of the working current is out of the first range and the second range.
In step S603, the first writing module 13 writes the value of the working current in the first register 101.
In step S604, the implementing module 14 decreases a value from the value of the working current in the first register 101 to acquire a new value of the working current.
In step S605, the second writing module 15 writes the new value of the working current in the second register 102.
In step S606, the processor 20 detects whether the new value of the working current in the second register 102 is within the second range, if yes, the procedure goes to step S607, if no, the procedure goes to step S604.
In step S607, the processor 20 keeps itself in the overclocking mode.
In step S608, the first writing module 13 writes the value of the working current in the second register 102.
In step S609, the processor 20 generates an instruction to reduce the value of the working current until the value of the working current is within the first range.
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210034787.4 | Feb 2012 | CN | national |