Semiconductor device and measurement processing system

The semiconductor device and measurement processing system address CPU occupation and cost challenges by employing hardware-based averaging, achieving faster and more accurate average measurement values through a switching unit, timer, and control section.

JP7548709B2Active Publication Date: 2024-09-10LAPIS SEMICON CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
JP2020034144
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-02-28
Publication Date
2024-09-10
Estimated Expiration
2040-02-28

AI Technical Summary

Technical Problem

Existing semiconductor devices face challenges in achieving accurate average measurement values due to CPU and memory occupation during software-based measurement processing, limited measurement times, and increased costs when improving performance, which hinder the ability to obtain a sufficient number of measurements for averaging.

Method used

A semiconductor device and measurement processing system that utilize hardware-based averaging through a switching unit, timer, and control section to calculate average measurement values autonomously, reducing software processing load and enabling faster, more accurate averaging.

Benefits of technology

The system achieves more accurate average measurement values in a shorter time by hardware-based averaging, allowing for flexible measurement sequences and reduced CPU load, thus enhancing processing efficiency and reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548709000005
    Figure 0007548709000005
  • Figure 0007548709000004
    Figure 0007548709000004
  • Figure 0007548709000006
    Figure 0007548709000006
Patent Text Reader

Abstract

To provide a semiconductor device and a measurement processing system, in a semiconductor device and a measurement processing system with a configuration for calculating an average measurement value by average processing many measurement values, capable of acquiring a more accurate average measurement value in a shorter period of time in comparison with a case of software processing.SOLUTION: There are provided an average processing unit which calculates an average measurement value being an average value of a plurality of observed values for each of a plurality of measurement objects output from a switching unit which switches and outputs measurement values acquired from each of a plurality of measurement objects; a timer which generates a timer signal being a timing signal of a predetermined interval; and a control unit which controls the switching unit and the average processing unit so that an average measurement value for each of the measurement objects is calculated according to a measurement sequence for setting a measurement order and measurement times for the timer signal and the plurality of measurement objects.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a semiconductor device and a measurement processing system. [Background technology]

[0002] One field of semiconductor devices is that of semiconductor devices having a function of collecting measurement values ​​output from sensors, etc. Semiconductor devices in such a field may supply the measurement values ​​received from the sensors, etc. to a circuit that executes a predetermined process based on the measurement values. In such a case, in order to properly execute the predetermined process, a highly accurate measurement value in which the influence of disturbances such as noise is suppressed may be required. On the other hand, one method of improving the accuracy of the measurement value is to average a large number of measurement values. This method uses the principle that the average value of a large number of sample values ​​approaches the true value. In addition, by taking the average of a large number of sample values, the effect of reducing the influence of noise is expected.

[0003] For example, Patent Document 1 is known as a document that discloses an averaging process for measured values. In the measurement system disclosed in Patent Document 1, a plurality of measurement devices and a management device are connected so as to be able to communicate with each other. The measurement devices measure the amount of power through a sensor of a detection circuit. When a sensor ID that identifies all sensors connected to the plurality of measurement devices is acquired from the management device, the amount of power measured through the detection circuit including the sensor identified by the acquired sensor ID is transmitted to the management device. In addition, the management device includes a control unit, and the control unit communicates with the measurement devices through a communication function. Furthermore, the measurement system according to Patent Document 1 describes a statistical storage unit that stores statistical values ​​such as the average value of the measurement data stored in the measurement storage unit as statistical data.

[0004] Fig. 6 shows a semiconductor device 100 according to a comparative example having an averaging processing function. As shown in Fig. 6, the semiconductor device 100 includes a CPU 20, a memory 21, an ADC (analog-to-digital conversion circuit) 14, a switch setting unit 15, a switch unit 16-2, and a bus 22. In addition, switch units 16-3, 16-4, and 16-5 and circuits A1, A2, ..., An, B1, C1, and C2 are connected to the outside of the semiconductor device 100.

[0005] The CPU 20 has a function of calculating an average value of a plurality of measurement values ​​(hereinafter, sometimes referred to as an “average measurement value”) by software. The memory 21 has a function of storing the average measurement value calculated by the CPU 20. The CPU 20, the memory 21, the ADC 14, and the switching setting unit 15 are capable of communicating with each other via a bus 22.

[0006] The circuits A1, A2, ..., An, B1, C1, and C2 are each an independent measurement target, and each outputs its own measurement value at a unique period. The output signal of each measurement target is an analog signal. The measurement value of the analog signal switched by the switching units 16-2 to 16-5 is converted to a digital signal by the ADC 14 and taken into the CPU 20 via the bus 22.

