1. Field of the Invention
The present invention relates to a method capable of preventing erroneous data writing and related computer system, and more particularly, to a method capable of avoiding a voltage ripple occurrence due to power consumption variation in order to prevent erroneous data writing and related computer system.
2. Description of the Prior Art
With the scientific and technological advancement, computer systems are viewed as necessities for ordinary people in their daily lives, and perform traditional functions, such as word processing and program execution, to modern multimedia processing, and computer games, etc. It is therefore an important issue to offer excellent stability and reliability in the computer system. However, when a basic input/output system (BIOS) code or an embedded controller (EC) code is broken or lost, and therefore becomes nonfunctional, the computer will fail to boot. So, the BIOS code or the EC code plays a very important role in the functioning of the computer system during boot-up. If the BIOS code is corrupted or incomplete, the central processor or the EC will not be able to execute a complete code for performing the boot process, and the computer system will fail to perform normal operations.
Please refer to
Please refer to
In detail, please refer to
Please refer to
It is therefore an objective of the invention to provide a method capable of preventing erroneous data writing and related computer system.
The present invention discloses a method capable of preventing erroneous data writing for a computer system, the computer system comprising a storage unit for storing digital data, and a processing unit for accessing the digital data stored in the storage unit, the method comprising the steps of detecting power supplying status of supplied power for the computer system, and the processing unit stopping accessing the digital data stored in the storage unit after detecting supply of the supplied power has been suspended.
The present invention further discloses a computer system, the computer system comprising a storage unit for storing digital data, a processing unit coupled to the storage unit for accessing the digital data, a power supply module for generating a supplied power for the storage unit and the processing unit, and a detection unit coupled to the storage unit, the processing unit, and the power supply module for detecting power supplying status of the power supply module to generate a detection result, wherein when the detection result indicates the supply of the supplied power has been suspended, the processing unit stops accessing the digital data stored in the storage unit accordingly.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
In other words, the voltage ripple may occur while the voltage level of the supplied power provided for the components is slowly decreasing after the supply of the supplied power is suspended. To prevent the above-mentioned undesired voltage ripple occurrence, the invention arranges the processing unit 602 to stop accessing the storage unit 604 after detecting the supply of the supplied power is suspended. In such a situation, the processing unit 602 and the storage unit 604 no longer consume too much operating power for data access operation. As a whole, electrical power consumption of the computer system 60 may not vary up and down, and the ripple phenomenon (i.e. the occurrence of bouncing and vibrating variation of the supplied power) will not take place in the computer system 60, and therefore, erroneous data writing or erasing situations will not occur in the computer system 60.
Furthermore, as stated in the prior art, when voltage level of supplied power decreases to near a specific voltage level (i.e. a minimum voltage level sufficient for providing normal operation of the components of the computer system 60), the components of the computer system 60 may be shut down and restarted repeatedly. In such a situation, the voltage level of the supplied power may vary up and down accordingly, causing the voltage ripple problem. Comparatively, the invention can arrange the processing unit 602 not to access the storage unit 604 to prevent the voltage ripple occurrence when the detection unit 608 detects that the supply of the corresponding supplied power is suspended and the voltage level of the supplied power falls to the minimum voltage level capable of operating the corresponding component. For example, if the processing unit 602 is an embedded controller, the minimum operating voltage to access the storage unit 604 may be 2.7 Volts. For the storage unit 604, the minimum operating voltage may require 3 Volts. Therefore, when the detection result indicates that the supply of the supplied power P1 has been suspended and the voltage level of the supplied power P1 has fallen to 2.7 volts, or the detection result indicates that the supply of the supplied power P2 has been suspended and the voltage level of the supplied power P2 has down to 3 volts, the processing unit 602 is capable of stopping accessing the data stored in the storage unit 604 according to the detection result. In brief, once the supplied power falls to the minimum operation voltage level of the component, the invention can force the corresponding component to break off the related operations requiring higher power consumption, so that the processing unit 602 will not output unstable pulse signals to the storage unit 604.
Operations of the computer system 60 may be summarized in a procedure 70 as shown in
Step 700: Start.
Step 702: Detect power supplying status of the supplied power in the computer system 60.
Step 704: The processing unit 602 stops accessing the digital data stored in the storage unit 604 after detecting the supply of the supplied power has been suspended.
Step 706: End.
According to the procedure 70, in Step 702, the detection unit 608 may detect the power supplying status of the power supply module 606 providing the operating power for the components of the computer system 60 so as to generate a detection result, this means that the detection unit 608 can detect the power supplying status of the supplied power P1, P2, and P3 to generate the detection result accordingly. After that, in Step 704, when the detection result indicates the supply of the supplied power is suspended, i.e. part or all of the supply of the supplied power P1, P2, and P3 has been suspended, the processing unit 602 can stop accessing the data stored in the storage unit 604 accordingly. Moreover, since the processing unit 602 accesses the data stored in the storage unit 604, the processing unit 602 may consume much electrical power during the data reading period. Therefore, when the supply of the supplied power is suspended, the invention prohibits the processing unit 602 from accessing the storage unit 604 so as to avoid great variation of electrical power consumption and the occurrence of unstable voltage ripple effect of the power supply.
Furthermore, in Step 704, when the detection result indicates that the supply of the supplied power has been suspended or when the voltage level of the supplied power P1 has fallen to a specific voltage level, the processing unit 602 is preferably capable of fetching and executing a loop command or a stop command from the storage unit 604 or other storage devices. For example, the loop command can be a “while ( )” loop command, the stop command can be a “JMP$” stop command, and these should not be a limitation of the invention. Moreover, the loop command maybe designed into an infinite loop command, that is, the loop command may be programmed to a command executing a specific program code repeatedly for looping endlessly. So, if the processing unit 602 executes the loop command, the processing unit 602 will recursively execute the loop command and no longer access the data stored in the storage unit 604. In addition, after the processing unit 602 executes the stop command, the processing unit 602 may stop performing related operations accordingly, as well as accessing the storage unit 604. On the whole, the processing unit 602 is able to stop accessing the storage unit 604 after executing the loop command or the stop command so that the processing unit 602 does not consume too much electrical power. Meanwhile, at the most, the processing unit 602 only executes the loop command (or the stop command) being fetched and stored in the register repeatedly. In such a situation, the power consumption of the processing unit 602 will be kept at a fixed value (which is lower than the power consumption value) during data access processes. In other words, the processing unit 602 can achieve the purpose of stopping accessing the storage unit 604 through executing a loop command or a stop command.
In summary, the voltage ripple may occur while the voltage level of the supplied power provided for the components slowly decreases after the supply of the supplied power is suspended in the prior art. To prevent the above-mentioned undesired voltage ripple occurrence, the invention can force the components to stop related access operations requiring large power consumption to prevent the drastic variation of the electrical power consumption for the computer system. The voltage ripple phenomenon will not take place in the computer system, and therefore, erroneous data writing and erasing situations will not occur in the computer system 60.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.
Number | Date | Country | Kind |
---|---|---|---|
099119464 | Jun 2010 | TW | national |