Pulse width modulation signal generating device and abnormal state detection method thereof

By extracting and converting the pulse width modulated signal in the pulse width modulated signal generation device, and detecting the abnormal state of the pulse width modulated signal line using the analog signal, the problems of detection complexity and high cost in the prior art are solved, and a variety of cases are achieved Reliable detection of abnormal states.

CN110690875BActive Publication Date: 2024-12-03ALPINE ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810731016.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-07-05
Publication Date
2024-12-03
Estimated Expiration
2038-07-05

AI Technical Summary

Technical Problem

In the prior art, it is difficult for the pulse width modulated signal generation device to effectively distinguish and detect various abnormal states of the pulse width modulated signal line, resulting in the need to design complex logic circuits and multiple monitoring points, increasing the circuit scale and increasing the cost.

Method used

By introducing a pulse width modulation signal extraction unit into the pulse width modulation signal generation device, converting the digital signal into an analog signal, and using the duty cycle and peak voltage of the analog signal to perform abnormal state detection, concisely detecting the abnormality of the pulse width modulation signal line state.

Benefits of technology

Reliable detection of various abnormal states of the pulse width modulated signal line (such as short circuit to ground, short circuit and disconnection) is achieved, avoiding the use of complex digital logic circuits and reducing circuit costs and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110690875B_ABST
    Figure CN110690875B_ABST
Patent Text Reader

Abstract

The present invention provides a pulse width modulation signal generating device and an abnormal state detection method thereof. The pulse width modulation signal generating device transmits the generated first pulse width modulation signal to an external electronic device via a pulse width modulation signal line, and is characterized in that it also has: a pulse width modulation signal extraction unit, which extracts a second pulse width modulation signal obtained by changing the amplitude and / or phase of the first pulse width modulation signal from the electronic device; a pulse width modulation signal conversion unit, which converts the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detection unit, which detects the abnormal state of the pulse width modulation signal line based on the numerical value obtained by converting the second pulse width modulation signal to an analog signal. As a result, there is no need to use complex digital logic circuits and judgment logic, and the abnormal state of the pulse width modulation signal line can be clearly detected with a simple circuit structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a pulse width modulation signal generating device and an abnormal state detection method thereof, and in particular to a pulse width modulation signal generating device and an abnormal state detection method thereof for detecting an abnormal state of a pulse width modulation signal line when transmitting a pulse width modulation signal to an external device. Background Art

[0002] Currently, pulse width modulation signals (PWM signals) are widely used to control various electronic devices such as vehicle-mounted devices. Among them, a pulse width modulation signal generating device generates a pulse width modulation signal as a digital signal using, for example, a microprocessor to control a motor of an electronic device.

[0003] When a pulse width modulation signal is used for control, if an abnormal state occurs in a pulse width modulation signal line between a pulse width modulation signal generating device and an electronic device to be controlled, the electronic device cannot be normally controlled. Therefore, it is necessary to detect the abnormal state of the pulse width modulation signal line.

[0004] In the prior art, a monitoring circuit for detecting abnormal states of a pulse width modulation signal line is proposed by using a digital circuit composed of a logic gate and a comparator, etc. In the monitoring circuit based on the digital circuit, a monitoring point is set, and the abnormal state of the pulse width modulation signal line is detected according to the high and low logic states of the potential of the monitoring point.

[0005] However, the pulse width modulation signal line between the pulse width modulation signal generating device and the controlled electronic device may have a variety of abnormal states. For example, the pulse width modulation signal line may be short-circuited to the ground, short-circuited to the battery power supply, or open-circuited. If only the high and low logic states of the potential are detected after the pulse width modulation signal is output, it is impossible to distinguish the above-mentioned various abnormal states. Furthermore, if a monitoring circuit based on a digital circuit is used to distinguish the above-mentioned various abnormal states, it is necessary to design a complex logic circuit and multiple monitoring points, which increases the circuit scale and the cost. Summary of the invention

[0006] In view of the above technical problems in the prior art, the present invention aims to provide a pulse width modulation signal generating device and an abnormal state detection method thereof which can clearly detect an abnormal state of a pulse width modulation signal line with a simple circuit structure.

[0007] An embodiment of the present invention provides a pulse width modulation signal generating device, comprising: a pulse width modulation signal generating unit, which generates a first pulse width modulation signal as a digital signal; and a pulse width modulation signal transmitting unit, which transmits the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line; the pulse width modulation signal generating device is characterized in that it also comprises: a pulse width modulation signal extracting unit, which extracts a second pulse width modulation signal from the electronic device, wherein the second pulse width modulation signal is a pulse width modulation signal in which the amplitude and / or phase of the first pulse width modulation signal are changed; a pulse width modulation signal converting unit, which converts the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detecting unit, which detects an abnormal state of the pulse width modulation signal line based on a numerical value obtained by converting the second pulse width modulation signal to an analog signal.

[0008] Thus, it is possible to clearly detect an abnormal state of a pulse width modulation signal line for connecting a pulse width modulation signal generating device and an electronic device with a simple circuit structure without using a complicated digital logic circuit and a judgment logic.

[0009] The above-mentioned pulse width modulation signal generating device may also be that the pulse width modulation signal conversion unit includes: a first conversion circuit, converting the second pulse width modulation signal from a digital signal into a first analog signal reflecting the duty cycle of the second pulse width modulation signal; and a second conversion circuit, converting the second pulse width modulation signal from a digital signal into a second analog signal reflecting the peak voltage of the second pulse width modulation signal; the abnormality detection unit detects the abnormal state of the pulse width modulation signal line based on the voltage value of the first analog signal and the voltage value of the second analog signal.

[0010] Thus, by generating a plurality of analog signals reflecting the duty ratio and peak voltage of the second pulse width modulation signal extracted from the electronic device, various abnormal states of the pulse width modulation signal line can be detected more reliably.

[0011] The above-mentioned pulse width modulation signal generating device can also be that the abnormality detection unit detects whether the pulse width modulation signal line is in a short-circuit to ground abnormal state or a power short-circuit abnormal state based on the voltage value of the first analog signal; the abnormality detection unit detects whether the pulse width modulation signal line is in a disconnected abnormal state or a normally connected state based on the voltage value of the first analog signal and the voltage value of the second analog signal.

[0012] Thus, by combining and judging the voltage values ​​of multiple analog signals reflecting the duty ratio and peak voltage of the second PWM signal extracted from the electronic device, various abnormal states such as short-circuit states and disconnection states of the PWM signal line can be reliably detected.

