Circuit device and oscillator
The circuit device facilitates easy and accurate CI value inspection of crystal oscillators by using a transistor-based configuration that enhances duty sensitivity, eliminating the need for additional measurement circuits and dedicated inspection terminals.
Patent Information
- Application Number
- JP2023065552
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-25
AI Technical Summary
Existing methods for measuring the CI (Crystal Impedance) values of crystal oscillators require an internal circuit and external terminal, making it difficult to inspect CI values easily.
A circuit device with an amplifier circuit, buffer circuit using PMOS and NMOS transistors, amplitude control circuit, and a first switch in series with a parallel transistor configuration, allowing for easy inspection of CI values without dedicated external terminals.
Enables accurate and easy testing of CI values by monitoring the duty of the oscillation signal, eliminating the need for additional measurement circuits and dedicated inspection terminals.
Smart Images

Figure 2024151826000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a circuit device and an oscillator. [Background technology]
[0002] Patent Document 1 describes a measurement method for measuring the DC input voltage to an AGC amplifier circuit as the CI of a crystal unit using a crystal oscillation circuit equipped with an AGC amplifier circuit between a crystal unit and an integrating circuit. The measurement method for the CI of a crystal unit described in Patent Document 1 makes it possible to measure the CI of various crystal units having a wide range of oscillation frequencies and CI values. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 10-339755 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in order to apply the measurement method described in Patent Document 1, it is necessary to provide the crystal oscillator circuit with an internal circuit for measuring the DC input voltage to the AGC amplifier circuit and an external terminal for outputting the DC input voltage, and therefore it is not possible to easily test the CI value. [Means for solving the problem]
[0005] One aspect of the circuit device according to the present invention is an amplifier circuit that amplifies a signal input from a transducer and outputs the signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch disposed in series with the first option transistor.
[0006] One aspect of the oscillator according to the present invention is A vibrator; A circuit device connected to the transducer; a container that houses the vibrator and the circuit device, The circuit device comprises: an amplifier circuit that amplifies a signal input from the transducer and outputs the amplified signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch disposed in series with the first option transistor. [Brief description of the drawings]
[0007] [Figure 1] FIG. 2 is a perspective view of the oscillator according to the embodiment. [Diagram 2] FIG. 2 is a cross-sectional view of the oscillator according to the embodiment. [Diagram 3] FIG. 4 is another cross-sectional view of the oscillator according to the embodiment. [Figure 4] FIG. [Diagram 5] FIG. 2 is a functional block diagram of an oscillator according to the first embodiment. [Figure 6] FIG. 2 is a diagram showing an example of the configuration of an oscillation circuit and a constant current circuit according to the first embodiment. [Figure 7] FIG. 4 is a diagram showing an example of waveforms of various oscillation signals in a normal operation mode. [Figure 8]FIG. 4 is a diagram showing an example of waveforms of various oscillation signals in an inspection mode. [Figure 9] 11 is a diagram showing an example of the relationship between the CI value of an oscillator and the duty of an oscillation signal. [Figure 10] FIG. 1 is a diagram showing a configuration of an inspection system in which an inspection device is connected to an oscillator. [Figure 11] FIG. 11 is a flowchart showing an example of a procedure of a CI value inspection method using an inspection device. [Figure 12] 4A and 4B are diagrams showing an example of voltage waveforms of each terminal and each signal when the inspection device inspects the CI value. [Figure 13] FIG. 11 is a functional block diagram of an oscillator according to a second embodiment. [Figure 14] FIG. 13 is a diagram showing an example of the configuration of an oscillator circuit and a constant current circuit according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Preferred embodiments of the present invention will be described in detail below with reference to the drawings. Note that the embodiments described below do not unduly limit the contents of the present invention described in the claims. Furthermore, not all of the configurations described below are necessarily essential components of the present invention.
[0009] 1. First embodiment 1-1. Oscillator configuration Fig. 1 to Fig. 4 are diagrams showing an example of the structure of an oscillator 1 of this embodiment. Fig. 1 is a perspective view of the oscillator 1, Fig. 2 is an example of a cross-sectional view taken along line AA in Fig. 1. Fig. 3 is another example of the cross-sectional view taken along line AA in Fig. 1, and Fig. 4 is a bottom view of the oscillator 1.
[0010] As shown in FIG. 1 to FIG. 3, the oscillator 1 includes a circuit device 2, a vibrator 3, a package 4, a lid 5, and a plurality of external terminals 6. In this embodiment, the vibrator 3 is a quartz crystal vibrator using quartz crystal as a substrate material, such as an AT-cut quartz crystal vibrator or a tuning fork-type quartz crystal vibrator. The vibrator 3 may be a SAW resonator. SAW stands for Surface Acoustic Wave. In addition to quartz crystal, the substrate material of the vibrator 3 may be a piezoelectric material such as a piezoelectric single crystal such as lithium tantalate or lithium niobate, or a piezoelectric ceramic such as lead zirconate titanate. The excitation means of the vibrator 3 may be one based on the piezoelectric effect. In this embodiment, the circuit device 2 is realized by a one-chip integrated circuit. However, the circuit device 2 may be at least partially composed of discrete components.
[0011] The oscillator 1 shown in FIG. 2 is an oscillator with a single seal structure, and the package 4 is a container that houses the circuit device 2 and the vibrator 3 in the same space. Specifically, the package 4 is provided with a recess, and the lid 5 covers the recess to form an accommodation chamber 7. The oscillator 1 shown in FIG. 3 is an oscillator with an H-shaped structure, and the package 4 is a container that houses the circuit device 2 and the vibrator 3 in separate spaces. Specifically, the package 4 has two recesses on opposite sides, and the lid 5 covers one recess to form an accommodation chamber 7a, and the sealing member 8 covers the other recess to form an accommodation chamber 7b. The vibrator 3 is accommodated in the accommodation chamber 7a, and the circuit device 2 is accommodated in the accommodation chamber 7b.
[0012] The vibrator 3 has metallic excitation electrodes 3a, 3b on its front and back surfaces, respectively, and oscillates at a desired frequency according to the shape and mass of the vibrator 3 including the excitation electrodes 3a, 3b. Inside the package 4 or on the surface of the recess, there are provided wiring (not shown) for electrically connecting two terminals of the circuit device 2, specifically, a T1 terminal and a T2 terminal in FIG. 5 described later, to the two excitation electrodes 3a, 3b of the vibrator 3. Also, inside the package 4 or on the surface of the recess, there are provided wiring (not shown) for electrically connecting each terminal of the circuit device 2 to each external terminal 6 provided on the bottom surface of the package 4. Wiring (not shown) is provided for connecting to the
[0013] 4, the oscillator 1 of this embodiment has four external terminals 6 provided on the back surface of the package 4, which is the bottom surface: a VDD terminal which is a power supply terminal to which a power supply voltage Vdd is supplied, a VSS terminal which is a ground terminal to which a ground voltage Vss is supplied, an OUT terminal which is an output terminal, and an OE terminal which is an output enable terminal. That is, in this embodiment, the package 4 has four external terminals 6: a VDD terminal, a VSS terminal, an OUT terminal, and an OE terminal.
[0014] 5 is a functional block diagram of the oscillator 1 of this embodiment. As shown in FIG. 5, the oscillator 1 of this embodiment includes a circuit device 2 and a vibrator 3. The circuit device 2 has a T1 terminal, a T2 terminal, a T3 terminal, a T4 terminal, a T5 terminal, and a T6 terminal as external connection terminals. The T1 terminal is electrically connected to one end of the vibrator 3, and the T2 terminal is electrically connected to the other end of the vibrator 3. The T3 terminal, the T4 terminal, the T5 terminal, and the T6 terminal are electrically connected to the OE terminal, the OUT terminal, the VDD terminal, and the VSS terminal, which are the multiple external terminals 6 of the oscillator 1 shown in FIG. 4, respectively.
[0015] In this embodiment, the circuit device 2 includes an oscillator circuit 10, an output buffer 20, a first input / output circuit 30, a second input / output circuit 40, a control circuit 50, a power-on reset circuit 60, a constant voltage circuit 70, and a constant current circuit 80. Note that the circuit device 2 may be configured such that some of these elements are omitted or modified, or other elements are added.
[0016] The oscillator circuit 10 is connected to the T1 terminal and the T2 terminal, and generates an oscillation signal by oscillating the oscillator 3. The oscillator circuit 10 includes an amplifier circuit that amplifies a signal from the T1 terminal and outputs it to the T2 terminal, and a variable capacitance circuit that serves as a load capacitance. Specifically, the oscillator circuit 10 receives a signal output from the oscillator 3 via the T1 terminal, amplifies the signal by the amplifier circuit, and supplies the signal to the oscillator 3 via the T2 terminal. In this embodiment, a test signal TEST and a 2-bit selection signal SEL[1:0] are input to the oscillator circuit 10. When the test signal TEST is at a high level, the oscillator circuit 10 outputs an oscillation signal OSCO obtained by amplifying the oscillation signal input from the oscillator 3 via the T1 terminal, and when the test signal TEST is at a high level, the oscillator circuit 10 fixes the oscillation signal OSCO to a high level. In addition, the oscillator circuit 10 changes the rise time and duty of the oscillation signal OSCO according to the logic level of the selection signal SEL[1:0].
[0017] The output buffer 20 receives the oscillation signal OSCO output from the oscillator circuit 10 and outputs a clock signal CK. Specifically, the output buffer 20 buffers the oscillation signal OSCO, and outputs the clock signal CK from the output terminal when the signal input to the control terminal is at a high level. When the signal input to the control terminal is at a low level, the output buffer 20 outputs the ground voltage Vss from the output terminal.
[0018] The constant voltage circuit 70 generates a voltage Vosc, which is a constant voltage lower than the power supply voltage Vdd, based on the power supply voltage Vdd supplied from outside the oscillator 1 via the VDD terminal and the T5 terminal, and the ground voltage Vss supplied from outside the oscillator 1 via the VSS terminal and the T6 terminal. For example, the constant voltage circuit 70 generates the constant voltage based on the output voltage of a bandgap reference circuit. The voltage Vosc is supplied to the oscillation circuit 10.
[0019] The constant current circuit 80 is connected to the oscillation circuit 10, and is a circuit for supplying a constant current Iosc to the oscillation circuit 10 based on a power supply voltage Vdd and a ground voltage Vss.
[0020] The control circuit 50 controls the operation of each circuit. Specifically, the control circuit 50 controls the value of the current Iosc and the load capacitance value of the oscillator circuit 10. The control circuit 50 also controls the test signal TE ST and a selection signal SEL[1:0]. The control circuit 50 also sets the operation mode of the circuit device 2 to one of a plurality of modes including a normal operation mode, an external communication mode, and an inspection mode. In the normal operation mode, the selection signal SEL[1:0] is "11", the test signal TEST is at a high level, the oscillation circuit 10 performs an oscillation operation, and whether or not a clock signal CK is output from the OUT terminal is controlled according to a control signal input from the OE terminal. In the external communication mode, the control circuit 50 communicates with an external device (not shown) via the OE terminal and the OUT terminal. In the inspection mode, the selection signal SEL[1:0] is either "10", "01", or "00", the test signal TEST is at a high level, and the oscillation circuit 10 performs an oscillation operation. In the inspection mode, the value of the current Iosc is smaller and the load capacitance value of the oscillation circuit 10 is larger than in the normal operation mode. As described above, when the test signal TEST is at a low level, the oscillation signal OSCO is fixed at a high level, so that the control circuit 50 may set the operation mode of the circuit device 2 to a test mode of the circuit to which the oscillation signal OSCO is supplied. In this embodiment, as shown in FIG. 5, the control circuit 50 includes a serial interface circuit 51 and a register 52.
[0021] When a control signal of a predetermined pattern is input from the OE terminal within a predetermined period from the start of supply of the power supply voltage Vdd to the VDD terminal, the serial interface circuit 51 sets the operation mode to the external communication mode after the predetermined period has elapsed. When a control signal of a predetermined pattern is not input from the OE terminal within a predetermined period from the start of supply of the power supply voltage Vdd, the serial interface circuit 51 sets the operation mode to the normal operation mode without setting the operation mode to the external communication mode after the predetermined period has elapsed. For example, the serial interface circuit 51 may determine the predetermined period as the period from when the oscillator 3 starts oscillating due to the supply of the power supply voltage Vdd until it detects that the oscillation has stabilized, or may count the number of pulses of the clock signal CK and determine that the predetermined period has elapsed when the count value reaches a predetermined value. For example, the serial interface circuit 51 may measure the predetermined period based on the output signal of an RC time constant circuit that starts operating due to the supply of the power supply voltage Vdd.
[0022] In the external communication mode, the serial interface circuit 51 is electrically connected to the OE terminal via the first input / output circuit 30, and is electrically connected to the OUT terminal via the second input / output circuit 40, and can perform data communication with an external device (not shown) via the OE terminal and the OUT terminal. In this embodiment, in the external communication mode, the OE terminal and the T3 terminal serve as serial data terminals, and the OUT terminal and the T4 terminal serve as serial clock terminals. The external device outputs a serial clock signal to the OUT terminal in accordance with a predetermined communication standard, and outputs a serial data signal to the OE terminal in synchronization with the serial clock signal, or obtains a signal output from the serial interface circuit 51 to the OE terminal. In the external communication mode, the serial interface circuit 51 samples serial data signals as various commands at each edge of the serial clock signal in accordance with, for example, the I2C bus standard. I2C is an abbreviation for Inter-Integrated Circuit. The serial interface circuit 51 performs processing such as setting an operation mode and reading and writing data from and to the register 52 based on the sampled command. In this embodiment, the serial interface circuit 51 communicates with an external device according to a two-wire bus communication standard such as an I2C bus, but may also communicate with an external device according to a three-wire or four-wire bus communication standard such as an SPI bus. SPI is an abbreviation for Serial Peripheral Interface.
[0023] For example, when the serial interface circuit 51 samples a register setting command, it writes specified data to the address of the register 52 specified by the register setting command. The register 52 holds multiple bits of data and outputs a signal that controls the value of the current Iosc and the capacitance values of the variable capacitance circuits 11 and 12. 2 outputs a test signal TEST and a selection signal SEL[1:0].
[0024] In the external communication mode, the external device can set the value of the current Iosc, the load capacitance value of the oscillator circuit 10, and the logic levels of the test signal TEST and the selection signal SEL[1:0] by sending a register setting command to the serial interface circuit 51 via the OE terminal and the OUT terminal. When the external device sets the test signal TEST to a high level and the selection signal SEL[1:0] to any one of "10", "01", and "00", and then ends the communication, the operation mode transitions from the external communication mode to the inspection mode. When the external device sets the test signal TEST to a high level and the selection signal SEL[1:0] to "11", and then ends the communication, the operation mode transitions from the external communication mode to the normal operation mode.
[0025] The first input / output circuit 30 is provided on a signal path between the T3 terminal and the register 52. The first input / output circuit 30 is provided on a signal path between the T3 terminal and the output buffer 20. In the normal operation mode and the inspection mode, the T3 terminal and the control terminal of the output buffer 20 are electrically connected via the first input / output circuit 30, and the T3 terminal and the register 52 are electrically disconnected. In the external communication mode, the T3 terminal and the register 52 are electrically connected via the first input / output circuit 30 and the serial interface circuit 51, and the T3 terminal and the control terminal of the output buffer 20 are electrically disconnected.
[0026] The second input / output circuit 40 is provided on a signal path between the output buffer 20 and the T4 terminal. The second input / output circuit 40 is also provided on a signal path between the T4 terminal and the register 52. In the normal operation mode and the inspection mode, the output terminal of the output buffer 20 and the T4 terminal are electrically connected via the second input / output circuit 40, and the T4 terminal and the register 52 are electrically disconnected. In the external communication mode, the T4 terminal and the register 52 are electrically connected via the second input / output circuit 40 and the serial interface circuit 51, and the output terminal of the output buffer 20 and the T4 terminal are electrically disconnected.
[0027] When the supply of the power supply voltage Vdd to the VDD terminal starts, the power-on reset circuit 60 outputs a reset signal RST that is at a high level for a predetermined period. The reset signal RST resets the register 52, initializes the current Iosc and the load capacitance of the oscillator circuit 10 to predetermined values, initializes the test signal TEST to a high level, and initializes the selection signal SEL[1:0] to "11". After that, when a predetermined period has elapsed, the operation mode of the circuit device 2 is initialized to the normal operation mode. That is, the circuit device 2 is set to the normal operation mode by the initial value of the register 52 that is set when the power is turned on.
[0028] 1-2. Configuration of the oscillator circuit and constant current circuit 6 is a diagram showing an example of the configuration of the oscillator circuit 10 and the constant current circuit 80 in the first embodiment. As shown in FIG. 6, the oscillator circuit 10 includes variable capacitance circuits 11 and 12, an amplifier circuit 13, an amplitude control circuit 14, a buffer circuit 15, and a two-input NAND circuit 16.
[0029] One end of the variable capacitance circuit 11 is connected to the T1 terminal, and one end of the variable capacitance circuit 12 is connected to the T2 terminal. A ground voltage Vss is supplied to the other end of each of the variable capacitance circuits 11 and 12. The variable capacitance circuits 11 and 12 function as load capacitances. The capacitance values of the variable capacitance circuits 11 and 12 are variable according to the settings of the register 52 shown in FIG. 5. In other words, the load capacitance of the oscillator circuit 10 is variable.
[0030] The amplifier circuit 13 includes capacitance elements 131, 132, and 133, resistors 134 and 135, a PMOS transistor 136, and an NMOS transistor 137. One end of each of the capacitance elements 131, 132, and 133 is connected to a T1 terminal. The other end of the capacitance element 131 is connected to a resistor 135. and the gate terminal of the PMOS transistor 136. The other end of the capacitance element 133 is connected to the gate terminal of the NMOS transistor 137. One end of the resistor 134 is connected to the T2 terminal. The other end of the resistor 134 is connected to the other end of the resistor 135, the drain terminal of the PMOS transistor 136, and the drain terminal of the NMOS transistor 137. A voltage Vosc is supplied to the source terminal of the PMOS transistor 136, and a ground voltage Vss is supplied to the source terminal of the NMOS transistor 137. The amplifier circuit 13 thus configured amplifies a signal input from the vibrator 3 via the T1 terminal by a logic inversion circuit formed by the PMOS transistor 136 and the NMOS transistor 137, and outputs the signal to the vibrator 3 via the T2 terminal.
[0031] The amplitude control circuit 14 includes a resistor 141, capacitance elements 142 and 143, PMOS transistors 144 and 145, and an NMOS transistor 146. One end of the resistor 141 is connected to the other end of the capacitance element 132 and the gate terminal of the PMOS transistor 144. The other end of the resistor 141 is connected to the drain terminal of the PMOS transistor 144, the gate terminal of the PMOS transistor 145, and one end of the capacitance element 143. The other end of the capacitance element 143 is connected to the drain terminal of the PMOS transistor 145 and the drain terminal and gate terminal of the NMOS transistor 146. One end of the capacitance element 142 is connected to the other end of the resistor 141, the drain terminal of the PMOS transistor 144, the gate terminal of the PMOS transistor 145, and one end of the capacitance element 143. The other end of the capacitance element 142 and the source terminals of the PMOS transistors 144 and 145 are supplied with a voltage Vosc. The source terminal of the NMOS transistor 146 is supplied with the ground voltage Vss.
[0032] The buffer circuit 15 includes PMOS transistors 151, 153, 154, 155, 156 and an NMOS transistor 152. The gate terminals of the PMOS transistors 151, 153, 154 are connected to the other end of the capacitance element 131, one end of the resistor 135, and the gate terminal of the PMOS transistor 136. The drain terminals of the PMOS transistors 151, 155, 156 are connected to the drain terminal of the NMOS transistor 152. A voltage Vosc is supplied to the source terminals of the PMOS transistors 151, 153, 154. The drain terminal of the PMOS transistor 153 is connected to the source terminal of the PMOS transistor 155, and the drain terminal of the PMOS transistor 154 is connected to the source terminal of the PMOS transistor 156. In this manner, the PMOS transistor 153 is provided in parallel with the PMOS transistor 151, and the PMOS transistor 155 is provided in series with the PMOS transistor 153. Similarly, a PMOS transistor 154 is provided in parallel with the PMOS transistor 151 , and a PMOS transistor 156 is provided in series with the PMOS transistor 154 .
[0033] A lower bit signal SEL[0] of the 2-bit selection signal SEL is input to a gate terminal of the PMOS transistor 155, and an upper bit signal SEL[1] of the 2-bit selection signal SEL is input to a gate terminal of the PMOS transistor 156. A gate terminal of the NMOS transistor 152 is connected to the other end of the capacitance element 133, the gate terminal of the NMOS transistor 137, the other end of the capacitance element 143, the drain terminal of the PMOS transistor 145, and the gate terminal and drain terminal of the NMOS transistor 146. A ground voltage Vss is supplied to the source terminal of the NMOS transistor 152.
[0034] When the selection signal SEL[1:0] is "11", both the PMOS transistors 155 and 156 are turned off, and a logic inversion circuit is formed by the PMOS transistor 151 and the NMOS transistor 152. When the selection signal SEL[1:0] is "10", the PMOS transistor 155 is turned on, and the PMOS transistor 156 is turned on. is turned off, and a logic inversion circuit is formed by the PMOS transistors 151, 153 and the NMOS transistor 152. When the selection signal SEL[1:0] is "01", the PMOS transistor 155 is turned off and the PMOS transistor 156 is turned on, and a logic inversion circuit is formed by the PMOS transistors 151, 154 and the NMOS transistor 152. When the selection signal SEL[1:0] is "00", the PMOS transistors 155 and 156 are both turned on, and a logic inversion circuit is formed by the PMOS transistors 151, 153, 154 and the NMOS transistor 152.
[0035] Each of these logic inversion circuits inverts the logic levels of the oscillation signals GP and GN, and outputs an oscillation signal BUFO with a high level voltage near the voltage Vosc and a low level voltage near the ground voltage Vss. That is, the buffer circuit 15 receives the oscillation signals GP and GN from the amplifier circuit 13, inverts the logic levels of the oscillation signals GP and GN, and outputs the amplified oscillation signal BUFO.
[0036] When the selection signal SEL[1:0] is "11", the PMOS transistor 151 is connected between the power supply and the output node of the oscillation signal BUFO. In contrast, when the selection signal SEL[1:0] is "10" or "01", the PMOS transistor 153 or the PMOS transistor 154 is connected in parallel to the PMOS transistor 151 between the power supply and the output node of the oscillation signal BUFO, so that the driving capability on the high potential side is larger and the rise of the oscillation signal BUFO is steeper than when the selection signal SEL[1:0] is "11". In addition, when the selection signal SEL[1:0] is "00", the PMOS transistors 153 and 154 are connected in parallel to the PMOS transistor 151 between the power supply and the output node of the oscillation signal BUFO, so that when the selection signal SEL[1:0] is "11", "10", Compared to "01", the driving capability on the high potential side is greater, and the rising edge of the oscillation signal BUFO becomes even steeper.
[0037] In this embodiment, the W / L ratio of the PMOS transistor 154 is larger than that of the PMOS transistor 153. Therefore, when the selection signal SEL[1:0] is "01", the driving capability on the high potential side is larger and the rise of the oscillation signal BUFO becomes steeper than when the selection signal SEL[1:0] is "10". Note that W is the gate width of the PMOS transistor, and L is the gate length of the PMOS transistor.
[0038] Furthermore, in this embodiment, the W / L ratio of the PMOS transistor 154 is greater than the W / L ratio of the PMOS transistor 151. Therefore, when the selection signal SEL[1:0] is "00", the driving capability on the high potential side is more than twice as large as when the selection signal SEL[1:0] is "11", and the rise of the oscillation signal BUFO becomes very steep.
[0039] The two-input NAND circuit 16 includes PMOS transistors 161 and 162 and NMOS transistors 163 and 164. The gate terminal of the PMOS transistor 161 is connected to the drain terminals of the PMOS transistors 151, 155, and 156, the drain terminal of the NMOS transistor 152, and the gate terminal of the NMOS transistor 163. The drain terminal of the PMOS transistor 161 is connected to the drain terminal of the PMOS transistor 162 and the drain terminal of the NMOS transistor 163. A voltage Vosc is supplied to each of the source terminals of the PMOS transistors 161 and 162. The source terminal of the NMOS transistor 163 and the drain terminal of the NMOS transistor 164 are connected, and a ground voltage Vss is supplied to the source terminal of the NMOS transistor 164. A test signal TEST is input to the gate terminal of the PMOS transistor 162 and the gate terminal of the NMOS transistor 164. The two-input NAND circuit 16 thus configured has a drain terminal of a PMOS transistor 151 and an NMOS transistor An oscillation signal BUFO, which is a signal at a connection node with the drain terminal of the transistor 152, and a test signal TEST are input, and an oscillation signal OSCO is output from a connection node between the drain terminal of the PMOS transistor 162 and the drain terminal of the NMOS transistor 163. When the test signal TEST is at a high level, the two-input NAND circuit 16 outputs an oscillation signal OSCO that is an inverted logical level of the oscillation signal BUFO, and when the test signal TEST is at a low level, it outputs a high-level oscillation signal OSCO.
[0040] The constant current circuit 80 includes a current source 81, PMOS transistors 82, 83, and NMOS transistors 84, 85. One end of the current source 81 is connected to each gate terminal of the PMOS transistors 82, 83 and the drain terminal of the PMOS transistor 82. A power supply voltage Vdd is supplied to each source terminal of the PMOS transistors 82, 83, and a ground voltage Vss is supplied to the other end of the current source 81 and the source terminals of the NMOS transistors 84, 85. A drain of the PMOS transistor 83 is connected to each gate terminal of the NMOS transistors 84, 85 and the drain terminal of the NMOS transistor 84. A drain terminal of the NMOS transistor 85 is connected to the drain terminal of the PMOS transistor 144. Due to the function of the current mirror circuit formed by the PMOS transistors 82 and 83 and the function of the current mirror circuit formed by the NMOS transistors 84 and 85, a current Iosc according to the reference current Iref flowing through the current source 81 flows from the drain terminal of the PMOS transistor 145 to the ground via the NMOS transistor 85. Note that the reference current Iref flowing through the current source 81 and the transistor sizes of the PMOS transistor 83 and the NMOS transistors 84 and 85 are variable according to the setting of the register 52 shown in FIG. 5. Furthermore, the current Iosc is also variable according to the adjustment of the reference current Iref and the transistor sizes of the PMOS transistor 83 and the NMOS transistors 84 and 85.
[0041] Next, the operation of the oscillator circuit 10 will be described in detail. When the power supply voltage Vdd is supplied to the VDD terminal of the oscillator 1, the operation mode of the circuit device 2 is set to the normal operation mode, and the oscillator circuit 10 starts oscillating the vibrator 3. The DC components of the oscillation signal input from the vibrator 3 via the T1 terminal are cut by the capacitance elements 131 and 133 to become the oscillation signals GP and GN. The oscillation signal GP is input to the gate terminal of the PMOS transistor 136, and the oscillation signal GN is input to the gate terminal of the NMOS transistor 137. The oscillation signals GP and GN are amplified by a logic inversion circuit formed by the PMOS transistor 136 and the NMOS transistor 137. The amplified oscillation signal is output to the vibrator 3 via the T2 terminal, and is fed back by the resistor 135, which is a feedback resistor. Then, the phase difference between the oscillation signal input to the gate terminal of the PMOS transistor 136 and the fed back signal is corrected by the variable capacitance circuits 11 and 12 and the resistor 134, and the vibrator 3 continues to oscillate.
[0042] On the other hand, the oscillation signal input from the T1 terminal has its DC component cut by the capacitive element 132 to become the oscillation signal GA, which is input to the gate terminal of the PMOS transistor 144. The oscillation signal GA is also input to the gate terminal of the PMOS transistor 145 via the resistor 141. As a result, the amplitude levels of the oscillation signals GB and GN are adjusted according to the amplitude level of the oscillation signal GA, and feedback is applied to the T2 terminal and the T1 terminal.
[0043] Specifically, when the amplitude of the oscillation signal GA becomes large to a certain extent, the potential of the oscillation signal GB input to the gate terminal of the PMOS transistor 145 increases, and the potential of the drain terminal of the PMOS transistor 145 decreases. When the potential of the drain terminal of the PMOS transistor 145 decreases, the amplitude level of the oscillation signal GN input to the gate terminal of the NMOS transistor 137 decreases, the potential of the drain terminal of the NMOS transistor 137 increases, and the amplitude level of the oscillation signal output to the T2 terminal via the resistor 134 increases.
[0044] When the amplitude level of the oscillation signal output to the T2 terminal increases, the amplitude level of the oscillation signal input from the vibrator 3 via the T1 terminal increases, and the amplitude levels of the oscillation signals GP and GA also increase. When the amplitude level of the oscillation signal GA input to the gate terminal of the PMOS transistor 144 increases, the on-resistance of the PMOS transistor 144 increases, and the voltage drop according to the on-resistance and the value of the current Iosc increases. As a result, the potential of the drain terminal of the PMOS transistor 144 decreases, and the potential of the oscillation signal GB input to the gate terminal of the PMOS transistor 145 decreases. When the potential of the oscillation signal GB decreases, the potential of the drain terminal of the PMOS transistor 145 increases. When the potential of the drain terminal of the PMOS transistor 145 increases, the amplitude level of the oscillation signal GN input to the gate terminal of the NMOS transistor 137 increases, and the potential of the drain terminal of the NMOS transistor 137 decreases, and the amplitude level of the oscillation signal output to the T2 terminal via the resistor 134 decreases.
[0045] When the amplitude level of the oscillation signal output to the T2 terminal decreases, the amplitude level of the oscillation signal input from the vibrator 3 via the T1 terminal decreases, and the amplitude levels of the oscillation signals GP and GA also decrease. When the amplitude level of the oscillation signal GA input to the gate terminal of the PMOS transistor 144 decreases, the on-resistance of the PMOS transistor 144 decreases, and the voltage drop according to the on-resistance and the value of the current Iosc becomes smaller. As a result, the potential of the drain terminal of the PMOS transistor 144 increases, and the potential of the oscillation signal GB input to the gate terminal of the PMOS transistor 145 increases. In this way, the oscillation of the vibrator 3 continues while the amplitude control circuit 14 controls the amplitude levels of the oscillation signals GA, GB, GP, and GN to be constant.
[0046] The oscillation signals GP and GN are input to the PMOS transistor 151 and the NMOS transistor 152, respectively. In the normal operation mode, since the selection signal SEL[1:0] is "11", in the buffer circuit 15, both the PMOS transistors 155 and 156 are turned off, and the PMOS transistor 151 and the NMOS transistor 152 form a logic inversion circuit. The sizes and currents Iosc of the PMOS transistor 151 and the NMOS transistor 152 are adjusted so that the oscillation signal BUFO output from this logic inversion circuit has a duty of 50%. In the normal operation mode, since the test signal TEST is at a high level, an oscillation signal OSCO in which the logic level of the oscillation signal BUFO is inverted is output. That is, in the normal operation mode, the oscillation circuit 10 outputs an oscillation signal OSCO with a duty of 50%. FIG. 7 shows an example of the waveforms of the oscillation signals GP, GN, GB, BUFO, and OSCO in the normal operation mode.
[0047] The basic operation of the oscillator circuit 10 in the test mode is the same as that in the normal operation mode. Therefore, in both the normal operation mode and the test mode, the amplitude control circuit 14 controls the amplitude levels of the oscillation signals GA, GB, GP, and GN to be constant by controlling the potential of the drain terminal of the PMOS transistor 145 according to the amplitude level of the oscillation signal output to the T2 terminal. The amplitude levels of the oscillation signals GA, GB, GP, and GN change according to the value of the current Iosc. Since the oscillation signal GN is input to the gate terminal of the NMOS transistor 152 of the buffer circuit 15, the amplitude control circuit 14 controls the gate voltage of the NMOS transistor 152 of the buffer circuit 15 according to the variable current Iosc.
[0048] However, in the inspection mode, the setting value of the register 52 is changed so that the current Iosc is smaller than in the normal operation mode. For example, the current Iosc may be set to the minimum value that can be set. That is, in the normal operation mode, the current Iosc is set to a first current amount, and in the inspection mode, the current Iosc is set to a second current amount that is smaller than the first current amount. In the inspection mode, the current Iosc is smaller than in the normal operation mode, so that the PMOS transistor The potential of the drain terminal of the transistor 144 increases, and the amplitude level of the oscillation signal GB input to the gate terminal of the PMOS transistor 145 increases. When the potential of the oscillation signal GB increases, the potential of the drain terminal of the PMOS transistor 145 decreases. When the potential of the drain terminal of the PMOS transistor 145 decreases, the amplitude level of the oscillation signal GN input to the gate terminal of the NMOS transistor 152 decreases.
[0049] In addition, in the test mode, the setting value of the register 52 is changed so that the capacitance values of the variable capacitance circuits 11 and 12 functioning as the load capacitance of the oscillation circuit 10 are increased compared to the normal operation mode. For example, the capacitance values of the variable capacitance circuits 11 and 12 may be set to the maximum value that can be set. That is, the load capacitance of the oscillation circuit 10 in the test mode is greater than the load capacitance of the oscillation circuit 10 in the normal operation mode. Therefore, the oscillation amplitude of the vibrator 3 is reduced, and the amplitude of the oscillation signal input from the vibrator 3 via the T1 terminal is reduced, so that the amplitude of the oscillation signal GP is also reduced.
[0050] In this way, in the test mode, the amplitude level of the oscillation signal GB increases, the amplitude level of the oscillation signal GN decreases, and the amplitude of the oscillation signal GP decreases, so that the low-level period of the oscillation signal BUFO becomes shorter and the high-level period becomes longer, compared to the normal operation mode. In the test mode, the selection signal SEL[1:0] is further set to either "10", "01", or "00", and the rise of the oscillation signal BUFO becomes steeper, compared to the normal operation mode. As a result, the high-level period of the oscillation signal OSCO becomes shorter and the low-level period becomes longer, so that the duty of the oscillation signal OSCO becomes smaller than 50%. FIG. 8 shows an example of the waveforms of the oscillation signals GP, GN, GB, BUFO, and OSCO in the test mode with solid lines. In FIG. 8, the waveforms of the oscillation signals GP, GN, GB, BUFO, and OSCO in the normal operation mode shown in FIG. 7 are also shown with dashed lines.
[0051] In this embodiment, the PMOS transistor 153 is an example of a first option transistor, and the PMOS transistor 155 is an example of a first switch. The PMOS transistor 154 is an example of a second option transistor, and the PMOS transistor 156 is an example of a second switch. The normal operation mode is an example of a first mode, and the inspection mode is an example of a second mode.
[0052] 1-3.How to check CI value When the CI value of the oscillator 3 increases due to a decrease in the degree of vacuum in the space that houses the oscillator 3 or due to changes over time in the oscillator 3, the oscillation amplitude of the oscillator 3 decreases, and the amplitude of the oscillation signal input from the oscillator 3 through the T1 terminal also decreases. Then, due to the above-mentioned operation of the oscillation circuit 10, the amplitude level of the oscillation signal GB increases, the amplitude level of the oscillation signal GN decreases, and the amplitude of the oscillation signal GP decreases, so that the low-level period of the oscillation signal BUFO becomes shorter and the high-level period becomes longer. As a result, the duty of the oscillation signal OSCO becomes smaller. As described above, in the inspection mode, the selection signal SEL[1:0] is set to any one of "10", "01", and "00", so that the driving capacity on the high potential side becomes larger compared to the normal operation mode. Therefore, the change in the duty of the oscillation signal OSCO relative to the change in the CI value of the oscillator 3 becomes larger. CI is an abbreviation for Crystal Impedance. Hereinafter, the change in duty of the oscillation signal OSCO relative to the change in CI value of the oscillator 3 will be referred to as "duty sensitivity," and a large change in duty of the oscillation signal OSCO relative to the change in CI value of the oscillator 3 will be referred to as "high duty sensitivity."
[0053] 9 is a diagram showing an example of the relationship between the CI value of the oscillator 3 and the duty of the oscillation signal OSCO. As shown in FIG. 9, the duty sensitivity is lowest when the selection signal SEL[1:0] is "11" and is highest when the selection signal SEL[1:0] is "00". For example, in the normal operation mode in which the selection signal SEL[1:0] is set to "11", the CI value is The change in the duty of the oscillation signal OSCO when the CI value rises from the reference value of 50 kΩ to 75 kΩ is about 1%. In contrast, in the test mode, when the selection signal SEL[1:0] is set to "00", the change in the duty of the oscillation signal OSCO when the CI value rises from the reference value of 50 kΩ to 75 kΩ is about 9%.
[0054] As described above, a clock signal CK obtained by buffering the oscillation signal OSCO can be output from the OUT terminal of the oscillator 1. Therefore, in the inspection mode, the inspection device, which is an external device, can inspect the CI value of the resonator 3 by measuring the difference between the duty of the clock signal CK output from the OUT terminal when the CI value of the resonator 3 is a reference value and the reference duty.
[0055] Fig. 10 is a diagram showing the configuration of an inspection system in which an inspection device 100 is connected to an oscillator 1. As shown in Fig. 10, the inspection device 100 is connected to the VDD terminal, the VSS terminal, the OE terminal, and the OUT terminal of the oscillator 1. The ground of the oscillator 1 and the ground of the inspection device 100 are common.
[0056] Fig. 11 is a flow chart showing an example of the procedure of a CI value inspection method by the inspection device 100 in the inspection system of Fig. 10. Also, Fig. 12 is a diagram showing an example of voltage waveforms of each terminal and each signal when inspecting the CI value according to the flow chart of Fig. 11.
[0057] In the example of FIG. 11, first, in step S1, the inspection device 100 supplies a power supply voltage Vdd to the VDD terminal of the oscillator 1. In step S1, the VDD terminal rises from the ground voltage Vss to a desired voltage, as shown in FIG. 12. This generates a reset signal RST that is at a high level for a predetermined period of time, and each bit of the register 52 is initialized. As a result, the current Iosc and the load capacitance of the oscillator circuit 10 are initialized to predetermined values, the test signal TEST is initialized to a high level, and the selection signal SEL[1:0] is initialized to "11."
[0058] Next, in step S2, the inspection device 100 supplies a control signal to the OE terminal of the oscillator 1, and sets the oscillator 1 to the external communication mode. That is, as shown in Fig. 12, the inspection device 100 supplies a signal of a predetermined pattern to the OE terminal of the oscillator 1 within a predetermined period after supplying the power supply voltage Vdd to the VDD terminal, and sets the oscillator 1 to the external communication mode.
[0059] Next, in step S3, the inspection device 100 supplies control signals to the OUT terminal and the OE terminal of the oscillator 1, and transmits a command for writing a set value for the CI value inspection to the register 52. That is, as shown in Fig. 12, the inspection device 100 fixes the logic level of the OE terminal to a high level, and changes the logic level of the OUT terminal from a high level to a low level, thereby establishing a start condition and starting communication. Then, the inspection device 100 inputs a serial clock signal from the OE terminal, inputs a serial data signal from the OUT terminal, and transmits a command for writing a desired value to each bit of the register 52.
[0060] Next, in step S4, the inspection device 100 ends the communication using the OE terminal and the OUT terminal, and sets the oscillator 1 to the inspection mode. That is, as shown in Fig. 12, the inspection device 100 fixes the logic level of the OE terminal to a high level, and changes the logic level of the OUT terminal from a low level to a high level, thereby establishing a stop condition and ending the communication. As a result, the serial interface circuit 51 writes a desired setting value into the register 52, the external communication mode ends, and the oscillator 1 is set to the inspection mode. In the example of Fig. 12, each bit of the selection signal SEL[1:0] is set to a low level.
[0061] Finally, in step S5, the inspection device 100 measures the duty of the clock signal CK output from the OUT terminal and inspects the CI value. For example, the inspection device 100 may calculate the difference between the measured duty of the clock signal CK and a reference duty, and determine the signal as pass if the difference is equal to or smaller than a threshold, and determine the signal as fail if the difference is greater than the threshold.
[0062] 1-4.Effects As described above, in the oscillator 1 of the first embodiment, when the CI value of the resonator 3 changes in the circuit device 2, the amplitude of the signal input from the resonator 3 changes, and as a result, the gate voltage of the NMOS transistor 152 changes under the control of the amplitude control circuit 14, and the duty of the oscillation signal BUFO output from the buffer circuit 15 changes. Also, by turning on the PMOS transistor 155, the PMOS transistor 151 and the PMOS transistor 153 are connected in parallel, the driving capability of the high potential side increases, and the duty sensitivity of the oscillation signal BUFO output from the buffer circuit 15 increases. Also, by turning on both the PMOS transistors 155 and 156, the PMOS transistor 151 and the PMOS transistors 153 and 154 are connected in parallel, the driving capability of the high potential side increases further, and the duty sensitivity of the oscillation signal BUFO increases further. Also, in the test mode, the current Iosc decreases and the capacitance values of the variable capacitance circuits 11 and 12 increase, so that the duty sensitivity of the oscillation signal BUFO increases further. Therefore, according to the oscillator 1 of the first embodiment, in the inspection mode, the inspection device 100 measures the duty of the clock signal CK based on the oscillation signal BUFO with at least one of the PMOS transistors 155, 156 turned on, and can inspect the CI value of the resonator 3 with high accuracy based on the amount of change in the duty from the reference value.
[0063] In addition, in the oscillator 1 of the first embodiment, the OUT terminal for outputting the clock signal CK to the outside can be used both in the normal operation mode with both the PMOS transistors 155 and 156 turned off and in the inspection mode with at least one of the PMOS transistors 155 and 156 turned on, so that an external terminal dedicated to inspection is not required. Furthermore, since the inspection device 100 can measure the duty by monitoring the clock signal CK output from the OUT terminal in the inspection mode, there is no need to provide a duty measurement circuit inside the circuit device 2. Therefore, according to the oscillator 1 of the first embodiment, the inspection device 100 can easily inspect the CI value of the resonator 3.
[0064] 2. Second embodiment In the following, in the second embodiment, the same reference numerals are used for configurations similar to those in the first embodiment, the description of the same parts as in the first embodiment is omitted or simplified, and the differences from the first embodiment are mainly described.
[0065] The structure of the oscillator 1 of the second embodiment is the same as that of FIG. 1 to FIG. 4, and therefore illustration and description thereof are omitted. FIG. 13 is a functional block diagram of the oscillator 1 of the second embodiment. As shown in FIG. 13, in the oscillator 1 of the second embodiment, the test signals TEST1 and TEST2 output from the register 52 and the 2-bit selection signal SEL[1:0] are input to the oscillation circuit 10. When the test signal TEST1 is at a high level, the oscillation circuit 10 outputs an oscillation signal OSCO obtained by amplifying the oscillation signal input from the resonator 3 via the T1 terminal, and when the test signal TEST1 is at a low level, the oscillation circuit 10 fixes the oscillation signal OSCO to a high level. In addition, when the test signal TEST2 is at a high level, the oscillation circuit 10 outputs an oscillation signal OSCO2 obtained by amplifying the oscillation signal input from the resonator 3 via the T1 terminal, and when the test signal TEST2 is at a low level, the oscillation circuit 10 fixes the oscillation signal OSCO2 to a high level. The oscillator circuit 10 changes the rise time and duty of the oscillation signal OSCO2 according to the logic level of the selection signal SEL[1:0].
[0066] Moreover, the oscillator 1 of the second embodiment includes an output buffer 21, and an output signal of a register 52 in the control circuit 50 is input to the first input / output circuit 30. The output buffer 21 receives an oscillation signal OSCO2 output from the oscillation circuit 10 and outputs a clock signal CK2. When outputting the clock signal CK2, the control circuit 50 fixes the input signal to the control terminal of the output buffer 20 to a high level via the first input / output circuit 30 in response to the output signal of the register 52, and controls so that the clock signal CK2 is output from the OE terminal.
[0067] In the oscillator 1 of the second embodiment, in the inspection mode, the output terminal of the output buffer 21 is electrically connected to the T3 terminal via the first input / output circuit 30, and the output terminal of the output buffer 20 is electrically connected to the T4 terminal via the second input / output circuit 40. In addition, in the inspection mode, the input signal to the control terminal of the output buffer 20 is fixed to a high level. That is, in the inspection mode, a clock signal CK is output from the OUT terminal of the oscillator 1, and a clock signal CK2 is output from the OE terminal of the oscillator 1.
[0068] 14 is a diagram showing a configuration example of an oscillator circuit 10 and a constant current circuit 80 in the second embodiment. As shown in FIG 14, the oscillator circuit 10 includes variable capacitance circuits 11 and 12, an amplifier circuit 13, an amplitude control circuit 14, a buffer circuit 15, a two-input NAND circuit 16, a buffer circuit 17, and a two-input NAND circuit 18.
[0069] The buffer circuit 15 includes a PMOS transistor 151 and an NMOS transistor 152. The gate terminal of the PMOS transistor 151 is connected to the other end of the capacitance element 131, one end of the resistor 135, and the gate terminal of the PMOS transistor 136. The drain terminal of the PMOS transistor 151 is connected to the drain terminal of the NMOS transistor 152. The voltage Vosc is supplied to the source terminal of the PMOS transistor 151. The ground voltage Vss is supplied to the source terminal of the NMOS transistor 152. That is, a logic inversion circuit is configured by the PMOS transistor 151 and the NMOS transistor 152, and this logic inversion circuit inverts the logic levels of the oscillation signals GP and GN, and outputs an oscillation signal BUFO in which a voltage near the voltage Vosc is at a high level and a voltage near the ground voltage Vss is at a low level. That is, the buffer circuit 15 receives the oscillation signals GP and GN from the amplifier circuit 13, inverts the logic levels of the oscillation signals GP and GN, and outputs an amplified oscillation signal BUFO.
[0070] The two-input NAND circuit 16 includes PMOS transistors 161 and 162 and NMOS transistors 163 and 164. The gate terminal of the PMOS transistor 161 is connected to the drain terminals of the PMOS transistors 151, 155, and 156, the drain terminal of the NMOS transistor 152, and the gate terminal of the NMOS transistor 163. The drain terminal of the PMOS transistor 161 is connected to the drain terminal of the PMOS transistor 162 and the drain terminal of the NMOS transistor 163. A voltage Vosc is supplied to each of the source terminals of the PMOS transistors 161 and 162. A source terminal of the NMOS transistor 163 and a drain terminal of the NMOS transistor 164 are connected, and a ground voltage Vss is supplied to the source terminal of the NMOS transistor 164. A test signal TEST1 is input to the gate terminal of the PMOS transistor 162 and the gate terminal of the NMOS transistor 164. The two-input NAND circuit 16 thus configured receives the oscillation signal BUFO, which is a signal at the connection node between the drain terminal of the PMOS transistor 151 and the drain terminal of the NMOS transistor 152, and the test signal TEST1, and outputs the oscillation signal OSCO from the connection node between the drain terminal of the PMOS transistor 162 and the drain terminal of the NMOS transistor 163. When the test signal TEST1 is at a high level, the two-input NAND circuit 16 outputs the oscillation signal OSCO, which is an inverted version of the oscillation signal BUFO, and when the test signal TEST1 is at a low level, When this pin is at a negative level, it outputs a high-level oscillation signal OSCO.
[0071] The buffer circuit 17 includes PMOS transistors 171, 173, 174, 175, 176 and an NMOS transistor 172. The gate terminals of the PMOS transistors 171, 173, 174 are connected to the other end of the capacitance element 131, one end of the resistor 135, and the gate terminal of the PMOS transistor 136. The drain terminals of the PMOS transistors 171, 175, 176 are connected to the drain terminal of the NMOS transistor 172. The voltage Vosc is supplied to the source terminals of the PMOS transistors 171, 173, 174. The drain terminal of the PMOS transistor 173 is connected to the source terminal of the PMOS transistor 175, and the drain terminal of the PMOS transistor 174 is connected to the source terminal of the PMOS transistor 176. In this manner, the PMOS transistor 173 is provided in parallel with the PMOS transistor 171, and the PMOS transistor 175 is provided in series with the PMOS transistor 173. Similarly, a PMOS transistor 174 is provided in parallel with the PMOS transistor 171 , and a PMOS transistor 176 is provided in series with the PMOS transistor 174 .
[0072] A lower bit signal SEL[0] of the 2-bit selection signal SEL is input to a gate terminal of the PMOS transistor 175, and an upper bit signal SEL[1] of the 2-bit selection signal SEL is input to a gate terminal of the PMOS transistor 176. A gate terminal of the NMOS transistor 172 is connected to the other end of the capacitance element 133, the gate terminal of the NMOS transistor 137, the other end of the capacitance element 143, the drain terminal of the PMOS transistor 145, and the gate terminal and drain terminal of the NMOS transistor 146. A ground voltage Vss is supplied to the source terminal of the NMOS transistor 172.
[0073] When the selection signal SEL[1:0] is "11", both PMOS transistors 175 and 176 are turned off, and a logic inversion circuit is formed by the PMOS transistor 171 and the NMOS transistor 172. When the selection signal SEL[1:0] is "10", the PMOS transistor 175 is turned on and the PMOS transistor 176 is turned off, and a logic inversion circuit is formed by the PMOS transistors 171, 173 and the NMOS transistor 172. When the selection signal SEL[1:0] is "01", the PMOS transistor 175 is turned off and the PMOS transistor 176 is turned on, and a logic inversion circuit is formed by the PMOS transistors 171, 174 and the NMOS transistor 172. When the selection signal SEL[1:0] is “00”, the PMOS transistors 175 and 176 are both turned on, and the PMOS transistors 171, 173, and 174 and the NMOS transistor 172 form a logic inversion circuit.
[0074] Each of these logic inversion circuits inverts the logic levels of the oscillation signals GP and GN, and outputs an oscillation signal BUFO2 in which a voltage near the voltage Vosc is at a high level and a voltage near the ground voltage Vss is at a low level. That is, the buffer circuit 17 receives the oscillation signals GP and GN from the amplifier circuit 13, inverts the logic levels of the oscillation signals GP and GN, and outputs the amplified oscillation signal BUFO2.
[0075] When the selection signal SEL[1:0] is "11", the PMOS transistor 171 is connected between the power supply and the output node of the oscillation signal BUFO2. In contrast, when the selection signal SEL[1:0] is "10" or "01", the PMOS transistor 173 or PMOS transistor 174 is connected in parallel to the PMOS transistor 171 between the power supply and the output node of the oscillation signal BUFO2. Therefore, compared to when the selection signal SEL[1:0] is "11", the driving capability on the high potential side is larger and the rise of the oscillation signal BUFO2 is faster. Furthermore, when the selection signal SEL[1:0] is "00", the PMOS transistors 173 and 174 are connected in parallel to the PMOS transistor 171 between the power supply and the output node of the oscillation signal BUFO2, so that the driving capability on the high potential side is larger and the rise of the oscillation signal BUFO2 becomes even steeper than when the selection signal SEL[1:0] is "11", "10", or "01".
[0076] In this embodiment, the W / L ratio of the PMOS transistor 174 is greater than that of the PMOS transistor 173. Therefore, when the selection signal SEL[1:0] is "01", the driving capability on the high potential side is greater and the rise of the oscillation signal BUFO2 is steeper than when the selection signal SEL[1:0] is "10". W is the gate width of the PMOS transistor, and L is the gate length of the PMOS transistor.
[0077] Furthermore, in this embodiment, the W / L ratio of the PMOS transistor 174 is greater than the W / L ratio of the PMOS transistor 171. Therefore, when the selection signal SEL[1:0] is "00", the driving capability on the high potential side is more than twice as large as when the selection signal SEL[1:0] is "11", and the rise of the oscillation signal BUFO2 becomes very steep.
[0078] The two-input NAND circuit 18 includes PMOS transistors 181 and 182 and NMOS transistors 183 and 184. The gate terminal of the PMOS transistor 181 is connected to the drain terminals of the PMOS transistors 171, 175, and 176, the drain terminal of the NMOS transistor 172, and the gate terminal of the NMOS transistor 183. The drain terminal of the PMOS transistor 181 is connected to the drain terminal of the PMOS transistor 182 and the drain terminal of the NMOS transistor 183. A voltage Vosc is supplied to each of the source terminals of the PMOS transistors 181 and 182. The source terminal of the NMOS transistor 183 and the drain terminal of the NMOS transistor 184 are connected, and a ground voltage Vss is supplied to the source terminal of the NMOS transistor 184. A test signal TEST2 is input to the gate terminal of the PMOS transistor 182 and the gate terminal of the NMOS transistor 184. The two-input NAND circuit 18 thus configured receives the oscillation signal BUFO2, which is a signal at the connection node between the drain terminal of the PMOS transistor 171 and the drain terminal of the NMOS transistor 172, and the test signal TEST2, and outputs an oscillation signal OSCO2 from the connection node between the drain terminal of the PMOS transistor 182 and the drain terminal of the NMOS transistor 183. When the test signal TEST2 is at a high level, the two-input NAND circuit 18 outputs the oscillation signal OSCO2, which is an inverted logical level of the oscillation signal BUFO2, and when the test signal TEST2 is at a low level, it outputs a high-level oscillation signal OSCO2.
[0079] Other configurations and functions of the oscillator circuit 10 of the second embodiment are similar to those of the first embodiment, so their description will be omitted. Also, the configurations and functions of the constant current circuit 80 in the second embodiment are similar to those of the first embodiment, so their description will be omitted. Also, other configurations of the oscillator 1 of the second embodiment are similar to those of the first embodiment, so their description will be omitted. Note that in the second embodiment, the PMOS transistor 173 is an example of a first option transistor, and the PMOS transistor 175 is an example of a first switch. Also, the PMOS transistor 174 is an example of a second option transistor, and the PMOS transistor 176 is an example of a second switch. Also, the normal operation mode is an example of a first mode, and the inspection mode is an example of a second mode.
[0080] In the oscillator 1 of the second embodiment, as in the first embodiment, the setting value of the register 52 is changed so that the current Iosc is smaller in the inspection mode than in the normal operation mode. That is, in the normal operation mode, the current Iosc is set to a first current amount, and in the inspection mode, the current Iosc is set to a second current amount smaller than the first current amount. In the test mode, the setting value of the register 52 is changed so that the capacitance values of the variable capacitance circuits 11 and 12 functioning as the load capacitance of the oscillation circuit 10 are increased compared to the normal operation mode. That is, the load capacitance of the oscillation circuit 10 in the test mode is greater than that in the normal operation mode. In the test mode, the selection signal SEL[1:0] is further set to any one of "10", "01", and "00", and the rise of the oscillation signal BUFO2 becomes steeper compared to the normal operation mode. As a result, the high-level period of the oscillation signal OSCO2 becomes shorter and the low-level period becomes longer, and the duty of the oscillation signal OSCO2 becomes smaller than 50%. In addition, by setting the selection signal SEL[1:0] to any one of "10", "01", and "00", the driving capability on the high potential side becomes larger compared to the normal operation mode, and the duty sensitivity becomes higher.
[0081] As described above, in the inspection mode, the clock signal CK2, which is the oscillation signal OSCO2 buffered, is output from the OE terminal of the oscillator 1. Therefore, in the inspection mode, the inspection device 100 can inspect the CI value of the resonator 3 by measuring the difference between the duty of the clock signal CK2 output from the OE terminal when the CI value of the resonator 3 is a reference value and the reference duty, using the duty of the clock signal CK2 output from the OE terminal as a reference duty. Furthermore, in the inspection mode, since the clock signal CK2 is output from the OE terminal, the inspection device 100 can inspect the CI value of the resonator 3 by measuring the duty of the clock signal CK2 output from the OE terminal while monitoring the clock signal CK during normal operation from the OUT terminal.
[0082] For example, the driving capability of the PMOS transistors 173, 175 may be made higher than that of the PMOS transistors 153, 155 in the first embodiment. This further increases the duty sensitivity, so that when the duty of the oscillation signal OSCO2 becomes 0% due to an increase in the CI value of the oscillator 3, the output of the clock signal CK2 from the OE terminal stops. Therefore, the inspection device 100 can inspect the CI value of the oscillator 3 based on whether the output of the clock signal CK2 stops. When the output of the clock signal CK2 from the OE terminal stops, it is possible that the oscillation of the oscillator 3 has stopped due to some cause other than the increase in the CI value. In response to this, the inspection device 100 can determine whether the cause of the stop of the output of the clock signal CK2 from the OE terminal is the increase in the CI value based on whether the clock signal CK is output from the OUT terminal.
[0083] 3. Variations The present invention is not limited to the present embodiment, and various modifications are possible within the scope of the present invention.
[0084] For example, the oscillator 1 in the above embodiment is a simple oscillator such as SPXO, but may be an oscillator having a temperature compensation function such as TCXO, or may be an oscillator having a frequency control function such as VCXO. SPXO is an abbreviation for Simple Packaged Crystal Oscillator. TCXO is an abbreviation for Temperature Compensated Crystal Oscillator. VCXO is an abbreviation for Voltage Controlled Crystal Oscillator. Moreover, the oscillator 1 may be an oscillator having a temperature compensation function and a frequency control function such as VC-TCXO, or may be an oscillator having a temperature control function such as OCXO. VC-TCXO is an abbreviation for Voltage Controlled Temperature Compensated Crystal Oscillator. Moreover, OCXO is an abbreviation for Oven Controlled Crystal Oscillator.
[0085] In the above embodiment, a signal for controlling the output of the output buffer 20 is input to the T3 terminal, but other control signals may be input. For example, a control signal for setting the oscillator 1 to a standby mode may be input to the T3 terminal, or if the oscillator 1 is an oscillator having a frequency control function such as a VCXO, a control signal for controlling the frequency of the clock signal CK may be input to the T3 terminal. A signal for this purpose may be input.
[0086] The above-described embodiment and modifications are merely examples, and the present invention is not limited to these. For example, the embodiments and modifications can be appropriately combined.
[0087] The present invention includes configurations that are substantially the same as the configurations described in the embodiments, for example, configurations with the same functions, methods, and results, or configurations with the same purpose and effects. The present invention also includes configurations in which non-essential parts of the configurations described in the embodiments are replaced. The present invention also includes configurations that achieve the same effects as the configurations described in the embodiments, or configurations that can achieve the same purpose. The present invention also includes configurations in which publicly known technology is added to the configurations described in the embodiments.
[0088] The following can be derived from the above-described embodiment and modifications.
[0089] One aspect of the circuit device is an amplifier circuit that amplifies a signal input from a transducer and outputs the signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch disposed in series with the first option transistor.
[0090] In this circuit device, when the CI value of the vibrator changes, the amplitude of the signal input from the vibrator changes, and as a result, the gate voltage of the NMOS transistor changes under the control of the amplitude control circuit, and the duty of the oscillation signal output from the buffer circuit changes. Also, by turning on the first switch, the PMOS transistor and the first optional transistor are connected in parallel, increasing the driving capacity on the high potential side, and increasing the duty sensitivity of the oscillation signal output from the buffer circuit. Therefore, according to this circuit device, the inspection device measures the duty of the oscillation signal output from the buffer circuit with the first switch turned on, and can inspect the CI value of the vibrator based on the amount of change in the duty from the reference value.
[0091] In addition, in this circuit device, the external terminal for outputting the oscillation signal to the outside can be used both when the first switch is turned on and off, so there is no need for an external terminal dedicated to testing. Furthermore, since the testing device can measure the duty by monitoring the oscillation signal output from the external terminal, there is no need to provide a duty measurement circuit inside the circuit device. Therefore, with this circuit device, the testing device can easily test the CI value of the resonator.
[0092] In one embodiment of the circuit device, In a first mode, the first switch may be turned off and the variable current may be set to a first current amount, and in a second mode, the first switch may be turned on and the variable current may be set to a second current amount smaller than the first current amount.
[0093] In this circuit device, in the second mode, the first switch is turned on, so that the duty sensitivity of the oscillation signal becomes higher than that in the first mode, and the variable current becomes smaller, so that the duty sensitivity becomes even higher. Therefore, with this circuit device, it is possible to improve the inspection accuracy of the CI value of the resonator by the inspection device.
[0094] In one embodiment of the circuit device, The buffer circuit may include a second option transistor arranged in parallel with the PMOS transistor, and a second switch arranged in series with the second option transistor.
[0095] In this circuit device, by turning on both the first switch and the second switch, the PMOS transistor, the first optional transistor, and the second optional transistor are connected in parallel, increasing the driving capability on the high potential side and increasing the duty sensitivity of the oscillation signal output from the buffer circuit. Therefore, this circuit device can improve the inspection accuracy of the CI value of the resonator by an inspection device.
[0096] In one embodiment of the circuit device, The W / L ratio of the second option transistor may be greater than the W / L ratio of the PMOS transistor.
[0097] In this circuit device, by turning on the second switch, the driving capability on the high potential side becomes more than twice as high as when the second switch is off, and the duty sensitivity of the oscillation signal output from the buffer circuit becomes high. Therefore, this circuit device can improve the inspection accuracy of the CI value of the resonator by an inspection device.
[0098] One aspect of the circuit device is A variable capacitance circuit is provided which is connected to the vibrator, A capacitance value of the variable capacitance circuit in the second mode may be greater than a capacitance value of the variable capacitance circuit in the first mode.
[0099] In this circuit device, in the second mode, the capacitance value of the variable capacitance circuit connected to the vibrator is larger than that in the first mode, thereby increasing the duty sensitivity of the oscillation signal. Therefore, this circuit device can improve the inspection accuracy of the CI value of the vibrator by an inspection device.
[0100] One embodiment of the oscillator is A vibrator; A circuit device connected to the transducer; a container that houses the vibrator and the circuit device, The circuit device comprises: an amplifier circuit that amplifies a signal input from the transducer and outputs the amplified signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch disposed in series with the first option transistor.
[0101] In this oscillator, when the CI value of the vibrator in the circuit device changes, the amplitude of the signal input from the vibrator changes, and as a result, the gate voltage of the NMOS transistor changes under the control of the amplitude control circuit, and the duty of the oscillation signal output from the buffer circuit changes. Also, by turning on the first switch, the PMOS transistor and the first optional transistor are connected in parallel, increasing the driving capacity of the high-potential side, and the buffer circuit Therefore, with this oscillator, the inspection device measures the duty of the oscillation signal output from the buffer circuit while the first switch is on, and can inspect the CI value of the resonator based on the amount of change in the duty from the reference value.
[0102] In addition, in this oscillator, the external terminal for outputting the oscillation signal to the outside can be used both when the first switch is turned on and off, so there is no need for an external terminal dedicated to testing. Furthermore, since the testing device can measure the duty by monitoring the oscillation signal output from the external terminal, there is no need to provide a duty measurement circuit inside the circuit device. Therefore, with this oscillator, the testing device can easily test the CI value of the resonator. [Explanation of symbols]
[0103] 1...oscillator, 2...circuit device, 3...vibrator, 3a...excitation electrode, 3b...excitation electrode, 4...package, 5...lid, 6...external terminal, 7,7a,7b...accommodation chamber, 8...sealing member, 10...oscillator circuit, 11,12...variable capacitance circuit, 13...amplifier circuit, 14...amplitude control circuit, 15...buffer circuit, 16...two-input NAND circuit, 17...buffer circuit, 18...two-input NAND circuit, 20...output buffer, 21...output buffer, 30...first input / output circuit, 40...second input / output circuit, 50...control circuit, 51...serial interface circuit, 52...register, 60...power-on reset circuit, 70...constant voltage circuit, 80...constant current circuit, 81...current source, 82,83...PMOS transistor, 84,85...NMOS transistor, 100 ...Inspection equipment, 131, 132, 133...Capacitive element, 134, 135...Resistor, 136...PMOS transistor, 137...NMOS transistor, 141...Resistor, 142, 143...Capacitive element, 144, 145...PMOS transistor, 146...NMOS transistor, 151...PMOS transistor, 152...NMOS transistor, 153, 154, 155, 156...PMOS transistor, 161, 162...PMOS transistor, 163, 164...NMOS transistor, 171...PMOS transistor, 172...NMOS transistor, 173, 174, 175, 176...PMOS transistor, 181, 182...PMOS transistor, 183, 184...NMOS transistor
Claims
1. an amplifier circuit that amplifies a signal input from a transducer and outputs the signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch disposed in series with the first option transistor.
2. In claim 1, A circuit device, wherein in a first mode, the first switch is turned off and the variable current is set to a first current amount, and in a second mode, the first switch is turned on and the variable current is set to a second current amount smaller than the first current amount.
3. In claim 1, The buffer circuit includes a second option transistor arranged in parallel with the PMOS transistor, and a second switch arranged in series with the second option transistor.
4. In claim 3, A circuit arrangement, wherein a W / L ratio of the second option transistor is greater than a W / L ratio of the PMOS transistor.
5. In claim 2, A variable capacitance circuit is provided which is connected to the vibrator, A circuit device, wherein a capacitance value of the variable capacitance circuit in the second mode is greater than a capacitance value of the variable capacitance circuit in the first mode.
6. A vibrator; A circuit device connected to the transducer; a container that houses the vibrator and the circuit device, The circuit device comprises: an amplifier circuit that amplifies a signal input from the transducer and outputs the amplified signal to the transducer; a buffer circuit to which a signal from the amplifier circuit is input and which has a PMOS transistor and an NMOS transistor; an amplitude control circuit that controls a gate voltage of the NMOS transistor of the buffer circuit in response to a variable current; The buffer circuit includes: a first option transistor in parallel with the PMOS transistor; a first switch in series with the first option transistor.
Citation Information
Patent Citations
Method for measuring ci of crystal vibrator and crystal oscillation circuit
JP1998339755A