[0007] The switching units 16-2, 16-3, 16-4, and 16-5 (hereinafter collectively referred to as "switching unit 16") are, for example, selectors that switch connections of a plurality of measurement objects. Each of the switching units 16 is controlled by the switching setting unit 15, and measurement values ​​are input to the ADC 14 one by one at a predetermined timing. The switching setting unit 15 switches between the switching units 16-2, 16-3, 16-4, and 16-5 based on instructions from the CPU, and controls the measurement objects input to the ADC 14. Note that the switching unit 16-2 is built into the semiconductor device 100, and the switching units 16-3 to 16-5 are provided outside the semiconductor device 100, but have the same functions.

[0008] In the semiconductor device 100, a procedure for measuring a plurality of measurement targets while switching the input to the ADC 14 is written using software, and an average measurement value is output at a predetermined cycle to perform measurements of a plurality of sensors. In general, when the steady fluctuation (fluctuation not including disturbance) of the measurement value output by the sensor is not so large and further improvement in the accuracy of the measurement target is not desired, the number of measurements is increased and averaging processing is performed for a larger number of parameters, thereby reducing the influence of noise and improving the accuracy of the average measurement value. [Prior art documents] [Patent documents]

[0009] [Patent Document 1] JP 2016-095683 A Summary of the Invention [Problem to be solved by the invention]

[0010] However, there are two problems to be solved when trying to improve the accuracy of the average measurement value by increasing the number of measurements of the measurement value in the semiconductor device 100 according to the comparative example.

[0011] The first problem is that the measurement process by software occupies the CPU, memory, bus, etc., and the CPU cannot execute other processes during the measurement process. The semiconductor device equipped with this CPU and memory is usually a microcomputer, and when viewed as a system with a communication function, etc., it often has a function with a higher priority than the measurement process. Therefore, when some process with a higher priority occurs, the measurement process may have to be stopped. In addition, a method of allocating processing time in advance so that the measurement process is not stopped is also conceivable, but this method reduces the time available for measurement. As a result, the expected number of measurements cannot be achieved.

[0012] The second issue is that when measuring by software, the time required for one measurement is several times the operating clock of the hardware. The time required for measurement is limited by software processing, and it is not possible to measure for each ADC sampling frequency, for example. In addition, averaging processing is also performed by software, but measurements (capturing measurement data) cannot be performed during averaging processing.

[0013] As described above, in the case of software-based measurement processing, the number of measurements is generally limited, and in many cases, the number of measurements is insufficient to obtain the average effect of a large population. On the other hand, in order to compensate for the small number of measurements, it is possible to improve the performance of the measurement circuit, but in that case, the problem of high costs arises.

[0014] In consideration of the above circumstances, the present invention aims to provide a semiconductor device and a measurement processing system that are configured to average a large number of measurement values ​​to calculate an average measurement value, and that is capable of obtaining a more accurate average measurement value in a shorter time than when processed by software. [Means for solving the problem]

[0015] In order to solve the above problems, the semiconductor device of the present invention includes an averaging processing unit that calculates an average measurement value, which is the average value of multiple observation values ​​of each of multiple measurement objects, output from a switching unit that switches between and outputs measurement values ​​obtained from each of the multiple measurement objects, a timer that generates a timer signal that is a timing signal at a predetermined interval, and a control unit that controls the switching unit and the averaging processing unit so that an average measurement value for each of the measurement objects is calculated in accordance with the timer signal and a measurement sequence that sets the measurement order and number of measurements for the multiple measurement objects.

[0016] In order to solve the above problems, the measurement processing system of the present invention includes a switching unit that switches between and outputs measurement values ​​obtained from each of a plurality of measurement objects, an averaging processing unit that calculates an average measurement value which is the average value of a plurality of observation values ​​of each of the plurality of measurement objects output from the switching unit, a timer that generates a timer signal which is a timing signal at a predetermined interval, a control unit that controls the switching unit and the averaging processing unit so that an average measurement value for each of the measurement objects is calculated in accordance with the timer signal and a measurement sequence that sets the measurement order and the number of measurements for the plurality of measurement objects, and a microcomputer with a CPU that supplies the average measurement values ​​of the plurality of measurement objects calculated by the averaging processing unit to an external circuit corresponding to each of the measurement objects via a communication function. Effect of the Invention

[0017] According to the present invention, in a semiconductor device and measurement processing system having a configuration for averaging a large number of measurement values ​​to calculate an average measurement value, it is possible to provide a semiconductor device and measurement processing system that can obtain a more accurate average measurement value in a shorter time than when software processing is performed. [Brief description of the drawings]