[0013] The above-mentioned pulse width modulation signal generating device can also be that the first conversion circuit includes: a first input terminal, connected to the pulse width modulation signal extraction unit, and input with the second pulse width modulation signal; a constant voltage power supply, outputting a constant voltage lower than the output voltage of the battery power supply of the electronic device; a first RC filter circuit, performing low-pass filtering; a switching transistor, connected between the constant voltage power supply and the first RC filter circuit, using the second pulse width modulation signal input from the first input terminal as a control signal to turn on or off the constant voltage power supply and the first RC filter circuit; a first voltage divider circuit, dividing the signal filtered by the first RC filter circuit; and a first output terminal, outputting the signal divided by the first voltage divider circuit as the first analog signal.

[0014] The above-mentioned pulse width modulation signal generating device may also be that the second conversion circuit includes: a second input terminal, connected to the pulse width modulation signal extraction unit and the first input terminal; a rectifier circuit, rectifying the signal input from the second input terminal; a second RC filter circuit, performing low-pass filtering on the signal rectified by the rectifier circuit; a second voltage divider circuit, dividing the signal filtered by the second RC filter circuit; and a second output terminal, outputting the signal divided by the second voltage divider circuit as the second analog signal.

[0015] The pulse width modulation signal generating device may also be such that the switching transistor conducts 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 the ground when the voltage value of the first analog signal is above a first threshold value, wherein the first threshold value is set to be lower than the output voltage value of the constant voltage power supply of the first conversion circuit divided by the first voltage divider circuit; the abnormality detection unit detects that the pulse width modulation signal line is short-circuited relative to the battery power supply of the electronic device when the voltage value of the first analog signal is below a second threshold value, wherein the second threshold value is set to be lower than the first threshold value and higher than 0V; the abnormality detection unit detects that the pulse width modulation signal line is disconnected if the voltage value of the second analog signal is below a third threshold value set in advance 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.

[0016] Therefore, by combining the analog circuit structures of the pulse width modulation signal generating unit, the first conversion circuit and the second conversion circuit, these circuits are linked to each other, so that the ground short-circuit abnormal state and the power short-circuit abnormal state of the pulse width modulation signal line can be reliably detected, and the disconnection abnormal state and the normal connection state of the pulse width modulation signal line can also be distinguished.

[0017] An embodiment of the present invention also provides an abnormal state detection method performed by a pulse width modulation signal generating device, wherein the pulse width modulation signal generating device comprises: a pulse width modulation signal generating unit, which generates a first pulse width modulation signal as a digital signal; and a pulse width modulation signal transmitting unit, which 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 in that it includes: a pulse width modulation signal extraction step, which extracts a second pulse width modulation signal from the electronic device, wherein the second pulse width modulation signal is a pulse width modulation signal in which the amplitude and / or phase of the first pulse width modulation signal are changed; a pulse width modulation signal conversion step, which converts the second pulse width modulation signal from a digital signal to an analog signal; and an abnormality detection step, which detects the abnormal state of the pulse width modulation signal line based on the numerical value obtained by converting the second pulse width modulation signal into an analog signal.

[0018] The above-mentioned various modes of the pulse width modulation signal generating device of the present invention can also be applied to the abnormal state detection method, abnormal state detection program and the recording medium recording the above-mentioned abnormal state detection program of the present invention, and obtain corresponding technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a block diagram of the structure of the pulse width modulation signal generating device according to the first embodiment of the present invention.

[0020] Figure 2 1 is a circuit block diagram showing a partial circuit configuration of a pulse width modulation signal generating device according to a specific example of the first embodiment of the present invention.

[0021] Figure 3 It is a signal waveform diagram of a specific example of the first embodiment of the present invention.

[0022] Figure 4 This is a flowchart of the abnormal state detection method according to the first embodiment of the present invention.

[0023] Figure 5 It is a block diagram showing the structure of a pulse width modulation signal generating device according to a second embodiment of the present invention.

[0024] Figure 6 1 is a circuit block diagram showing a partial circuit configuration of a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention.

[0025] Figure 7 This is a flowchart of an abnormal state detection method according to a specific example of the second embodiment of the present invention.

[0026] Figure 8 This is a waveform diagram of a first analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is short-circuited to a battery power source of an electronic device.

[0027] Fig. 9 This is a waveform diagram of a first analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is short-circuited to the ground.

[0028] Fig.10 This is a waveform diagram of an input signal input to a pulse width modulation signal conversion section in a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is disconnected.

[0029] Fig.11This is a waveform diagram of a first analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is disconnected or normally connected.

[0030] Fig.12 This is a waveform diagram of an input signal input to a pulse width modulation signal conversion section in a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is normally connected.

[0031] Fig.13 This is a waveform diagram of a second analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is disconnected.

[0032] Fig.14 This is a waveform diagram of a second analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is normally connected.

[0033] Description of reference numerals:

[0034] 1, 1A, 1B: pulse width modulation signal generating device; 10, 10A, 10B: pulse width modulation signal generating unit; 20: pulse width modulation signal transmitting unit; 30: pulse width modulation signal extracting unit; 40: pulse width modulation signal converting unit; 41: first conversion circuit; 42: second conversion circuit; 50: abnormality detecting unit; P1: output terminal of microprocessor; P11: first input terminal; P12: first output terminal; P21: second input terminal; P22: The second output terminal; T1, T11: switching transistors; R1, R20, R2, R3, R11, R12, R13, R14, R21, R22: resistors; C1, C11, C12, C13, C21, C22, C23: capacitors; D11, D21, D22: diodes; Z21: Zener diode; GND: ground; 2: electronic device; 201: pulse width modulation circuit; 3: pulse width modulation signal line; 4: vehicle battery; 5: electric motor. DETAILED DESCRIPTION

[0035] The present invention is described in more detail below in conjunction with the accompanying drawings, implementation methods and specific examples. The following description is only an example given to facilitate understanding of the present invention and is not intended to limit the scope of the present invention. In a specific implementation, the components of the device can be changed, deleted or added according to actual conditions, the components included in the circuit and their connection relationships can be changed, deleted or added according to actual conditions, and the steps of the method can be changed, deleted, added or changed in order according to actual conditions.

[0036] (First Embodiment)

