This non-provisional application claims priority under 35 U.S.C. § 119(a) on Patent Application No(s). 096104251 filed in Taiwan, R.O.C. on Feb. 6, 2007, the entire contents of which are hereby incorporated by reference.
The present invention relates to an electric circuit, and particularly to a configuration setting circuit and the configuration setting method thereof.
In general, most of integrated circuits (IC) can provide different operation modes to match the user's requirement according to the configuration setting. And the operation mode of an IC is usually configured at the time of IC being turned on or being reset, so as to ensure the IC can be operated at the correct mode. Normally, the configuration setting method of the IC is determined by providing a supply voltage or ground voltage to a specific pin of the IC. Thus, if the operation mode requirements of the IC are increased, the pin counts of the IC will also need to be increased. However, once the more pin counts the IC has, the relative cost of the IC will correspondingly increased. Therefore, how to reduce the pin counts required by the configuration setting of an IC is still a design target for every engineer. The related techniques and research can refer to U.S. Pat. No. 6,831,479 and R.O.C. Patent publication No. 200633381.
One of the objects of the present invention is to provide a configuration setting circuit and the method thereof, so as to solve the conventional limitations and disadvantages.
One of the objects of the present invention is to provide a configuration setting circuit and the method thereof, so as to reduce the pin counts required in configuration.
According to one embodiment of the present invention, a configuration setting circuit for setting the configuration of an integrated circuit is disclosed. The configuration setting circuit comprising: a clock generator, for generating a plurality of clock signals, wherein the frequencies of the plurality of clock signals are different; a plurality of output terminals, coupled to the clock generator, for respectively outputting the plurality of clock signals; a first input terminal, for receiving a first input signal, wherein the first input signal is one of the plurality of clock signals; and a first frequency detector, coupled to the first input terminal, for detecting the frequency of the first input signal to generate a first configuration data; wherein the first configuration data is an at least two-bit configuration data.
The following will provide the embodiments to describe the contents of the present invention in details, and employ the figures as auxiliary description. The symbols referred to in the description are the referral figure numbers.
Please first refer to
Clock generator 110 is used to generate multiple clock signals CK1˜CKN with different frequencies. The clock generator 110 is coupled to a plurality of output terminals, N11˜N1N, and the output terminals N11˜N1N respectively outputs the clock signals CK1˜CKN.
Frequency detectors 131˜13M are also respectively coupled to input terminals N21˜N2M. The input terminals N21˜N2M respectively receive input signals Sc1˜ScM; and the frequency detectors 131˜13M respectively detect frequencies of input signals Sc1˜ScM, and output the configuration data Dc1˜DcM. In other words, the first detector 131 detects the frequency of first input signal Sc1 received at the first input terminal N21, and generates the first configuration data Dc1 accordingly; the second detector 132 detects the frequency of second input signal Sc2 received at the second input terminal N22, and generates the second configuration data DC2 accordingly; similarly, the Mth detector 13M detects the frequency of Mth input signal SCM received at the Mth input terminal N2M, and generates the Mth configuration data DcM accordingly.
Frequency detectors 131˜13M outputs the configuration data Dc1˜DcM by detecting the frequencies of the input signals Sc1˜ScM. That is, the configuration data DcM outputted by the detector 13M is corresponding to the frequency of the received input signal ScM.
According to one embodiment of the present invention, input signal ScM could be one of the clock signal CKN, a logic high signal Vdd or a logic low signal GN. In another embodiment of the present invention, input signal ScM could be one of the four clock signals with different frequencies, such as N=1˜4.
Moreover, in one embodiment, input signal ScM is one of four different signals, and each of the generated configuration data DcM may be the 2-bit configuration data; if there are two frequency detectors configured, such as a first frequency detector 131 and a second frequency detector 132, the first frequency detector 131 and the second frequency detector 132 respectively outputs the first and the second configuration data Dc1, Dc2 in two bits according to the first input signal Sc1 and the second input signal Sc2, so the total configuration data outputted by the configuration setting circuit is a 4-bit data. Of course, if the input signal ScM is one of eight different signals, frequency detector 13M can be designed as a 3-bit frequency detector, that is, the configuration data DcM generated by frequency detector 13M is a 3-bit configuration data. Furthermore, if there are two detectors being configured, the total configuration data is a 6-bit data. Practically, input signal ScM can be designed with 2K different signals and configuration setting circuit can be designed with M numbers of frequency detectors to get K×M bits configuration data. In other words, the integrated circuit can be operated in K×M kinds mode.
In this embodiment, because the clock signals CK1˜CKN have different frequencies, the frequency detectors 131˜13M can detect the frequencies of received input signals Sc1˜ScM, and generate the configuration data Dc1˜DcM accordingly.
According to one embodiment of the present invention, detector 13M may include a counter 142 and a determiner 144 as shown in
Please refer to
According to one embodiment of the present invention, the clock generator 110 may include a clock generation unit 112 and a frequency divider 114 as shown in
Furthermore, under the configuration mode and the working mode, the configuration setting circuit of the present invention can share the terminals N11˜N1N and/or N21˜N2M for signal transmission, as shown in
Please refer to
Please refer to
Please refer to
According to one embodiment of the present invention, the clock generator 110 and the detector 131˜13M are configured within an integrated circuit (IC) 102. The terminals N11˜N1N, N21˜N2M may be the pins or bonding pads of the IC 102, as shown in
From the above description, it is to be known that the IC can be set in different mode by detecting the frequency of an input signal and can be set over two operation mode only by one configure pin due to the frequency detector can output more than or equal to two bit configuration data. Otherwise, the clock signal for setting the configuration could be generated from the inner of the IC or from the outer of the IC. Furthermore, the configure pin used to configure the IC can be view as a data pin after completing the configuration setting due to the IC adds the skill of pin share. That is, the designer can select one pin of the IC to perform configuration setting when the IC is operating in configuration setting mode and perform data transferring when the IC is operating in working mode (or normal mode) by adding a selection circuit at the selected pin so as to control the pin function.
The technical contents of the present invention have been disclosed with preferred embodiments mentioned as above. However, the disclosed embodiments are not used to limit the present invention. Those proficient in this field may make various changes and modification without departing from the spirit and scope of the present invention, and the changes and modification made thereto are all covered in the scope of the present invention. The protection scope for the present invention should be defined by the attached claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 096104251 | Feb 2007 | TW | national |