The present application claims priority from Japanese patent application JP 2003-203574 filed on Jul. 30, 2003, the content of which is hereby incorporated by reference into this application.
The present invention relates to a clock-synchronously operated electronic circuit, and particularly to a clock-synchronously operated semiconductor integrated circuit, and relates to a technique effective when applied to an information processing apparatus typified by a microcomputer, for example.
As a semiconductor integrated circuit such as a clock-synchronously operated microcomputer, there is known one wherein a synchronous clock signal is generated by internal oscillations alone without external. attachment of a crystal oscillator (crystal unit, crystal oscillation). A microcomputer, which generates a synchronous clock signal by only internal oscillations without externally providing a crystal oscillator, has been described in the following patent document 1. A circuit, which trims the oscillation frequency of a built-in oscillator that internally oscillates, without external attachment of a crystal oscillator, has been described in the following patent document 2.
Patent Document 1
Japanese Unexamined Patent Publication No. Hei 11(1999)-510938
Patent Document 2
Japanese Unexamined Patent Publication No. Hei 10(1998)-187273
The present inventors firstly have discussed problems that arise where an oscillator is used for generation of a synchronous clock. There is a need to provide a capacitive element and a crystal oscillator where a semiconductor integrated circuit is activated using crystal oscillations. Areas for packaging them and their parts are required. Further, there may be cases where a terminal for the crystal oscillator is susceptible to external noise (EMS: Electro Magnetic Susceptibility) and a problem arises in customer's reliability at the configuration of a system. Further, since charge/discharge occurs in the terminal of the semiconductor integrated circuit to which the crystal oscillator is attached, a problem about radiant noise (EMI: Electro Magnetic Interface) arises. Since a waveform-shaping capacitor is connected to the terminal of the crystal oscillator, current consumption also increases. Further, a microcomputer called “less-pin micon” in which the number of external terminals is extremely reduced, is used in a sensor, network home appliances. In the case of the less-pin micon, a reduction in the number of terminals for a crystal oscillator can greatly contribute to a reduction in the number of external terminals.
Further, the present inventors have discussed where no oscillator is used for generation of a synchronous clock. When no oscillator is used for the generation of the synchronous clock, the oscillation frequency is greatly affected by process variations and thereby brought to a variation of a few tens of percents. Further, the oscillation frequency is also under the influence due to a variation in power supply voltage and a change in temperature although less than affected by the process variations, so that a variation of a few tens of percents occurs in the oscillation frequency. A clock precision of a few percents is required to establish communications in particular. Further, there is a need to make a configuration resistant to process variations, a variation in external voltage of a semiconductor integrated circuit and a change in temperature. Since it is necessary to carry out a test on a system equipped with a microcomputer at a high frequency and a low frequency upon internal oscillations at a fixed frequency, there has been a demand for such a configuration that the frequency can flexibly be changed even after its shipment.
An object of the present invention is to provide a semiconductor integrated circuit capable of performing built-in oscillations with high accuracy.
The above, other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
Summaries of representative ones of the inventions disclosed in the present application will be described in brief as follows:
[1]<Frequency Adjustment With External Clock Signal Frequency as Index>>
A semiconductor integrated circuit according to the present invention comprises a memory circuit (20), an oscillator circuit (23) which generates an internal clock signal (VCLK), based on control information held in the memory circuit, and a logic circuit (2, 40) which generates control information for causing the frequency of the internal clock signal to coincide with the frequency of an external clock signal (RCLK) generated outside, wherein the internal clock signal (CLK) is used for a synchronous operation of an internal circuit. Even when an error (undesired variation) occurs in the oscillation characteristic (oscillation frequency) of the oscillator circuit due to process variations, it is possible to cause an internal clock signal frequency to coincide with an external clock signal frequency corresponding to a target frequency without the need for external attachment of a crystal oscillator and the input of an external clock signal. In short, it is possible to compensate for a frequency error due to the process variations.
The capturing of the control information that causes the internal clock signal frequency to coincide with the external clock signal frequency corresponding to the target frequency is carried out in response to instructions for a predetermined operation mode. If the predetermined operation mode is designated, then the capturing of such control information can be optionally performed. The target frequency may be changed to optionally capture the control information.
As forms where the process of generating the control information by the logic circuit is performed in clock synchronism, may be mentioned, a first form synchronized with a clock signal generated based on control information initially given to the memory circuit, a second form synchronized with an external clock signal, and a third form synchronized with a clock signal generated by another oscillator circuit oscillated in response to instructions for a predetermined operation mode.
In terms of the efficiency of utilization of the control information once obtained by the logic circuit, a non-volatile memory device (6) is provided which stores the control information generated by the logic circuit. The control information stored in the non-volatile memory device is loaded into the memory circuit in response to power-on reset.
<<Generation Forms of Control Information>>
A first form makes use of a clock counter. That is, it includes a sampling circuit (31) which samples information that respond to the respective frequencies of the internal clock signal and the external clock signal. The logic circuit (2) compares the frequency of the internal clock signal with the frequency of the external clock signal using the information sampled by the sampling circuit and thereby generates control information which causes an internal clock signal frequency to coincide with an external clock signal frequency. At this time, the logic circuit is a CPU (Central Processing Unit), for example, and the memory circuit is a register accessible by the CPU.
A second form makes use of a built-in comparator. It has a comparator (24) which performs a difference comparison between the frequency of the internal clock signal and the frequency of the external clock signal. The logic circuit generates control information which allows the internal clock signal frequency to coincide with the external clock signal frequency, using the result of comparison by the comparator. At this time, the logic circuit is a CPU, for example, and the memory circuit is a register accessible by the CPU.
A third form makes use of an updown counter. That is, the memory circuit is a counter (42), and the logic circuit performs a difference comparison between the frequency of the internal clock signal and the frequency of the external clock signal and upcounts or downcounts the counter using the result of comparison.
A fourth form makes use of the external result of comparison between the frequencies. The logic circuit inputs the result of comparison made between the frequency of the internal clock signal and the frequency of the external clock signal from outside via a latch (32) or the like and generates control information which causes the internal clock signal frequency to coincide with-the external clock signal frequency by reference to the input result of comparison.
<<Temperature Dependence Compensation by Use of Constant Current Region>>
A specific form of the present invention, there are provided a D/A converter (21) which analog-converts control data stored in the memory circuit with respect to a conversion reference voltage, and a bias circuit (22) which forms a bias voltage corresponding to an operating power supply voltage determined based on a voltage outputted from the D/A converter. The oscillator circuit is configured as a voltage-controlled oscillator which uses the voltage (Vfdd) determined based on the output voltage of the D/A converter as an operating power supply voltage and whose oscillation frequency is controlled by the bias voltage. At this time, the bias circuit includes a constant current circuit (M7, Rf, M8) which is provided with MOS transistors each of which meets a gate-to-source voltage condition under which a change in drain-to-source current is small with respect to a change in temperature, and which outputs drain voltages of the MOS transistors as control voltages. When the operating power supply voltage is changed based on the output voltage of the D/A converter, the constant current circuit is capable of changing the bias voltage in a range in which its change meets the gate-to-source voltage condition, and suppressing or relaxing a variation due to the change in temperature within the range. In this configuration, a frequency variable range is greatly limited in terms of the range in which the change meets the gate-to-source voltage condition. In short, the present configuration is limited to an application at a substantially constant frequency.
As a specific form, the constant current circuit includes a p channel type first MOS transistor (M7) of which the source receives a power supply voltage and whose gate and drain are short-circuited therebetween, an n channel type second MOS transistor (M8) of which the source receives a circuit's ground voltage and whose gate and drain are short-circuited therebetween, and a resistive element (Rf) having one end connected to the drain of the first MOS transistor and the other end connected to the drain of the second MOS transistor. A drain voltage of the first MOS transistor and a drain voltage of the second MOS transistor are outputted as control voltages respectively.
Considering the output of the D/A converter is low impedance, the output voltage of the D/A converter may preferably be supplied as an operating power supply voltage for the voltage-controlled oscillator and the bias circuit via a voltage follower amplifier (47). By deactivating the voltage follower amplifier upon standby, the operating power supply for the oscillator circuit and the bias circuit can be cut off, thus enabling a contribution to a reduction in power consumption.
When compensation for a variation in power supply is taken into consideration, it is desirable that a reference voltage generator (45) is further provided which generates a reference voltage that has compensated for a voltage variation with respect to variations in power supply voltage and temperature, and the D/A converter inputs the reference voltage as a conversion reference voltage.
<<Temperature Dependence Compensation by Paying Attention to VLT>>
Another form for the temperature dependence compensation further includes a D/A converter which analog-converts control data held in the memory circuit with respect to the conversion reference voltage, and a bias circuit which forms a bias voltage (VGP, VGN), based on a voltage outputted from the D/A converter. The oscillator circuit is configured as a voltage-controlled oscillator which has a CMOS circuit type ring oscillator section (51) and whose oscillation frequency is controlled by the bias voltage for current control with respect to the ring oscillator section. At this time, the bias circuit applies an operating power supply voltage in the direction to suppress a variation in logical threshold voltage of a CMOS circuit to the oscillator circuit to thereby compensate for variations in the oscillation frequency of the ring oscillator section due to a change in temperature.
As a specific form, the voltage-controlled oscillator has CMOS inverter delay stages (50) corresponding to odd-numbered stages, which constitute the ring oscillator section. The bias circuit has a logical threshold voltage simulation circuit section (65) which simulates a logical threshold voltage of each CMOS inverter stage, and varies the operating power supply voltage of the oscillator circuit using the output of the logical threshold voltage simulation circuit. When compensation for a variation in power supply is taken into consideration, it is desirable that a reference voltage generator is further provided which generates a reference voltage that has compensated for a voltage variation with respect to variations in power supply voltage and temperature, and the D/A converter inputs the reference voltage as a conversion reference voltage.
[2]<<Dynamic Automatic Adjustment to Clock Signal Frequency>>
A semiconductor integrated circuit according to another aspect of the present invention comprises a memory circuit, an oscillator circuit which generates an internal clock signal, based on control information held in the memory circuit, and a logic circuit (70) which counts the internal clock signal for each constant interval of a periodically generated pulse and updates the control information in the direction to allow the count value to coincide with an expected value. The internal clock signal is used for a synchronous operation of an internal circuit. The expected value for the count value correlates with a target frequency. Thus, an internal clock signal frequency can be dynamically and automatically adjusted according to the expected value corresponding to the target frequency with the constant interval of the periodically generated pulse as the reference. Since the oscillation frequency of the oscillator circuit is dynamically adjusted for each cycle of the pulse, temperature dependence and power supply dependence may preferably be made nonexistent with respect to the constant interval in principle.
As a specific form of the present invention, there is provided an interval generator (71) which periodically generates a constant interval of a pulse. The interval generator includes a pulse generator (72), a CR time constant circuit (73) which performs either a charge operation or a discharge operation from a predetermined phase point of a pulse generated from the pulse generator, and a detector (74) which detects that the voltage obtained by the CR time constant circuit reaches a stipulated voltage. A time interval from the predetermined phase point to the timing of detection by the detector is defined as the constant interval. Temperature dependence of the CR time constant circuit is substantially negligibly small.
It is desirable that the stipulated voltage is formed based on a reference voltage generated from a reference voltage generator, and the reference voltage is a voltage that has compensated for a voltage variation with respect to variations in power supply voltage and temperature. Power supply dependence also becomes nonexistent with respect to the constant interval. No substantial problem arises even when the power supply dependence and temperature dependence exist in the oscillator circuit.
As another specific form of the present invention, the memory circuit is an updown counter (42), for example. The updown counter performs upcount or downcount in synchronism with a pulse generated from the pulse generator.
As a further specific form of the present invention, a D/A converter which analog-converts control data held in the memory circuit with respect to a conversion reference voltage, and a bias circuit which forms a bias voltage varied according to a voltage outputted from the D/A converter are further provided. The oscillator circuit is a voltage-controlled oscillator whose oscillation frequency is controlled by the bias voltage. If consideration is made to compensation for power supply dependence with respect to the D/A converter, then the D/A converter may input the reference voltage generated by the reference voltage generator as a conversion reference voltage.
As a still further specific form of the present invention, a non-volatile memory device is further provided. The non-volatile memory device holds control information initially loaded into the memory circuit in response to power-on reset and the expected value loaded into the logic circuit. Control information and expected values may be stored in a non-volatile memory in advance upon shipment of a semiconductor integrated circuit. If the non-volatile memory is electrically reprogrammable, then a user is able to optionally select an oscillation frequency by rewriting at least an expected value.
[3]<<Divider>>
A divider may be provided which divides the clock signal outputted from the oscillator circuit. It is desirable that the divider is a variable divider. Upon shipment of the semiconductor integrated circuit, control information is stored in the non-volatile memory such that an internal oscillation frequency coincides with the highest operating frequency. A user may select an optional frequency using a variable divider.
<<Microcomputer>>
Although not restricted in particular, the microcomputer 1 includes a control signal bus CBUS, an internal address bus iAB, an internal data bus iDB, a peripheral address bus PAB and a peripheral data bus PDB. Predetermined circuit modules are respectively connected to them. As the above circuit modules, the microcomputer 1 has a central processing unit (CPU) 2, a random access memory (RAM) 3 used in a work area or the like of the CPU 2, a bus state controller (BSC) 4, an internal oscillator circuit module (OSCMDL) 5, an electrically reprogrammable non-volatile memory (non-volatile memory device: NVMRY) 6 such as a flash memory, an analog-digital conversion module (ADCMDL) 7, a digital-analog conversion module (DACDML) 8, a general-purpose input/output port (IO) 9, an analog input circuit (AIN) 10 connected to the ADC 7, an analog output circuit (AOUT) 11 connected to the DAC 8, a mode controller (MDCTL) 13 and other peripheral circuit modules (PRPHMDL) 12 which include a timer modules, a serial interface circuit, for example, or the like.
The CPU 2 includes an instruction controller which fetches an instruction and decodes the fetched instruction to generate a control signal, and an execution unit or section which performs an arithmetic process or the like, using an operand in accordance with the control signal. The NVMRY 6 holds control data, a control program of the CPU 2, etc. The OSCMDL 5 performs internal oscillations without the need for external attachment of an oscillator to thereby generate a clock signal CLK. The clock signal CLK is used for an operation reference clock signal or the like at the time that each built-in circuit module is clock-synchronously operated. Although one clock signal is typically illustrated as CLK in the present embodiment, several types of clock signals different in frequency are actually generated corresponding to the case where circuit modules different in operating speed are included and the operating speed is varied according to operation modes, etc., and supplied to their corresponding circuit modules. The MDCTL 13 is supplied with mode signals MD0 through MD2 via mode terminals and a reset signal RES via reset terminals. When instructions for reset are made to the microcomputer 1 in accordance with the reset signal RES or the like, the on-chip. circuit module such as the CPU 2 is initialized. When the instructions for performing the reset by the reset signal RES are released, the CPU 2 reads an instruction from a predetermined start address and starts the execution of a program. The start address is determined according to each of the operation modes instructed by the mode signals MD0 through MD2 or the like.
<<Compensation for Variations in Frequency Due to Process Variations>>
A first example of the internal oscillator circuit module 5 is shown in
On power-on resetting, the mode controller MDCTL loads control information from a predetermined area 6cd of the non-volatile memory 6 into the control data register 20. When one of the operation modes instructed by the mode signals MD0 through MD2 is selected as the frequency setting mode, the selector 26 selects the external clock signal RCLK upon reset release and the CPU 2 executes a frequency setting program in synchronism with the clock signal CLK based on the external clock signal RCLK. A control voltage is formed based on the DA-converted output outputted from the DAC 21 in accordance with the control information initially set to the CDREG 20, whereby the oscillation frequency of the VCO 23 is determined. The CPU 2 regularly refers to the monitor register 25 and determines whether the result of comparison by the frequency comparator 24 is brought to the coincidence. When the result of comparison is brought to the non-coincidence, the CPU 2 obtains access to the control data register 20 and updates the control information in the direction so as to cause an internal clock signal frequency to coincide with an external clock signal frequency. When the result of determination is brought to the coincidence, the CPU 2 stores the control information of the control data register 20 in the predetermined area 6cd of the non-volatile memory 6 and terminates the execution of the frequency setting program. When the execution of the frequency setting program is completed, the CPU 2 outputs a clock fetch-in end signal FNCK to the outside via the MREG 25. In response to it, the outside stops the generation of the clock signal RCLK and the like.
When one of the operations modes specified by the mode signals MD0 through MD2 is selected as the normal mode, the selector 26 selects the internal clock signal upon reset release. Since the control information obtained in the frequency setting mode and stored in the non-volatile memory 6 is already initially-loaded into the control data register 20 upon power-on resetting, the VCO 23 is capable of performing an oscillating operation, based on control information obtained in the frequency setting mode upon reset release, and the microcomputer 1 is capable of performing data processing in sync with the clock signal CLK defined based on the internal clock signal VCLK. Thus, since the control information stored in the predetermined area 6cd of the non-volatile memory 6 is loaded into the control data register 20 and re-used, the internal clock signal VCLK having the target frequency identical to that of the external clock signal RCLK can be generated by the internal oscillator circuit module 5 alone. That is, even when an error occurs in the oscillation characteristic of the VCO 23 due to process variations, the VCO 23 can be oscillated at the target frequency without the need for external attachment of a crystal oscillator and the input of an external clock signal. It is possible to compensate for variations (variations in oscillation frequency) in oscillation characteristic due to the process variations.
When one of the operation modes designated by the mode signals MD0 through MD2 is of a first test mode upon reset release, the selector 26 selects an external clock signal. When the operation mode is of a second test mode, the selector 26 selects an internal clock signal.
A flowchart for describing the internal oscillation frequency setting operation referred to above is illustrated in
One example of the comparator 24 is shown in
A second example of an internal oscillator circuit module 5 is shown in
A third example of an internal oscillator circuit module 5 is shown in
In particular,
A flowchart for describing an internal oscillation frequency setting operation based on an external comparison is shown in
A fourth example of an internal oscillator circuit module 5 is shown in
A flowchart illustrating an internal oscillation frequency setting operation by the example of
A fifth example of an internal oscillator circuit module 5 is shown in
<<Compensation for Operating Power Supply Voltage of Oscillator Circuit and Compensation for Temperature>>
A detailed circuit example corresponding to the internal oscillator circuit module 5 shown in
The clamp voltage Cvdd is utilized as a conversion reference voltage of a DAC 21. The DAC 21 has a resistance network of series resistors R and shunt resistors r, for example, and is provided as a so-called R2R-form circuit configuration wherein the clamp voltage Cvdd is applied to one ends of the respective shunt resistors r through CMOS switches SW turned on and off in response to control information. Each of the CMOS switches SW is switch-controlled by its corresponding bit of a CDREG 20. Cl designates a stabilized capacitor. RW designates a read/write control signal with respect to the CDREG 20.
Thus, a voltage Vbias outputted from the DAC 21 in accordance with the control information also becomes a voltage stable toward the variations in temperature and power supply voltage Vcc. Since the output of the D/A converter 21 is low impedance, the voltage Vbias is set as a operating power supply voltage Vfdd for a VCO 23 and a BIAS 22 through a voltage follower amplifier (VFAMP) 47 having such a circuit configuration as shown in
The VCO 23 has a ring oscillator section 51 comprising an odd number of CMOS inverter delay stages 50. The CMOS inverter delay stages 50 are configured so as to have p channel type current-limit MOS transistors M5 on the operating power supply side of a CMOS inverter and have n channel type current-limit MOS transistors M6 on the circuit's ground voltage side. The gates of the current-limit MOS transistors M5 are supplied with a bias voltage VGP and the gates of the current-limit MOS transistors M6 are supplied with a bias voltage VGN so that the conductances of the CMO inverter delay stages 50 are controlled. When the standby signal STBY is high in level, the ring oscillator section 51 stops oscillating. When the standby signal STBY is inverted to a low level, the ring oscillator section 51 starts to oscillate. A transient response time interval of each CMOS inverter delay stage 50 is controlled by the bias voltages VGP and VGN, whereby the oscillation frequency of the VCO 23 can be controlled. C2 designates a stabilized capacitor.
The bias circuit 22 forms the bias voltages VGP and VGN and is configured so as to compensate for variations in the bias voltages due to a change in temperature. That is, the bias circuit 22 configures a constant current circuit comprising a p channel type first MOS transistor M7 of which the source is supplied with the operating power supply voltage Vfdd and the gate and drain are short-circuited therebetween, an n channel type second MOS transistor MB of which the source is supplied with the circuit's ground voltage Vss and the gate and drain are short-circuited therebetween, and a resistive element Rf having one end connected to the drain of the first MOS transistor M7 and the other end connected to the drain of the second MOS transistor M8. The bias circuit 22 outputs a drain voltage of the first MOS transistor M7 as the bias voltage VGP and outputs a drain voltage of the second MOS transistor M8 as the bias voltage VGN. As represented by Vgs-Ids characteristics of each MOS transistor, which are illustrated in
Since the condition for the temperature compensation by the bias circuit 22 is to meet the gate-to-source voltage that satisfies such characteristics as illustrated in
Simulation results related to temperature dependence of the VCO having the configuration of
In the example of
Incidentally, in
A detailed circuit example corresponding to the internal oscillator circuit module 5 of
A counter (CUNT) 42A adoptable in place of the UDCUNT 42 shown in
A modification of
Another example of a bias circuit is shown in
<<Temperature Dependence Compensation by Paying Attention to VLT>>
A circuit example of an internal oscillator circuit module 5 which performs temperature compensation by paying attention to VLT is shown in
A bias circuit 22 includes three op amplifiers 62 through 64. Each of the op amplifiers 62 and 64 has a circuit configuration illustrated in
The bias circuit 22 has a logical threshold voltage simulation circuit 65. The logical threshold voltage simulation circuit 65 has a circuit configuration wherein the input and output of each CMOS inverter are short-circuited, and forms a logical threshold voltage (VLT) relative to its operating power supply voltage at a short-circuit input/output terminal Nio. The logical threshold voltage simulation circuit 65 forms a current path together with a p channel type MOS transistor M26 connected in series between Vcc and Vss. The op amplifier 64 includes an inversion input terminal (N) to which the node Nio of the logical threshold voltage simulation circuit 65 is feedback connected, and a non-inversion input terminal (P) to which the output voltage Cvdd of the clamp circuit 29 is supplied. The op amplifier negative feedback controls the conductance of the MOS transistor M26 in accordance with a voltage equal to the difference between the voltage at the node Nio and the output voltage Cvdd. A voltage determined by Cvdd and VLT is formed at the drain of the MOS transistor M26. For example, a voltage like 2×Cvdd is formed at the drain thereof. This voltage is set as an operating power supply voltage of the VCO 23.
The bias circuit 22 has a dummy circuit 50da for CMOS delay stages 50. Here, the CMOS delay stage 50 includes current-limit MOS transistors M5 and M6 arranged in a central portion, and a p channel type MOS transistor M28 and an n channel type MOS transistor M29 constituting a CMOS inverter, both of which are disposed thereoutside. The dummy circuit 50da comprises MOS transistors M28da, M5da, M6da and M29da. The gate of the MOS transistor M29da is supplied with the drain voltage of the MOS transistor M26, the gate of the MOS transistor M28da is supplied with Vss, and the gate of the MOS transistor M6da is supplied with the one control voltage VGN, whereby the voltage between the common gate and drain terminals of the MOS transistor M5da is set as the other control voltage VGP to enable mirror reflection of a current flowing through the MOS transistor M5da on each CMOS delay stage 50 of the VCO 23.
The current that flows through the MOS transistors M5da and M6da is a mirror current corresponding to a constant current that flows through the MOS transistor M21. Thus, the drain currents of the current-limit MOS transistors M5 and M6 in the respective CMOS delay stages 50 lying within the VCO 23 that receives the control voltages VGN and VGP therein also have constant current characteristics. The gate capacitance of the CMOS inverter comprising the MOS transistors M28 and M29 in the next-stage CMOS delay stage 50 is charge/discharge-driven by the constant current. Its charge/discharge time constant becomes a delay element. The constant current is generated by the D/A-converted voltage Vbias formed with the clamp voltage Cvdd as the reference and the resistance. Since the operating power supply voltage of the VCO 23 also corresponds to the voltage formed with Cvdd as the reference, compensation for process variations and compensation for a variation in power supply can be realized. Further, such a voltage that the logical threshold voltage VLT of the logical threshold voltage simulation circuit 65 becomes equal to Cvdd, is outputted from the MOS transistor M26 by the logical threshold voltage simulation circuit 65. Since this voltage is given as the operating power supply voltage for the VCO 23, the logical threshold voltage of the CMOS inverter comprising the MOS transistors M28 and M29 in each CMOS delay stage 50 can be always controlled constant. Further, it is possible to compensate for variations in the oscillation frequency of the ring oscillator section even with respect to a change in temperature.
When the logical threshold voltage of the CMOS inverter will rise with a rise in temperature, for example, the drain voltage of the MOS transistor M26, i.e., the operating power supply voltage of the VCO 23 is lowered so that a variation in the logical threshold voltage of the CMOS inverter is suppressed. The term of “the logical threshold voltage of the CMOS inverter rises with the rise in temperature” means that the current drive capacity of the p channel type MOS transistor with respect to the n channel type MOS transistor is relatively improved. Lowering the power supply voltage and controlling the logical threshold voltage constant results in the fact that a source-to-gate voltage VGS at the time that the p channel type MOS transistor starts to operate is controlled in the direction to be narrowed, thus suppressing an improvement in current drive capacity.
Although the output delay of the CMOS delay stage 50 is made with the time for charge/discharge of the next-stage gate capacity by the constant current flowing through each of the current-limit MOS transistors M5 and M6 as the main element as mentioned above, the characteristics of the MOS transistors M28 and M29 constituting the CMOS inverter are also intervened immediately after the start of inversion of the outputs of the respective CMOS delay stages 50. When the output of the CMOS delay stage 50 starts to rise from OV, for example, the MOS transistor M28 makes transition from an OFF state to an ON state but the output current characteristic of the MOS transistor M28 exerts an influence on a rise in output voltage during its transition. The MOS transistor M29 at the time that the output is lowered is also similar to the above. Thus, the influence of the MOS transistors M28 and M29 on the delay characteristic of each CMOS delay stage 50 can be held constant by controlling the logical threshold voltage of the CMOS inverter constant as described above. Thus, since the control voltages VGN and VGP and the operating power supply voltage of the VCO 23 are set to the voltages that correlate with the D/A-converted voltage Vbias and the logical threshold voltage VLT, compensation for process variations and compensation for a variation in power supply are realized as described above. Further, since the logical threshold voltage simulation circuit 65 supplies the current in the direction to cancel out a change in current due to a variation in the logical threshold voltage of the CMOS circuit to the ring oscillator section, it may be feasible to compensate for variations in the oscillation frequency of the ring oscillator section due to a change in temperature.
Incidentally, the illustration of the divider is omitted in
Simulation results related to temperature dependence of the VCO employed under the configuration shown in
<<Frequency Setting Process>>
A frequency setting process employed in a process for manufacturing the microcomputer 1 is illustrated in
A manufacturer conducts a wafer process (P1) and a test (P2). Thereafter, control information for determining a default operating frequency in accordance with each customer specs is written into the predetermined region 6cd of the non-volatile memory 6 (P3). Incidentally, the test is done using an external clock signal without using internal oscillations upon the test (P2). Alternatively, the matching-up of the internal oscillation frequency is first done by a tester and thereafter the test may be done while the internal oscillation frequency is being changed. When the frequency to be utilized by a user is changed with respect to a default setting frequency due to the test or the like after shipment of the microcomputer, the control information in the predetermined area 6cd is rewritten using the obtained new control information (P4). Thereafter, the system can be operated at the set internal oscillation frequency in the normal mode (user mode).
Another example of a frequency setting process employed in a process for manufacturing a microcomputer 1 is shown in
A manufacturer executes a wafer process (P1) and a test (P2). Thereafter, control information for determining an arbitrary operating frequency demanded from a customer is written into the predetermined area 6cd of the non-volatile memory 6 (P3A) . After the shipment of the microcomputer, the system can be operated at an internal oscillation frequency set in the normal mode (user mode). There is no need to consider a change in frequency after its shipment.
<<Dynamic Adjustment to Clock Signal Frequency>>
A microcomputer 1 equipped with an internal oscillator circuit module which sequentially and dynamically adjusts an internal oscillation clock frequency is shown in
A detailed circuit example of the internal oscillator circuit module 5 of
The pulse generator 72 comprises a low precision internal oscillator (LPOSC) 76 and a ring counter (RGCUNT) 77 which counts a clock signal outputted from the low precision internal oscillator 76. The most significant bit Dn of the ring counter 77 outputs a countup pulse Fstr. The countup pulse Fstr is brought to a low level till its countup and is brought to a high level for each countup.
The CR time constant circuit 73 has a parallel circuit of a resistor Rtc and a capacitor Ctc and is connected to a clamp voltage Cvdd via a p channel type MOS switch M31. The MOS switch M31 is brought to an on state in response to the high level of the countup pulse Fstr so that the capacitor Ctc is charged. The MOS switch M31 is brought to an off state in response to the low level of the countup pulse Fstr so that the capacitor Ctc is discharged. A charge/discharge voltage obtained by the time constant circuit 73 is illustrated as Ntm. The time constant that defines a charge/discharge time interval is determined by trimming the value of the resistor Rtc. A voltage trimming method is not limited in particular but is to be done by an aluminum master slice or a fuse program. Incidentally, the resistance value of the resistor Rtc is set to a size taken as much as the on-resistance of the MOS switch M31 is invisible. In short, the former has such a large resistance value as being capable of ignoring the latter.
The detector 74 compares the charge/discharge voltage Ntm with a decision level Vint obtained by resistance-dividing the reference voltage Vref. Cstp denotes a signal indicative of the result of comparison by the detector 74.
The voltage to be charged by the CRTC 73 is prescribed by the clamp voltage Cvdd and made stable toward a variation in temperature and a variation in the power supply voltage Vcc. The time constant prescribed by the resistor Rtc and the capacitor Ctc does not depend on the variations in the temperature and power supply voltage Vcc either. Also the decision level Vint does not depend on the variations in the temperature and power supply voltage Vcc either. Thus, as shown in
The CMPCTL 70 has a clock counter 80 supplied with the internal clock signal VCLK. The clock counter 80 is cleared with the fall timing of the signal Fstr. Thereafter, the clock counter 80 counts the internal clock signal VCLK till the falling edge of the signal Cstp. The period required to count it is set to a period constant to the time Ts. Further, the period is set to a constant period or interval that does not depend on the variations in the temperature and power supply voltage Vcc. A count value counted during the time interval Ts is compared with a preset value of a frequency setting register 81 by a comparator 82. The comparator 82 is used as a magnitude comparator and counts up or counts down the UDCUNT 42 according to the magnitude of the result of comparison with the signal Fstr as a count clock. For each cycle of the signal Fstr, the control information is incremented by +1 or −1 or held as a pre-value. Thus, the oscillation frequency of the oscillator 23 can be dynamically adjusted for each cycle of the pulse Fstr with the constant interval Ts of the pulse as the reference in such a way as to coincide with a target frequency and not to be affected by the variations in the temperature and power supply voltage Vcc.
Another example of an interval generator (ITVG) 71 is shown in
The charge voltage obtained by the CRTC 73 is prescribed by the clamp voltage Cvdd and made stable toward the variations in the temperature and power supply voltage Vcc. The time constant prescribed by the resistor Rtc and the capacitor Ctc does not depend on the variations in the temperature and power supply voltage Vcc either. Also a decision level Vint does not depend on the variations in the temperature and power supply voltage Vcc either. Thus, as shown in
Applying the built-in oscillator circuit module descried above to a semiconductor integrated circuit brings about the following advantageous effects. Since the user-optional built-in clock signal can be generated, there is no need to externally provide parts such as a crystal oscillator, a capacitor, etc., and the design of a board becomes easy.
A frequency stable toward variations in manufacturing process, a change in temperature and a variation in power supply can be obtained by internal oscillations.
Since a frequency sampling terminal can be multiplexed onto other terminals, the number of external terminals can be reduced by two as compared with the case in which the crystal oscillator is used.
Since the oscillation frequency of the semiconductor integrated circuit can be set by a customer, allowance can be made to the period provided for design of an application system by the customer. Further, flexibility is enhanced even with respect to the design of the application system.
There is no need to produce and build in the frequency at the design stage of a microcomputer, and general-purpose microcomputer design can be carried out. It is, therefore, possible to reduce its design cost or the like.
Since there is not provided a terminal for an oscillator, EMS and EMI characteristics can be enhanced. Since no oscillator is used, a reduction in power consumption is enabled.
While the invention made above by the present inventors has been described specifically on the basis of the embodiments, the present invention is not limited to them. It is needless to say that various changes can be made thereto within the scope not departing from the gist thereof.
For instance, the non-volatile memory may be an electric fuse. The PLSG. 72 shown in
An advantageous effect obtained by a representative one of the inventions disclosed in the present application will be described in brief as follows:
A semiconductor integrated circuit is capable of performing built-in oscillations with high accuracy.
Number | Date | Country | Kind |
---|---|---|---|
2003-203574 | Jul 2003 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | 11446219 | Jun 2006 | US |
Child | 11708346 | Feb 2007 | US |
Parent | 10867013 | Jun 2004 | US |
Child | 11446219 | Jun 2006 | US |