[0037] A first embodiment of the present invention will be described in detail. First, a pulse width modulation signal generating device 1 according to a first embodiment of the present invention will be described. Figure 1 FIG. 1 is a block diagram of a pulse width modulation signal generating device according to a first embodiment of the present invention. Figure 1 As shown, in this embodiment, the pulse width modulation signal generating device 1 generates a pulse width modulation signal (PWM signal) according to the operation of the user, and transmits it to the external electronic device 2 via the pulse width modulation signal line 3. The electronic device 2 is, for example, a motor control device, which controls the speed of the motor based on the pulse width modulation signal output by the pulse width modulation signal generating device 1. Here, the electronic device 2 does not directly drive the motor using the pulse width modulation signal generated by the pulse width modulation signal generating device 1, but drives the motor using a pulse width modulation signal with a phase and / or amplitude changed relative to the pulse width modulation signal.

[0038] Among them, various abnormal conditions such as short circuit to ground and short circuit to power supply may occur on the pulse width modulation signal line 3 connecting the pulse width modulation signal generating device 1 and the electronic device 2. The pulse width modulation signal generating device 1 detects the abnormal condition of the pulse width modulation signal line 3 by extracting the above-mentioned changed pulse width modulation signal from the electronic device 2. Figure 1 As shown, the pulse width modulation signal generating device 1 has a pulse width modulation signal generating unit 10, a pulse width modulation signal transmitting unit 20, a pulse width modulation signal extracting unit 30, a pulse width modulation signal converting unit 40 and an abnormality detecting unit 50. The above-mentioned parts are implemented based on a hardware structure such as a circuit, and at least a part of them can also be implemented based on software by running a program in a memory through a processor, or can also be implemented based on a dedicated circuit module by running a program in firmware through an integrated circuit. The following specifically describes the various parts of the pulse width modulation signal generating device 1.

[0039] The pulse width modulation signal generating unit 10 generates a first pulse width modulation signal (PWM signal) as a digital signal. The pulse width modulation signal generating unit 10 includes, for example, a microprocessor, and generates a first pulse width modulation signal of alternating high level and low level based on the voltage (for example, 5V) supplied to the pulse width modulation signal generating device 1, and the amplitude of the signal is, for example, 0-3.3V, and the frequency is, for example, 35Hz.

[0040] The PWM signal transmission unit 20 transmits the first PWM signal to the external electronic device 2 via the PWM signal line 3 . The PWM signal transmission unit 20 is, for example, an output interface of the PWM signal generating device 1 , and can be connected to the PWM signal line 3 .

[0041] The pulse width modulation signal extraction unit 30 extracts a second pulse width modulation signal from the electronic device 2. The second pulse width modulation signal is a pulse width modulation signal in which the amplitude and / or phase of the first pulse width modulation signal is changed. The pulse width modulation signal extraction unit 30 is, for example, an input interface of the pulse width modulation signal generation device 1, and inputs the second pulse width modulation signal in which the phase and / or amplitude are changed by the electronic device 2 from the electronic device 2.

[0042] The pulse width modulation signal conversion unit 40 converts the second pulse width modulation signal extracted by the pulse width modulation signal extraction unit 30 from a digital signal to an analog signal. The pulse width modulation signal conversion unit 40 is, for example, a digital-to-analog conversion circuit composed of analog electronic devices such as resistors, capacitors, diodes, and transistors, 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 unit 40 may include a rectifier circuit for extracting the characteristics of the DC component of the second pulse width modulation signal.

[0043] The abnormality detection unit 50 detects the abnormal state of the pulse width modulation signal line 3 based on the numerical value obtained by converting the second pulse width modulation signal into an analog signal by the pulse width modulation signal conversion unit 40. The abnormality detection unit 50 includes, for example, a microprocessor, and compares the numerical value such as the voltage value and the current value of the analog signal input from the pulse width modulation signal conversion unit 40 with a preset abnormality judgment threshold value by executing a pre-stored program, thereby detecting the abnormal state of the pulse width modulation signal line 3.

[0044] Next, a pulse width modulation signal generating device 1A which is a specific example of the first embodiment of the present invention will be described. Figure 2 1 is a circuit block diagram showing a partial circuit configuration of a pulse width modulation signal generating device 1A according to a specific example of the first embodiment of the present invention. Figure 3 It is a signal waveform diagram of a specific example of the first embodiment of the present invention.

[0045] In this specific example, the electronic device 2 is, for example, a motor control device mounted on a vehicle, which can control the rotation speed of the motor 5 used for the vehicle air conditioner, thereby controlling the air volume of the vehicle air conditioner. A control panel for controlling the air volume of the vehicle air conditioner is also provided on the rear seat of the vehicle, and a pulse width modulation signal generating device 1A is provided for the control panel. When a passenger on the rear seat of the vehicle adjusts the control panel, the pulse width modulation signal generating device 1A generates a pulse width modulation signal with a duty cycle corresponding to the passenger's operation, and outputs it to the electronic device 2 (motor control device) so that the pulse width modulation circuit 201 of the electronic device 2 can control the rotation speed of the motor 5 used for the vehicle air conditioner. Since the control panel is provided on the rear seat of the vehicle, the pulse width modulation signal generating device 1A needs to be connected to the electronic device 2 (motor control device) via the pulse width modulation signal line 3, and abnormal conditions such as a short circuit to the ground or a short circuit to the power supply of the pulse width modulation signal line 3 may occur.

[0046] like Figure 2 As shown, the pulse width modulation signal generating unit 10A of the pulse width modulation signal generating device 1A outputs a pulse width modulation signal having a frequency of, for example, 35 Hz from the output terminal P1 of the microprocessor, that is, Figure 3 The first pulse width modulation signal shown in the upper half has an amplitude of 0-3.3V (a typical value is, for example, 3.3V). Furthermore, the pulse width modulation signal generating unit 10A also 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 pulse width modulation signal transmission unit 20 (here, the output terminal of the pulse width modulation signal generating device 1A) via the resistor R1, and the emitter of the switching transistor T1 is grounded. One end of the capacitor C1 is connected between the resistor R1 and the pulse width modulation signal transmission unit 20, and the other end of the capacitor C1 is grounded. In addition, the switching transistor T1 can be an NPN switching transistor as described above, but a MOS transistor can also be used, with the gate as the control terminal.

