This application claims the benefit of the filing date of Taiwan Applications Ser. No. 092134044, filed on Dec. 3, 2003 and Ser. No. 093103368, filed on Feb. 12, 2004, the content of which is incorporated herein by reference.
1. Field of the Invention
The invention relates to a controller, and more particularly to a device and a method for setting an initial value in a controller.
2. Description of the Related Art
Timing problems between clocks in a clock chip is an important issue.
In general speaking, there are two conventional solutions to overcome the above-mentioned drawback. The first solution is to re-design a new PCB to change the layout length of the clock signals in the new PCB. The second solution is to change a new type clock chip to match the layout length of the clock signals in the original PCB. However, the two conventional solutions need to change the PCB or the clock chip. Hence, the two conventional solutions greatly increase the manufacturing costs, waste the production schedule, and thus impede the industry progress.
It is therefore an object of the invention to provide a device and a method for setting an initial value flexibly. The device flexibly adjusts the initial value of a chip using a setting unit disposed outside the chip.
An object of the invention is to provide a clock chip for flexibly setting the phase relationship of clock signals of the clock chip using a setting unit disposed outside the clock chip.
To achieve the above-identified object, the device for setting an initial value of a chip includes a setting unit and a decoder. The setting unit is disposed outside the chip and is used to provide a setting signal. The decoder is disposed inside the chip and is used to receive the setting signal and generate a selecting signal according to the setting signal. The chip obtains the initial value according to the selecting signal.
Thus, the invention can utilize the setting unit to generate a suitable setting signal and utilize the decoder to generate a suitable selecting signal. The invention overcomes the drawback of the incapability of flexibly adjusting the initial value in the prior art.
The initial value setting device 22 includes a setting unit 222 and a decoder 224. The setting unit 222 is disposed outside the controller 24 and is used to provide the setting signal. So, the controller 24 utilizes an input pin to get the setting signal. The setting unit 222 may be implemented by resistors to provide an analog setting signal. The setting unit 222 may be implemented by switches (jumps) to provide a set of digital setting signals. Therefore, the voltage of the setting signal can be adjusted by changing the resistance values of the resistors or the status (ON or OFF) of the switches. The decoder 224 receives the setting signal through the input pin, and then converts the setting signal into a selecting signal. In an embodiment, the decoder 224 includes an analog to digital converter (ADC) (not shown) or/and a look-up table (not shown). In the embodiment, the decoder 224 utilizes the ADC to convert the analog setting signal into a digital selecting signal. In another embodiment, the decoder 224 is a look-up table. The look-up table 224 receives a set of digital setting signals from the setting unit 222 and produces a selecting signal according to the set of digital setting signals. In an embodiment, the decoder 224 utilizes the ADC to convert the analog setting signal into a digital setting signal and the look-up table 224 receives the digital setting signal from the ADC and produces a selecting signal according to the digital setting signal.
Preferably, when the setting unit 222 is omitted, the initial value of controller 24 of the invention and that of the conventional controller 110 in
In an embodiment, the controller 24 further includes the register selector 242 and the register 244. When the system 20 is turned on, the register selector 242 receives the selecting signal generated from the decoder 224, and outputs the control data to the register 244 according to the selecting signal and the controller 24 can read the control data from the register 244 as the initial value. After the system 20 is in a normal operation, the register selector 242 also can select and output other control data to the register 244 according to the control signal from the system 20, such that the engineer can control the function of the controller 24 according to the control signal. Because the system 20 utilizes the register selector 242 to select and output the control data to the register 244 according to selecting signal at the beginning of the normal operation of the control system 20, the initial control data of the system 20 can be set using the initial value setting device 22 of the invention.
In this embodiment, the setting unit 222 is used to provide a setting signal, such as a voltage signal or a current signal or a set of digital signals, so that the decoder 224 can generate the selecting signal according to the setting signal. If the setting unit 222 utilizes resistors to provide the setting signal, the voltage of the selecting signal can be adjusted by changing different resistance values, and therefore the register selector 242 can output different control data to the register 244. Of course, the setting unit 222 may be implemented using other structures as long as different setting signals may be generated using different components. The register selector 242 and the register 244 may be regarded as an initial value output unit 240. The register selector 242 and the register 244 are an embodiment of the initial value output unit 240.
When the power is turned on, the setting unit 222 generates the setting signal. The decoder 224 processes the setting signal by way of, for example, voltage comparison, analog-to-digital conversion, or the like, and generates the selecting signal outputted to the register selector 242. The register selector 242 selects and outputs the control data to the register 244 according to the selecting signal such that the controller 24 reads the data from the register 244 as the initial value. In an embodiment, the controller 24 is a clock chip. When the clock chip 24 is reset, the clock chip 24 can directly output the required phase relationship between the clock signals according to the setting signal of the setting unit 222. The engineer can directly adjust the phases of the clock signals of the clock chip 24 according to the control signal.
For example, when the voltage of the setting signal is V1 and the computer system cannot be booted due to the errors of phase relationship, the voltage of the setting signal may be adjusted to V2 by changing the resistance of the setting unit 222. Thus, the phase relationship of the clock signals outputted from the clock chip 24 may be adjusted, and the computer system may be successfully booted.
In an embodiment, as shown in
As shown in
Dss=Vcs*10+Vfs
For example, 0 is stored in the address [0000000H], 1 is stored in the address [0000001H], 10 is stored in the address [0001000H], 20 is stored in the address [0010000H], . . . , and 77 is stored in the address [0111111H].
While certain exemplary embodiments have been described and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that this invention not be limited to the specific construction and arrangement shown and described, since various other modifications may occur to those ordinarily skilled in the art.
Number | Date | Country | Kind |
---|---|---|---|
092134044 | Dec 2003 | TW | national |
093103368 | Feb 2004 | TW | national |