The present invention relates to a detector detecting current or the like.
There are various types of detectors; for example, some current detectors have a plurality of measurement ranges. This current detector is illustrated in
In this manner, current detection in the measurement range of 10 [A] is performed by the current detector of
When the measurement range of the current detector of
Meanwhile, the conventional current detector described above has the following problem. That is, in the conventional current detector, selection between measurement ranges is performed by changing the connection state of the current coils 101 and 102. Accordingly, when the current detector has a plurality of measurement ranges, two or more current coils are needed, thus leading to an increase in mounting area and a rise in manufacturing cost. Further, when the measurement range is changed after mounting the current detector, the board pattern having mounted thereon the current coils 101 and 102 must be varied to change the connection state of the current coils 101 and 102. Therefore, it is difficult to perform selection between the measurement ranges.
To solve the above problem, an object of the present invention is to provide a detector allowing selection between measurement ranges to be easily performed without involving an increase in mounting area and a rise in manufacturing cost.
To solve the above problem, according to the present invention of claim 1, there is provided a detector characterized by including: storage means having stored therein a plurality of groups of digital values, the digital values indicating a gain and an offset, respectively, and being set as one group; instruction means for supplying to the storage means an instruction for reading one set of digital values from among the plurality of groups; D/A converters respectively converting the digital values of gain and offset read by use of the instruction means into analog values; and detection means for performing gain and offset adjustment based on outputs from the D/A converters and thereafter outputting a detection result.
According to the present invention of claim 2, there is provided the detector according to claim 1 characterized in that the storage means is a nonvolatile memory capable of electrically rewiring the digital values.
According to the present invention of claim 3, there is provided the detector according to claim 2 characterized by further including rewrite means for rewriting the gain and offset values stored by the nonvolatile memory.
According to the present invention of claim 1, a gain and offset required by the detection means in performing selection between measurement ranges are selected and extracted from the storage means, and the detection means is adjusted based on the read gain and offset, and thereafter a detection result is outputted by the detection means. Accordingly, in performing selection between measurement ranges, any connection change or the like of the detection means as with conventional art can be made unnecessary. As a result, an increase in mounting area for arranging the detection means and a rise in manufacturing cost can be prevented.
According to the present invention of claims 2 and 3, the digital values can be rewritten. Accordingly, varying of gain and offset after mounting, i.e., changing of measurement ranges can be easily performed.
Embodiments of the present invention will now be described in detail with reference to the drawings. In the following embodiments, a case where the present invention is applied to a current detector is taken as an example.
A current detector according to the present embodiment is illustrated in
The current sensor 6 serves to detect a current and includes a gain adjustment circuit 6A, an offset adjustment circuit 6B, a detection circuit 6C and an amplifier circuit 6D. The detection circuit 6C includes, as illustrated in
When a measurement range is selected by the switch circuit 3, the current sensor 6 varies its sensitivity in accordance with this measurement range, thereby ensuring current measurement accuracy. Accordingly, the gain adjustment circuit 6A adjusts the gain of the amplifier circuit 6D; the offset adjustment circuit 6B adjusts the offset of the amplifier circuit 6D. The gain adjustment of the current sensor 6 determines the amplification degree of the amplifier circuit 6D; the offset adjustment determines the zero point of the amplifier circuit 6D. In adjusting the amplifier circuit 6D, the gain adjustment circuit 6A operates based on a gain adjustment signal supplied from the D/A converter 5A and the offset adjustment circuit 6B based on an offset adjustment signal supplied from the D/A converter 5B.
The EEPROM stores setting data required when the sensitivity of the current sensor 6 is varied. More specifically, with digital values respectively indicating a gain and offset of the current sensor 6 being set as one group, a plurality of the groups of digital values are stored therein. According to the present embodiment, the EEPROM 4 stores a data group 4A as setting data for 10 [A] of the current sensor 6, and a data group 4B as setting data for 20 [A] of the current sensor 6. Also, the EEPROM 4 stores a data group 4C as setting data for 30 [A] of the current sensor 6. In performing selection between measurement ranges 10 [A], 20 [A] and 30 [A], a plurality of the data groups 4A to 4C is needed for adjusting the current sensor 6. The gain and offset values of the current sensor 6 are varied in accordance with a sensitivity corresponding to the respective measurement ranges; further, the values also vary depending on current sensors. Accordingly, the gain and offset values of each data group 4A to 4C are preliminarily adjusted during the manufacturing process.
Also, the EEPROM 4 includes a selection table 4D. The selection table 4D is data indicating a correspondence relationship between the selection signal sent from the CPU 1 and the data groups 4A to 4C. When receiving a selection signal from the CPU 1, the EEPROM 4 consults the selection table 4D, reads gain and offset values of one group corresponding to the selection signal from among the data groups 4A to 4C, and outputs these values to the respective DA converters 5A and 5B as the gain adjustment signal and offset adjustment signal.
The EEPROM 4 for storing these data is electrically rewritable, so modification of the offset and gain of the data groups 4A to 4C or addition of a new data group is possible. When the EEPROM 4 is made to have a one-time function to permit only one writing or a write protect function to prohibit writing, it is possible to prevent data from being inadvertently rewritten. Modification or addition of gain and offset can be performed, for example by connecting an input device (not illustrated) to an interface (not illustrated) and sending data for the modification or addition from this input device to the CPU 1. In this case, the input device and CPU 1 are rewrite means for rewriting the EEPROM 4.
The DA converter 5A converts a digital gain adjustment signal sent from the EEPROM 4 into an analog gain adjustment signal; the DA converter 5B converts a digital offset adjustment signal sent from the EEPROM 4 into an analog offset adjustment signal.
The switch circuit 3 is one for performing selection between measurement ranges of the current sensor 6. When the operator manipulates the switch circuit 3 to select one measurement range from among 10 [A], 20 [B] and 30 [C], a digital selection signal corresponding to the selected measurement range is sent to the CPU 1.
The CPU 1 performs various types of control of the current detector according to procedures stored in the ROM 2. In addition to such control, when receiving the selection signal sent via the data bus 1A from the switch circuit 3, the CPU 1 outputs this selection signal to the EEPROM 4 similarly via the data bus 1A.
The current detector according to the present embodiment has the above described configuration. In using this current detector, the operator manipulates the switch circuit 3 to select a measurement range. The switch circuit 3 outputs a selection signal indicating the selected measurement range to the CPU 1. When receiving the selection signal, the CPU 1 sends this signal to the EEPROM 4. When receiving the selection signal, the EEPROM 4 consults the selection table 4D, reads gain and offset values of one group corresponding to the selection signal from among the data groups 4A to 4C, and outputs these values as the gain adjustment signal and offset adjustment signal to the respective DA converters 5A and 5B. The DA converter 5A converts the digital gain adjustment signal into an analog signal and outputs this signal to the gain adjustment circuit 6A of the current sensor 6; the DA converter 5B converts the digital offset adjustment signal into an analog signal and outputs this signal to the offset adjustment circuit 6B. The gain adjustment circuit 6A of the current sensor 6 adjusts the gain of the amplifier circuit 6D based on the gain adjustment signal sent from the DA converter 5A; the offset adjustment circuit 6B adjusts the offset of the amplifier circuit 6D based on the offset adjustment signal sent from the DA converter 5B. Consequently, a state is obtained in which measurement can be performed in the range selected by the switch circuit 3.
As such, according to the present embodiment, it is possible to provide a multi-range current detector capable of changing its range. Also, in performing selection between measurement ranges, the gain and offset values of the EEPROM 4 are used. Thus, a plurality of measurement ranges can be supported by use of the detection circuit 6C illustrated in
A current detector according to the present embodiment is illustrated in
In performing the automatic selection from the measurement ranges, firstly the CPU 1 sends a selection signal for reading, for example, the data group 4A being setting data for 10 [A] to the EEPROM 4. When the current sensor 6 performs current detection while being adjusted based on gain and offset values of the data group 4A, a detection signal is outputted therefrom. When receiving the detection signal from the AD converter 11, the CPU 1 detects a level of this signal and checks whether or not the detected level is within a predetermined range. Then, when the level of the detection signal is higher compared to the predetermined range, the CPU 1 sends a selection signal for reading the data group 4B being setting data for 20 [A] to the EEPROM 4.
When the detection signal sent from the AD converter 11 falls into the predetermined range, the CPU 1 holds this state to detect a current to be measured. Thereafter, for example, when the current to be measured becomes small and thus the level of the detection signal sent from the AD converter 11 lowers and becomes lower compared to the predetermined range, the CPU 1 sends a selection signal for reading the data group 4A being setting data for 10 [A] to the EEPROM 4. On the contrary, when the level of the detection signal is higher, the CPU 1 sends to the EEPROM 4 a selection signal for reading the data group 4C being setting data for 30 [A].
In this manner, the CPU 1 selects an optimum measurement range corresponding to the current to be measured.
The embodiments of the present invention have been described in detail, but specific configurations are not limited to these embodiments; an embodiment with design modifications or the like applied thereto without departing from the gist of the invention is also included in the technical scope of the invention. For example, in the above described embodiments, in order to select one from among the data groups 4A to 4C, the switch circuit 3 is used, but the present invention is not limited thereto. For example, a configuration may be employed in which when receiving a selection signal from another device, the CPU 1 sends the selection signal to the EEPROM 4.
Also, in the above described embodiments, three measurement ranges 10 [A], 20 [A] and 30 [A] are set, but the present invention is not limited thereto. For example, like conventional art, two measurement ranges 10 [A] and 20 [A] may be set, or four or more measurement ranges may be set.
Further, in the above described embodiments, an example where the present invention is applied to a current detector is described, but the present invention is applicable to various types of detectors.
The present invention is applicable to detectors having a plurality of measurement ranges, such as a current sensor.
Number | Date | Country | Kind |
---|---|---|---|
2004-223033 | Jul 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2005/013851 | 7/28/2005 | WO | 00 | 2/27/2007 |