[0047] As described above, the first pulse width modulation signal is not directly used to drive the motor used for the vehicle air conditioner, but is used to drive the motor used for the vehicle air conditioner after the amplitude and / or phase are changed by the electronic device 2. Figure 2 As shown, the electronic device 2 is powered by a vehicle battery 4 , and the battery voltage of the vehicle battery 4 is, for example, 9-18 V (a typical value is, for example, 14 V). The vehicle battery 4 is connected to the pulse width modulation signal line 3 via a resistor R20 of the electronic device 2 .

[0048] When the pulse width modulation signal generating device 1A is normally connected to the electronic device 2 via the pulse width modulation signal line 3, when the first pulse width modulation signal outputted from the output terminal P1 of the microprocessor is at a high level (e.g., 3.3V), the switch transistor T1 is turned on, and the voltage supplied to the electronic device 2 is grounded via the resistor R20, the pulse width modulation signal line 3, the pulse width modulation signal transmission unit 20, and the resistor R1, so that the second pulse width modulation signal outputted by the electronic device 2 becomes a low level (e.g., 0V). In addition, when the first pulse width modulation signal outputted from the output terminal P1 of the microprocessor is at a low level (e.g., 0V), the switch transistor T1 is turned off, and the second pulse width modulation signal outputted by the electronic device 2 becomes the battery voltage (typical value 14V) of the vehicle battery 4.

[0049] That is, when the pulse width modulation signal line 3 is normally connected, when the first pulse width modulation signal generated by the pulse width modulation signal generating unit 10A becomes a high level, the second pulse width modulation signal becomes a low level (0V); when the first pulse width modulation signal generated by the pulse width modulation signal generating unit 10A becomes a low level, the second pulse width modulation signal becomes a high level (battery power supply voltage of the vehicle battery 4). Figure 3 As shown, when the first pulse width modulation signal generated by the pulse width modulation signal generating unit 10A switches between high / low levels, the second pulse width modulation signal of the electronic device 2 switches between low / high levels, and the two have opposite phases. In this specific example, the second pulse width modulation signal has an opposite phase to the first pulse width modulation signal, the same duty cycle, and a different amplitude (output voltage).

[0050] Since the second pulse width modulation signal whose amplitude and / or phase are changed by the electronic device 2 is different from the first pulse width modulation signal generated by the pulse width modulation signal generating unit 10A, if the pulse width modulation signal generating unit 1A only detects whether the potential of the first pulse width modulation signal is high or low after outputting the first pulse width modulation signal, it is impossible to reliably distinguish various abnormal states of the pulse width modulation signal line 3. In contrast, in this specific example, the second pulse width modulation signal is converted from a digital signal to an analog signal by the pulse width modulation signal conversion unit 40, and the abnormality detection unit 50 can detect various abnormal states of the pulse width modulation signal line 3 based on the numerical value of the analog signal.

[0051] In this specific example, the electronic device 2 changes the amplitude and phase of the first pulse width modulation signal to generate the second pulse width modulation signal by combining with the partial circuit structure included in the pulse width modulation signal generating unit 10A and the vehicle battery 4. That is, if the pulse width modulation signal generating device 1A is not connected to the electronic device 2 via the pulse width modulation signal line 3, the amplitude and / or phase of the first pulse width modulation signal will not be changed, and the second pulse width modulation signal will not be generated. Therefore, although the second pulse width modulation signal actually flows in the pulse width modulation signal line 3 when the pulse width modulation signal line 3 is normally connected, it can also be logically explained as follows: the pulse width modulation signal generating unit 10A generates the first pulse width modulation signal, the pulse width modulation signal transmission unit 20 transmits the first pulse width modulation signal to the external electronic device 2 via the pulse width modulation signal line 3, and the electronic device 2 changes the amplitude and phase of the first pulse width modulation signal to generate the second pulse width modulation signal.

[0052] In addition, in this specific example, the pulse width modulation signal transmission unit 20 (output terminal of the pulse width modulation signal generating device 1A) and the pulse width modulation signal extraction unit 30 (input terminal of the pulse width modulation signal generating device 1A) are implemented by one terminal. However, the present invention is not limited thereto, and the pulse width modulation signal transmission unit 20 and the pulse width modulation signal extraction unit 30 may also be implemented by different components or terminals.

[0053] The abnormal state detection method executed by the pulse width modulation signal generating devices 1 and 1A in the present embodiment and the above-mentioned specific examples will be described below. Figure 4 This is a flowchart of the abnormal state detection method according to the first embodiment of the present invention. Figure 4 The process is executed, for example, when the pulse width modulation signal generating device 1, 1A is connected to the electronic device 2 via the pulse width modulation signal line 3, and can also be executed regularly at a predetermined cycle after the connection, or can be executed based on a user instruction. In addition, the following step S101 is an example of a pulse width modulation signal extraction step, step S102 is an example of a pulse width modulation signal conversion step, and steps S103 and S104 are examples of an abnormality detection step.

[0054] In step S101 , the PWM signal extraction unit 30 extracts a second PWM signal obtained by changing the amplitude and / or phase of the first PWM signal from the electronic device 2 .

[0055] In step S102, the PWM signal converter 40 converts the second PWM 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.

[0056] In step S103, the abnormality detection unit 50 compares the value obtained by converting the second pulse width modulation signal into an analog signal with a preset abnormal state judgment threshold. For example, the abnormality detection unit 50 compares the voltage value of the analog signal with a preset voltage threshold for judging a short circuit to ground and a preset voltage threshold for judging a short circuit to a power supply.

[0057] In step S104, the abnormality detection unit 50 detects the abnormal state of the pulse width modulation signal line 3 based on the comparison result, thereby detecting the abnormal state of the pulse width modulation signal line 3 based on the value obtained by converting the second pulse width modulation signal into an analog signal. For example, the abnormality detection unit 50 determines that the pulse width modulation signal line 3 is short-circuited to the power supply when the voltage value of the analog signal is above a preset voltage threshold for determining a short circuit to the power supply; determines that the pulse width modulation signal line 3 is short-circuited to the ground when the voltage value of the analog signal is below a preset voltage threshold for determining a short circuit to the ground; and determines that the pulse width modulation signal line 3 is normally connected when the voltage value of the analog signal is between the above two thresholds.

[0058] According to the pulse width modulation signal generating device 1, 1A and the abnormal state detection method thereof of the present embodiment, there is no need to use a complicated digital logic circuit and judgment logic, and the abnormal state of the pulse width modulation signal line 3 used to connect the pulse width modulation signal generating device 1, 1A and the electronic device 2 can be clearly detected with a simple circuit structure.