[0018] [Figure 1] FIG. 1A is a block diagram showing an example of a configuration of a semiconductor device according to a first embodiment, and FIG. 1B is a block diagram showing an example of a configuration of an averaging processing unit. [Diagram 2] FIG. 1A is a timing chart showing the relationship between timer signals TIM1 and TIM2 in averaging process i of a semiconductor device according to a first embodiment; FIG. 1B is a timing chart showing the arrangement of switching timing and measurement timing within a measurement sequence; and FIG. 1C is a conceptual diagram showing an example of a measurement sequence. [Diagram 3] FIG. 13 is a block diagram showing an example of a configuration of a semiconductor device and a measurement processing system according to a second embodiment. [Figure 4]FIG. 13 is a block diagram showing an example of a configuration of a semiconductor device and a measurement processing system according to a third embodiment. [Diagram 5] FIG. 13 is a block diagram showing an example of a configuration of a semiconductor device and a measurement processing system according to a fourth embodiment. [Figure 6] FIG. 1 is a block diagram showing a configuration of a semiconductor device according to a comparative example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

[0020] [First embodiment] A semiconductor device 10 according to the present embodiment will be described with reference to Figures 1 and 2. In the semiconductor device 10, an embodiment is illustrated in which measurements are performed on two measurement objects, a circuit A and a circuit B. Note that the measurement values ​​of the measurement objects according to the present embodiment are not limited to circuit characteristics (e.g., voltage, current, etc.), and can be generally applied to sensor outputs such as temperature and pressure.

[0021] The configuration of a semiconductor device 10 will be described with reference to Fig. 1. As shown in Fig. 1(a), the semiconductor device 10 includes an averaging processing unit 11, a control unit 12, a timer 13, and an ADC 14. The semiconductor device 10 also includes an external switching unit 16-1. The switching unit 16-1 is configured with, for example, a selector or a switch, and switches between circuit A and circuit B as the measurement target.

[0022] The ADC 14 converts the analog measurement value Sa from the circuit A or circuit B sent from the switching unit 16 - 1 into a digital measurement value Sd and sends it to the averaging processing unit 11 .

[0023] The averaging unit 11 calculates the average value of a plurality of measurement values ​​from the measurement object sequentially input from the ADC 14, and outputs the average measurement value from an output unit (not shown). Note that the semiconductor device according to the present invention may be configured so that the digital measurement value Sd is directly input to the averaging unit 11 without going through the ADC 14 to execute the averaging process. In this case, for example, the measurement object outputs the digital measurement value Sd.

[0024] The control unit 12 controls the operation timing in the averaging processing unit 11, and also controls the switching timing of the switching unit 16-1 in conjunction with this operation timing. In the semiconductor device 100 according to the above-mentioned comparative example, the CPU 20 had to execute switching one by one according to software, but in the semiconductor device 10, the control unit 12 executes switching in conjunction with the operation of the ADC 14, and controls the timing (FIG. 2(b)) taking into consideration the time required for each switch (for example, the convergence time of the internal state of the analog circuit to be measured, etc.). <2> The switching is performed by controlling the switching unit 16-1 in accordance with the switching timing tset shown in FIG.

[0025] That is, the switching timing in the switching unit 16-1 is set by software incorporated in the control unit 12, taking into consideration the settling time for switching between the measurement targets, or the switching characteristics of the switching unit 16-1. Note that in this embodiment, the control by the control unit 12 is described taking the switching control of the switching unit 16-1 as an example, but the control unit 12 may be configured to control an external circuit other than switching. The control unit 12 according to this embodiment controls the averaging unit 11 by a control signal Cv, controls the ADC 14 by a control signal Ca, and controls the switching unit 16-1 by a control signal Cs, in accordance with two timer signals TIM1 and TIM2 from the timer 13.

[0026] The timer 13 generates a timer signal, which is a timing signal used by the control unit 12 to generate a control signal for controlling each part. As described above, there are two types of timer signals, timer signals TIM1 and TIM2, and the timer signals TIM1 and TIM2 are synchronized, and the timing interval of the timer signal TIM2 is made narrower than the timing interval of the timer signal TIM1. Once the timer 13 is started, it continues to output the timer signals TIM1 and TIM2 without any software control thereafter. Note that the timer signal does not necessarily need to be divided into two, TIM1 and TIM2, and it may be configured to use one timer signal. In this case, the timer signal TIM2 is used as the timer signal.

[0027] The configuration of the averaging processing unit 11 will be described with reference to FIG. 1(b). As shown in FIG. 1(b), the averaging processing unit 11 includes an averaging circuit 32 and a plurality of memory circuits 31-1, 31-2, ..., 31-n (hereinafter collectively referred to as "memory circuits 31"). The memory circuits 31 are memory circuits (buffer memories) that temporarily store the measurement values ​​sent from the ADC 14, and one memory circuit 31 is assigned to each of a plurality of measurement targets. In this embodiment, since there are two measurement targets, two of the multiple memory circuits 31 (FIG. 1(b) illustrates the case of n memory circuits) are used (or two memory circuits 31 are provided). A specific example of the memory circuits 31 is a memory, but an integrating circuit may be used instead of a memory.

