SEMICONDUCTOR DEVICE AND MEASUREMENT PROCESSING SYSTEM
20210270636 · 2021-09-02
Assignee
Inventors
Cpc classification
International classification
Abstract
An average processing section, a timer, and a control section are provided. The average processing section is configured to compute an average measurement value, this being an average value of plural observed values of each of plural measurement targets as output from a switching section that switches output between measurement values acquired from each of the plural measurement targets. The timer is configured to generate a timer signal configured by timing signals at a predetermined interval. The control section is configured to control the switching section and the average processing section so as to compute the average measurement value for each of the measurement targets according to the timer signal and according to a measurement sequence to set an order of measurement and a number of measurements for the plural measurement targets.
Claims
1. A semiconductor device, comprising: an average processing section configured to compute an average measurement value that is an average value of a plurality of observed values of each of a plurality of measurement targets that are output from a switching section that switches output between measurement values acquired from each of the plurality of measurement targets; a timer configured to generate a timer signal configured by timing signals at a predetermined interval; and a control section configured to control the switching section and the average processing section so as to compute the average measurement value for each of the measurement targets, in accordance with the timer signal and in accordance with a measurement sequence configured to set an order of measurement and a number of measurements for the plurality of measurement targets.
2. The semiconductor device of claim 1, wherein the control section is configured to control the switching section and the average processing section so as to execute the measurement sequence repeatedly, and to control the average processing section so as to output a plurality of the average measurement values for each cycle of the measurement sequence.
3. The semiconductor device of claim 1, wherein: a measurement value acquired by the switching section is an analogue measurement value; the average processing section is configured to compute the average measurement value for a plurality of digital measurement values; the semiconductor device further comprises an analog-to-digital conversion section disposed between the switching section and the average processing section; and the control section is further configured to control the analog-to-digital conversion section in accordance with the timer signal.
4. The semiconductor device of claim 1, wherein; the timer is configured to generate a first timer signal configured by a predetermined timing signal, and to generate a second timer signal configured by a timing signal that is faster than the first timer signal; and the control section is configured to use the first timer signal to set a segment for the measurement sequence, and to use the second timer signal to set a switching timing in the measurement sequence for the switching section and a measurement timing in the measurement sequence for the plurality of measurement targets.
5. The semiconductor device of claim 1, further comprising a change setting section configured to change a measurement value output from at least one of the plurality of measurement targets.
6. The semiconductor device of claim 1, further comprising a processor provided with external communication functionality, wherein: the processor is configured to use the communication functionality to supply average measurement values, computed by the average processing section for a plurality of measurement targets, to external circuits corresponding to the respective measurement targets.
7. The semiconductor device of claim 2, wherein: a measurement value acquired by the switching section is an analogue measurement value; the average processing section is configured to compute the average measurement value for a plurality of digital measurement values; the semiconductor device further comprises an analog-to-digital conversion section disposed between the switching section and the average processing section; and the control section is further configured to control the analog-to-digital conversion section in accordance with the timer signal.
8. The semiconductor device of claim 2, wherein: the timer is configured to generate a first timer signal configured by a predetermined timing signal, and to generate a second timer signal configured by a timing signal that is faster than the first timer signal; and the control section is configured to use the first timer signal to set a segment for the measurement sequence, and to use the second timer signal to set a switching timing in the measurement sequence for the switching section and a measurement timing in the measurement sequence for the plurality of measurement targets.
9. The semiconductor device of claim 2, further comprising a change setting section configured to change a measurement value output from at least one of the plurality of measurement targets.
10. The semiconductor device of claim 2, further comprising a processor provided with external communication functionality, wherein: the processor is configured to use the communication functionality to supply average measurement values, computed by the average processing section for a plurality of measurement targets, to external circuits corresponding to the respective measurement targets.
11. The semiconductor device of claim 3, wherein: the timer is configured to generate a first timer signal configured by a predetermined timing signal, and to generate a second timer signal configured by a timing signal that is faster than the first timer signal; and the control section is configured to use the first timer signal to set a segment for the measurement sequence, and to use the second timer signal to set a switching timing in the measurement sequence for the switching section and a measurement timing in the measurement sequence for the plurality of measurement targets.
12. The semiconductor device of claim 3, further comprising a change setting section configured to change a measurement value output from at least one of the plurality of measurement targets.
13. The semiconductor device of claim 3, further comprising a processor provided with external communication functionality, wherein: the processor is configured to use the communication functionality to supply average measurement values computed by the average processing section for a plurality of measurement targets to external circuits corresponding to the respective measurement targets.
14. The semiconductor device of claim 4, further comprising a change setting section configured to change a measurement value output from at least one of the plurality of measurement targets.
15. The semiconductor device of claim 4, further comprising a processor provided with external communication functionality, wherein: the processor is configured to use the communication functionality to supply average measurement values computed by the average processing section for a plurality of measurement targets to external circuits corresponding to the respective measurement targets.
16. The semiconductor device of claim 7, wherein: the timer is configured to generate a first timer signal configured by a predetermined timing signal, and to generate a second timer signal configured by a timing signal that is faster than the first timer signal; and the control section is configured to use the first timer signal to set a segment for the measurement sequence, and to use the second timer signal to set a switching timing in the measurement sequence for the switching section and a measurement timing in the measurement sequence for the plurality of measurement targets.
17. The semiconductor device of claim 7, further comprising a change setting section configured to change a measurement value output from at least one of the plurality of measurement targets.
18. The semiconductor device of claim 7, further comprising a processor provided with external communication functionality, wherein: the processor is configured to use the communication functionality to supply average measurement values computed by the average processing section for a plurality of measurement targets to external circuits corresponding to the respective measurement targets.
19. A measurement processing system, comprising: a switching section configured to switch output between measurement values acquired from each of a plurality of measurement targets; and a microcomputer including: an average processing section configured to compute an average measurement value that is an average value of a plurality of observed values of each of the plurality of measurement targets, which are output from the switching section, a timer configured to generate a timer signal configured by timing signals at a predetermined interval, a control section configured to control the switching section and the average processing section so as to compute the average measurement value for each of the measurement targets, in accordance with the timer signal and in accordance with a measurement sequence to set an order of measurement and a number of measurements for the plurality of measurement targets, and a processor configured to use communication functionality to supply the average measurement values computed by the average processing section for the plurality of measurement targets to external circuits corresponding to the respective measurement targets.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
DETAILED DESCRIPTION
[0026] Detailed explanation follows regarding exemplary embodiments of the present disclosure, with reference to the drawings.
First Exemplary Embodiment
[0027] Explanation follows regarding a semiconductor device 10 according to a first exemplary embodiment, with reference to
[0028] Explanation follows regarding configuration of the semiconductor device 10, with reference to
[0029] The ADC 14 converts an analogue measurement value Sa sent from the switching section 16-1 for either the circuit A or the circuit B into a digital measurement value Sd, and sends the digital measurement value Sd to the average processing section 11.
[0030] The average processing section 11 computes an average value for the measurement target from plural measurement values sequentially input from the ADC 14, and outputs an average measurement value through an output section (not illustrated in the drawings). Note that in the semiconductor device according to the present disclosure, averaging processing may be executed on digital measurement values Sd input to the average processing section 11 directly instead of through the ADC 14. In such cases, the digital measurement values Sd are, for example, output from the measurement targets. The average processing section may be implemented by either hardware (circuitry) or software (i.e. using a processing circuit to execute program commands held on a storage medium).
[0031] The control section 12 controls an actuation timing of the average processing section 11, and controls a switching timing of the switching section 16-1 coordinated with the actuation timing. In the semiconductor device 100 according to the comparative example described previously, it is necessary for the CPU 20 to execute consecutive switching according to software. However, in the semiconductor device 10, the control section 12 executes switching by coordinating with the actuation of the ADC 14, and by controlling the switching section 16-1 according to a timing (the switching timing tset indicated by <2> in
[0032] Namely, the switching timing of the switching section 16-1 is set by software incorporated in the control section 12 in consideration of a settling timing when switching between the respective measurement targets, or in consideration of the switching characteristics of the switching section 16-1. Note that although explanation is given in which the switching control of the switching section 16-1 is given as an example of control by the control section 12 in the present exemplary embodiment, the control may be of an external circuit that does not require switching. The control section 12 according to the present exemplary embodiment controls the average processing section 11 with a control signal Cv according to two timer signals TIM1, TIM2 from the timer 13, controls the ADC 14 with a control signal Ca, and controls the switching section 16-1 with a control signal Cs. The control section may be implemented by either hardware (circuitry) or software (i.e. using a processing circuit to execute program commands held on a storage medium).
[0033] The timer 13 generates timer signals configured by timing signals used to generate control signals for the control section 12 to control various locations. As described above, the timer signals include two types of timer signals, namely the timer signals TIM1, TIM2. The timer signals TIM1, TIM2 are synchronized with each other, and a timing interval of the timer signal TIM2 is shorter than a timing interval of the timer signal TIM1. Once the timer 13 has been started, the timer signals TIM1, TIM2 continue to be output even if there is no subsequent software control or the like. Note that the timer signals do not necessary have to be split into the two timer signals configured by TIM1 and TIM2, and a single timer signal may be employed. In such cases, the timer signal TIM2 is employed as the timer signal.
[0034] Explanation follows regarding configuration of the average processing section 11, with reference to
[0035] The averaging circuit 32 executes averaging processing on the measurement values sent from the corresponding storage circuits 31 for each of the measurement targets in order to compute and output an average measurement value.
[0036] Next, detailed explanation follows regarding the averaging processing executed in the semiconductor device 10, with reference to
[0037] As indicated by <1> in
[0038] <3> in
[0039] Note that in the semiconductor device 10 according to the present exemplary embodiment, the processing in the respective averaging processing routines i is executed according to a measurement sequence. The measurement sequence is set out in a table used to set the order of measurement and the number of measurements for the respective measurement targets, and is created by the control section 12 in the present exemplary embodiment.
[0040]
[0041] As described in detail above, in the semiconductor device 10 according to the present exemplary embodiment, the respective processing of the switching section 16, the ADC 14, and the average processing section 11 is executed by independent hardware processing based on the preset timer signals and according to the preset measurement sequence. When this is performed, the measurement sequence may be set by the control section 12 using software, and the order of measurement, the number of measurements, and the like of the measurement targets may be set flexibly. Moreover, the timer signals are independently generated by the timer 13, and constant processing timings continue to be supplied unless, for example, a stop signal is output from the control section 12. The processing timings are set such that processing is executed in the minimum possible time, in consideration of the time required for the respective processing by the switching sections 16, the ADC 14, the average processing section 11, and the control section 12. The timing intervals and the like of the timer signals from the timer 13 may also be set flexibly using software.
[0042] In the semiconductor device 10 according to the present exemplary embodiment, a segment for executing the averaging processing routine i is set, and the timer signal TIM1 designating the average measurement value output timings, and the two timer signals that respectively designate the switching timing tset and the measurement timing tmes during the measurement sequence are employed. This simplifies the control of the respective sections of the switching section 16-1, the ADC 14, and the average processing section 11 by the control section 12, thereby lightening the burden on the control section 12.
Second Exemplary Embodiment
[0043] Explanation follows regarding a semiconductor device and a measurement processing system according to a second exemplary embodiment, with reference to
[0044] Functionality of the average processing section 11, the control section 12, the timer 13, and the ADC 14 is similar to that of the first exemplary embodiment, and so detailed explanation thereof is omitted. The semiconductor device 10A according to the present exemplary embodiment is provided with the switching setting section 15, the switching section 16-2, the CPU 20, the memory 21, and a bus 22 in addition to the configuration of the semiconductor device 10.
[0045] The switching section 16-2 is a switching section provided in close proximity to the input of the ADC 14, and is provided as standard in the semiconductor device 10A. The switching section may thus be provided either externally or internally. In the semiconductor device 10A, since there are (n+3) measurement targets and these measurement targets are controlled by four switching sections, switching is more complex. The present exemplary embodiment is therefore provided with the dedicated switching setting section 15 to control switching of the respective switching sections. The switching setting section 15 switches one at a time between the measurement values input to the ADC 14 for each of the measurement targets based on instructions from the control section 12.
[0046] In the semiconductor device 10A according to the present exemplary embodiment, the control section 12, the average processing section 11, the ADC 14, and the switching setting section 15 are actuated according to the timer signals TIM1, TIM2 generated by the timer 13, and the averaging processing routines i are executed according to the measurement sequence set by the control section 12.
[0047] The CPU 20 uses, for example, a communication function (not illustrated in the drawings) to supply the respective average measurement values received from the average processing section 11 via the bus 22 to an external functional section that executes predetermined processing using the average measurement values. The memory 21 for example stores the average measurement values computed by the average processing section 11.
[0048] Similarly to the semiconductor device 10, the semiconductor device 10A also executes averaging processing on a stipulated number of samples of the measurement values sent from the ADC 14 for each of the measurement targets. In the averaging processing, the number of measurements and the order of measurement are set individually for each of the measurement targets based on the measurement sequence.
[0049] For example, in cases in which averaging processing is performed when measurement values for the circuit A1 and the circuit A2 (the notation “circuit A1” is abbreviated to “A1” and so on hereafter) illustrated in
[0050] Moreover, the present exemplary embodiment may also be applied to cases in which the measurement values for a given circuit are controlled using output from another circuit. Take, for example, a case in which it is desirable to change measurement values of a given circuit using a value as a parameter. In such cases, the measurement values of the given circuit are changed based on the other circuit. The changing of measurement values referred to here also includes, for example, cases in which the gain of a measurement target circuit is changed. Of the circuits illustrated in
[0051] Note that when a value for A1 is changed using B1, for example, A1 is expressed as A1 (B1). In such cases, the measurement sequence may, for example, be set to <A1 (B1), A2, A1 (C1), A2, A1 (B1), A2, A1 (C1), A2, . . . , A1 (B1), A2, A1 (C1), A2>. The repetition cycle of the measurement sequence in this case is (A1 (B1), A2, A1 (C1), A2). This enables number of samples to be designated for A1 (B1), A2, A1 (C1) and the respective average measurement values thereof to be acquired. Note that as previously described, the cycle (A1 (B1), A2, A1 (C1), A2) does not necessary have to be repeated.
[0052] More specifically, A1 (B1), A2, A1 (C1) may each be measured consecutively, and average measurement values computed using a different number of samples for each. As an example, measurement conditions for A1 (B1), A2, A1 (C1), A2 are set as below. [0053] A1 (B1): number of consecutive measurements=2, number of samples=4 [0054] A1 (C1): number of consecutive measurements=3, number of samples=10 [0055] A2: number of consecutive measurements=1, number of samples=6
[0056] In this case, the measurement sequence is as follows. [0057] <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>
[0058] The above measurement sequence is set using software by the control section 12.
[0059] As described in detail above, the semiconductor device 10A according to the present exemplary embodiment corresponds to a semiconductor device and a measurement processing system configured such that switching sections 16 are provided not only externally but also internally, and average measurement values are computed by performing averaging processing on multiple measurement values. This enables more accurate average measurement values to be acquired in a shorter time than in cases in which software processing is employed. Moreover, in the semiconductor device 10A according to the present exemplary embodiment, the averaging processing is executed by hardware independently of the CPU 20, thereby lightening the burden on software processing by the CPU 20 in comparison to the semiconductor device 100 according to the comparative example previously described. The CPU 20 is thus able to take on other software processing. Alternatively, as a result of lightening the burden, the operating speed of the CPU 20 may be reduced, and the memory capacity provided for programs and data may also be reduced.
Third Exemplary Embodiment
[0060] Explanation follows regarding a semiconductor device and measurement processing system according to a third exemplary embodiment, with reference to
[0061] The DAC control section 23, the DAC 24, and the switching sections 16-6, 16-7 include functionality to change the measurement values of external circuits (measurement targets) with analogue signals. Namely, the semiconductor device 10B includes configuration to control external circuits using internal circuits. For example, in
[0062] Cases arise in which it becomes necessary to change the value of a signal supplied to a circuit configuring a measurement target in response to a measurement result. Cases also arise in which it is desirable to change the value of a signal supplied to a circuit in accordance with the type of circuit measurement. Since the semiconductor device 10B according to the present exemplary embodiment includes the DAC control section 23, the DAC 24, and the switching section 16-6, such functionality can be provided as standard.
[0063] The DAC control section 23 includes functionality to control the DAC 24 based on instructions from the control section 12. The DAC control section 23 generates digital signals to control external circuits (B1, C1 in the example in
[0064] The DAC 24 converts digital signals received from the DAC control section 23 into analogue signals. The switching sections 16-6, 16-7 switch supply of analogue signals from the DAC 24 between the circuits (B1, C1).
[0065] As illustrated in
Fourth Exemplary Embodiment
[0066] Explanation follows regarding a semiconductor device and measurement processing system according to a fourth exemplary embodiment, with reference to
[0067] The ADC timer signal TIMA according to the present exemplary embodiment is a signal to set a timeslot from the measurement timing tmes to the switching timing tset. The timer control signal Tc is a signal to generate a start trigger for the timers that generate the timer signal TIM2 and the ADC timer signal TIMA.
[0068] In the first exemplary embodiment described above, the time lag configuring the timeslot from the switching timing tset to the measurement timing tmes is configured by a fixed value. In the first exemplary embodiment, this time lag is set in consideration of the time taken for stabilization after the switching section 16-1 has received the switching timing tset, and in consideration of the time taken for the measurement values of the measurement targets to stabilize for each of the circuit A and the circuit B configuring the measurement targets. However, there are also cases in which there is demand to set this time lag more flexibly according to the characteristics of the measurement processing system and the like. The present exemplary embodiment is a configuration capable of accommodating such a system.
[0069] More detailed explanation follows regarding operation of the semiconductor device 10C, with reference to
[0070] The timer control signal Tc includes functionality as a signal to generate a start trigger to start the timers that generate the timer signal TIM2 and the ADC timer signal TIMA. Namely, on the first measurement of the circuit A illustrated in <1> in
[0071] The control section 12 detects that the timer of the timer signal TIM2 is OFF, and transmits this detection to the timer 13. Based on this detection signal, the timer 13 emits a start trigger that starts the timer of the ADC timer signal at the time increment t2. The pulse at the time increment t2 configures a start trigger that turns the timer of the ADC timer signal TIMA OFF after the predetermined measurement duration. When this occurs, the ADC timer signal TIMA is transmitted to the control section 12. The time measurement duration of the timer of the ADC timer signal TIMA designates a timeslot from the measurement timing tmes to the switching timing tset. The control section 12 detects that the timer of the ADC timer signal TIMA is OFF, and transmits this detection to the timer 13. This detection signal becomes the pulse of the timer control signal Tc at the time increment t3, and this pulse serves as a start trigger to start the timer signal TIM2. Subsequent measurement of the circuit B is executed by a similar operation.
[0072] Note that although the timeslot from the switching timing tset to the measurement timing tmes for circuit B is the same as the timeslot from the switching timing tset to the measurement timing tmes for the circuit A in the present exemplary embodiment, the circuit B may have a different timeslot to the timeslot of the circuit A. In such cases, setting of the timer that generates the timer signal TIM2 based on the timer control signal Tc may be changed to change the time measurement duration of the timer signal TIM2, or another timer (not illustrated in the drawings) may be provided to generate a timer signal for a different time measurement duration of the timer signal TIM2, such that this timer is started. Similar also applies in the case of the timeslot from the measurement timing tmes to the switching timing tset for the circuit B.
[0073] Moreover, the present exemplary embodiment may be applied in cases in which plural switching sections are present, as in the case of the second exemplary embodiment. In such cases, timers that set the timeslot from the switching timing tset to the measurement timing tmes and timers that set the timeslot from the measurement timing tmes to the switching timing tset may be further provided corresponding to the number switching sections and the number of circuits configuring measurement targets.
[0074] As described above, the semiconductor device and measurement processing system according to the present exemplary embodiment exhibit the advantageous effect of enabling a timeslot from the switching timing tset to the measurement timing tmes to be set flexibly according to the measurement targets and the like.