[0059] (Second Embodiment)

[0060] The second embodiment of the present invention is specifically described. Based on the first embodiment, this embodiment makes some changes in pulse width modulation signal conversion and abnormality detection. The following focuses on the differences between this embodiment and the first embodiment, and the contents that are the same or similar to the first embodiment are omitted in this embodiment.

[0061] Figure 5 1 is a block diagram of a pulse width modulation signal generating device 1B according to a second embodiment of the present invention. Figure 5 As shown, the pulse width modulation signal generating device 1B of the present embodiment includes a first conversion circuit 41 and a second conversion circuit 42 .

[0062] The first conversion circuit 41 converts the second pulse width modulation signal from a digital signal into a first analog signal reflecting the duty cycle of the second pulse width modulation signal. For example, the first conversion circuit 41 includes a constant voltage power supply and a switching transistor, the control terminal of which is input with the second pulse width modulation signal or a signal obtained by processing the second pulse width modulation signal, and controls the on / off state of the switching transistor based on the high and low levels of the second pulse width modulation signal, thereby generating a first analog signal reflecting the duty cycle of the second pulse width modulation signal. The circuit structure of the first conversion circuit 41 is not limited to this, as long as it can generate an analog signal reflecting the duty cycle of the second pulse width modulation signal.

[0063] The second conversion circuit 42 converts the second pulse width modulated signal from a digital signal into a second analog signal reflecting the peak voltage of the second pulse width modulated signal. For example, the second conversion circuit 42 includes a rectifier circuit that rectifies the second pulse width modulated signal or a signal obtained by processing the second pulse width modulated signal, thereby generating a second analog signal reflecting the peak voltage of the second pulse width modulated signal. The structure 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 modulated signal.

[0064] The abnormality detection unit 50 detects the abnormal state of the pulse width modulation signal line 3 based on the voltage value of the first analog signal and the voltage value of the second analog signal. For example, since the duty ratio of the second pulse width modulation signal is 0% or 100% when the pulse width modulation signal line 3 is short-circuited, various short-circuit abnormal states of the pulse width modulation signal line 3 can be detected based on the voltage value of the first analog signal. In addition, the voltage value of the second analog signal can be compared with a preset voltage threshold, thereby detecting the abnormal state of the pulse width modulation signal line 3 based on the peak voltage of the second pulse width modulation signal. Furthermore, the voltage value of the first analog signal and the voltage value of the second analog signal can be combined for judgment, thereby detecting various abnormal states of the pulse width modulation signal line 3.

[0065] Thus, by generating a plurality of analog signals reflecting the duty ratio and peak voltage of the second pulse width modulation signal extracted from the electronic device 2 , various abnormal states of the pulse width modulation signal line 3 can be detected more reliably.

[0066] As a specific detection method, the abnormality detection unit 50 can detect whether the pulse width modulation signal line 3 is in a short-to-ground abnormal state of being short-circuited to the ground, or a power supply short-circuit abnormal state of being short-circuited to the battery power supply of the electronic device 2, based on the voltage value of the first analog signal. Furthermore, the abnormality detection unit 50 can detect whether the pulse width modulation signal line 3 is in a disconnected abnormal state of being disconnected, 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.

[0067] For example, when the pulse width modulation signal line 3 is short-circuited to the ground, the duty cycle of the second pulse width modulation signal is, for example, 0% (if the phase is reversed, it is 100%); when the pulse width modulation signal line 3 is short-circuited relative to the battery power supply of the electronic device 2, the duty cycle of the second pulse width modulation signal is, for example, 100% (if the phase is reversed, it is 0%). The above two short-circuit states can be detected based on the voltage value of the first analog signal.

[0068] In addition, when the pulse width modulation signal line 3 is disconnected, it is conceivable that the pulse width modulation signal extraction unit 30 cannot extract the second pulse width modulation signal from the electronic device 2, but can only extract the first pulse width modulation signal that is not transmitted to the electronic device 2. As described above, the first pulse width modulation signal and the second pulse width modulation signal have the same duty cycle (greater than 0% and less than 100%), but different peak voltages, and the disconnection state can be detected based on the voltage values ​​of both the first analog signal and the second analog signal.

[0069] Thus, by combining and judging the voltage values ​​of multiple analog signals reflecting the duty ratio and peak voltage of the second PWM signal extracted from the electronic device 2, various abnormal states such as short-circuit states and disconnection states of the PWM signal line 3 can be reliably detected.

[0070] Next, a partial circuit configuration of a specific example of the second embodiment of the present invention will be described. Figure 6 1 is a circuit block diagram showing a partial circuit structure of a specific example of the second embodiment of the present invention, mainly showing the circuit structure of the pulse width modulation signal generating unit 10B, the first conversion circuit 41 and the second conversion circuit 42. Figure 6As shown, the circuit structure of the pulse width modulation signal generating unit 10B is similar to the pulse width modulation signal generating unit 10A in a specific example of the first embodiment, and the first pulse width modulation signal with an amplitude of, for example, 3.3V is outputted from the output terminal P1 of the microprocessor. Furthermore, the pulse width modulation signal generating unit 10B also includes a switching transistor T1, resistors R1, R2, R3 and a capacitor C1. The connection relationship between the switching transistor T1, the resistor R1 and the capacitor C1 is the same as that of the pulse width modulation signal generating unit 10A, and is not described here. The resistor R2 is connected in parallel with the capacitor C1, and the 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 generating unit 10B is connected to the electronic device 2 via the pulse width modulation signal line 3. In addition, in this specific example, the pulse width modulation signal transmission unit 20 and the pulse width modulation signal extraction unit 30 are implemented by one terminal.