[0028] The averaging circuit 32 executes an averaging process on the measurement values ​​for each measurement object sent from the memory circuit 31, and calculates and outputs an average measurement value.

[0029] Next, the details of the averaging process executed by the semiconductor device 10 will be described with reference to Fig. 2. Fig. 2(a) shows the relationship between timer signals TIM1 and TIM2 in the averaging process, Fig. 2(b) shows the timing relationship of switching and measurement controlled by timer signal TIM2, and Fig. 2(c) shows an example of a measurement sequence.

[0030] The averaging process according to the present embodiment is shown in FIG. <1> 2(a), the averaging process is made up of successive averaging processes 1, 2, 3, 4, ... (hereinafter, sometimes referred to as "averaging process i") defined by the timing interval of the timer signal TIM1. The averaging process unit 11 performs averaging at each timing defined by the timer signal TIM1, that is, <2> The average measurement value of each measurement object is output for each time t0, t1, t2, t3, t4, ... shown in FIG.

[0031] Figure 2(a) <3> shows the internal processing of each averaging process i. <3> As shown in FIG. 1, each averaging process i is composed of a measurement period Tm and a preliminary period Tw. The measurement period Tm is a period during which measurements of multiple measurement targets (acquisition of digital measurement data from the ADC 14) are performed. The preliminary period Tw is a period during which nothing is performed that is provided between the measurement periods Tm. Note that the preliminary period Tw is not essential, and may be omitted, for example, when it is desired to speed up the averaging process.

[0032] Here, in the semiconductor device 10 according to this embodiment, the processing in each averaging process i is executed according to a measurement sequence. The measurement sequence is a table for setting the measurement order and the number of measurements for each measurement object, and in this embodiment, it is created by the control unit 12. FIG. 2(c) shows an example of the measurement sequence. The time length of the measurement sequence is set to the measurement period Tm. FIG. 2(c) shows an example in which measurements are taken 10 times for circuit A and 6 times for circuit B. The measurement sequence is set so that measurements are taken alternately between circuit A and circuit B as much as possible. This is to minimize fluctuations in the measurement values ​​of each measurement object at the measurement timing.

[0033] FIG. 2(b) shows the switching and measurement timing controlled by the timer signal TIM2. <1> is the measurement sequence shown in Fig. 2(c). In this embodiment, a switching timing tset and a measurement timing tmes are set for each measurement target (circuit A, circuit B) included in the measurement sequence. The switching timing tset is the switching timing of the switching unit 16-1 sent by the control signal Cs, and the measurement timing tmes is the timing at which the averaging processing unit 11 takes in the measurement value from the ADC 14, sent by the control signals Cv and Ca. <2> As shown in Fig. 2(b), there is a time lag between the switching timing tset and the measurement timing tmes. <2> In this example, a time lag of two pulses of the timer signal TIM2 is provided. This time lag is set in consideration of the time it takes for the switching unit 16-1 to stabilize after receiving the switching timing tset, the time it takes for the measurement value of the measurement target to stabilize, etc. In this embodiment, the time lag between the switching timing tset and the measurement timing tmes is a fixed value, but the value of the time lag can be set to an arbitrary value by software used in the control unit 12.

[0034] As described above in detail, in the semiconductor device 10 according to the present embodiment, each process in the switching unit 16, the ADC 14, and the averaging unit 11 is executed by hardware autonomous processing based on a preset timer signal in accordance with a preset measurement sequence. At this time, the measurement sequence can be set by software in the control unit 12, and the measurement sequence of the measurement objects, the number of measurements, etc. can be flexibly set. In addition, the timer signal is generated autonomously by the timer 13, and a constant processing timing is continuously supplied unless, for example, a stop signal is sent from the control unit 12. This processing timing is set so that the processing is executed in the shortest time, taking into consideration the processing time of each of the switching unit 16, the ADC 14, the averaging unit 11, and the control unit 12. The timing interval of the timer signal in the timer 13 can also be flexibly set by software.

[0035] Furthermore, the semiconductor device 10 according to this embodiment uses a timer signal TIM1 that sets an interval for executing the averaging process i and specifies the timing for outputting the average measurement value, and two timer signals that specify the switching timing tset and the measurement timing tmes in the measurement sequence. This simplifies the processing in each of the switching unit 16-1, ADC 14, and averaging processing unit 11 by the control unit 12, thereby reducing the load on the control unit 12.

