Japanese Patent Application No. 2008-40437 filed on Feb. 21, 2008, is hereby incorporated by reference in its entirety.
The present invention relates to an integrated circuit device, an electronic instrument, and the like.
In order to implement a ubiquitous network society, a sensor network that is formed by connecting a plurality of sensors through a network and acquires information from each sensor to comprehensively determine the situation is necessary. Such a sensor network utilizes various sensors such as a temperature sensor, a smoke sensor, an optical sensor, a human detection sensor, a pressure sensor, a biosensor, and a gyrosensor. A sensor detection signal varies in amplitude, DC offset, frequency band, and the like corresponding to the type of sensor.
Since the sensor detection signal (sensor signal) is an analog signal, the analog sensor detection signal must be converted into digital data in order to analyze and determine information using a CPU or the like. For example, JP-A-2007-117586 and JP-A-2007-285745 disclose A/D converters that convert an analog detection signal output from a sensor into digital data.
However, an integrated circuit device (IC) that includes such an A/D converter has been generally developed as a sensor-specific integrated circuit device. Therefore, when a new sensor has been developed, an integrated circuit device for the new sensor must be developed and produced by way of trial. This process is very expensive. In this case, a general-purpose integrated circuit device may be used. However, since a sensor detection signal varies in amplitude and DC offset corresponding to the type of sensor, it is substantially impossible to deal with a new sensor using a general-purpose integrated circuit device. Therefore, the user cannot easily produce an integrated circuit device for various sensors by way of trial.
In order to deal with various sensors, it is desirable to arbitrarily adjust the offset and the gain of a sensor detection signal that varies in amplitude and DC offset corresponding to the type of sensor.
However, when implementing such an offset adjustment and the like using a single-stage amplifier and a single-stage D/A converter provided corresponding to the single-stage amplifier, an increase in the size of the D/A converter, a decrease in response speed, or the like may occur.
According to one aspect of the invention, there is provided an integrated circuit device comprising:
an amplifier circuit that includes first to Nth (N is an integer equal to or larger than two) amplifiers and receives an input signal, the first to Nth amplifiers being cascaded;
an A/D converter that performs an A/D conversion process on a signal amplified by the amplifier circuit;
first to Nth offset adjustment registers that are provided corresponding to the first to Nth amplifiers and store first to Nth offset adjustment data, the first to Nth offset adjustment data being used to perform an offset adjustment of the first to Nth amplifiers;
first to Nth D/A converters that are provided corresponding to the first to Nth amplifiers and used to perform an offset adjustment based on the first to Nth offset adjustment data;
first to Nth offset value storage sections that store first to Nth offset value data, the first to Nth offset value data being offset value data of the first to Nth amplifiers; and
a control circuit that calculates the first to Nth offset adjustment data based on the first to Nth offset value data stored in the first to Nth offset value storage sections, and sets the first to Nth offset adjustment data in the first to Nth offset adjustment registers.
According to another aspect of the invention, there is provided an electronic instrument comprising the above integrated circuit device.
Several aspects of the invention may provide an integrated circuit device that implements an accurate offset adjustment and the like while suppressing an increase in circuit scale, an electronic instrument including the same, and the like.
According to one embodiment of the invention, there is provided an integrated circuit device comprising:
an amplifier circuit that includes first to Nth (N is an integer equal to or larger than two) amplifiers and receives an input signal, the first to Nth amplifiers being cascaded;
an A/D converter that performs an A/D conversion process on a signal amplified by the amplifier circuit;
first to Nth offset adjustment registers that are provided corresponding to the first to Nth amplifiers and store first to Nth offset adjustment data, the first to Nth offset adjustment data being used to perform an offset adjustment of the first to Nth amplifiers;
first to Nth D/A converters that are provided corresponding to the first to Nth amplifiers and used to perform an offset adjustment based on the first to Nth offset adjustment data;
first to Nth offset value storage sections that store first to Nth offset value data, the first to Nth offset value data being offset value data of the first to Nth amplifiers; and
a control circuit that calculates the first to Nth offset adjustment data based on the first to Nth offset value data stored in the first to Nth offset value storage sections, and sets the first to Nth offset adjustment data in the first to Nth offset adjustment registers.
According to this embodiment, the first to Nth offset adjustment registers and the first to Nth D/A converters are provided corresponding to the first to Nth amplifiers of the amplifier circuit. The first to Nth offset value storage sections that store the first to Nth offset value data of the first to Nth amplifiers are also provided. The control circuit calculates the first to Nth offset adjustment data based on the first to Nth offset value data stored in the first to Nth offset value storage sections, and sets the first to Nth offset adjustment data in the first to Nth offset adjustment registers. The first to Nth D/A converters perform an offset adjustment of the first to Nth amplifiers based on the first to Nth offset value data set in the first to Nth offset value storage sections. Specifically, this embodiment implements an offset adjustment and the like by utilizing the multi-stage amplifier/multi-stage DAC configuration. Therefore, an accurate offset adjustment and the like can be implemented while suppressing an increase in circuit scale as compared with the case of using a single-stage amplifier/single-stage DAC configuration.
In the integrated circuit device may further comprise:
first to Nth gain adjustment registers that are provided corresponding to the first to Nth amplifiers and store first to Nth gain adjustment data, the first to Nth gain adjustment data being used to perform a gain adjustment of the first to Nth amplifiers.
This makes it possible to implement a gain adjustment corresponding to the amplitude of the input signal, for example. Moreover, the gain of each of the first to Nth amplifiers can be set individually.
In the integrated circuit device,
the control circuit may calculate the first to Nth offset value data based on digital data from the A/D converter and gains of the first to Nth amplifiers, and may set the first to Nth offset value data in the first to Nth offset value storage sections when performing amplifier offset calibration of the first to Nth amplifiers.
According to this configuration, offset calibration that calculates the first to Nth offset value data that corresponds to the offset voltages of the first to Nth amplifiers can be performed while setting the gains of the first to Nth amplifiers at various values. Therefore, the measurement accuracy of offset calibration can be improved, for example.
In the integrated circuit device,
the control circuit may perform jth (j is an integer that satisfies 1<j≦N) offset calibration that measures an offset voltage of a jth amplifier among the first to Nth amplifiers, then may perform (j−1)th offset calibration that measures an offset voltage of a (j−1)th amplifier among the first to Nth amplifiers that is provided in a preceding stage of the jth amplifier when performing amplifier offset calibration of the first to Nth amplifiers.
An efficient offset calibration can be implemented by performing offset calibration in the order from the subsequent-stage amplifier among the first to Nth amplifiers.
In the integrated circuit device,
the control circuit may perform jth (j is an integer that satisfies 1<j≦N) offset calibration that measures an offset voltage of a jth amplifier among the first to Nth amplifiers, during the jth offset calibration the control circuit may calculate a jth offset value data among the first to Nth offset value data based on digital data from the A/D converter and a gain of the jth amplifier, and may set the jth offset value data in a jth offset value storage section among the first to Nth offset value storage sections, and
the control circuit may perform (j−1)th offset calibration that measures an offset voltage of a (j−1)th amplifier among the first to Nth amplifiers, during the (j−1)th offset calibration the control circuit may calculate the jth offset adjustment data based on the jth offset value data, may set the jth offset adjustment data in the jth offset adjustment register, may calculate a (j−1)th offset value data among the first to Nth offset value data based on the digital data from the A/D converter, a gain of the (j−1)th amplifier, and the gain of the jth amplifier, and may set the (j−1)th offset value data in a (j−1)th offset value storage section among the first to Nth offset value storage sections.
According to this configuration, the jth offset value data is calculated based on the digital data from the A/D converter and the gain of the jth amplifier when performing jth offset calibration. In (j−1)th offset calibration, the jth offset adjustment data calculated based on the jth offset value data is set in the jth offset adjustment register. The digital data from the A/D converter is monitored in this state so that the (j−1)th offset value data can be calculated based on the monitored digital data, the gain of the (j−1)th amplifier, and the gain of the jth amplifier.
In the integrated circuit device,
the control circuit may set the gain of the (j−1)th amplifier and the gain of the jth amplifier so that the gain of the (j−1)th amplifier is higher than the gain of the jth amplifier when performing the (j−1)th offset calibration.
According to this configuration, since the gain of the (j−1)th amplifier subjected to offset calibration increases, the measurement accuracy of the (j−1)th offset value data corresponding to the (j−1)th amplifier can be improved.
In the integrated circuit device,
the control circuit may perform (j−2)th offset calibration that measures an offset voltage of a (j−2)th amplifier among the first to Nth amplifiers, during the (j−2)th offset calibration the control circuit may calculate (j−1)th offset adjustment data among the first to Nth offset adjustment data based on the (j−1)th offset value data, may set the (j−1)th offset adjustment data in a (j−1)th offset adjustment register among the first to Nth offset adjustment registers, may calculate jth offset adjustment data among the first to Nth offset adjustment data based on the (j−1)th offset value data and the jth offset value data, may set the jth offset adjustment data in a jth offset adjustment register among the first to Nth offset adjustment registers, may calculate (j−2)th offset value data among the first to Nth offset value data based on the digital data from the A/D converter, a gain of the (j−2)th amplifier, the gain of the (j−1)th amplifier, and the gain of the jth amplifier, and may set the (j−2)th offset value data in a (j−2)th offset value storage section among the first to Nth offset value storage sections.
According to this configuration, when performing the (j−2)th offset calibration, the (j−1)th offset adjustment data calculated based on the (j−1)th offset value data is set in the (j−1)th offset adjustment register, and the jth offset adjustment data calculated based on the (j−1)th offset value data and the jth offset value data is set in the jth offset adjustment register. The digital data from the A/D converter is monitored in this state so that the (j−2)th offset value data can be calculated based on the monitored digital data, the gain of the (j−2)th amplifier, the gain of the (j−1)th amplifier, and the gain of the jth amplifier.
In the integrated circuit device,
the control circuit may calculate the jth offset adjustment data based on a rounding error value, the gain of the (j−1)th amplifier, and the jth offset value data, and may set the jth offset adjustment data in the jth offset adjustment register when performing the (j−2)th offset calibration, the rounding error value being due to a rounding calculation process that calculates the (j−1)th offset adjustment data based on the (j−1)th offset value data.
According to this configuration, since the rounding error value due to the rounding calculation process that calculates the (j−1)th offset adjustment data can be reflected in the jth offset adjustment data and set in the jth offset adjustment register, the offset calibration accuracy can be further improved.
In the integrated circuit device,
the control circuit may calculate the first to Nth offset adjustment data based on the first to Nth offset value data stored in the first to Nth offset value storage sections, and may set the first to Nth offset adjustment data in the first to Nth offset adjustment registers when performing signal offset calibration of the input signal.
According to this configuration, the first to Nth offset adjustment data can be set using the first to Nth offset value data stored in the first to Nth offset value storage sections. Therefore, signal offset calibration of the input signal can be performed in a state in which the offset voltages of the first to Nth amplifiers are canceled, for example.
In the integrated circuit device,
the control circuit may calculate ith (i is an integer that satisfies 1≦i−N) offset adjustment data among the first to Nth offset adjustment data, may set the ith offset adjustment data in an ith offset adjustment register among the first to Nth offset adjustment registers, may calculate (i+1)th offset adjustment data among the first to Nth offset adjustment data, and may set the (i+1)th offset adjustment data in an (i+1)th offset adjustment register among the first to Nth offset adjustment registers when performing the signal offset calibration.
An efficient signal offset calibration can be implemented by performing signal offset calibration in the order from the preceding-stage amplifier among the first to Nth amplifiers.
In the integrated circuit device,
the control circuit may calculate ith (i is an integer that satisfies 1≦i<N) offset adjustment data based on ith offset value data among the first to Nth offset value data, may set the ith offset adjustment data in an ith offset adjustment register among the first to Nth offset adjustment registers,
the control circuit may calculate (i+1)th offset adjustment data among the first to Nth offset adjustment data based on the ith offset value data, (i+1)th offset value data among the first to Nth offset value data, and a gain of an ith amplifier among the first to Nth amplifiers, and may set (i+1)th offset adjustment data in an (i+1)th offset adjustment register among the first to Nth offset adjustment registers.
According to this configuration, the ith offset adjustment data calculated based on the ith offset value data is set in the ith offset adjustment register, and the (i+1)th offset adjustment data calculated based on the ith offset value data, the (i+1)th offset value data, and the gain of the ith amplifier is set in the (i+1)th offset adjustment register.
In the integrated circuit device,
the control circuit may calculate the (i+1)th offset adjustment data based on a rounding error value, the gain of the ith amplifier, and the (i+1)th offset value data, and may set the (i+1)th offset adjustment data in the (i+1)th offset adjustment register, the rounding error value being due to a rounding calculation process that calculates the ith offset adjustment data based on the ith offset value data.
According to this configuration, since the rounding error value due to the rounding calculation process that calculates the ith offset adjustment data can be reflected in the (i+1)th offset adjustment data and set in the (i+1)th offset adjustment register, the signal offset calibration accuracy can be further improved.
In the integrated circuit device,
the control circuit may calculate signal offset value data of the input signal based on digital data from the A/D converter and gains of the first to Nth amplifiers after the first to Nth offset adjustment data has been set in the first to Nth offset adjustment registers.
According to this configuration, accurate signal offset value data can be calculated.
In the integrated circuit device,
the control circuit may set the gains of the first to Nth amplifiers at gains under a first gain condition, and may calculate signal offset value data of the input signal,
the control circuit may set the gains of the first to Nth amplifiers at gains under a second gain condition, and again may calculate the signal offset value data of the input signal, the gains under the second gain condition being set to be higher than the gains under the first gain condition.
The measurement accuracy can be further improved by again measuring the signal offset value data while changing the gain condition.
In the integrated circuit device may further comprise:
a determination circuit that determines whether or not a voltage of an output signal from each of the first to Nth amplifiers is within a determination voltage range specified by a high-potential-side determination voltage and a low-potential-side determination voltage,
the control circuit may set the gains under the second gain condition based on a determination result of the determination circuit.
According to this configuration, the signal offset value data can be measured again under the second gain condition having an optimum gain setting corresponding to the signal amplitude.
According to another embodiment of the invention, there is provided an electronic instrument comprising one of the above integrated circuit devices.
Preferred embodiments of the invention are described in detail below. Note that the following embodiments do not in any way limit the scope of the invention defined by the claims laid out herein. Note that all elements of the following embodiments should not necessarily be taken as essential requirements for the invention.
1. Integrated Circuit Device
The amplifier circuit 10 includes a plurality of amplifiers AM1 to AM3 (first to Nth amplifiers in a broad sense; N is an integer equal to or larger than two). The amplifier circuit 10 receives an input signal VI, and amplifies the input signal VI. The amplifiers AM1 to AM3 are cascaded, for example. Specifically, the amplifier AM1 receives the input signal VI from a sensor or the like, and outputs an output signal AQ1 to the amplifier AM2. The amplifier AM2 receives the output signal AQ1 from the amplifier AM1, and outputs an output signal AQ2 to the amplifier AM3. The amplifier AM3 receives the output signal AQ2 from the amplifier AM2, and outputs an output signal AQ3 to the A/D converter 50, for example. Note that the number of stages of amplifiers included in the amplifier circuit 10 is not limited to three. Various modifications may be made such as changing the number of stages of amplifiers to two or four or more, for example.
The offset adjustment registers RA1 to RA3 (first to Nth offset adjustment registers in a broad sense) are provided corresponding to the amplifiers AM1 to AM3 (first to Nth amplifiers). The offset adjustment registers RA1 to RA3 store offset adjustment data DA1 to DA3 (first to Nth offset adjustment data in a broad sense). The offset adjustment data DA1 to DA3 is offset adjustment data for the amplifiers AM1 to AM3, and is respectively input to the D/A converters DAC1 to DAC3, for example. The offset adjustment registers RA1 to RA3 may be implemented by a flip-flop, a memory (RAM), or the like.
The D/A converters DAC1 to DAC3 (first to Nth D/A converters in a broad sense) are provided corresponding to the amplifiers AM1 to AM3. The D/A converters DAC1 to DAC3 perform an offset adjustment (amplifier offset adjustment or signal offset adjustment) based on the offset adjustment data DA1 to DA3, respectively.
Specifically, the D/A converter DAC1 outputs a voltage VD1 corresponding to the offset adjustment data DA1. An offset adjustment of the amplifier AM1 is implemented by adding the voltage VD1 output from the D/A converter DAC1 to the voltage of the input signal VI. This makes it possible to cancel an offset voltage VOS1 of an operational amplifier of the amplifier AM1, or cancel the DC offset of the input signal VI. Likewise, the D/A converters DAC2 and DAC3 output voltages VD2 and VD3 corresponding to the offset adjustment data DA2 and DA3, respectively. An offset adjustment of the amplifiers AM2 and AM3 is implemented by adding the voltages VD2 and VD3 output from the D/A converters DAC2 and DAC3 to the voltages of the output signals AQ1 and AQ2 from the amplifiers AM1 and AM2, respectively. This makes it possible to cancel offset voltages VOS2 and VOS3 of operational amplifiers of the amplifiers AM2 and AM3, or cancel the DC offset of the input signal VI. A D/A converter using a ladder resistor circuit or the like may be used as the D/A converters DAC1 to DAC3. Specifically, a D/A converter that includes a ladder resistor circuit and an operational amplifier provided in the subsequent stage of the ladder resistor circuit may be used as the D/A converters DAC1 to DAC3.
The gain adjustment registers RG1 to RG3 (first to Nth gain adjustment registers in a broad sense) are provided corresponding to the amplifiers AM1 to AM3. The gain adjustment registers RG1 to RG3 store gain adjustment data DG1 to DG3 (first to Nth gain adjustment data in a broad sense). The gain adjustment data DG1 to DG3 adjusts the gains G1 to G3 of the amplifiers AM1 to AM3. Specifically, the gains G1 to G3 of the amplifiers AM1 to AM3 are adjusted by adjusting the resistances of resistors (element values of passive elements) included in the amplifiers AM1 to AM3 based on the gain adjustment data DG1 to DG3, for example. This makes it possible to implement a gain adjustment corresponding to the amplitude of the input signal VI. The gain adjustment registers RG1 to RG3 may be implemented by a flip-flop, a memory, or the like.
The offset value storage sections RV1 to RV3 (first to Nth offset value storage sections in a broad sense) store offset value data DV1 to DV3 (first to Nth offset value data in a broad sense) that is offset value data relating to the amplifiers AM1 to AM3. The offset value data DV1 to DV3 respectively corresponds to the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3, for example. The offset adjustment data DA1 to DA3 may be set based on the offset value data DV1 to DV3, the 1LSB-equivalent voltages of the D/A converters DAC1 to DAC3, and the like, for example.
The offset value storage sections RV1 to RV3 may be implemented by a register formed by a flip-flop, a memory, or the like, or may be implemented by a nonvolatile memory (e.g., EEPROM), a fuse element, or the like.
In
The A/D converter 50 performs an A/D conversion process on a signal amplified by the amplifier circuit 10. Specifically, a high-potential-side reference voltage VRP and a low-potential-side reference voltage VRN that specify (set) the input voltage range of the A/D converter 50 are supplied to the A/D converter 50. The A/D converter 50 performs the A/D conversion process at a resolution of n bits (e.g., n=10) in the input voltage range specified by the high-potential-side reference voltage VRP and the low-potential-side reference voltage VRN, and outputs digital data ADQ (digital output value) obtained by the A/D conversion process. For example, the A/D converter 50 samples/holds the signal AQ3 output from the amplifier circuit 10 using an A/D conversion sampling clock signal, and performs the A/D conversion process on the sampled/held signal. Note that a prefilter such as an RC filter or a switched capacitor filter (SCF) may be provided in the preceding stage of the A/D converter 50 (i.e., between the A/D converter and the amplifier circuit).
A successive approximation type A/D converter may be used as the A/D converter 50, for example. In this case, the A/D converter 50 may include a sample-hold circuit, a comparator, a successive approximation register, and a D/A converter (not shown). The comparator compares an analog signal obtained by a D/A conversion process and output from the D/A converter with a sampled/held signal output from the sample-hold circuit. The successive approximation register stores data relating to an output signal from the comparator. The D/A converter performs a D/A conversion process on the digital data output from the successive approximation register, and outputs the resulting analog signal. Note that the A/D converter 50 is not limited to the successive approximation type A/D converter, but may be a parallel comparison type A/D converter, a servo-balancing type A/D converter, or the like.
The control circuit 70 (control section, processing section, or calculation section) controls each circuit of the integrated circuit device. The control circuit 70 may be implemented by a logic circuit (e.g., gate array), a processor (e.g., CPU), or the like.
Specifically, the control circuit 70 sets an offset adjustment and a gain adjustment of the amplifier circuit 10. For example, when a filter having a variable cut-off frequency (e.g., switched-capacitor filter) is provided between the amplifier circuit 10 and the A/D converter 50, the control circuit 70 may set the cut-off frequency of the filter.
For example, the control circuit 70 sets an offset adjustment of the amplifier circuit 10 by setting the offset adjustment data DA1 to DA3 in the offset adjustment registers RA1 to RA3. For example, the control circuit 70 sets a gain adjustment of the amplifier circuit 10 by setting the gain adjustment data DG1 to DG3 in the gain adjustment registers RG1 to RG3. Specifically, the control circuit 70 reads the offset value data DV1 to DV3 stored in the offset value storage sections RV1 to RV3. The control circuit 70 calculates the offset adjustment data DA1 to DA3 based on the offset value data DV1 to DV3, and sets (stores) the offset adjustment data DA1 to DA3 in the offset adjustment registers RA1 to RA3.
When subjecting the amplifiers AM1 to AM3 to amplifier offset calibration, the control circuit 70 calculates the offset value data DV1 to DV3 based on the digital data ADQ from the A/D converter 50 and the gains G1 to G3 (gain adjustment data) of the amplifiers AM1 to AM3, and sets (stores) the offset value data DV1 to DV3 in the offset value storage sections RV1 to RV3. Specifically, when performing amplifier offset calibration that automatically cancels the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3 before the input signal VI is input from a sensor or the like, the control circuit 70 measures the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3 by monitoring the digital data ADQ from the A/D converter 50. The control circuit 70 calculates the offset value data DV1 to DV3 corresponding to the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3 based on the gains G1 to G3 of the amplifiers AM1 to AM3 when measuring the offset voltages VOS1 to VOS3, and stores the offset value data DV1 to DV3 in the offset value storage sections RV1 to RV3.
When subjecting the input signal VI to signal offset calibration, the control circuit 70 calculates the offset adjustment data DA1 to DA3 based on the offset value data DV1 to DV3 stored in the offset value storage sections RV1 to RV3, and sets the offset adjustment data DA1 to DA3 in the offset adjustment registers RA1 to RA3. Specifically, the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3 are canceled by setting the offset adjustment data DA1 to DA3 corresponding to the offset value data DV1 to DV3 in the offset adjustment registers RA1 to RA3. The control circuit 70 then subjects the input signal VI to signal offset calibration.
The amplifier AM shown in
In the amplifier AM shown in
In the amplifier AM shown in
As shown in
In this embodiment, a plurality of amplifiers AM1 to AM3 are provided in the amplifier circuit 10, and a plurality of D/A converters DAC1 to DAC3 are provided corresponding to the amplifiers AM1 to AM3. Specifically, the integrated circuit device has a multi-stage amplifier/multi-stage DAC configuration. The offset adjustment registers RA1 to RA3 for an offset adjustment of the amplifiers AM1 to AM3 and the gain adjustment registers RG1 to RG3 for a gain adjustment of the amplifiers AM1 to AM3 are provided corresponding to the amplifiers AM1 to AM3. The offset value storage sections RV1 to RV3 that store the offset value data (measured offset voltage data) of the amplifiers AM1 to AM3 are also provided.
According to this embodiment that employs such a configuration, an offset adjustment that cancels the offset voltages of the amplifiers AM1 to AM3 and the like can be implemented while suppressing an increase in the circuit scale of the D/A converters DAC1 to DAC3. Specifically, an accurate offset adjustment can be implemented with a small circuit configuration as compared with a single-stage amplifier/single-stage DAC configuration.
According to this embodiment, a signal within an optimum voltage range can be input to the A/D converter 50 even if the input signal VI that varies in DC offset and amplitude is input. Therefore, the dynamic range of the A/D converter can be increased.
For example, since the DC offset, amplitude, and the like of an input signal utilized in a related-art integrated circuit device that includes an A/D converter have been determined to a certain extent corresponding to the specification and the like, it suffices that the A/D converter perform an A/D conversion process within an input voltage range corresponding to the specification.
However, when performing an A/D conversion process on a detection signal output from a sensor (sensor device) or the like, the DC offset of the input signal VI (detection signal) varies corresponding to the type of sensor, as indicated by A1 and A2 in
According to this embodiment, since the multi-stage amplifiers AM1 to AM3, the multi-stage D/A converters DAC1 to DAC3, and offset adjustment registers RA1 to RA3 corresponding to the multi-stage amplifiers AM1 to AM3 are provided, the DC offset of the input signal VI can be accurately adjusted with a small circuit configuration. Therefore, even if the DC offset of the input signal VI has changed as indicated by A1 and A2 in
According to this embodiment, since the multi-stage amplifiers AM1 to AM3 and the gain adjustment registers RG1 to RG3 corresponding to the amplifiers AM1 to AM3 are provided, the gain of the amplitude of the input signal VI can be accurately adjusted using a small circuit. Therefore, even if the amplitude of the input signal VI has changed as indicated by A3 and A4 in
For example, when the A/D input amplitude (maximum input amplitude) of the A/D converter is referred to as VAT and the voltage corresponding to the least significant bit (1LSB) of the A/D converter is referred to as VLSB, the dynamic range DR can be expressed by DR=VAT/VLSB.
According to related-art technology, when the amplitude of the input signal VI is small (see A3 in
According to this embodiment, even if the amplitude of the input signal VI has changed as indicated by A3 and A4 in
According to related-art technology, when the input signal VI has a DC offset (see A1 and A2 in
According to this embodiment, even if the input signal VI has a DC offset (see A1 and A2 in
In the development/trial production stage of a new sensor, for example, the DC offset, the amplitude, and the like of a detection signal output from the sensor may be unknown. According to this embodiment, since an automatic offset adjustment and an automatic gain adjustment are performed on the input signal VI (i.e., detection signal output from the sensor), the user can connect the sensor to the integrated circuit device without taking much account of the DC offset, the amplitude, and the like of the detection signal. Therefore, an integrated circuit device (sensor measurement assistance IC) convenient to the user can be provided. Moreover, since it is unnecessary to produce a new integrated circuit device by way of trial corresponding to the type of sensor, the development cost can be reduced.
2. Offset Calibration
The details of offset calibration according to this embodiment are described below. In this embodiment, amplifier offset calibration that cancels the offset voltages of the amplifiers AM1 to AM3 is performed in a state in which a sensor or the like is not connected to the integrated circuit device. Signal offset calibration that adjusts the DC offset of the input signal VI is then performed in a state in which a sensor or the like is connected to the integrated circuit device.
2.1 Amplifier Offset Calibration
In this embodiment, when subjecting the amplifiers AM1 to AM3 (first to Nth amplifiers) to amplifier offset calibration, the offset value data DV1 to DV3 (first to Nth offset value data) is calculated based on the digital data ADQ from the A/D converter 50 and the gains G1 to G3 (gain adjustment data) of the amplifiers AM1 to AM3. The calculated offset value data DV1 to DV3 is set (stored) in the offset value storage sections RV1 to RV3 (first to Nth offset value storage sections).
In
Specifically, when performing amplifier offset calibration, offset calibration that measures the offset voltage VOS3 of the amplifier AM3 (jth amplifier in a broad sense; j is an integer that satisfies 1<j≦N) among the amplifiers AM1 to AM3 (first to Nth amplifiers) is performed, as shown in
Offset calibration that measures the offset voltage VOS2 of the amplifier AM2 (j−1)th amplifier in a broad sense) in the preceding stage of the amplifier AM3 is then performed, as shown in
In
The control circuit 70 sets the offset adjustment data DA3 that sets the output voltage VD3 of the D/A converter DAC3 at an analog reference power supply voltage AGND in the offset adjustment register RA3. Therefore, the D/A converter DAC3 outputs the voltage VD3 set at the analog reference power supply voltage AGND to the amplifier AM3. The analog reference power supply voltage AGND is a voltage (intermediate voltage) between a high-potential-side power supply voltage (VDD) and a low-potential-side power supply voltage (GND=0 V) (e.g., AGND=VDD/2). Note that the analog reference power supply voltage AGND may be set at 0 V.
The control circuit 70 monitors the digital data ADQ from the A/D converter 50 after setting the offset adjustment data DA3 and the gain adjustment data DG3. In
Then, the amplifier AM1 is disabled, and the amplifiers AM2 and AM3 are enabled, as shown in
The control circuit 70 sets the offset adjustment data DA2 that sets the output voltage VD2 of the D/A converter DAC2 at the analog reference power supply voltage AGND in the offset adjustment register RA2. Therefore, the D/A converter DAC2 outputs the voltage VD2 set at the analog reference power supply voltage AGND to the amplifier AM2.
The control circuit 70 reads the offset value data DV3 set in
Note that VLSB3 that indicates the DAC accuracy is the 1LSB-equivalent voltage VLSB3 of the D/A converter DAC3. Specifically, the 1LSB-equivalent voltage VLSB3 is a voltage corresponding to the amount of change in the output voltage VD3 when changing the input data of the D/A converter DAC3 by 1LSB (1 bit). Round(X) is a function that indicates rounding X off. Since data that indicates an integer in decimal notation must be input to the D/A converter, such a rounding calculation process is necessary.
When DA3=−Round(DV3/VLSB3) is set in the offset adjustment register RA3 (see
When using the amplifier having the configuration shown in
In
In
In
The control circuit 70 monitors the digital data ADQ from the A/D converter 50 (see
The amplifiers AM1, AM2, and AM3 are then enabled, as shown in
The control circuit 70 sets the offset adjustment data DA1 that sets the output voltage VD1 of the D/A converter DAC1 at the analog reference power supply voltage AGND in the offset adjustment register RA1.
The control circuit 70 reads the offset value data DV2 set in
The control circuit 70 reads the offset value data DV3 set in
Note that VLSB2 and VLSB3 are the 1LSB-equivalent voltages of the D/A converters DAC2 and DAC3. RER2 is a rounding error value of the D/A converter DAC2. The rounding error value RER2 is the difference between DV2/VLSB2 and Round(DV2/VLSB2). According to the above configuration, since the rounding error value RER2 due to the rounding calculation process that calculates the offset adjustment data DA2 can be reflected in the offset adjustment data DA3 and set in the offset adjustment register RA3, the offset calibration accuracy can be improved.
In
The control circuit 70 monitors the digital data ADQ from the A/D converter 50 (see
The amplifier offset calibration process according to this embodiment is summarized as follows.
In this embodiment, offset calibration (jth offset calibration) that measures the offset voltage VOS3 of the amplifier AM3 (jth amplifier) among the amplifiers AM1 to AM3 is performed, as shown in
In this offset calibration, the control circuit 70 calculates the offset value data DV3 (jth offset value data) based on the digital data ADQ from the A/D converter 50 and the gain G3 of the amplifier AM3, as shown in
Then, offset calibration (j−1)th offset calibration) that measures the offset voltage VOS2 of the amplifier AM2 (j−1)th amplifier) among the amplifiers AM1 to AM3 is performed, as shown in
In this offset calibration, the control circuit 70 calculates the offset adjustment data DA3 (jth offset adjustment data) based on the offset value data DV3 (jth offset value data), and sets the offset adjustment data DA3 in the offset adjustment register RA3 (jth offset adjustment register), as shown in
The control circuit 70 then calculates the offset value data DV2 (j−1)th offset value data) based on the digital data ADQ from the A/D converter 50 and the gains G2 and G3 of the amplifiers AM2 and AM3 (j−1)th and jth amplifiers), and sets the offset value data DV2 in the offset value storage section RV2 (j−1)th offset value storage section), as shown in
Then, offset calibration (j−2)th offset calibration) that measures the offset voltage VOS1 of the amplifier AM1 (j−2)th amplifier) among the amplifiers AM1 to AM3 is performed, as shown in
In this offset calibration, the control circuit 70 calculates the offset adjustment data DA2 (j−1)th offset adjustment data) based on the offset value data DV2 (j−1)th offset value data), and sets the offset adjustment data DA2 in the offset adjustment register RA2 (j−1)th offset adjustment register), as shown in
The control circuit 70 calculates the offset adjustment data DA3 (jth offset adjustment data) based on the offset value data DV2 and DV3 (j−1)th and jth offset value data), and sets the offset adjustment data DA3 in the offset adjustment register RA3 (jth offset adjustment register).
Specifically, the control circuit 70 performs a rounding calculation process that calculates the offset adjustment data DA2 (j−1)th offset adjustment data) based on the offset value data DV2 (j−1)th offset value data). Specifically, the control circuit 70 performs a rounding calculation process indicated by DA2=−Round(DV2/VLSB2). The control circuit 70 calculates the offset adjustment data DA3 (jth offset adjustment data) based on the rounding error value RER2 due to the rounding calculation process, the gain G2 of the amplifier AM2 (j−1)th amplifier), and the offset value data DV3 (jth offset value data). The control circuit 70 sets the offset adjustment data DA3 in the offset adjustment register RA3 (jth offset adjustment register). Specifically, the control circuit 70 calculates DA3=−Round{(DV3+RER2×G2)/VLSB3}, and sets the offset adjustment data DA3 in the offset adjustment register RA3. Therefore, the rounding error value RER2 due to the D/A converter DAC2 can be canceled by the output voltage VD3 of the D/A converter DAC3 so that more accurate offset calibration can be implemented.
The control circuit 70 then calculates the offset value data DV1 (j−2)th offset value data) based on the digital data ADQ from the A/D converter 50 and the gains G1, G2, and G3 of the amplifiers AM1, AM2, and AM3 (j−2)th, (j−1)th, and jth amplifiers), and sets the offset value data DV1 in the offset value storage section RV1 (j−2)th offset value storage section), as shown in
Therefore, the offset value data DV1 to DV3 corresponding to the offset voltages VOS1 to VOS3 of the amplifiers AM1 to AM3 is automatically calculated and stored in the offset value storage sections RV1 to RV3. Signal offset calibration described below is performed using the offset value data DV1 to DV3 stored in the offset value storage sections RV1 to RV3 to implement signal offset calibration on the input signal VI and the like.
2.2 Signal Offset Calibration
In this embodiment, the offset adjustment data DA1 to DA3 (first to Nth offset adjustment data) is calculated during signal offset calibration based on the offset value data DV1 to DV3 (first to Nth offset value data) stored in the offset value storage sections RV1 to RV3 (first to Nth offset value storage sections). The offset adjustment data DA1 to DA3 is set in the offset adjustment registers RA1 to RA3 (first to Nth offset adjustment registers).
In
In
For example, the input signal VI from the sensor or the like varies in amplitude and DC offset. Therefore, the output of the amplifier may be saturated when the gains G1 to G3 of the amplifiers AM1 to AM3 are set at a large value so that appropriate A/D conversion data may not be obtained.
A situation in which the output of the amplifier is saturated can be prevented by setting the gains of the amplifiers AM1 to AM3 at low gains under the first gain condition (e.g., G1=G2=G3=1), as shown in
The control circuit 70 then reads the offset value data DV1 from the offset value storage section RV1. The control circuit 70 calculates the offset adjustment data DA1 by calculating DA1=−Round(DV1/VLSB1), and sets the offset adjustment data DA1 in the offset adjustment register RA1, as shown in
The offset value data DV1 corresponds to the offset voltage VOS1 of the amplifier AM1, as described with reference to
The control circuit 70 reads the offset value data DV2 from the offset value storage section RV2. The control circuit 70 calculates the offset adjustment data DA2 by calculating DA2=−Round{(DV2+RER1×G1)/VLSB2}, and sets the offset adjustment data DA2 in the offset adjustment register RA2. Therefore, the D/A converter DAC2 outputs the voltage VD2 corresponding to the offset adjustment data DA2 (=−Round{(DV2+RER1×G1)/VLSB2}) to the amplifier AM2.
The offset value data DV2 corresponds to the offset voltage VOS2 of the amplifier AM2, as described with reference to
RER1 is a rounding error value of the D/A converter DAC1. The rounding error value RER1 is the difference between DV1/VLSB1 and Round(DV1/VLSB1). An accurate offset adjustment can be implemented by reflecting the rounding error value RER1 of the D/A converter DAC1 in the D/A converter DAC2.
In
In this embodiment, the offset adjustment data DA2 is calculated based on the rounding error value RER1, the gain G1 of the amplifier AM1, and the offset value data DV2. Specifically, the rounding error value RER1 is multiplied by G1 and added to the offset value data DV2, and the offset adjustment data DA2 is calculated by the calculation expression “DA2=−Round{(DV2+RER1×G1)/VLSB2}”. Therefore, the rounding error value RER1 of the offset voltage VOS1 that has not been canceled by the D/A converter DAC1 can be canceled by the D/A converter DAC2 so that the offset calibration accuracy can be improved.
The control circuit 70 reads the offset value data DV3 from the offset value storage section RV3. The control circuit 70 calculates the offset adjustment data DA3 by calculating DA3=−Round{(DV3+RER2×G2)/VLSB3}, and sets the offset adjustment data DA3 in the offset adjustment register RA3. Therefore, the D/A converter DAC3 outputs the voltage VD3 corresponding to the offset adjustment data DA3 (=−Round{(DV3+RER2×G2)/VLSB3}) to the amplifier AM3.
The offset value data DV3 corresponds to the offset voltage VOS3 of the amplifier AM3, as described with reference to
RER2 is the rounding error value of the D/A converter DAC2. The rounding error value RER2 is the difference between (DV2+RER1×G1)/VLSB2 and Round{(DV2+RER1×G1)/VLSB2}. An accurate offset adjustment can be implemented by reflecting the rounding error value RER2 of the D/A converter DAC2 in the D/A converter DAC3.
The control circuit 70 then monitors the digital data ADQ from the A/D converter 50, as shown in
Therefore, the control circuit 70 calculates signal offset value data DVS based on the digital data ADQ from the A/D converter 50 and the gains G1 to G3 of the amplifiers AM1 to AM3. Specifically, the control circuit 70 calculates the signal offset value data DVS by calculating DVS=ADQ/(G1×G2×G3), and sets the signal offset value data DVS in a register (not shown).
The control circuit 70 then determines the gains G1 to G3 of the amplifiers AM1 to AM3 based on the amplitudes of the signals AQ1 to AQ3 under the first gain condition (i.e., G1=G2=G3=1) shown in
Specifically, since the input signal VI from the sensor or the like varies in amplitude and DC offset, the gains of the amplifiers AM1 to AM3 are set at low gains under the first gain condition (G1=G2=G3=1) in
As shown
The control circuit 70 then calculates the offset adjustment data DA1 to DA3 by performing a calculation process similar to that shown in
The signal offset calibration process according to this embodiment is summarized as follows.
The control circuit 70 sets the gains G1 to G3 under the first gain condition, as shown in
The control circuit 70 calculates the offset adjustment data DA2 ((i+1)th offset adjustment data) based on the offset value data DV1 and DV2 (ith and (i+1)th offset value data) and the gain G1 of the amplifier AM1 (ith amplifier), and sets the offset adjustment data DA2 in the offset adjustment register RA2 ((i+1)th offset adjustment register). Specifically, the control circuit 70 calculates the offset adjustment data DA2 based on the rounding error value RER1 of the rounding calculation process that calculates the offset adjustment data DA1 based on the offset value data DV1, the gain G1 of the amplifier AM1, and the offset value data DV2 Specifically, the control circuit 70 calculates DA2=−Round{(DV2+RER1×G1)/VLSB2}, and sets the offset adjustment data DA2 in the offset adjustment register RA2. Likewise, the control circuit 70 calculates DA3=−Round{(DV3+RER2×G2)/VLSB3}, and sets the offset adjustment data DA3 in the offset adjustment register RA3.
After the offset adjustment data DA1 to DA3 (first to Nth offset adjustment data) has been set in the offset adjustment registers RA1 to RA3, the control circuit 70 calculates the signal offset value data DVS of the input signal VI based on the digital data ADQ from the A/D converter 50 and the gains G1 to G3 of the amplifiers AM1 to AM3 (first to Nth amplifiers), as shown
After the control circuit 70 has set the gains of the amplifiers AM1 to AM3 at gains under the first gain condition and calculated the signal offset value data DVS of the input signal VI, the control circuit 70 resets the gains G1 to G3 of the amplifiers AM1 to AM3 to gains under the second gain condition that are higher than those under the first gain condition, as shown
Accurate real-time calibration can be implemented by performing signal offset calibration as described above.
3. Multi-Stage Amplifier/Multi-Stage DAC Configuration
As shown in
As the configuration of the amplifier circuit, a configuration in which a high-pass filter (HPF) that includes a capacitor C and a resistor R is provided in the preceding stage of an amplifier AM (see
In the configuration using the HPF (
Specifically, the frequency band of the input signal VI (detection signal) from the sensor varies (e.g., within the range from 1 Hz to 16 KHz) corresponding to the type of sensor. For example, when the frequency of the input signal VI is 1 Hz, it is necessary to reduce the cut-off frequency of the HPF shown in
However, since the cut-off frequency of the HPF is determined by the reciprocal of CR, it is necessary to increase the capacitance of the capacitor C and the resistance of the resistor R in order to reduce the cut-off frequency of the HPF. Therefore, the size of the capacitor C and the resistor R increases when setting the cut-off frequency at 0.1 Hz, for example. When the capacitor C and the resistor R are provided as external parts, convenience to the user is impaired. Moreover, it is difficult to variably set the capacitance and the resistance corresponding to the frequency band of the input signal VI. When the capacitance of the capacitor C and the resistance of the resistor R are increased, the calibration response speed decreases so that quick calibration cannot be implemented.
The single-stage amplifier/single-stage DAC configuration shown in
On the other hand, the multi-stage amplifier/multi-stage DAC configuration according to this embodiment has advantages over the configuration using the HPF and the single-stage amplifier/single-stage DAC configuration with regard to the calibration response speed, size, and accuracy. The details are described below.
For example, when canceling a DC offset VS (input offset) of the input signal VI using the single-stage amplifier/single-stage DAC configuration shown in
An output range QR required for the D/A converter DAC shown in
The D/A converter DAC is required to have an accuracy such that the A/D converter 51 does not produce an error. Therefore, when the 1LSB-equivalent voltage (DAC accuracy) of the D/A converter DAC is referred to as VLSB, the 1LSB-equivalent voltage (A/D accuracy) of the A/D converter 51 is referred to as ADLSB, and the gain of the amplifier AM is referred to as (, the relationship “VLSB≦ADLSB/G” is satisfied. Therefore, when ADLSB=0.003 V and G=32, VLSB≦0.003/32=93.75 μV.
The number k of bits required for the D/A converter DAC is determined by 2k≧QR/VLSB. Therefore, when the output range QR of the D/A converter DAC is about 3 V, the number k of bits required for the D/A converter DAC is 15 (k=15) since 215=32768≧3/(0.003/32)=32000.
Specifically, when using the single-stage amplifier/single-stage DAC configuration, a 15-bit DAC is required (see
However, the size of the D/A converter DAC increases exponentially with respect to the number of bits, as shown in
In this embodiment, the multi-stage amplifier/multi-stage DAC configuration is employed, as shown in
Therefore, the DC offset VS of the input signal VI can be canceled by setting the output voltages VD1 to VD3 of the D/A converters DAC1 to DAC3 so that VS=−{VD1+VD2/G1+VD3/(G1×G2)} is satisfied.
When using the multi-stage amplifier/multi-stage DAC configuration shown in
When the 1LSB-equivalent voltages (DAC accuracy) of the D/A converters DAC1, DAC2, and DAC3 are referred to as VLSB1, VLSB2, and VLSB3, the output range QR2 of the D/A converter DAC2 satisfies the relationship “QR2≧G1×VLSB1” (described in detail later). The output range QR3 of the D/A converter DAC3 satisfies the relationship “QR3≧G2×VLSB2”.
For example, since the 1LSB-equivalent voltage VLSB3 (accuracy) required for the D/A converter DAC3 is within a range such that the A/D converter 50 does not produce an error, the relationship “VLSB3≦ADLSB/G3” is satisfied when the 1LSB-equivalent voltage of the A/D converter 50 is referred to as ADLSB.
The number k of bits required for the D/A converter DAC1 is determined by the relational expression “2k≧QR1/VLSB1”. Likewise, the numbers k of bits required for the D/A converters DAC2 and DAC3 are respectively determined by the relational expressions “2k≧QR2/VLSB2” and “2k≧QR3/VLSB3”.
Therefore, when the gains G1, G2, and G3 of the amplifiers AM1 to AM3 are 4, 4, and 2, respectively, the relationship shown in
Specifically, the output range QR1 of the D/A converter DAC1 is almost equal to the DC offset VS of the input signal VI (e.g., about 3 V). Therefore, when the number k of bits of the D/A converter DAC1 is five (k=5), the 1LSB-equivalent voltage VLSB1 of the D/A converter DAC1 may be set at 96 mV (see
The output range QR2 and the 1LSB-equivalent voltage VLSB2 of the D/A converter DAC2 satisfy the relationships “QR2≧G1×VLSB1” and “VLSB2=QR2/25”. Therefore, the output range QR2 and the 1LSB-equivalent voltage VLSB2 may be set so that QR=G1×VLSB1=4×96 mV=0.384 V and VLSB2=QR2/25=0.384/25 V=12 mV.
The output range QR2 and the 1LSB-equivalent voltage VLSB3 of the D/A converter DAC3 satisfy the relationships “QR3≧G2×VLSB2” and “VLSB3=QR3/25”. Therefore, the output range QR3 and the 1LSB-equivalent voltage VLSB3 may be set so that QR3=G2×VLSB2=4×12 mV=48 V and VLSB3=QR3/25=48/25 V=1.5 mV.
As is clear from the comparison between
According to the single-stage amplifier/single-stage DAC configuration shown in
According to the multi-stage amplifier/multi-stage DAC configuration shown in
4. Method of Setting Output Range and 1LSB-Equivalent Voltage of D/A Converter
A method of setting the output range and the 1LSB-equivalent voltage of the D/A converter according to this embodiment is described in detail below.
In
In
When the output range QR1 of the D/A converter DAC1 is increased, as shown
The D/A converter DAC1 roughly corrects the DC offset VS, and accurate offset correction is implemented by the subsequent-stage D/A converters DAC2 and DAC3. Therefore, since the D/A converter DAC1 need not have high accuracy, the 1LSB-equivalent voltage VLSB1 can be increased, as shown in
For example, when using the single-stage amplifier/single-stage DAC configuration shown in
On the other hand, when the relationships “QR1>QR2>QR3” and “VLSB1>VLSB2>VLSB3” are satisfied (see
On the other hand, the number of bits of the D/A converter DAC3 need not be increased to a large extent even if the 1LSB-equivalent voltage VLSB3 of the D/A converter DAC3 is reduced in order to implement accurate calibration since the output range VR3 of the D/A converter DAC3 is narrow, as shown in
According to the method shown in
When the gain of the amplifier AM1 (ith amplifier) is referred to as G1 and the 1LSB-equivalent voltage of the D/A converter DAC1 (ith D/A converter) is referred to as VLSB1, the relationship “QR2≧G1×VLSB1” is satisfied, as shown in
Specifically, an error value ERR that has not been removed by the D/A converter DAC1 must be removed by the D/A converter DAC2, as shown in
Since the error value ERR is a quantization error of the D/A converter DAC1, the error value ERR is equal to or less than the 1LSB-equivalent voltage VLSB1 of the D/A converter DAC1. Specifically, the relationship “ERR≦VLSB1” is satisfied. Therefore, the relationship “QR2≧G1×VLSB1” is satisfied from the relationships “QR2≧G1×ERR” and “ERR≦VLSB1”. Likewise, the relationship “QR3≧G2×VLSB2” is satisfied. These relationships ensure that the error value that has not been removed by the preceding-stage D/A converter can be removed by the subsequent-stage D/A converter.
5. First Modification
The filter 38 is provided in the subsequent stage of the amplifier circuit 10, and performs a filter process such as a low-pass filter (LPF) process. Specifically, the filter 38 is provided between the amplifier circuit 10 and the A/D converter 50, for example. The cut-off frequency of the filter 38 is variably set corresponding to the frequency band of the input signal VI, for example. Specifically, the cut-off frequency of the filter 38 is reduced the frequency band (passband cut-off frequency) of the input signal VI decreases. In this case, the control circuit 70 variably sets the cut-off frequency of the filter 38.
The filter 38 may function as a prefilter for the A/D converter 50. Specifically, the filter 38 performs a filter process that prevents folding noise that occurs when a harmonic signal folds over the frequency band of the input signal VI from exceeding the 1LSB-equivalent voltage (quantization error voltage) of the A/D converter 50.
A switched-capacitor filter (SCF) (i.e., discrete-time filter) may be used as the filter 38, for example. The SCF includes a switch element, an operational amplifier, and a capacitor. The SCF performs a sample-hold operation at a given sampling frequency.
When using the SCF as the filter 38, the amplifier circuit 10 may function as a continuous-time filter (RC active filter). In this case, the continuous-time filter (amplifier circuit 10) functions as a prefilter (LPF) for the SCF, and prevents folding noise in the SCF.
The digital filter 100 receives the digital data ADQ from the A/D converter 50, performs a digital filter process (e.g., LPF process) on the digital data ADQ, and outputs digital data obtained by the digital filter process. The digital filter 100 performs the filter process using the continuous-time filter (amplifier circuit 10) and the filter 38 (SCF) as prefilters, for example. As the digital filter 100, an infinite impulse response (IIR) filter or a finite impulse response (FIR) filter may be used.
The cut-off frequency of the digital filter 100 (second discrete-time filter) is variably set corresponding to the frequency band (passband) of the input signal VI, for example. For example, the cut-off frequency of the digital filter 100 decreases as the frequency band of the input signal VI decreases. The sampling frequency of the digital filter 100 is also variably set.
The control circuit 70 sets an offset adjustment and a gain adjustment of the amplifier circuit 10, and sets the cut-off frequencies of the filter 38 and the digital filter 100. Specifically, the control circuit 70 includes an internal register in which the cut-off frequency and the sampling frequency are set. An external instrument (e.g., software or firmware that controls an electronic instrument) sets the cut-off frequency and the sampling frequency in the internal register through an interface (not shown). The control circuit 70 instructs the filter 38 and the digital filter 100 to set the cut-off frequency and the sampling frequency based on the data set in the internal register. Therefore, the filter 38 and the digital filter 100 perform the filter process based on the cut-off frequency and the sampling frequency.
According to the first modification shown in
For example, when performing an A/D conversion process on a detection signal output from a sensor or the like, the frequency band of the detection signal varies corresponding to the type of sensor. Therefore, it is difficult for a related-art integrated circuit device of which the frequency band of the input signal has been determined by the specification and the like perform an A/D conversion process on a detection signal output from a sensor that varies in frequency band. When developing and producing a new sensor by way of trial, it is necessary to develop an integrated circuit device corresponding to each sensor This results in an increase in development cost and development period.
According to the first modification shown in
Specifically, it has been difficult to deal with a first type of sensor that outputs a detection signal having a frequency of 1 Hz and a second type of sensor that outputs a detection signal having a frequency of 16 KHz using a single integrated circuit device, for example. This makes it necessary to separately develop an integrated circuit device for the first type of sensor and an integrated circuit device for the second type of sensor.
On the other hand, since the integrated circuit device shown in
In
As a comparative example, only the continuous-time filter may be provided as a prefilter for the digital filter 100 without providing the filter 38 (SCF). According to this comparative example, when using an RC filter as the continuous-time filter, the cut-off frequency is determined by the reciprocal of the RC product (i.e., product of resistance and capacitance). Therefore, it is necessary to increase the resistance and the capacitance in order to deal with various frequency bands. This makes it difficult to incorporate the resistor and the capacitor in an IC chip. As a result, the resistor and the capacitor must be provided externally.
In
6. Second Modification
The selector 20 (multiplexer) selects one of the output signals AQ1 to AQ3 (first to Nth output signals) from the amplifiers AM1 to AMN (first to Nth amplifiers). The selector 20 outputs the selected output signal as a selector output signal SLQ. Specifically, the selector 20 selects one of the output signals AQ1 to AQ3 based on a select instruction signal SSD output from the control circuit 70, and outputs the selected output signal. The selector 20 may include a plurality of logic gates, a plurality of transfer transistors, and the like. The A/D converter 50 performs an A/D conversion process on the selector output signal SLQ from the selector 20.
The determination circuit 60 (comparison circuit) performs a determination process (voltage comparison process) on the output signals AQ1 to AQ3 from the amplifiers AM1 to AM3 of the amplifier circuit 10. Specifically, the determination circuit 60 determines (compares) whether or not the voltage of the output signal from each of the amplifiers AM1 to AM3 is within a determination voltage range. The determination circuit 60 outputs a determination result signal DRS (e.g., error signal) to the control circuit 70. The determination voltage range is specified by a high-potential-side determination voltage VCH and a low-potential-side determination voltage VCL, for example.
The high-potential-side determination voltage VCH may be set at a voltage equal to or lower than the high-potential-side reference voltage VRP that specifies the input voltage range of the A/D converter 50 (VCH≦VRP), for example. The low-potential-side determination voltage VCL may be set at a voltage equal to or higher than the low-potential-side reference voltage VRN that specifies the input voltage range of the A/D converter 50 (VCL≧VRN). For example, the voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL may be narrower than the voltage range specified by the high-potential-side reference voltage VRP and the low-potential-side reference voltage VRN by a margin (e.g., 10 to 90%).
The determination circuit 60 may include a plurality of comparators that compare the voltages of the output signals AQ1 to AQ3 from the amplifiers AM1 to AM3 with the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL. In this case, each comparator may be a comparator that has a hysteresis function. Alternatively, a circuit that holds the peak voltage of the output signals AQ1 to AQ3 may be provided, and the peak voltage may be compared with the determination voltages VCH and VCL using a comparator or the like.
The control circuit 70 instructs the selector 20 to select one of the output signals AQ1 to AQ3 from the amplifiers AM1 to AM3 based on the determination result of the determination circuit 60. For example, the control circuit 70 receives the determination result signal DRS from the determination circuit 60, generates the select instruction signal SSD, and outputs the select instruction signal SSD to the selector 20. More specifically, when the determination circuit 60 has determined that the voltage of the output signal from the jth amplifier (e.g., the amplifier AM3) among the amplifiers AM1 to AM3 is not within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL, the control circuit 70 instructs the selector 20 to select the output signal from the (j−1)th amplifier (e.g., the amplifier AM2) in the preceding stage of the jth amplifier. When the determination circuit 60 has determined that the voltage of the signal input to the jth amplifier (e.g., the amplifier AM3) among the amplifiers AM1 to AM3 is not within a determination voltage range (jth determination voltage range) that is set corresponding to the gain of the jth amplifier, the control circuit 70 may instruct the selector 20 to select the output signal from the (j−1)th amplifier (e.g., the amplifier AM2) in the preceding stage of the jth amplifier.
According to the second modification shown in
According to the second modification, an output signal within a voltage range close to the input voltage range (VRP to VRN) of the A/D converter 50 is selected by the selector 20, input to the A/D converter 50, and subjected to A/D conversion. Therefore, even if the amplitude of the input signal VI has changed (see A3 and A4 in
According to the second modification, an output signal having an appropriate amplitude is automatically selected from the output signals AQ1 to AQ3 from the amplifiers AM1 to AM3, and is input to the A/D converter 50. Therefore, the user can connect the sensor to the integrated circuit device without taking much account of the amplitude and the like of the detection signal. Therefore, a user-friendly integrated circuit device can be provided. Moreover, since it is unnecessary to produce a new integrated circuit device by way of trial corresponding to the type of sensor, the development cost can be reduced.
In the automatic adjustment method according to the second modification, since an automatic adjustment time lag occurs due to only the determination period of the determination circuit 60 and the select period of the selector 20, it is possible to quickly deal with a change in signal and the like and make a real-time automatic adjustment. Therefore, a dynamic range automatic adjustment method that is optimum for a signal (AC signal such as a sound signal) that requires a quick automatic adjustment, a detection signal that can be sampled only once (hard disk drive fall detection), and the like can be provided.
The control circuit 70 may set the gains under the second gain condition based on the determination result of the determination circuit 60. Specifically, the control circuit 70 determines the gains under the second gain condition (see
For example, the default gains under the second gain condition are referred to as G1=GC1, G2=GC2, and (G3=GC3. For example, GC1=32, GC2=8, and GC3=4. When the determination circuit 60 has determined that the voltages of the signals AQ1 to AQ3 are within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL, the control circuit 70 employs the default gains under the second gain condition (e.g., G1=GC1=32, G2=GC2=8, and G3=GC3=2).
When the determination circuit 60 has determined that the voltages of the signals AQ1 and AQ2 are within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL and the voltage of the signal AQ3 is not within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL, the control circuit 70 reduces the gain G3 (e.g., G3=1). Specifically, the control circuit 70 sets the gains so that G1=GC1=32, G2=GC2=8, and G3=1.
When the determination circuit 60 has determined that the voltage of the signal AQ1 is within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL and the voltages of the signals AQ2 and AQ3 are not within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL, the control circuit 70 reduces the gains G2 and G3 (e.g., G2=4 and G3=1). Specifically, the control circuit 70 sets the gains so that G1=GC1=32, G2=4, and G3=1.
When the determination circuit 60 has determined that the voltages of the signals AQ1, AQ2, and AQ3 are not within the determination voltage range specified by the high-potential-side determination voltage VCH and the low-potential-side determination voltage VCL, the control circuit 70 reduces the gains G1, G2, and 63 (e.g., G1=16, G2=4, and G3=1).
After reducing the gains, the determination circuit 60 again determines whether or not the voltages of the signals AQ1 to AQ3 are within the determination voltage range. When the determination circuit 60 has determined that the voltages of the signals AQ1 to AQ3 are not within the determination voltage range, the above-described process may be repeated.
The amplifier AM2 includes an operational amplifier OP2 and resistors R21 and R22. The resistor 122 is a variable resistor, for example. The gain G2 of the amplifier AM2 is adjusted using the resistor R22. The amplifier AM3 includes an operational amplifier OP3 and resistors R31 and R32. The resistor R32 is a variable resistor, for example. The gain G3 of the amplifier AM3 is adjusted using the resistor R32. The amplifiers AM2 and AM3 are inverting amplifiers.
Specifically, the output terminal of the operational amplifier OP2 is connected to the output node of the inverting amplifier AM2. The first resistor R21 is provided between the inverting input terminal (first input terminal in a broad sense) of the operational amplifier OP2 and the input node of the inverting amplifier AM2. The second resistor R22 is provided between the output node of the inverting amplifier AM2 and the inverting input terminal of the operational amplifier OP2. The non-inverting input terminal (second input terminal in a broad sense) of the operational amplifier OP2 is set at the analog reference power supply voltage AGND, for example. The configuration of the inverting amplifier AM3 is the same as the configuration of the inverting amplifier AM2.
It is unnecessary to use rail-to-rail operational amplifiers as the operational amplifiers OP2 and OP3 of the amplifiers AM2 and AM3 by utilizing the inverting amplifiers as the amplifiers AM2 and AM3. For example, when utilizing non-inverting amplifiers as the amplifiers AM2 and AM3, a signal having a large amplitude is distorted. It is necessary to use a rail-to-rail operational amplifier in order to prevent such a problem. However, a rail-to-rail operational amplifier has a disadvantage in that the circuit scale of the operational amplifier increases and it is difficult to improve the characteristics of the operational amplifier. The above-mentioned problems can be solved by utilizing the inverting amplifiers as the amplifiers AM2 and AM3.
In
In
It is desirable that each of the comparators CP1 to CP3 have a hysteresis function. For example, when the voltage (peak voltage) of one of the signals AQ1 to AQ3 is close to the determination voltage VCH or VCL, a situation in which the signals ER1, ER2, and ER3 are alternately set at the H level and the L level occurs. This causes malfunction of the circuit. Such a situation can be prevented by providing the comparators CP1 to CP3 with a hysteresis function (hysteresis characteristics using two threshold voltages). Note that a peak-hold circuit that holds the peak voltage of the output signals AQ1 to AQ3 may be provided instead of a hysteresis type comparator.
7. Electronic Instrument
An electronic instrument according to one embodiment of the invention is described below with reference to
The integrated circuit device 510 receives the detection signal from the sensor device 500, subjects the detection signal to A/D conversion, and optionally performs a calculation process (signal processing) on digital data obtained by A/D conversion. The integrated circuit device 510 outputs the resulting digital data to a system (system board or system device such as a CPU) in the subsequent stage.
According to the first configuration example shown in
According to the second configuration example shown in
According to the third configuration example shown in
Although some embodiments of the invention have been described in detail above, those skilled in the art would readily appreciate that many modifications are possible in the embodiments without materially departing from the novel teachings and advantages of the invention. Accordingly, such modifications are intended to be included within the scope of the invention. Any term (e.g., amplifiers AM1 to AM3 and D/A converters DAC1 to DAC3) cited with a different term (e.g., first to Nth amplifiers and first to Nth D/A converters) having a broader meaning or the same meaning at least once in the specification and the drawings may be replaced by the different term in any place in the specification and the drawings. The configurations and the operations of the integrated circuit device and the electronic instrument are not limited to those described with reference to the above embodiments. Various modifications and variations may be made.
Number | Date | Country | Kind |
---|---|---|---|
2008-040437 | Feb 2008 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7085587 | Oono et al. | Aug 2006 | B2 |
7088278 | Kurose et al. | Aug 2006 | B2 |
7236118 | Kurose et al. | Jun 2007 | B2 |
7250895 | Kurose et al. | Jul 2007 | B2 |
7257385 | Ono et al. | Aug 2007 | B2 |
20050062855 | Tani et al. | Mar 2005 | A1 |
20070202813 | Ono et al. | Aug 2007 | A1 |
20070202814 | Ono et al. | Aug 2007 | A1 |
Number | Date | Country |
---|---|---|
A-4-185018 | Jul 1992 | JP |
A-2002-217762 | Aug 2002 | JP |
A-2005-101870 | Apr 2005 | JP |
A-2005-110080 | Apr 2005 | JP |
A-2007-117586 | May 2007 | JP |
A-2007-285745 | Nov 2007 | JP |
Number | Date | Country | |
---|---|---|---|
20090212983 A1 | Aug 2009 | US |