[0071] In the first conversion circuit 41, the first input terminal P11 is connected to the pulse width modulation signal extraction unit 30, and the second pulse width modulation signal is input. In addition, 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 electronic device 2. Furthermore, a second-order RC filter circuit composed of resistors R12, R13 and capacitors C12, C13 performs low-pass filtering as a first RC filter circuit, but is not limited to this, and other low-pass filter circuits such as a first-order RC filter circuit can also be used. The switching transistor T11 is connected between the constant voltage power supply and the first RC filter circuit, and the second pulse width modulation signal input from the first input terminal P11 is used as a control signal to turn on or off the constant voltage power supply and the first RC filter circuit. The figure shows an example in which the switching transistor T11 is a PNP switching transistor, but is not limited to this, and other types of switching transistors can also be used as appropriate. In addition, the resistors R12, R13 and R14 form a first voltage divider circuit to divide the signal filtered by the first RC filter circuit. For example, the resistance value of the resistor R14 is 1.5 times the sum of the resistance values ​​of the resistors R12 and R13, so that a voltage divider signal with a voltage divider ratio of 3 / 5 relative to the total voltage is output from the first output terminal P12 connected between the resistors R13 and R14 as a first analog signal. In addition, the first conversion circuit 41 also includes a capacitor C11 connected between the constant voltage power supply and the ground (GND), a diode D11 connected between the first input terminal P11 and the control terminal of the switching transistor T11 for isolating the reverse voltage, and a resistor R11 connected between the output terminal of the switching transistor T11 and the ground. However, circuit elements can be deleted or added as appropriate according to actual conditions, which is not a limitation on the circuit structure of this specific example.

[0072] In the second conversion 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 conversion circuit 41. In addition, a rectifier circuit is formed by capacitors C21, C22 and diodes D21, D22 to rectify the signal input from the second input terminal P21. A first-order RC filter circuit is formed by resistor R21 and capacitor C23 as a second RC filter circuit to perform low-pass filtering on the signal rectified by the rectifier circuit, but it is not limited to this, and other low-pass filter circuits such as second-order RC filter circuits can also be used. A second voltage divider circuit is formed by resistor R22 and the above-mentioned resistor R21 to divide the signal filtered by the second RC filter circuit. For example, the resistance value of resistor R22 is 1.2 times the resistance value of resistor R21, so that a voltage divider signal with a voltage divider ratio of 6 / 11 relative to the total voltage is output from the second output terminal P22 connected between resistor R22 and resistor R21 as the second analog signal. In addition, the second conversion circuit 42 also includes a Zener diode Z21 connected between the second output terminal P22 and the ground as a protection circuit, but circuit elements can be deleted or added as appropriate according to actual conditions, which is not a limitation on the circuit structure of this specific example.

[0073] The following describes an abnormal state detection method executed by the pulse width modulation signal generating device 1B in the present embodiment and the above-mentioned specific example. Figure 7 This is a flowchart of an abnormal state detection method according to a specific example of the second embodiment of the present invention. Figure 7 The execution timing of the process shown is similar to that in the first embodiment. Figure 4 The process shown is the same, the following step S201 is an example of a pulse width modulation signal extraction step, step S202 is an example of a pulse width modulation signal conversion step, and steps S203 to S209 are examples of an abnormality detection step.

[0074] In step S201 , the PWM signal extraction unit 30 extracts a second PWM signal obtained by changing the amplitude and / or phase of the first PWM signal from the electronic device 2 .

[0075] In step S202, the first conversion circuit 41 converts the second pulse width modulation signal from a digital signal into a first analog signal reflecting the duty cycle of the second pulse width modulation signal, and the second conversion circuit 42 converts the second pulse width modulation signal from a digital signal into a second analog signal reflecting the peak voltage of the second pulse width modulation signal.

[0076] Next, the abnormality detection unit 50 performs a power short detection step to detect whether the pulse width modulation signal line 3 is in a power short abnormal state where it is short-circuited to the battery power of the electronic device 2 based on the voltage value of the first analog signal. Figure 8FIG. 1 is a waveform diagram of a first analog signal of a specific example of the second embodiment of the present invention when the pulse width modulation signal line 3 is short-circuited to the battery power supply of the electronic device 2. Figure 6 In this specific example showing a partial circuit structure, in the power short circuit abnormal state, the voltage extracted by the pulse width modulation signal extraction unit 30 is the battery voltage (for example, 14V) of the electronic device 2. Since in this specific example, the switching transistor T11 of the first conversion circuit 41 conducts between the constant voltage power supply and the first RC filter circuit only when a low level is input from the first input terminal P11, the switching transistor T11 remains off at this time, and the first analog signal output by the first conversion circuit 41 is as shown in FIG. Figure 8 As shown, the voltage becomes close to 0V.

[0077] In this regard, for example, in step S203, the abnormality detection unit 50 determines whether the voltage value of the first analog signal is below a preset second threshold value, wherein the second threshold value is higher than 0V, for example, 0.1V slightly higher than 0V, and can be set as appropriate according to actual conditions. In the case where it is determined in step S203 that the voltage value of the first analog signal is below the second threshold value, step S204 is executed, and the abnormality detection unit 50 detects that the pulse width modulation signal line 3 is in a power supply short circuit abnormal state relative to the battery power supply of the electronic device 2.

[0078] When it is determined in step S203 that the voltage value of the first analog signal is higher than the second threshold value (not in the power supply short circuit abnormal state), the abnormality detection unit 50 performs a short circuit to ground detection step to detect whether the pulse width modulation signal line 3 is in the short circuit to ground abnormal state based on the voltage value of the first analog signal. Fig. 9 1 is a waveform diagram of the first analog signal of a specific example of the second embodiment of the present invention when the pulse width modulation signal line 3 is short-circuited to the ground. Figure 6 In this specific example showing a partial circuit structure, in the abnormal state of short circuit to ground, the voltage extracted by the pulse width modulation signal extraction unit 30 is the ground voltage (0V). Since in this specific example, the switching transistor T11 of the first conversion circuit 41 conducts between the constant voltage power supply and the first RC filter circuit only when a low level is input from the first input terminal P11, the switching transistor T11 remains on at this time, and the first analog signal output by the first conversion circuit 41 is as shown in FIG. Fig. 9 As shown, the voltage of the constant voltage power supply (eg, 5 V) is divided into a voltage (eg, approximately 3 V).

[0079] In this regard, for example, in step S205, the abnormality detection unit 50 determines whether the voltage value of the first analog signal is above a pre-set first threshold value, wherein the first threshold value is set to be lower than the output voltage value of the constant voltage power supply of the first conversion circuit 41 after being divided by the first voltage divider circuit, and higher than the second threshold value, for example, set to 2.9V which is slightly lower than the divided voltage (3V), and can be set as appropriate according to actual conditions. In the case where it is determined in step S205 that the voltage value of the first analog signal is above the first threshold value, step S206 is executed, and the abnormality detection unit 50 detects that the pulse width modulation signal line 3 is in a short-circuit to ground abnormal state.

[0080] 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, i.e., not in an abnormal state of short circuit to ground or power supply short circuit), the abnormality detection unit 50 performs a circuit break detection step, which is described in detail below.