[0036] [Second embodiment] A semiconductor device and a measurement processing system according to the present embodiment will be described with reference to FIG. 3. As shown in FIG. 3, the measurement processing system according to the present embodiment includes a semiconductor device 10A and switching units 16-3, 16-4, and 16-5. As shown in FIG. 3, the semiconductor device 10A includes an average processing unit 11, a control unit 12, a timer 13, an ADC 14, a switching setting unit 15, a switching unit 16-2, a CPU 20, and a memory 21. The semiconductor device 10A also includes switching units 16-3, 16-4, and 16-5 on the outside. The measurement targets of the semiconductor device 10A are circuits A1, A2, . . . , An, circuit B1, and circuits C1 and C2.

[0037] The functions of the averaging unit 11, the control unit 12, the timer 13, and the ADC 14 are the same as those of the first embodiment, and therefore detailed description thereof will be omitted. In the semiconductor device 10A according to the present embodiment, a switching setting unit 15, a switching unit 16-2, a CPU 20, a memory 21, and a bus 22 are added to the semiconductor device 10.

[0038] The switching unit 16-2 is a switching unit provided immediately adjacent to the ADC 14 input, and is provided as standard in the semiconductor device 10A. In this way, the switching unit may be provided internally as well as externally. In the semiconductor device 10A, there are (n+3) measurement objects, and these measurement objects are controlled by four switching units, which makes switching complicated. Therefore, in this embodiment, a dedicated switching setting unit 15 is provided to control the switching of each switching unit. The switching setting unit 15 switches the measurement values ​​of the measurement objects input to the ADC 14 one by one based on an instruction from the control unit 12.

[0039] In the semiconductor device 10A of this embodiment, the control unit 12, the averaging processing unit 11, the ADC 14, and the switching setting unit 15 also operate in accordance with the timer signals TIM1 and TIM2 generated by the timer 13, and the averaging process i is executed in accordance with the measurement sequence set in the control unit 12.

[0040] The CPU 20 supplies each average measurement value received from, for example, the averaging processing unit 11 via the bus 22 to an external functional unit that executes a predetermined process using the average measurement value via a communication function (not shown). The memory 21 stores, for example, the average measurement value calculated by the averaging processing unit 11.

[0041] As with the semiconductor device 10, the semiconductor device 10A also performs averaging of a designated number of samples for the measurement values ​​of each measurement object sent from the ADC 14. In addition, for the averaging process, the number of measurements and the measurement order of each measurement object are individually set based on the measurement sequence.

[0042] For example, when measuring the measurement values ​​of the circuit A1 and the circuit A2 (hereinafter, "circuit A1" and the like will be written as "A1" and the like) shown in FIG. 3 alternately and averaging the measured values, the measurement sequence is, for example, as follows:<A1、A2、A1、A2、····、A1、A2> The order and number of measurement targets are specified as (A1, A2). The repetition period in the measurement sequence in this case is (A1, A2). The measurement values ​​of A1 and A2 are sequentially and alternately taken into the ADC 14, allocated to the memory circuit 31 (see FIG. 1(b)), and the average measurement value is calculated individually. In the above measurement sequence, the form in which A1 and A2 are alternately arranged is exemplified, but this arrangement is not limited, and A1 and A2 may be arranged consecutively. In addition, the number of measurement targets is not limited to two, and may be any number, and the necessary number of switching units 16 may be provided depending on the number of measurement targets. In addition, it is not necessary to repeat in units of (A1, A2), and different numbers of A1 and A2 may be arranged depending on the number of measurements of each.

[0043] Furthermore, this embodiment is also applicable to the case where the measurement value of a certain circuit is controlled by the output of another circuit. For example, there is a case where it is desired to change a value using the measurement value of a certain circuit as a parameter, and in such a case, the measurement value of the other circuit is changed. The change in the measurement value here also includes, for example, the case where the gain of the circuit to be measured is changed. In the circuit shown in FIG. 3, for example, the measurement value of A1 is changed by B1 or C1, which is the output of the switching unit 16-4, and the measurement value of A2 is changed by C1 or C2, which is the output of the switching unit 16-5. Even in such a case, measurement is possible by setting the switching unit 16-4 or the switching unit 16-5.

[0044] Hereinafter, for example, A1 whose value is changed by B1 will be expressed as A1(B1). In this case, the measurement sequence is, for example,<A1(B1)、A2、A1(C1)、A2、A1(B1)、A2、A1(C1)、A2、···、A1(B1)、A2、A1(C1)、A2> The repeat period in the measurement sequence in this case is (A1(B1), A2, A1(C1), A2). This makes it possible to specify the number of samples for A1(B1), A2, and A1(C1) and obtain the average measurement value for each. As mentioned above, it is not necessarily necessary to repeat at a period of (A1(B1), A2, A1(C1), A2).

