Pulse width modulation signal generating device and abnormal state detecting method thereof
阅读说明:本技术 脉冲宽度调制信号生成装置及其异常状态检测方法 (Pulse width modulation signal generating device and abnormal state detecting method thereof ) 是由 段飞虎 于 2018-07-05 设计创作,主要内容包括:本发明提供脉冲宽度调制信号生成装置及其异常状态检测方法。脉冲宽度调制信号生成装置将生成的第一脉冲宽度调制信号经由脉冲宽度调制信号线传输至外部的电子装置,其特征在于还具有:脉冲宽度调制信号提取部,从电子装置提取第一脉冲宽度调制信号的振幅及/或相位被变更而成的第二脉冲宽度调制信号;脉冲宽度调制信号转换部,将第二脉冲宽度调制信号从数字信号转换为模拟信号;以及异常检测部,基于第二脉冲宽度调制信号被转换为模拟信号而得到的数值,检测脉冲宽度调制信号线的异常状态。由此,不需要使用复杂的数字逻辑电路和判断逻辑,能够以简洁的电路结构来明确地检测脉冲宽度调制信号线的异常状态。(The invention provides a pulse width modulation signal generating apparatus and an abnormal state detecting method thereof. The pulse width modulation signal generation device transmits the generated first pulse width modulation signal to an external electronic device via a pulse width modulation signal line, and is characterized by further comprising: a pulse width modulation signal extraction unit that extracts a second pulse width modulation signal in which the amplitude and/or phase of the first pulse width modulation signal is changed, from the electronic device; a pulse width modulation signal conversion unit that converts the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detection unit that detects an abnormal state of the pulse width modulation signal line based on a value obtained by converting the second pulse width modulation signal into an analog signal. Thus, it is possible to clearly detect an abnormal state of the pulse width modulation signal line with a simple circuit configuration without using a complicated digital logic circuit and determination logic.)
1. A pulse width modulation signal generation apparatus has:
a pulse width modulation signal generation unit that generates a first pulse width modulation signal as a digital signal; and
a pulse width modulation signal transmission unit configured to transmit the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line;
the pulse width modulation signal generation device is characterized by further comprising:
a pulse width modulation signal extraction unit that extracts a second pulse width modulation signal from the electronic device, the second pulse width modulation signal being a pulse width modulation signal in which an amplitude and/or a phase of the first pulse width modulation signal is changed;
a pulse width modulation signal conversion unit that converts the second pulse width modulation signal from a digital signal to an analog signal; and
and an abnormality detection unit that detects an abnormal state of the pulse width modulation signal line based on a value obtained by converting the second pulse width modulation signal into an analog signal.
2. The pulse width modulated signal generating apparatus of claim 1,
the pulse width modulation signal conversion section includes:
a first conversion circuit that converts the second pulse width modulation signal from a digital signal to a first analog signal reflecting a duty ratio of the second pulse width modulation signal; and
a second conversion circuit that converts the second pulse width modulation signal from a digital signal to a second analog signal reflecting a peak voltage of the second pulse width modulation signal;
the abnormality detection unit detects an abnormal state of the pulse width modulation signal line based on a voltage value of the first analog signal and a voltage value of the second analog signal.
3. The pulse width modulated signal generating apparatus of claim 2,
the abnormality detection unit detects whether the pulse width modulation signal line is in a ground short-circuit abnormal state in which the pulse width modulation signal line is short-circuited to ground or a power supply short-circuit abnormal state in which the pulse width modulation signal line is short-circuited to battery power supply of the electronic device, based on a voltage value of the first analog signal;
the abnormality detection unit detects whether the pulse width modulation signal line is in an abnormal open circuit state or a normal connection state in which the pulse width modulation signal line is open, based on the voltage value of the first analog signal and the voltage value of the second analog signal.
4. The pulse width modulation signal generating apparatus according to claim 2 or 3,
the first conversion circuit includes:
a first input terminal to which the second pwm signal is input, the first input terminal being connected to the pwm signal extraction unit;
a constant voltage power supply that outputs a constant voltage lower than an output voltage of a battery power supply of the electronic device;
the first RC filter circuit performs low-pass filtering processing;
a switching transistor connected between the constant voltage power supply and the first RC filter circuit, and turning on or off the constant voltage power supply and the first RC filter circuit by using the second pulse width modulation signal inputted from the first input terminal as a control signal;
a first voltage division circuit that divides the signal filtered by the first RC filter circuit; and
and a first output terminal that outputs a signal divided by the first voltage dividing circuit as the first analog signal.
5. The pulse width modulated signal generating apparatus of claim 4,
the second conversion circuit includes:
a second input terminal connected to the pwm signal extraction unit and the first input terminal;
a rectifier circuit that rectifies a signal input from the second input terminal;
the second RC filter circuit is used for carrying out low-pass filtering processing on the signal rectified by the rectifying circuit;
a second voltage division circuit that divides the signal filtered by the second RC filter circuit; and
and a second output terminal that outputs the signal divided by the second voltage dividing circuit as the second analog signal.
6. The pulse width modulated signal generating apparatus of claim 5,
the switching transistor turns on between the constant voltage power supply and the first RC filter circuit when the second pulse width modulation signal input from the first input terminal is at a low level,
the abnormality detection unit detects that the pulse width modulation signal line is short-circuited to ground when a voltage value of the first analog signal is equal to or higher than a first threshold value set to be lower than a voltage value of an output voltage value of a constant voltage power supply of the first conversion circuit divided by the first voltage dividing circuit;
the abnormality detection unit detects that the pulse width modulation signal line is short-circuited with respect to a battery power supply of the electronic device when a voltage value of the first analog signal is equal to or lower than a second threshold set lower than the first threshold and higher than 0V;
the abnormality detection unit detects that the pulse width modulation signal line is open if the voltage value of the second analog signal is equal to or less than a predetermined third threshold value when the voltage value of the first analog signal is lower than the first threshold value and higher than the second threshold value, and detects that the pulse width modulation signal line is in a normally connected state if the voltage value of the second analog signal is higher than the third threshold value.
7. An abnormal state detection method performed by a pulse width modulation signal generation apparatus having:
a pulse width modulation signal generation unit that generates a first pulse width modulation signal as a digital signal; and
a pulse width modulation signal transmission unit configured to transmit the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line;
the abnormal state detection method is characterized by comprising the following steps:
a pulse width modulation signal extraction step of extracting a second pulse width modulation signal from the electronic device, the second pulse width modulation signal being a pulse width modulation signal in which an amplitude and/or a phase of the first pulse width modulation signal is changed;
a pulse width modulation signal conversion step of converting the second pulse width modulation signal from a digital signal to an analog signal; and
an abnormality detecting step of detecting an abnormal state of the pulse width modulation signal line based on a value obtained by converting the second pulse width modulation signal into an analog signal.
8. The abnormal state detection method according to claim 7,
in the pulse width modulation signal conversion step, the second pulse width modulation signal is converted from a digital signal to a first analog signal reflecting a duty ratio of the second pulse width modulation signal, and the second pulse width modulation signal is converted from a digital signal to a second analog signal reflecting a peak voltage of the second pulse width modulation signal,
in the abnormality detecting step, it is detected whether the pulse width modulation signal line is in a short-to-ground abnormal state in which the pulse width modulation signal line is short-circuited to ground or in a short-circuit abnormal state in which the power supply to the battery of the electronic device is short-circuited based on the voltage value of the first analog signal, and whether the pulse width modulation signal line is in an open circuit abnormal state in which the pulse width modulation signal line is open circuit or in a normal connection state based on the voltage value of the first analog signal and the voltage value of the second analog signal.
9. The abnormal state detection method according to claim 8,
the abnormality detecting step includes:
a power supply short-circuit detection step of detecting whether or not the pulse width modulation signal line is in a power supply short-circuit abnormal state with respect to a battery power supply short-circuit of the electronic device, based on a voltage value of the first analog signal;
a ground short detection step of detecting whether or not the pulse width modulation signal line is in a ground short abnormal state in which the power supply is short-circuited to ground based on a voltage value of the first analog signal when the power supply short detection step detects that the power supply is not in the power supply short abnormal state;
a disconnection detecting step of detecting whether or not the pulse width modulation signal line is in a disconnection abnormal state of disconnection based on a voltage value of the second analog signal when the ground short circuit detecting step detects that the pulse width modulation signal line is not in the ground short circuit abnormal state; and
a normal connection determination step of determining that the pulse width modulation signal line is in a normal connection state when the disconnection detection step detects that the disconnection abnormality state is not present.
Technical Field
The present invention relates to a pulse width modulation signal generating device and an abnormal state detecting method thereof, and more particularly, to a pulse width modulation signal generating device and an abnormal state detecting method thereof for detecting an abnormal state of a pulse width modulation signal line when a pulse width modulation signal is transmitted to an external device.
Background
Currently, various electronic devices such as in-vehicle devices are controlled by a pulse width modulation signal (PWM signal). The pulse width modulation signal generating device generates a pulse width modulation signal as a digital signal by a microprocessor, for example, and controls a motor of an electronic device.
In the control using the pulse width modulation signal, if an abnormal state occurs in a pulse width modulation signal line between the pulse width modulation signal generation device and the electronic device to be controlled, the electronic device cannot be normally controlled. Therefore, it is necessary to detect an abnormal state of the pwm signal line.
Conventionally, a monitoring circuit has been proposed which detects an abnormal state of a pulse width modulation signal line by a digital circuit including a logic gate, a comparator, and the like. In the digital circuit-based monitor circuit, a monitor point is set, and an abnormal state of the pwm signal line is detected based on a high-low logic state of a potential of the monitor point.
However, there is a possibility that a plurality of different abnormal states may occur in the pwm signal line between the pwm signal generating apparatus and the electronic apparatus to be controlled. For example, the pwm signal line may be shorted to ground, shorted to battery power, open, etc. If the high-low logic state of the potential is detected only after the pulse width modulation signal is output, the above-described plurality of different abnormal states cannot be distinguished. Furthermore, if the above-described plurality of different abnormal states are to be distinguished by a monitoring circuit based on a digital circuit, a complicated logic circuit and a plurality of monitoring points need to be designed, which increases the circuit scale and increases the cost.
Disclosure of Invention
In view of the above-described problems of the prior art, it is an object of the present invention to provide a pwm signal generating apparatus and an abnormal state detecting method thereof, which can clearly detect an abnormal state of a pwm signal line with a simple circuit configuration.
An embodiment of the present invention provides a pulse width modulation signal generation device including: a pulse width modulation signal generation unit that generates a first pulse width modulation signal as a digital signal; and a pulse width modulation signal transmission unit that transmits the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line; the pulse width modulation signal generation device is characterized by further comprising: a pulse width modulation signal extraction unit that extracts a second pulse width modulation signal from the electronic device, the second pulse width modulation signal being a pulse width modulation signal in which an amplitude and/or a phase of the first pulse width modulation signal is changed; a pulse width modulation signal conversion unit that converts the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detection unit that detects an abnormal state of the pulse width modulation signal line based on a value obtained by converting the second pulse width modulation signal into an analog signal.
Thus, it is possible to clearly detect an abnormal state of the pwm signal line connecting the pwm signal generating apparatus and the electronic apparatus with a simple circuit configuration without using a complicated digital logic circuit and determination logic.
In the above-described pulse width modulation signal generation device, the pulse width modulation signal conversion unit may include: a first conversion circuit that converts the second pulse width modulation signal from a digital signal to a first analog signal reflecting a duty ratio of the second pulse width modulation signal; and a second conversion circuit that converts the second pulse width modulation signal from a digital signal to a second analog signal reflecting a peak voltage of the second pulse width modulation signal; the abnormality detection unit detects an abnormal state of the pulse width modulation signal line based on a voltage value of the first analog signal and a voltage value of the second analog signal.
Thus, by generating a plurality of analog signals reflecting the duty ratio and the peak voltage of the second pulse width modulation signal extracted from the electronic device, it is possible to more reliably detect a plurality of abnormal states of the pulse width modulation signal line.
In the above-described pulse-width-modulated-signal generating device, the abnormality detecting unit may detect whether or not the pulse-width-modulated signal line is in a ground short-circuit abnormal state in which the pulse-width-modulated signal line is short-circuited to ground, or a power supply short-circuit abnormal state in which the pulse-width-modulated signal line is short-circuited to a battery power supply of the electronic device, based on a voltage value of the first analog signal; the abnormality detection unit detects whether the pulse width modulation signal line is in an abnormal open circuit state or a normal connection state in which the pulse width modulation signal line is open, based on the voltage value of the first analog signal and the voltage value of the second analog signal.
Thus, by combining and determining the voltage values of the plurality of analog signals reflecting the duty ratio and the peak voltage of the second pulse width modulation signal extracted from the electronic device, it is possible to reliably detect a plurality of types of abnormal states such as a short-circuit state and a disconnection state of the pulse width modulation signal line.
In the above-described pwm signal generation apparatus, the first conversion circuit may include: a first input terminal to which the second pwm signal is input, the first input terminal being connected to the pwm signal extraction unit; a constant voltage power supply that outputs a constant voltage lower than an output voltage of a battery power supply of the electronic device; the first RC filter circuit performs low-pass filtering processing; a switching transistor connected between the constant voltage power supply and the first RC filter circuit, and turning on or off the constant voltage power supply and the first RC filter circuit by using the second pulse width modulation signal inputted from the first input terminal as a control signal; a first voltage division circuit that divides the signal filtered by the first RC filter circuit; and a first output terminal that outputs a signal divided by the first voltage dividing circuit as the first analog signal.
In the above-described pulse width modulation signal generating apparatus, the second conversion circuit may include: a second input terminal connected to the pwm signal extraction unit and the first input terminal; a rectifier circuit that rectifies a signal input from the second input terminal; the second RC filter circuit is used for carrying out low-pass filtering processing on the signal rectified by the rectifying circuit; a second voltage division circuit that divides the signal filtered by the second RC filter circuit; and a second output terminal that outputs a signal divided by the second voltage dividing circuit as the second analog signal.
In the pwm signal generation apparatus, the switching transistor may be configured to turn on the constant voltage power supply and the first RC filter circuit when the second pwm signal input from the first input terminal is at a low level, and the abnormality detector may be configured to detect that the pwm signal line is short-circuited to ground when a voltage value of the first analog signal is equal to or higher than a first threshold value set to be lower than a voltage value obtained by dividing an output voltage value of the constant voltage power supply of the first converter circuit by the first voltage divider circuit; the abnormality detection unit detects that the pulse width modulation signal line is short-circuited with respect to a battery power supply of the electronic device when a voltage value of the first analog signal is equal to or lower than a second threshold set lower than the first threshold and higher than 0V; the abnormality detection unit detects that the pulse width modulation signal line is open if the voltage value of the second analog signal is equal to or less than a predetermined third threshold value when the voltage value of the first analog signal is lower than the first threshold value and higher than the second threshold value, and detects that the pulse width modulation signal line is in a normally connected state if the voltage value of the second analog signal is higher than the third threshold value.
In this way, by combining the analog circuit configurations of the pwm signal generator, the first converter circuit, and the second converter circuit, these circuits are interlocked with each other, so that the ground short-circuit abnormal state and the power short-circuit abnormal state of the pwm signal line can be reliably detected, and the open circuit abnormal state and the normal connection state of the pwm signal line can be distinguished.
An embodiment of the present invention also provides an abnormal state detection method performed by a pulse width modulation signal generation apparatus having: a pulse width modulation signal generation unit that generates a first pulse width modulation signal as a digital signal; and a pulse width modulation signal transmission unit that transmits the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line; the abnormal state detection method is characterized by comprising the following steps: a pulse width modulation signal extraction step of extracting a second pulse width modulation signal from the electronic device, the second pulse width modulation signal being a pulse width modulation signal in which an amplitude and/or a phase of the first pulse width modulation signal is changed; a pulse width modulation signal conversion step of converting the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detection step of detecting an abnormal state of the pulse width modulation signal line based on a value obtained by converting the second pulse width modulation signal into an analog signal.
The above-described various aspects of the pulse width modulation signal generation device of the present invention can be applied to the abnormal state detection method, the abnormal state detection program, and the recording medium on which the abnormal state detection program is recorded of the present invention, and the corresponding technical effects are obtained.
Drawings
Fig. 1 is a block diagram showing a configuration of a pulse width modulation signal generating apparatus according to a first embodiment of the present invention.
Fig. 2 is a circuit block diagram showing a partial circuit configuration in the pulse width modulation signal generation device according to a specific example of the first embodiment of the present invention.
Fig. 3 is a signal waveform diagram of a specific example of the first embodiment of the present invention.
Fig. 4 is a flowchart of an abnormal state detection method according to the first embodiment of the present invention.
Fig. 5 is a block diagram showing a configuration of a pulse width modulation signal generating apparatus according to a second embodiment of the present invention.
Fig. 6 is a circuit block diagram showing a partial circuit configuration in the pulse width modulation signal generation device according to a specific example of the second embodiment of the present invention.
Fig. 7 is a flowchart of an abnormal state detection method according to a specific example of the second embodiment of the present invention.
Fig. 8 is a waveform diagram of a first analog signal generated by a pwm signal generator according to a specific example of the second embodiment of the present invention when a pwm signal line short-circuits a battery power supply of an electronic device.
Fig. 9 is a waveform diagram of a first analog signal generated by the pulse width modulation signal generation device according to a specific example of the second embodiment of the present invention when the pulse width modulation signal line is short-circuited to ground.
Fig. 10 is a waveform diagram of an input signal to the pwm signal converter in the pwm signal generator according to a specific example of the second embodiment of the present invention when the pwm signal line is disconnected.
Fig. 11 is a waveform diagram of a first analog signal generated by the pwm signal generating apparatus according to a specific example of the second embodiment of the present invention when the pwm signal line is disconnected or normally connected.
Fig. 12 is a waveform diagram of an input signal to the pwm signal converter in the pwm signal generator according to a specific example of the second embodiment of the present invention when pwm signal lines are normally connected.
Fig. 13 is a waveform diagram of a second analog signal generated by the pulse width modulation signal generation device according to a specific example of the second embodiment of the present invention when the pulse width modulation signal line is disconnected.
Fig. 14 is a waveform diagram of a second analog signal generated by the pulse width modulation signal generation device according to a specific example of the second embodiment of the present invention when the pulse width modulation signal lines are normally connected.
Description of reference numerals:
1. 1A, 1B: pulse width modulation signal generating means; 10. 10A, 10B: a pulse width modulation signal generating section; 20: a pulse width modulation signal transmission unit; 30: a pulse width modulation signal extraction unit; 40: a pulse width modulation signal conversion section; 41: a first conversion circuit; 42: a second conversion circuit; 50: an abnormality detection unit; p1: an output terminal of the microprocessor; p11: a first input terminal; p12: a first output terminal; p21: a second input terminal; p22: a second output terminal; t1, T11: a switching transistor; r1, R20, R2, R3, R11, R12, R13, R14, R21, R22: a resistance; c1, C11, C12, C13, C21, C22, C23: a capacitor; d11, D21, D22: a diode; z21: a Zener diode; GND: grounding; 2: an electronic device; 201: a pulse width modulation circuit; 3: a pulse width modulation signal line; 4: a vehicle-mounted battery; 5: an electric motor.
Detailed Description
The present invention will be described in more detail below with reference to the accompanying drawings, embodiments, and specific examples. The following description is only an example for the convenience of understanding the present invention and is not intended to limit the scope of the present invention. In the embodiments, the components of the apparatus may be changed, deleted or added according to the actual situation, the components included in the circuit and the connection relationship thereof may be changed, deleted or added according to the actual situation, and the steps of the method may be changed, deleted, added or changed in order according to the actual situation.
(first embodiment)
The first embodiment of the present invention will be specifically explained. First, a pulse width modulation
However, various abnormal conditions such as a short circuit to ground and a short circuit to a power supply may occur on the
The pulse width modulation signal generation unit 10 generates a first pulse width modulation signal (PWM signal) as a digital signal. The pwm signal generating section 10 includes, for example, a microprocessor, and generates a first pwm signal having an amplitude of, for example, 0 to 3.3V and a frequency of, for example, 35Hz, which is alternately at a high level and a low level, based on a voltage (for example, 5V) supplied from the pwm
The pwm signal transmission unit 20 transmits the first pwm signal to the external
The pulse width modulation signal extraction unit 30 extracts the second pulse width modulation signal from the
The pwm signal conversion unit 40 converts the second pwm signal extracted by the pwm signal extraction unit 30 from a digital signal to an analog signal. The pulse width modulation signal conversion unit 40 is a digital-to-analog conversion circuit including analog electronic devices such as a resistor, a capacitor, a diode, and a transistor, for example, and converts the second pulse width modulation signal from a digital signal to an analog signal reflecting the characteristics of the signal. For example, the pulse width modulation signal conversion section 40 may include a rectifier circuit for extracting a characteristic of a direct current component of the second pulse width modulation signal.
The
Next, a pulse width modulation signal generation device 1A, which is a specific example of the first embodiment of the present invention, will be described. Fig. 2 is a circuit block diagram showing a partial circuit configuration in the pulse width modulation signal generation device 1A according to a specific example of the first embodiment of the present invention. Fig. 3 is a signal waveform diagram of a specific example of the first embodiment of the present invention.
In this specific example, the
As shown in fig. 2, the pwm signal generation unit 10A of the pwm signal generation apparatus 1A outputs a pwm signal having a frequency of, for example, 35Hz, that is, the first pwm signal shown in the upper half of fig. 3, whose amplitude is 0 to 3.3V (typically, 3.3V), from the output terminal P1 of the microprocessor. The pulse width modulation signal generation unit 10A further includes a switching transistor T1, a resistor R1, and a capacitor C1. The output terminal P1 is connected to the base (control terminal) of the switching transistor T1, the collector of the switching transistor T1 is connected to the pwm signal transmitting unit 20 (here, the output terminal of the pwm signal generating apparatus 1A) via the resistor R1, and the emitter of the switching transistor T1 is grounded. The resistor R1 and the pwm signal transmitting unit 20 are connected to one end of the capacitor C1, and the other end of the capacitor C1 is grounded. As described above, the switching transistor T1 may be an NPN switching transistor, but may be a MOS transistor having a gate as a control terminal.
As described above, the first pwm signal is not directly used to drive the motor for the in-vehicle air conditioner, but is used to drive the motor for the in-vehicle air conditioner after the amplitude and/or phase thereof is changed by the
When the pulse width modulation signal generation device 1A is normally connected to the
That is, when the pulse width
Since the second pwm signal, the amplitude and/or the phase of which is changed by the
In this specific example, the
In this specific example, the pwm signal transmission unit 20 (the output terminal of the pwm signal generation apparatus 1A) and the pwm signal extraction unit 30 (the input terminal of the pwm signal generation apparatus 1A) are implemented by one terminal. However, the pwm signal transmission unit 20 and the pwm signal extraction unit 30 may be implemented by different components or terminals.
The following describes an abnormal state detection method performed by the pulse width modulation
In step S101, the pwm signal extraction unit 30 extracts the second pwm signal obtained by changing the amplitude and/or phase of the first pwm signal from the
In step S102, the pulse width modulation signal conversion section 40 converts the second pulse width modulation signal from a digital signal to an analog signal. For example, the analog signal reflects the dc component (average value) of the second pwm signal.
In step S103, the
In step S104, the
According to the pwm
(second embodiment)
The second embodiment of the present invention will be specifically explained. In the present embodiment, in addition to the first embodiment, a partial change is made in the pulse width modulation signal conversion and the abnormality detection. The following description focuses on differences of the present embodiment from the first embodiment, and the same or similar contents as or to the first embodiment will be omitted in the present embodiment.
Fig. 5 is a block diagram showing the configuration of a pulse width modulation signal generating apparatus 1B according to a second embodiment of the present invention. As shown in fig. 5, the pulse width modulation signal generation device 1B of the present embodiment includes a first conversion circuit 41 and a second conversion circuit 42.
The first conversion circuit 41 converts the second pulse width modulation signal from a digital signal to a first analog signal reflecting the duty ratio of the second pulse width modulation signal. For example, the first conversion circuit 41 includes a constant voltage power supply and a switching transistor, a control terminal of which is inputted with the second pulse width modulation signal or a signal obtained by processing the second pulse width modulation signal, and on/off of the switching transistor is controlled based on a high/low level of the second pulse width modulation signal, thereby generating a first analog signal reflecting a duty ratio of the second pulse width modulation signal. The circuit configuration of the first conversion circuit 41 is not limited to this as long as an analog signal reflecting the duty ratio of the second pulse width modulation signal can be generated.
The second conversion circuit 42 converts the second pulse width modulation signal from a digital signal to a second analog signal reflecting the peak voltage of the second pulse width modulation signal. For example, the second conversion circuit 42 includes a rectifier circuit, and rectifies the second pulse width modulation signal or a signal obtained by processing the second pulse width modulation signal, thereby generating a second analog signal reflecting the peak voltage of the second pulse width modulation signal. The configuration of the second conversion circuit 42 is not limited to this as long as it can generate an analog signal reflecting the peak voltage of the second pulse width modulation signal.
The
Thus, by generating a plurality of analog signals reflecting the duty ratio and the peak voltage of the second pulse width modulation signal extracted from the
As a specific detection method, the
For example, when the pulse width
In addition, when the
Thus, by combining and determining the voltage values of the plurality of analog signals reflecting the duty ratio and the peak voltage of the second pulse width modulation signal extracted from the
Next, a partial circuit configuration of a specific example of the second embodiment of the present invention will be described. Fig. 6 is a circuit block diagram showing a partial circuit configuration of a specific example of the second embodiment of the present invention, and mainly shows circuit configurations of the pulse width modulation signal generation section 10B, the first conversion circuit 41, and the second conversion circuit 42. As shown in fig. 6, the circuit configuration of the pwm signal generator 10B is similar to that of the pwm signal generator 10A in one specific example of the first embodiment, and a first pwm signal having an amplitude of, for example, 3.3V is output from the output terminal P1 of the microprocessor. The pwm signal generator 10B further includes a switching transistor T1, resistors R1, R2, R3, and a capacitor C1, and the connection relationship between the switching transistor T1, the resistor R1, and the capacitor C1 is the same as that of the pwm signal generator 10A, and is not described again here. A resistor R2 is connected in parallel with the capacitor C1, and a resistor R3 is connected between the output terminal P1 of the microprocessor and the base of the switching transistor T1. The output terminal (pulse width modulation signal transmission unit 20) of the pulse width modulation signal generation unit 10B is connected to the
In the first conversion circuit 41, the first input terminal P11 is connected to the pwm signal extraction unit 30, and the second pwm signal is input thereto. The constant voltage power supply outputs a constant voltage (5V in the figure) lower than the output voltage (for example, 14V) of the battery power supply of the
In the second converter circuit 42, the second input terminal P21 is connected to the pulse width modulation signal extraction unit 30 and the first input terminal P11 of the first converter circuit 41. Further, a rectifier circuit is formed by the capacitors C21 and C22 and the diodes D21 and D22, and rectifies a signal input from the second input terminal P21. A first-order RC filter circuit including the resistor R21 and the capacitor C23 is used as the second RC filter circuit, and low-pass filter processing is performed on the signal rectified by the rectifier circuit. A second voltage dividing circuit including the resistor R22 and the resistor R21 divides the signal filtered by the second RC filter circuit, for example, the resistance value of the resistor R22 is 1.2 times the resistance value of the resistor R21, so that a divided signal having a voltage dividing ratio of 6/11 with respect to the total voltage is output from the second output terminal P22 connected between the resistor R22 and the resistor R21 as a second analog signal. The second conversion circuit 42 further includes a zener diode Z21 connected between the second output terminal P22 and the ground as a protection circuit, but circuit elements may be deleted or added as appropriate according to the actual situation, and the circuit configuration of this specific example is not limited.
The following describes an abnormal state detection method performed by the pulse width modulation signal generation device 1B in the present embodiment and the above-described specific examples. Fig. 7 is a flowchart of an abnormal state detection method according to a specific example of the second embodiment of the present invention. The timing of execution of the flow shown in fig. 7 is the same as the flow shown in fig. 4 in the first embodiment, for example, step S201 described below exemplifies a pulse width modulation signal extraction step, step S202 exemplifies a pulse width modulation signal conversion step, and steps S203 to S209 exemplify an abnormality detection step.
In step S201, the pwm signal extraction unit 30 extracts the second pwm signal obtained by changing the amplitude and/or phase of the first pwm signal from the
In step S202, the first conversion circuit 41 converts the second pulse width modulation signal from a digital signal to a first analog signal reflecting the duty ratio of the second pulse width modulation signal, and the second conversion circuit 42 converts the second pulse width modulation signal from a digital signal to a second analog signal reflecting the peak voltage of the second pulse width modulation signal.
Next, the
In contrast, for example, in step S203, the
When it is determined in step S203 that the voltage value of the first analog signal is higher than the second threshold (not in the power supply short-circuit abnormal state), the
In contrast, for example, in step S205, the
When it is determined in step S205 that the voltage value of the first analog signal is lower than the first threshold (and higher than the second threshold, that is, not in the ground short-circuit abnormal state or the power short-circuit abnormal state), the
Fig. 10 is a waveform diagram of an input signal to the pwm signal converter 40 when the
Fig. 11 is a waveform diagram of a first analog signal when the pulse width
However, it is difficult for the
Therefore, the
To continue the explanation with reference to fig. 7, for example, in step S207, the
On the contrary, when it is determined in step S207 that the voltage value of the second analog signal is higher than the third threshold, the normal connection determination step is executed. In step S209, the
According to the specific example and the abnormal state detection method described above, by combining the analog circuit configurations of the pwm signal generation unit 10B, the first conversion circuit 41, and the second conversion circuit 42, these circuits are interlocked with each other, so that the abnormal state of the short circuit to ground and the abnormal state of the short circuit to power supply of the
The embodiments and specific examples of the present invention have been described above with reference to the accompanying drawings. The above-described embodiments and specific examples are merely specific examples of the present invention and are not intended to limit the scope of the present invention. Those skilled in the art can modify the embodiments and specific examples based on the technical idea of the present invention, and various modifications, combinations, and appropriate omissions of the elements can be made, and the embodiments obtained thereby are also included in the scope of the present invention. For example, the above embodiments and specific examples may be combined with each other, and the combined embodiments are also included in the scope of the present invention.
However, in the above embodiments of the present invention, if the
Further, the steps included in the abnormal state detection method according to each of the above embodiments of the present invention may be realized as steps included in an abnormal state detection program executed by a microprocessor or as a recording medium on which the abnormal state detection program is recorded, and the same technical effects can be obtained.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:输入脉冲信号的脉宽滤波电路及脉宽滤波方法