[0081] Fig.10 1 is a waveform diagram of the input signal of the pulse width modulation signal conversion unit 40 when the pulse width modulation signal line 3 is disconnected in a specific example of the second embodiment of the present invention. Figure 6 In this specific example showing a partial circuit structure, in the abnormal state of disconnection, the pulse width modulation signal extraction unit 30 cannot extract signals from the electronic device 2 via the pulse width modulation signal line 3. Among them, when the first pulse width modulation signal outputted from the output terminal P1 of the microprocessor is at a high level, the switching transistor T1 is turned on and grounded, and the voltage extracted by the pulse width modulation signal extraction unit 30 is at a low level (close to 0V); when the first pulse width modulation signal is at a low level, the switching transistor T1 is turned off, and the voltage extracted by the pulse width modulation signal extraction unit 30 is at a high level (close to 5V) based on the constant voltage power supply of the first conversion circuit 41. Therefore, when the pulse width modulation signal line 3 is disconnected, the input signal inputted into the pulse width modulation signal conversion unit 40 becomes Fig.10 The signal shown.

[0082] Fig.11 FIG. 4 is a waveform diagram of the first analog signal of a specific example of the second embodiment of the present invention when the pulse width modulation signal line 3 is disconnected. Since the first analog signal generated by the first conversion circuit 41 reflects the duty ratio of the input signal input to the pulse width modulation signal conversion unit 40, Fig.10 The duty cycle of the signal shown is different. The voltage value of the first analog signal is as follows: Fig.11 As shown, a voltage value between 0 and a voltage value (eg, 3 V) obtained by dividing the output voltage of the constant voltage power supply of the first conversion circuit 41 by the first voltage divider circuit.

[0083] However, it is difficult for the abnormality detection unit 50 to reliably detect the disconnection abnormality state in which the pulse width modulation signal line 3 is disconnected based only on the voltage value of the first analog signal. Specifically, it is difficult to distinguish the disconnection abnormality state from the normal connection state. Fig.12 2 is a waveform diagram of the input signal of the pulse width modulation signal conversion unit 40 when the pulse width modulation signal line 3 is normally connected in a specific example of the second embodiment of the present invention. Figure 3 Since the duty cycle of the input signal of the PWM signal conversion unit 40 is the same as that of the disconnection abnormal state, it is difficult to distinguish the two states based on the voltage value of the first analog signal alone.

[0084] Therefore, the abnormality detection unit 50 also detects whether the pulse width modulation signal line 3 is in a disconnection abnormal state in which the pulse width modulation signal line 3 is disconnected, based on the voltage value of the second analog signal. Fig.13 This is a waveform diagram of a second analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when a pulse width modulation signal line is disconnected. Fig.14 FIG. 1 is a waveform diagram of a second analog signal generated by a pulse width modulation signal generating device according to a specific example of the second embodiment of the present invention when the pulse width modulation signal line is normally connected. Figure 6 In this specific example showing a partial circuit configuration, in the disconnection abnormal state where the pulse width modulation signal line 3 is disconnected, as described above, the input signal input to the pulse width modulation signal conversion unit 40 becomes Fig.10 The signal shown is a pulse signal of high level, for example, 5V. The signal is rectified, low-pass filtered and voltage-divided by the second conversion circuit 42, for example, Fig.13 In contrast, the voltage value of about 0.5V is Figure 6 In this specific example showing a partial circuit configuration, in the normal connection state where the pulse width modulation signal line 3 is normally connected, as described above, the input signal input to the pulse width modulation signal conversion unit 40 becomes Fig.12 The signal shown is a pulse signal of high level, for example, 14V. The signal is rectified, low-pass filtered and voltage-divided by the second conversion circuit 42, for example, Fig.14 The voltage value shown is around 2V.

[0085] In this regard, return Figure 7To continue the explanation, for example, in step S207, the abnormality detection unit 50 determines whether the voltage value of the second analog signal is below a preset third threshold value, wherein the third threshold value can be set to be lower than the voltage value of the second analog signal when the pulse width modulation signal line 3 is normally connected, and higher than the voltage value of the second analog signal when the pulse width modulation signal line 3 is disconnected, for example, set to 0.75V, which can be set as appropriate according to actual conditions. In the case where it is determined in step S207 that the voltage value of the second analog signal is below the third threshold value, step S208 is executed, and the abnormality detection unit 50 detects that the pulse width modulation signal line 3 is in a disconnected abnormal state.

[0086] On the contrary, if 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 abnormality detection unit 50 detects that the pulse width modulation signal line 3 is in the normal connection state.

[0087] According to this specific example and the above-mentioned abnormal state detection method, by combining the analog circuit structures of the pulse width modulation signal generating unit 10B, the first conversion circuit 41 and the second conversion circuit 42, these circuits are linked to each other, and the ground short-circuit abnormal state and the power short-circuit abnormal state of the pulse width modulation signal line 3 can be reliably detected, and the disconnection abnormal state and the normal connection state of the pulse width modulation signal line 3 can also be distinguished.

[0088] The specific embodiments and specific examples of the present invention are described above with reference to the accompanying drawings. Among them, the specific embodiments and specific examples described above are only specific examples of the present invention, which are used to understand the present invention and are not used to limit the scope of the present invention. Those skilled in the art can make various deformations, combinations and reasonable omissions of elements to the specific embodiments and specific examples based on the technical ideas of the present invention, and the resulting methods are also included in the scope of the present invention. For example, the above-mentioned embodiments and specific examples can be combined with each other, and the embodiments formed by the combination are also included in the scope of the present invention.

[0089] Among them, in the above-mentioned embodiments of the present invention, if the pulse width modulation signal line 3 is disconnected, short-circuited to the ground, or short-circuited to the battery power supply of the electronic device 2, the pulse width modulation signal extraction unit 30 of the pulse width modulation signal generating device 1, 1A, 1B may not be able to extract the second pulse width modulation signal from the electronic device 2. That is, the conversion object of the pulse width modulation signal conversion unit 40 may not be the second pulse width modulation signal. However, before the pulse width modulation signal generating device 1, 1A, 1B performs the abnormality detection process, it is not known whether the pulse width modulation signal line 3 has an abnormal state, that is, it is not known whether the signal extracted by the pulse width modulation signal extraction unit 30 is a signal other than the second pulse width modulation signal. Therefore, in this application, sometimes the signal extracted by the pulse width modulation signal extraction unit 30 is recorded as the second pulse width modulation signal for description. The signal extracted by the pulse width modulation signal extraction unit 30 in each abnormal state is specifically described in each of the above-mentioned embodiments, and those skilled in the art can clearly understand the essence of the signal after reading the above-mentioned embodiments.