[0045] More specifically, A1(B1), A2, and A1(C1) may be measured consecutively, and the average measurement value may be calculated using a different number of samples. For example, the measurement conditions for A1(B1), A1(C1), and A2 may be set as follows: A1 (B1): Number of consecutive measurements = 2, number of samples = 4. A1(C1): Number of consecutive measurements = 3, number of samples = 10. A2: Number of consecutive measurements = 1, number of samples = 6. In this case, the measurement sequence is as follows. <A1(B1)、A1(B1)、A1(C1)、A1(C1)、A1(C1)、A2、A1(B1)、A1(B1)、A1(C1)、A1(C1)、A1(C1)、A2、A1(C1)、A1(C1)、A1(C1)、A2、A1(C1)、A2、A2、A2> The above measurement sequence is set by software in the control unit 12.

[0046] As described above in detail, according to the semiconductor device 10A of the present embodiment, in a configuration in which the switching unit 16 is provided not only externally but also internally, in a semiconductor device and a measurement processing system having a configuration in which a large number of measurement values ​​are averaged to calculate an average measurement value, it is possible to obtain a more accurate average measurement value in a shorter time than when software processing is performed. Also, according to the semiconductor device 10A of the present embodiment, since hardware independent of the CPU 20 executes the averaging process, the load of software processing on the CPU 20 is reduced compared to the semiconductor device 100 of the comparative example. Therefore, the CPU 20 can also incorporate other software processing. Alternatively, as a result of the reduced load, it is possible to reduce the operating speed of the CPU 20 and reduce the memory capacity for programs and data.

[0047] [Third embodiment] With reference to FIG. 4, the semiconductor device and the measurement processing system according to the present embodiment will be described. As shown in FIG. 4, the measurement system according to the present embodiment includes a semiconductor device 10B and switching units 16-3, 16-4, 16-5, and 16-7. Also, as shown in FIG. 4, the semiconductor device 10B is a configuration in which a DAC (digital-analog conversion circuit) control unit 23, a DAC 24, and a switching unit 16-6 are added to the semiconductor device 10A shown in FIG. 3. Therefore, the same reference numerals are given to the same configuration as the semiconductor device 10A, and detailed description is omitted. In the semiconductor device 10B, the switching unit 16-7 is further connected to the outside. The DAC control unit 23, the DAC 24, and the switching units 16-6 and 16-7 are an example of the "change setting unit" according to the present invention.

[0048] The DAC control unit 23, the DAC 24, and the switching units 16-6 and 16-7 have a function of changing the measurement value of an external circuit (measurement target) by an analog signal. That is, the semiconductor device 10B has a configuration in which an external circuit is controlled by an internal circuit. For example, in FIG. 4, B1 and C1 can be controlled by the output from the semiconductor device 10B by switching the switching unit 16-7.

[0049] Here, in the circuit to be measured, it may be necessary to change the value of the signal supplied to the circuit depending on the result of the measurement. Also, there may be cases where it is desired to change the value of the signal supplied to the circuit according to the type of measurement item of the circuit. The semiconductor device 10B according to the present embodiment is equipped with the DAC control unit 23, the DAC 24, and the switching unit 16-6, so that such a function can be provided as standard.

[0050] The DAC control unit 23 has a function of controlling the DAC 24 based on an instruction from the control unit 12. The DAC control unit 23 generates a digital signal for controlling an external circuit (B1, C1 in the example of FIG. 4) based on an instruction from the control unit 12. The digital signal for controlling the external circuit may be configured so that the DAC control unit 23 takes in the digital signal from outside the semiconductor device 10B.

[0051] The DAC 24 converts the digital signal received from the DAC control unit 23 into an analog signal. The switching units 16-6 and 16-7 switch between the circuits (B1, C1) to which the analog signal from the DAC 24 is supplied.

[0052] As shown in Fig. 4, a control signal is input from the control unit 12 to the DAC control unit 23 and DAC24, and they are controlled by the DAC control unit 23. The processes in the DAC control unit 23, DAC24, and switching units 16-6 and 16-7 are also executed based on timing signals supplied from the timer signals TIM1 and TIM2 shown in Fig. 1. In addition, the order and number of times of the analog signal supplied from the DAC24 are also incorporated and set in the measurement sequence shown in Fig. 2(c).

[0053] [Fourth embodiment] A semiconductor device and a measurement processing system according to the present embodiment will be described with reference to Fig. 5. As shown in Fig. 5(a), the measurement system according to the present embodiment includes a semiconductor device 10C and a switching unit 16-1. Also, as shown in Fig. 5(a), the semiconductor device 10C is a configuration in which an ADC timer signal TIMA input from the timer 13 to the control unit 12 and a timer control signal Tc input from the control unit 12 to the timer 13 are added to the semiconductor device 10 shown in Fig. 1. Therefore, the same reference numerals are used for the same components as those of the semiconductor device 10, and detailed description thereof will be omitted.

