Gate time calculation program, gate time calculation method and gate time calculation device of sampling circuit
The gate time calculation program and device optimize sampling circuit operations by setting gate times based on target response and processing times, enhancing efficiency and reducing costs and power consumption.
Patent Information
- Application Number
- JP2023036841
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-09
AI Technical Summary
Existing transmitters fail to adequately address the need for securing processing time and shortening response time in frequency conversion circuits, particularly in adjusting gate times to handle fluctuations in physical quantity signals effectively.
A gate time calculation program and device that calculates gate times based on target response times and required processing times to ensure efficient operation of sampling circuits, minimizing hardware performance requirements and reducing power consumption.
This approach secures calculation time and shortens response time, thereby reducing the cost and power consumption of arithmetic circuits while maintaining effective signal processing.
Smart Images

Figure 2024127591000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a gate time calculation program, a gate time calculation method, and a gate time calculation device for a sampling circuit. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is known a transmitter that adjusts the gate time of a frequency conversion circuit that samples a vibration signal related to a physical quantity of a process and converts the sampled vibration signal into a frequency signal (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2013-122399 A Summary of the Invention [Problem to be solved by the invention]
[0004] The transmitter described in Patent Document 1 monitors the fluctuation of the output of a physical quantity conversion circuit, which calculates a signal related to a physical quantity from a frequency signal, and controls the gate time of the frequency conversion circuit so as to reduce the fluctuation of the output signal of the physical quantity conversion circuit. However, no consideration is given to shortening the response time required for the output signal of the physical quantity conversion circuit to change in response to a change in the physical quantity corresponding to the vibration signal input to the frequency conversion circuit. Furthermore, no consideration is given to ensuring the processing time for the calculation in the physical quantity conversion circuit. There is a demand for ensuring the processing time by the calculation circuit and for shortening the response time.
[0005] The present disclosure has been made in consideration of the above-mentioned points, and aims to provide a gate time calculation program, a gate time calculation method, and a gate time calculation device for a sampling circuit that can ensure calculation time and shorten response time. [Means for solving the problem]
[0006] (1) A gate time calculation program for a sampling circuit according to some embodiments causes a processor to obtain a target response time, which is a target value for the response time until a change in an input signal input to a sampling circuit is reflected as a change in an output signal of an arithmetic circuit that executes arithmetic processing based on the sampling results in the sampling circuit, and calculate a gate time, which is the length of a period for sampling the input signal in the sampling circuit, based on the target response time.
[0007] (2) In the gate time calculation program for a sampling circuit described above in (1), the response time may be a time from when the input signal changes until a ratio of a rate of change of the output signal to a rate of change of the input signal becomes greater than a response threshold. The gate time calculation program for a sampling circuit may cause the processor to calculate the gate time such that a product of the gate time and the response threshold and a sum of the gate time and the processing time of the arithmetic circuit are equal to or less than a target response time.
[0008] By calculating the gate time based on the target response time, it is possible to ensure sufficient processing time for calculations and reduce the response time in a device or equipment that includes a sampling circuit.
[0009] (3) The gate time calculation program for the sampling circuit described in (1) or (2) above may cause the processor to acquire a required processing time, which is the processing time required for processing the input signal in the sampling circuit to generate the output signal, and calculate the gate time based on the target response time and the required processing time.
[0010] By calculating the gate time based on the required processing time, the requirements for the hardware performance of the arithmetic circuit are lowered, which results in a reduction in the cost of the arithmetic circuit or a reduction in the power consumption of the arithmetic circuit.
[0011] (4) In the sampling circuit gate time calculation program described in (3) above, the time from the end of a period in which the input signal is sampled in the sampling circuit to the start of the next period may be shorter than the required processing time.
[0012] If the length of the idle time between the end of a sampling period and the start of the next sampling period is shorter than the processing time of the arithmetic circuit, the processing time of the arithmetic circuit is restricted by the gate time, and therefore it is useful to calculate the gate time based on the required processing time.
[0013] (5) The gate time calculation program for a sampling circuit according to any one of (1) to (4) above may cause the processor to calculate the gate time so that the processing time of the sampling circuit becomes a maximum value.
[0014] By maximizing the processing time of the arithmetic circuit 30, the processing load of the arithmetic circuit 30 can be minimized.
[0015] (6) A method of calculating a gate time of a sampling circuit according to some embodiments includes a processor obtaining a target response time, which is a target value of a response time until a change in an input signal input to a sampling circuit is reflected as a change in an output signal of an arithmetic circuit that performs arithmetic processing based on a sampling result in the sampling circuit, and the processor calculating a gate time, which is the length of a period for sampling the input signal in the sampling circuit, based on the target response time.
[0016] (7) A gate time calculation device according to some embodiments executes the gate time calculation program according to any one of (1) to (5) above. Effect of the Invention
[0017] According to the gate time calculation program, gate time calculation method, and gate time calculation device for a sampling circuit according to the present disclosure, it is possible to ensure calculation time and reduce response time. [Brief description of the drawings]
[0018] [Figure 1] FIG. 2 is a block diagram showing a configuration of a transmitter according to a comparative example. [Diagram 2] FIG. 2 is a block diagram illustrating an example configuration of a transmitter according to an embodiment of the present disclosure. [Diagram 3] 1 is a time chart showing an example of a correspondence relationship between a change over time in a physical quantity detected by a sensor, a period during which sampling is performed by a sampling circuit, a period during which calculation is performed by a calculation circuit, and a change over time in an output from the calculation circuit; [Figure 4] 11 is a graph showing an example of the relationship between the gate time of a sampling circuit and the processing time that can be secured by a calculation circuit when a target response time is satisfied. [Diagram 5] 10 is a flowchart showing an example of a procedure for calculating a gate time of a sampling circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] (Comparative Example) As shown in Fig. 1, a device 90 according to the comparative example includes a sensor 91, a sampling circuit 92, and an arithmetic circuit 93. The sensor 91 detects a physical quantity and inputs a signal corresponding to the detection result of the physical quantity to the sampling circuit 92. The sampling circuit 92 samples the signal input from the sensor 91 during a period whose length is specified by a gate time, and outputs the sampling result to the arithmetic circuit 93. The gate time is the length of a period during which the sampling circuit 92 opens the gate of an element such as a transistor, acquires an input signal from the sensor 10, and performs sampling. The arithmetic circuit 93 performs arithmetic processing based on the sampling result input from the sampling circuit 92, and outputs the arithmetic result corresponding to the physical quantity detected by the sensor 91 as an output signal.
[0020] The sampling circuit 92 accepts the setting of the gate time. In the comparative example, the gate time is set by a user inputting it to the sampling circuit 92, or by inputting an initial value held by the arithmetic circuit 93 to the sampling circuit 92. However, when a target value of the response time until a signal input from the sensor 91 to the sampling circuit 92 is reflected in the output of the arithmetic circuit 93 is set in the device 90, the response time may exceed the target value depending on the length of the gate time. Furthermore, depending on the length of the gate time, it becomes necessary to increase the operating clock of the arithmetic circuit 93. In this case, the cost or power consumption of the arithmetic circuit 93 increases.
[0021] Therefore, the present disclosure describes a gate time calculation program, a gate time calculation method, and a gate time calculation device 40 (see FIG. 2) for a sampling circuit 20 (see FIG. 2) that can ensure calculation time and shorten response time in equipment such as a transmitter 1 (see FIG. 2).
[0022] (Example of transmitter 1 configuration) As shown in FIG. 2, a transmitter 1 according to an embodiment of the present disclosure includes a sensor 10, a sampling circuit 20, an arithmetic circuit 30, and a gate time calculation device 40.
[0023] The transmitter 1 may be replaced with various other devices or apparatuses such as a field device. The gate time calculation device 40 may be incorporated as a device into the transmitter 1 or the field device. The function of the gate time calculation device 40 may be incorporated into the transmitter 1 or the field device.
[0024] The sensor 10 detects a physical quantity and outputs a signal corresponding to the detection result of the physical quantity. The sensor 10 may include, as the physical quantity, a pressure sensor that detects, for example, a differential pressure or pressure. The sensor 10 may include, as the physical quantity, a temperature sensor that detects, for example, a temperature sensor. The sensor 10 is not limited to these examples and may be configured to detect various other physical quantities. The sensor 10 may output various types of signals, such as an electrical signal, such as a current signal or a voltage signal, or an optical signal, as a signal corresponding to the detected physical quantity. The sensor 10 may output the detection result of the physical quantity not only as a signal, but also in various other forms.
[0025] The sampling circuit 20 samples the input signal. The input signal is a signal input from the sensor 10 during a sampling period that lasts for a gate time. The gate time is the length of a period during which the sampling circuit 20 opens the gate of an element such as a transistor to acquire the input signal from the sensor 10 and perform sampling. The sampling circuit 20 may integrate or average the input signal input from the sensor 10 during the sampling period. The sampling circuit 20 may sample the input signal input from the sensor 10 by performing various processes other than arithmetic processes such as integration or averaging of the input signal input from the sensor 10 during the sampling period.
[0026] The sampling circuit 20 accepts the setting of the gate time. The gate time may be set by being input to the sampling circuit 20 from a gate time calculation device 40 described later. The gate time may be set by a user inputting the gate time calculated by the gate time calculation device 40 to the sampling circuit 20. The gate time may be set by inputting an initial value held by the arithmetic circuit 30 to the sampling circuit 20.
[0027] The sampling circuit 20 converts the sampling result of the input signal input from the sensor 10 into a signal in a form processable by the arithmetic circuit 30, or into data or information in a form processable by the arithmetic circuit 30, and outputs it to the arithmetic circuit 30. The sampling result is a signal, data, or information generated as a result of the sampling circuit 20 sampling the input signal.
[0028] The arithmetic circuit 30 acquires sampling results such as signals, data, or information from the sampling circuit 20, executes arithmetic processing based on the sampling results, and outputs the arithmetic results as an output signal. The output signal is a signal corresponding to a physical quantity detected by the sensor 10. The output signal may be an electric signal such as a current signal or a voltage signal, or a signal of various types such as an optical signal. The output signal may include a communication signal. The output signal may include a current signal of 4 mA to 20 mA. The output signal may include a contact signal.
[0029] The arithmetic circuit 30 may be configured to include a processor such as a CPU (Central Processing Unit) or a dedicated circuit such as an FPGA (Field Programmable Gate Array). The arithmetic circuit 30 may be configured to execute a program including a procedure for arithmetic processing. The arithmetic circuit 30 may include a memory unit. The memory unit may store various information used in the operation of the arithmetic circuit 30, or a program including a procedure for arithmetic processing. The memory unit may function as a work memory for the arithmetic circuit 30. The memory unit may be configured, for example, as a semiconductor memory. The memory unit may be configured integrally with the arithmetic circuit 30 or may be configured separately.
[0030] The arithmetic circuit 30 takes a predetermined time to perform arithmetic processing. The time taken for the arithmetic circuit 30 to perform arithmetic processing is also referred to as the processing time of the arithmetic circuit 30. The processing time is determined according to the hardware performance of the arithmetic circuit 30. For example, the lower the hardware performance of the arithmetic circuit 30, the longer the processing time may be. The processing time may also be determined according to the number of operation clocks input to the arithmetic circuit 30. For example, the lower the number of operation clocks, the longer the processing time may be. The higher the number of operation clocks input to the arithmetic circuit 30, the greater the power consumption of the arithmetic circuit 30. In other words, the power consumption of the arithmetic circuit 30 may be greater in order to shorten the processing time.
[0031] The gate time calculation device 40 calculates a gate time to be set in the sampling circuit 20. The gate time calculation device 40 may or may not be included in the transmitter 1. The gate time calculation device 40 may be connected to the sampling circuit 20 when it is necessary to set a gate time in the sampling circuit 20, and may set the calculated gate time in the sampling circuit 20. The gate time calculation device 40 may not be connected to the sampling circuit 20. When the gate time calculation device 40 is not connected to the sampling circuit 20, it may notify the user who sets the gate time in the transmitter 1 of the calculation result of the gate time. The user of the transmitter 1 may set the calculation result of the gate time by the gate time calculation device 40 in the sampling circuit 20.
[0032] The gate time calculation device 40 includes an acquisition section 42, a calculation section 44, and an output section 46.
[0033] The calculation unit 44 may be configured to include, for example, a processor such as a CPU or a dedicated circuit such as an FPGA. The calculation unit 44 may be configured to execute programs that realize various functions of the gate time calculation device 40. The calculation unit 44 may include a storage unit. The storage unit may store various information used in the operation of the calculation unit 44, or programs for realizing the functions of the gate time calculation device 40. The storage unit may function as a work memory for the calculation unit 44. The storage unit may be configured, for example, as a semiconductor memory. The storage unit may be configured integrally with the calculation unit 44 or may be configured separately.
[0034] The acquisition unit 42 and the output unit 46 may include, for example, a communication interface for communicating with an external device via wire or wirelessly.
[0035] The acquisition unit 42 may include an input device that accepts input from a user. The input device may include, for example, a keyboard or physical keys, or may include a touch panel or a touch sensor, or a pointing device such as a mouse.
[0036] The output unit 46 may include a display device. The display device may include various displays such as a liquid crystal display, etc. The output unit 46 may include an audio output device such as a speaker.
[0037] (Example of operation of the sensor 10, the sampling circuit 20, and the arithmetic circuit 30) The transmitter 1 inputs the result of detection of a physical quantity by the sensor 10 as an input signal to the sampling circuit 20, samples the input signal by the sampling circuit 20, processes the sampling result by the arithmetic circuit 30, and outputs an output signal corresponding to the physical quantity. In other words, the transmitter 1 outputs the detection result of the physical quantity by the sensor 10 as an output signal.
[0038] 3, an input signal corresponding to the detection result of a physical quantity in the sensor 10 is sampled by the sampling circuit 20 and processed by the arithmetic circuit 30, and is reflected in an output signal of the arithmetic circuit 30. In FIG. 3, it is assumed that the magnitudes of the input signal and the output signal vary between 0% and 100%.
[0039] The sampling circuit 20 acquires an input signal corresponding to a physical quantity detected by the sensor 10 from the sensor 10. The sampling circuit 20 samples the input signal acquired from the sensor 10 and outputs the sampling result to the arithmetic circuit 30 every time one sampling period ends. In Fig. 3, three sampling periods are represented as SP1, SP2, and SP3. The length of one sampling period, that is, the gate time, is represented by Tgt.
[0040] The arithmetic circuit 30 performs arithmetic processing on the sampling results in one sampling period, and outputs the arithmetic result as an output signal when the arithmetic processing is completed. In Fig. 3, the period during which the arithmetic processing of the sampling results in the first sampling period (SP1) is performed is represented as CP1. The period during which the arithmetic processing of the sampling results in the second sampling period (SP2) is performed is represented as CP2. The length of one arithmetic processing is represented in Tex.
[0041] As shown in Fig. 3, after the input signal changes, the output signal of the arithmetic circuit 30 may change in multiple stages. When the ratio of the rate of change of the output signal to the rate of change of the input signal becomes larger than a predetermined threshold, it is determined that the change of the input signal is reflected in the output signal. The time from when the input signal changes until the change of the input signal is reflected in the output signal is also called the response time. In other words, the response time is the time from when the input signal changes until the ratio of the rate of change of the output signal to the rate of change of the input signal becomes larger than a predetermined threshold.
[0042] The predetermined threshold value used to determine whether a change in the input signal is reflected in the output signal is also called a response threshold value. In other words, the response threshold value is a value to be compared with the ratio of the change rate of the output signal to the change rate of the input signal in order to determine whether a change in the input signal is reflected in the output signal. The response threshold value may be set to, for example, 63%, which may be used as a time constant based on a natural logarithm value. The response threshold value may be set to, for example, 90%, which may be used as a value to determine the rising or falling edge of a pulse signal.
[0043] As shown in Fig. 3, when the input signal changes from 100% to 0%, the rate of change of the input signal is 100%. For example, when the response threshold is set to 63% based on the value of the natural logarithm, it is determined that the change of the input signal is reflected in the output signal when the output signal changes from 100% to less than 37%. On the vertical axis of the graph showing the output signal in the timing chart of Fig. 3, a value determined as a comparison target of the output signal based on the response threshold is indicated as TH. The response threshold is 100%-TH.
[0044] 3, the response time is represented by Tres, which is calculated as the sum of the length of the period after the input signal changes from 100% to 0% in the sampling period (SP1), the length of the second sampling period (SP2), and the processing time (CP2) of the sampling result in the arithmetic circuit 30.
[0045] Here, it is assumed that a target response time is set as a specification of the transmitter 1. The target response time is a time set as an upper limit of the response time. In other words, when a target response time is set as a specification of the transmitter 1, it is necessary to operate the sampling circuit 20 and the arithmetic circuit 30 so that the response time is equal to or less than the target response time.
[0046] It is assumed that the sampling circuit 20 outputs the average value of the input signal input during the sampling period as the sampling result to the arithmetic circuit 30. The following cases (a) to (g) are assumed as cases in which the response time becomes maximum in the timing chart of FIG. (a) The input signal changes from 100% to 0% 37% of the time (Tgt × 0.37) from the start of the first sampling period (SP1). (b) The sampling circuit 20 calculates the average value of the input signal in the first sampling period (SP1) to be 37%, and outputs 37% as the sampling result at the end of SP1. (c) After the arithmetic circuit 30 acquires the sampling result from the sampling circuit 20 and the processing time has elapsed, it outputs 37% as an output signal corresponding to the processing result. (d) Since the output signal has only changed by 63% compared to the 100% change rate of the input signal (only changing from 100% to 37%), it is determined that the change in the input signal has not yet been reflected in the output signal. (e) The sampling circuit 20 outputs 0% as the sampling result at the end of the second sampling period (SP2). (f) After the arithmetic circuit 30 acquires the sampling result from the sampling circuit 20 and the processing time has elapsed, it outputs 0% as an output signal corresponding to the processing result. (g) Since the output signal has changed by 100% (changed from 100% to 0%) relative to the input signal change rate of 100%, it is determined that the change in the input signal has been reflected in the output signal.
[0047] The response time in the above cases (a) to (g) is calculated as the sum (Tgt×1.63+Tex) of the length of the period after the input signal changes from 100% to 0% in the sampling period (SP1) (Tgt×0.63), the gate time (Tgt) which is the length of the second sampling period (SP2), and the processing time (Tex) of the arithmetic circuit 30. Given that this response time is the maximum, the range of the response time (Tres) is expressed by the following inequality (1). Tres≦Tgt×1.63+Tex (1)
[0048] In addition, the processing time of the arithmetic circuit 30 must be equal to or shorter than the gate time (Tgt), which is the length of one sampling period, so that the processing of the arithmetic circuit 30, which is executed every sampling period, is completed within the sampling period. Therefore, the following inequality (2) must be satisfied. Tex≦Tgt (2)
[0049] The above inequality (1) holds when the response threshold is set to 63%. When the response threshold is represented by Rth, inequality (1) can be rewritten as the following inequality (1a): Tres≦Tgt×(1+Rth)+Tex (1a)
[0050] When the response threshold is represented by Rth, the relationship represented by TH=1-Rth is established between the threshold TH of the output of the arithmetic circuit 30 illustrated in FIG. 3 and Rth.
[0051] Assume that a target response time is set as a specification of the transmitter 1. In this case, the gate time, which is the length of the sampling period, must be set within the constraints of the above inequalities (1) or (1a) and (2) so that the response time is equal to or less than the target response time. Specifically, under the constraints of the above inequalities (1) and (2), the range of the gate time is determined by the following inequality (3). Tgt≧Tres / 2.63 (3) Furthermore, under the constraints of the above inequalities (1a) and (2), the range of the gate time is defined by the following inequality (3a). Tgt≧Tres / (2+Rth) (3a)
[0052] A required processing time of the arithmetic circuit 30 may be further set as a specification of the transmitter 1. The required processing time is a time secured as a minimum necessary time for the processing of the arithmetic circuit 30. For example, when the processing speed of the arithmetic circuit 30 is limited due to constraints such as the clock count or power consumption of the arithmetic circuit 30, the time required to process the sampling result at the limited processing speed and output an output signal is set as the required processing time.
[0053] When the required processing time is set, the gate time is set so that the processing time of the arithmetic circuit 30 is equal to or greater than the required processing time. When the required processing time is shorter than the lower limit Tres / 2.63 determined by the above-mentioned inequality (3) or the lower limit Tres / (2+Rth) determined by the inequality (3a), the lower limit of the gate time becomes the lower limit determined by the above-mentioned inequality (3) or (3a). On the other hand, when the required processing time is longer than the lower limit Tres / 2.63 determined by the above-mentioned inequality (3) or the lower limit Tres / (2+Rth) determined by the inequality (3a), the lower limit of the gate time becomes the required processing time. When the required processing time falls within the gate time, the processing time (Tex) of the arithmetic circuit 30 may be set to be equal to the gate time (Tgt).
[0054] (Example of Operation of Gate Time Calculation Device 40) As described above, when a target response time is set as a specification of the transmitter 1, it is necessary to appropriately set the gate time of the sampling circuit 20. The gate time calculation device 40 according to this embodiment calculates a predetermined gate time to be set in the sampling circuit 20 based on the target response time.
[0055] <Constraints based on target response time> First, the gate time needs to be set longer than the processing time of the arithmetic circuit 30. Therefore, the following constraint A is set. Constraint A: Tgt ≧ Tex
[0056] In addition, the response time must be equal to or less than the target response time. Here, the target response time is assumed to be represented by Tres_t. Also, the response threshold is assumed to be set to 63%. In this case, the following constraint condition B is set. Constraint B: Tres_t≧Tres=Tex+Tgt×1.63 Constraint B is transformed into the following constraint B'. Constraint B':Tex≦Tres_t-Tgt×1.63
[0057] The calculation unit 44 of the gate time calculation device 40 calculates the gate time so as to satisfy both the constraint condition A and the constraint condition B' described above. For example, assuming that the relationship between the gate time and the processing time of the arithmetic circuit 30 is expressed as shown in the graph in Fig. 4, the procedure for calculating the optimal value of the gate time will be described. In the graph in Fig. 4, the horizontal axis represents the gate time (Tgt), and the vertical axis represents the processing time (Tex) of the arithmetic circuit 30. Also, it is assumed that the target response time is set to 90 msec (milliseconds) in the graph in Fig. 4.
[0058] The upper boundary of the processing time of the arithmetic circuit 30 based on the constraint A is represented by a graph of Tex=Tgt. On the other hand, the upper boundary of the processing time of the arithmetic circuit 30 based on the constraint B' is represented by a graph of Tex=Tres_t-Tgt×1.63. When the response threshold is represented by Rth, the upper boundary of the processing time of the arithmetic circuit 30 based on the constraint B' is represented by a graph of Tex=Tres_t-Tgt×(1+Rth).
[0059] In other words, the calculation unit 44 may calculate the gate time so that the sum of the product (Tgt×Rth) of the gate time and the response threshold, the gate time (Tgt), and the processing time (Tex) of the arithmetic circuit 30 is equal to or less than the target response time (Tres_t).
[0060] <Constraints Based on Required Processing Time of Arithmetic Circuit 30> Based on the performance of the arithmetic circuit 30, the required processing time is determined as the lower limit of the time required for the arithmetic circuit 30 to process the measured value input from the sampling circuit 20. Therefore, the gate time needs to be set so that the processing time of the arithmetic circuit 30 is equal to or greater than the required processing time. In other words, the gate time needs to be calculated based on the required processing time of the arithmetic circuit 30 in addition to the target response time.
[0061] In the graph of Fig. 4, the required processing time is represented by a dashed line extending along the horizontal axis. The gate time needs to be set within a hatched area surrounded by the line representing the required processing time and the lines representing the upper boundaries of the processing time of the arithmetic circuit 30 based on each of the constraints A and B'. In other words, the calculation unit 44 of the gate time calculation device 40 needs to calculate the gate time so that both the constraints A and B' are satisfied and the processing time of the arithmetic circuit 30 is equal to or longer than the required processing time.
[0062] Here, the longer the processing time of the arithmetic circuit 30, the more the processing load of the arithmetic circuit 30 can be reduced. If it is optimal for the operation of the transmitter 1 to set the gate time so that the processing time of the arithmetic circuit 30 is at its maximum value, then the optimal value of the gate time will be equal to the maximum value of the processing time of the arithmetic circuit 30. By setting the processing time of the arithmetic circuit 30 to its maximum value, the processing load of the arithmetic circuit 30 can be minimized.
[0063] If the gate time when the processing time of the arithmetic circuit 30 is at its maximum value is the optimum gate time, the intersection of the graph of Tex=Tgt and the graph of Tex=Tres_t-Tgt×1.63 in FIG. 4 is the optimum gate time. Specifically, the optimum gate time is calculated as Tres_t / 2.63. In the graph of FIG. 4, Tres_t=90 msec, so the optimum gate time is calculated as 90 / 2.63=34.2 msec. When the response threshold is represented by Rth, the optimum gate time is calculated as Tres_t / (2+Rth).
[0064] <Gate time output calculated based on constraints> The gate time calculation device 40 outputs the gate time calculated by the calculation unit 44 at the output unit 46 as described above. The output unit 46 may output the calculation result of the gate time to the sampling circuit 20 to set the gate time in the sampling circuit 20. The output unit 46 may display the calculation result of the gate time to notify a user of the transmitter 1. The user of the transmitter 1 may set the gate time in the sampling circuit 20 based on the display of the calculation result of the gate time.
[0065] <Example of procedure for calculating gate time of sampling circuit 20> The calculation section 44 of the gate time calculation device 40 may execute a gate time calculation method for the sampling circuit 20, including an example of the procedure of the flowchart illustrated in Fig. 5. The gate time calculation method may be realized as a gate time calculation program executed by a processor constituting the calculation section 44. The gate time calculation program may be stored in a non-transitory computer-readable medium.
[0066] The calculation unit 44 acquires the target response time of the transmitter 1 and the necessary processing time of the arithmetic circuit 30 by the acquisition unit 42 (step S1).
[0067] The calculation unit 44 calculates the gate time of the sampling circuit 20 so that the constraint conditions determined based on the target response time and the required processing time are satisfied (step S2). The calculation unit 44 may calculate the gate time within a range in which the constraint conditions are satisfied, or may calculate the gate time so that the processing time of the arithmetic circuit 30 becomes the maximum value.
[0068] The calculation unit 44 outputs the calculation result of the gate time by the output unit 46 (step S3). The output unit 46 may output the calculation result of the gate time to the sampling circuit 20, or may notify the user of the transmitter 1. After executing the procedure of step S3, the calculation unit 44 ends the execution of the procedure of the flowchart in FIG.
[0069] (Small summary) As described above, according to the gate time calculation device 40 and the gate time calculation method and gate time calculation program of the sampling circuit 20 of this embodiment, the gate time is calculated based on the target response time. By calculating the gate time based on the target response time, it is possible to ensure the processing time for calculations and reduce the response time in a device or equipment such as the transmitter 1 equipped with the sampling circuit 20. Furthermore, by calculating the gate time based on the required processing time, the requirements for the hardware performance of the arithmetic circuit 30 are reduced. As a result, it is possible to reduce the cost of the arithmetic circuit 30 or reduce the power consumption of the arithmetic circuit 30.
[0070] In the transmitter 1 according to this embodiment, when an increase and a decrease in the input signal occur during one sampling period, the increase and the decrease in the input signal cancel each other out in the sampling result, and the change in the input signal is not reflected in the output signal. Therefore, the sampling circuit 20 according to this embodiment may be applied when the frequency of the input signal change is 1 / 2 or less times per sampling period.
[0071] If there is a vacant period between the end of one sampling period and the start of the next sampling period, part of the processing of the arithmetic circuit 30 may be executed during the vacant period. In this case, the gate time (Tgt) may be calculated based on the time obtained by subtracting the length of the vacant period from the processing time (Tex) of the arithmetic circuit 30. Specifically, the constraint condition A (Tgt≧Tex) may be converted to the following constraint condition A′. Constraint A': Tgt ≧ Tex - (length of free time)
[0072] When the length of the free time is longer than the processing time of the arithmetic circuit 30, the constraint condition A does not substantially exist. Therefore, the gate time calculation method or gate time calculation program described above may be applied on the premise that the free time is shorter than the required processing time. Furthermore, the gate time calculation method or gate time calculation program described above is useful for setting the gate time in the sampling circuit 20 in which the sampling period is set so that the free time is zero or almost non-existent. In other words, when the length of the free time from the end of a sampling period to the start of the next sampling period is shorter than the processing time of the arithmetic circuit 30, the processing time of the arithmetic circuit 30 is restricted by the gate time. Therefore, it becomes useful to calculate the gate time based on the required processing time.
[0073] The gate time calculation device 40 may include a tool for setting the gate time in the sampling circuit 20. The gate time calculation device 40 may include a general-purpose PC (Personal Computer), a mobile terminal, or the like.
[0074] Although an embodiment of the present disclosure has been described above with reference to the drawings, the specific configuration is not limited to this embodiment, and various modifications are also included within the scope that does not deviate from the spirit of the present disclosure. [Explanation of symbols]
[0075] 1 Transmitter 10 Sensors 20 Sampling Circuit 30 Arithmetic circuit 40 Gate time calculation device (42: acquisition unit, 44: calculation unit, 46: output unit)
Claims
1. acquiring a target response time, which is a target value of a response time until a change in an input signal input to a sampling circuit is reflected as a change in an output signal of a calculation circuit that executes a calculation process based on a sampling result in the sampling circuit; calculating a gate time, which is the length of a period for sampling the input signal in the sampling circuit, based on the target response time; A program for calculating the gate time of a sampling circuit, which causes a processor to execute the program.
2. the response time is a time from when the input signal changes until a ratio of a rate of change of the output signal to a rate of change of the input signal becomes greater than a response threshold; 2. The gate time calculation program for a sampling circuit according to claim 1, which causes the processor to calculate the gate time so that a sum of a product of the gate time and the response threshold and the gate time and a processing time of the arithmetic circuit is equal to or less than the target response time.
3. acquiring a required processing time, which is a processing time required for processing the input signal in the sampling circuit to generate the output signal; calculating the gate time based on the target response time and the required processing time; 2. The gate time calculation program for a sampling circuit according to claim 1, which causes the processor to execute the following:
4. 4. The sampling circuit gate time calculation program according to claim 3, wherein the time from the end of a period during which the input signal is sampled in the sampling circuit to the start of the next period is shorter than the required processing time.
5. 5. The sampling circuit gate time calculation program according to claim 1, which causes the processor to calculate the gate time so that a processing time of the sampling circuit becomes a maximum value.
6. A processor acquires a target response time, which is a target value of a response time until a change in an input signal input to a sampling circuit is reflected as a change in an output signal of an arithmetic circuit that executes arithmetic processing based on a sampling result in the sampling circuit; the processor calculates a gate time, which is the length of a period for sampling the input signal in the sampling circuit, based on the target response time; A method for calculating a gate time of a sampling circuit, comprising:
7. A gate time calculation device that executes the gate time calculation program according to any one of claims 1 to 4.
Citation Information
Patent Citations
Process controller
JP1992195610A
Image processing system
JP1995282271A
Method and device for variable sampling control
JP2000148225A
Operation state monitor device
JP2002236516A
Transmitter
JP2013122399A