[0090] In addition, the steps included in the abnormal state detection method of the above-mentioned embodiments of the present invention can also be implemented as steps included in an abnormal state detection program executed by a microprocessor, or as a recording medium recording the above-mentioned abnormal state detection program, and the same technical effect can be obtained.

Claims

1. A pulse width modulation signal generating device, comprising: A pulse width modulation signal generating unit that generates a first pulse width modulation signal as a digital signal; as well as A pulse width modulation signal transmission unit, which transmits the first pulse width modulation signal to an external electronic device via a pulse width modulation signal line; The pulse width modulation signal generating device is characterized in that it further comprises: a pulse width modulation signal extraction unit, which extracts a second pulse width modulation signal from the electronic device, wherein the second pulse width modulation signal is a pulse width modulation signal in which the amplitude and / or phase of the first pulse width modulation signal is changed; a pulse width modulation signal conversion unit, which converts the second pulse width modulation signal from a digital signal to an analog signal; as well as The abnormality detection unit detects an abnormal state of the pulse width modulation signal line based on a numerical value obtained by converting the second pulse width modulation signal into an analog signal.

2. The pulse width modulation signal generating device according to claim 1, characterized in that: The pulse width modulation signal conversion unit comprises: a first conversion circuit, converting the second pulse width modulation signal from a digital signal into a first analog signal reflecting the duty cycle of the second pulse width modulation signal; and a second conversion circuit, converting the second pulse width modulated signal from a digital signal into a second analog signal reflecting a peak voltage of the second pulse width modulated 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 modulation signal generating device according to claim 2, characterized in that: The abnormality detection unit detects 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 the ground, or in a power supply short-circuited abnormal state in which the pulse width modulation signal line is short-circuited to the battery power supply of the electronic device, based on the voltage value of the first analog signal; The abnormality detection unit detects whether the pulse width modulation signal line is in a disconnection abnormal state or a normal connection state 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 device according to claim 2 or 3, characterized in that: The first conversion circuit comprises: A first input terminal connected to the pulse width modulation signal extraction unit, and inputting the second pulse width modulation signal; 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; a switching transistor connected between the constant voltage power supply and the first RC filter circuit, and using the second pulse width modulation signal input from the first input terminal as a control signal to turn on or off the constant voltage power supply and the first RC filter circuit; a first voltage divider circuit, for dividing the voltage of the signal filtered by the first RC filter circuit; and The first output terminal outputs the signal divided by the first voltage divider circuit as the first analog signal.

5. The pulse width modulation signal generating device according to claim 4, characterized in that: The second conversion circuit comprises: A second input terminal connected to the pulse width modulation signal extraction unit and the first input terminal; a rectifier circuit, for rectifying a signal input from the second input terminal; a second RC filter circuit, performing low-pass filtering on the signal rectified by the rectifier circuit; a second voltage divider circuit, for dividing the voltage of the signal filtered by the second RC filter circuit; and The second output terminal outputs the signal divided by the second voltage divider circuit as the second analog signal.

6. The pulse width modulation signal generating device according to claim 5, characterized in that: The switching transistor conducts 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 the ground when the voltage value of the first analog signal is greater than a first threshold value, wherein the first threshold value is set to be lower than the output voltage value of the constant voltage power supply of the first conversion circuit divided by the first voltage divider circuit; The abnormality detection unit detects that the pulse width modulation signal line is short-circuited with respect to the battery power supply of the electronic device when the voltage value of the first analog signal is less than a second threshold value, wherein the second threshold value is set to be lower than the first threshold value and higher than 0V; When the voltage value of the first analog signal is lower than the first threshold value and higher than the second threshold value, the abnormality detection unit detects that the pulse width modulation signal line is disconnected if the voltage value of the second analog signal is below a preset third 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, wherein the third threshold value is set to be lower than the voltage value of the second analog signal when the pulse width modulation signal line is normally connected and higher than the voltage value of the second analog signal when the pulse width modulation signal line is disconnected.

7. An abnormal state detection method performed by a pulse width modulation signal generating device, the pulse width modulation signal generating device having: A pulse width modulation signal generating unit that generates a first pulse width modulation signal as a digital signal; as well as A pulse width modulation signal transmission unit, which 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: A pulse width modulation signal extraction step, extracting a second pulse width modulation signal from the electronic device, wherein the second pulse width modulation signal is a pulse width modulation signal obtained by changing the amplitude and / or phase of the first pulse width modulation signal; a pulse width modulation signal conversion step, converting the second pulse width modulation signal from a digital signal to an analog signal; and The abnormality detection step detects an abnormal state of the pulse width modulation signal line based on a numerical value obtained by converting the second pulse width modulation signal into an analog signal.

8. The abnormal state detection method according to claim 7, characterized in that: 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 the duty cycle 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 the peak voltage of the second pulse width modulation signal. In the abnormality detection step, based on the voltage value of the first analog signal, it is detected whether the pulse width modulation signal line is in a short-circuit to ground abnormal state or a power short-circuit abnormal state relative to a battery power source of the electronic device, and based on the voltage value of the first analog signal and the voltage value of the second analog signal, it is detected whether the pulse width modulation signal line is in a disconnected abnormal state or a normally connected state.

9. The abnormal state detection method according to claim 8, characterized in that: The anomaly detection step comprises: a power short circuit detection step, based on the voltage value of the first analog signal, detecting whether the pulse width modulation signal line is in a power short circuit abnormal state relative to the battery power of the electronic device; a short-circuit to ground detection step, in which, when it is detected in the power short-circuit detection step that the power supply is not in the abnormal short-circuit state, the pulse width modulation signal line is detected to be in the abnormal short-circuit to ground state based on the voltage value of the first analog signal; a disconnection detection step, in which, when it is detected in the short-circuit-to-ground detection step that the short-circuit-to-ground abnormal state is not in place, based on the voltage value of the second analog signal, the pulse width modulation signal line is detected to be in a disconnection abnormal state; and The normal connection determination step determines that the pulse width modulation signal line is in a normal connection state when it is detected in the disconnection detection step that the pulse width modulation signal line is not in the disconnection abnormal state.