[0054] The ADC timer signal TIMA according to the present embodiment is a signal that sets the period from the measurement timing tmes to the switching timing tset, while the timer control signal Tc is a signal that generates a start trigger for the timer that generates the timer signal TIM2 and the ADC timer signal TIMA.

[0055] Here, in the first embodiment, the time lag, which is the period from the switching timing tset to the measurement timing tmes, is set to a fixed value. In the first embodiment, this time lag is set in consideration of the time until the switching unit 16-1 stabilizes after receiving the switching timing tset, and also in consideration of the time until the measurement value of the measurement target for each of the circuit A and the circuit B as the measurement target stabilizes. However, there are cases where it is required to set this time lag more flexibly depending on the characteristics of the measurement processing system, etc. This embodiment is configured to be compatible with such a system.

[0056] The operation of the semiconductor device 10C will be described in more detail with reference to FIG. <1> is the same as the measurement sequence shown in FIG. 2(c), and has a measurement period Tm as a period. The time lag from the switching timing tset to the measurement timing tmes is set by the timer TIM2, and the period from the measurement timing tmes to the switching timing tset is set by the timer signal TIMA for ADC. Here, in the semiconductor device 10C, a timer (not shown) that generates the timer signal TIM2 and the timer signal TIMA for ADC is a timer that is turned on (after timing) for a predetermined time and then automatically turned off when a trigger signal for starting the timer is input. In this embodiment, the timing time of the timer signal TIM2 and the timing time of the timer signal TIMA for ADC are different times, but they may be the same time.

[0057] The timer control signal Tc has a function as a signal that generates a start trigger for a timer that generates the timer signal TIM2 and the ADC timer signal TIMA. <1> In the first measurement of circuit A shown in FIG. 1, the timer control signal Tc generates one pulse each at times t1, t2, and t3. The pulse at time t1 triggers the timer of the timer signal TIM2 to start and determine the switching timing tset, and the timer of the timer signal TIM2 turns off after a predetermined time has elapsed. The timer signal TIM2 at this time is transmitted to the control unit 12. The timing at which the timer of the timer signal TIM2 turns off is the measurement timing tmes, and the measurement of circuit A is performed.

[0058] Meanwhile, the control unit 12 detects that the timer for this timer signal TIM2 is off, and transmits the detection to the timer 13. Based on this detection signal, the timer 13 issues a start trigger at time t2 to start the timer for the ADC timer signal. The timer for the ADC timer signal TIMA counts a predetermined time using the pulse at time t2 as a start trigger and then turns off. The timer signal TIMA for ADC at this time is transmitted to the control unit 12. The time counted by the timer for this ADC timer signal TIMA specifies the period from the measurement timing tmes to the switching timing tset. The control unit 12 detects that the timer for this ADC timer signal TIMA is off, and transmits the detection to the timer 13. This detection signal becomes a pulse of the timer control signal Tc at time t3, and the timer signal TIM2 is started using this pulse as a start trigger, and the measurement of the subsequent circuit B is performed by the same operation.

[0059] Here, in this embodiment, the period from the switching timing tset to the measurement timing tmes for circuit B is the same as the period from the switching timing tset to the measurement timing tmes for circuit A, but it may be a period different from that for circuit A. In this case, the time measurement time of the timer signal TIM2 may be changed by changing the setting of a timer that generates the timer signal TIM2 based on the timer control signal Tc, or a timer (not shown) that generates a timer signal with a different time measurement time of the timer signal TIM2 may be further provided and the timer may be started. The same applies to the period from the measurement timing tmes to the switching timing tset for circuit B.

[0060] Furthermore, this embodiment can also be applied to a case where there are multiple switching units as in the second embodiment. In this case, a timer that sets the period from the switching timing tset to the measurement timing tmes and a timer that sets the period from the measurement timing tmes to the switching timing tset can be further provided according to the number of switching units and circuits to be measured.

[0061] As described above, the semiconductor device and measurement processing system according to this embodiment have the advantage that the period from the switching timing tset to the measurement timing tmes can be flexibly set according to the object to be measured, etc. [Explanation of symbols]

[0062] 10, 10A, 10B, 10C, 100 Semiconductor device 11 Averaging processing section 12 Control section 13 Timer 14 ADC 15 Switching setting section 16, 16-1 to 16-7 switching section 20 CPU 21 Memory 22 Bus 23 DAC control section 24DAC 31, 31-1, 31-2,..., 31-n memory circuit 32 Averaging circuit Cv, Ca, Cs control signals Sa Analog measurement value Sd Digital measurement value TIM1, TIM2 timer signals Tm Measurement period Tw preliminary period tset Switching timing tmes Measurement timing TIMA Timer signal for ADC Tc Timer control signal

Claims

1. an averaging processing unit that calculates an average measurement value, which is an average value of a plurality of observation values ​​of each of a plurality of measurement objects, output from a switching unit that switches between and outputs measurement values ​​acquired from each of a plurality of measurement objects; A timer that generates a timer signal that is a timing signal at a predetermined interval; a control unit that controls the switching unit and the averaging processing unit so that an average measurement value for each of the measurement objects is calculated in accordance with a measurement sequence that sets the timer signal and a measurement order and a measurement count for the plurality of measurement objects, the timer generates a first timer signal which is a predetermined timing signal, and a second timer signal which is a timing signal synchronized with the first timer signal and has a timing interval narrower than the timing interval of the first timer signal; the first timer signal specifies a timing at which the averaging processing unit outputs the average measurement value; the second timer signal includes setting a switching timing of the switching unit and a timing for acquiring the measurement values ​​acquired from each of the plurality of measurement targets; the control unit sets a section for outputting the average measurement value by the first timer signal, and sets a switching timing of the switching unit in the measurement sequence and a timing for taking in the measurement values ​​acquired from each of the plurality of measurement targets by the second timer signal; the averaging processing unit outputs the average measurement value at each timing defined by the first timer signal. Semiconductor device.

2. The control unit controls the switching unit and the averaging unit so as to repeatedly execute the measurement sequence, and controls the averaging unit so as to output a plurality of the average measurement values ​​for each measurement sequence. The semiconductor device according to claim 1 .

3. the measurement value acquired by the switching unit is an analog measurement value, the averaging processing unit calculates the average measurement value for a plurality of digital measurement values; further comprising an analog-to-digital converter between the switching unit and the averaging unit; The control unit further controls the analog-to-digital conversion unit according to the timer signal.

3. The semiconductor device according to claim 1 or 2.

4. The measurement device further includes a change setting unit that changes a measurement value output from at least one of the plurality of measurement targets. The semiconductor device according to claim 1 .

5. Further including a CPU having a communication function with the outside, The CPU supplies the average measurement values ​​of the plurality of measurement objects calculated by the averaging processing unit to external circuits corresponding to each of the measurement objects via the communication function. The semiconductor device according to claim 1 .

6. a time lag of two pulses of the second timer signal is provided between a switching timing of the switching unit and a timing of acquiring the measurement value; 2. The semiconductor device according to claim 1, wherein the time lag is set taking into consideration either a time until the switching unit stabilizes after receiving the switching timing or a time until a plurality of observed values ​​of each of the plurality of measurement objects stabilizes.

7. A switching unit that switches between and outputs the measurement values ​​acquired from each of the plurality of measurement targets; an averaging processing unit that calculates an average measurement value which is an average value of a plurality of observation values ​​of each of the plurality of measurement objects output from the switching unit; a timer that generates a timer signal which is a timing signal at a predetermined interval; a control unit that controls the switching unit and the averaging processing unit so that an average measurement value for each of the measurement objects is calculated in accordance with the timer signal and a measurement sequence that sets a measurement order and a number of measurements for the plurality of measurement objects; and a microcomputer having a CPU that supplies the average measurement values ​​of the plurality of measurement objects calculated by the averaging processing unit to an external circuit corresponding to each measurement object via a communication function, the timer generates a first timer signal which is a predetermined timing signal, and a second timer signal which is a timing signal synchronized with the first timer signal and has a timing interval narrower than the timing interval of the first timer signal; the first timer signal specifies a timing at which the averaging processing unit outputs the average measurement value; the second timer signal includes setting a switching timing of the switching unit and a timing for acquiring the measurement values ​​acquired from each of the plurality of measurement targets; the control unit sets a section for outputting the average measurement value by the first timer signal, and sets a switching timing of the switching unit in the measurement sequence and a timing for taking in the measurement values ​​acquired from each of the plurality of measurement targets by the second timer signal; the averaging processing unit outputs the average measurement value at each timing defined by the first timer signal. Measurement processing system.

8. a time lag of two pulses of the second timer signal is provided between a switching timing of the switching unit and a timing of acquiring the measurement value; 8. The measurement processing system according to claim 7, wherein the time lag is set taking into consideration either a time until the switching unit stabilizes after receiving the switching timing or a time until a plurality of observation values ​​of each of the plurality of measurement objects stabilizes.

Citation Information

Patent Citations

  • Method and device for eliminating data noise

    JP1992227118A

  • Small-sized information apparatus

    JP1994265376A

  • Bloodless continuous sphygmometer

    JP1999318899A

  • Correction method for thermal deformation error of machine tool

    JP2004181540A

  • Recorder

    JP2006010541A