3914 views|11 replies

770

Posts

0

Resources
The OP
 

Is this a circuit that can prevent the MCU from hanging? [Copy link]

 
My colleague said that this is a circuit to prevent the MCU from hanging up. Fan_Ctrl is the signal from the microcontroller, C is the DC blocking capacitor, Fan_Ctrler is the signal sent to the fan, and D is the reflux function. This is a brief introduction from my colleague. The purpose is that even if the MCU fails to work, as long as there is a continuous signal at the input end, Fan_Ctrler can continue to provide fan work. I don't quite understand what the working principle is?

防挂死电路.jpg (300.33 KB, downloads: 0)

防挂死电路.jpg
This post is from Analog electronics

Latest reply

The solution is to connect a diode in reverse parallel with the emitter junction. After the diode is connected in parallel, the input signal changes from low level to high level, and the transistor emitter junction has current (capacitor charging current). When the input signal changes from high level to low level, the capacitor discharges through the diode. In this way, the capacitor will not be filled with the input signal, and the transistor can be turned on every time a high level comes.  Details Published on 2019-3-29 09:36

2w

Posts

0

Resources
2
 
Is this a circuit that can prevent the MCU from hanging? This circuit is wrong. The transistor has no base current. There is no need to say anything else.
This post is from Analog electronics

Comments

Teacher, I have built a simulation circuit here. According to the simulation waveform analysis, the PWM output is normal. When the high level is high, the base voltage is about 0.6V, and the collector output voltage is low. When the low level is low, the base voltage is -4.37V, and the collector outputs 12V high level. When the MCU continues to output high level, the base voltage is only close to 0V.  Details Published on 2019-3-29 09:07
 
 

1w

Posts

25

Resources
3
 
I guess it means that even if the program crashes, as long as the hardware timer is still working, the PWM drive signal can be sent.
This post is from Analog electronics

Comments

Almost. Is this a hardware timer structure?  Details Published on 2019-3-27 15:31
 
 
 
 

770

Posts

0

Resources
4
 
dcexpert posted on 2019-3-27 15:21 I guess it means that even if the program crashes, as long as the hardware timer is still working, the PWM drive signal can be issued.
Almost, is this a hardware timer structure?
This post is from Analog electronics

Comments

This is a simple DC isolation driver.  Details Published on 2019-3-27 21:27
 
 
 
 

1w

Posts

142

Resources
5
 
What is "MCU hang"? If the MCU does not work or works abnormally due to program runaway or other faults, it cannot be called "hang". If the MCU does not work or works abnormally, the IO controlled by the software may not continue to output pulse signals, so there is nothing to prevent. The correct way is to add a watchdog to ensure the normal operation of the MCU.
This post is from Analog electronics
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 
 

1w

Posts

25

Resources
6
 
Sirigu1992 posted on 2019-3-27 15:31 Almost, is this a hardware timer structure?
This is a simple DC isolation driver
This post is from Analog electronics

Comments

Here I built a simulation circuit. According to the simulation waveform analysis, the PWM output is normal. When the PWM output is high, the base voltage is about 0.6V, and the collector output voltage is low. When the MCU outputs high level continuously, the base voltage is close to 0V, which is not very reasonable.  Details Published on 2019-3-29 09:08
 
 
 
 

770

Posts

0

Resources
7
 
maychang published on 2019-3-27 14:32 Is this a circuit that can prevent the MCU from hanging? This circuit is wrong. The transistor has no base current. There is no need to say anything else.
Teacher, I have built a simulation circuit here. According to the simulation waveform analysis, the PWM output is normal. When the high level is high, the base voltage is about 0.6V, and the collector output voltage is low; when the low level is low, the base voltage is -4.37V, and the collector outputs a high level of 12V. When the MCU continues to output at a high level, the base voltage is only close to 0V. I don’t quite understand why one transistor is turned on and the other is not turned on at the same high level.

MCU输入和基极电压对比.jpg (59.38 KB, downloads: 0)

MCU输入和基极电压对比

MCU输入和基极电压对比

MCU输入和集电极输出对比.jpg (54.96 KB, downloads: 0)

MCU输入和集电极输出对比

MCU输入和集电极输出对比

MCU持续高电平输出和基极电压对比.jpg (56.51 KB, downloads: 0)

MCU持续高电平输出和基极电压对比

MCU持续高电平输出和基极电压对比

MCU持续高电平输出和集电极输出对比.jpg (53.72 KB, downloads: 0)

MCU持续高电平输出和集电极输出对比

MCU持续高电平输出和集电极输出对比

QQ拼音截图未命名.jpg (136.71 KB, downloads: 0)

QQ拼音截图未命名.jpg
This post is from Analog electronics

Comments

I don't quite understand why one transistor is conducting and the other is not conducting when the voltage is high. This is the result of the base not being biased (or as mentioned on the 6th post, the base is DC-isolated). You simulated the capacitor with a large capacitance (10uF) and the initial condition of the capacitor is that the voltage across the two ends is zero (no charge is stored in the capacitor).  Details Published on 2019-3-29 09:36
I don't quite understand why one transistor is conducting and the other is not conducting when the voltage is high. This is the result of the base not being biased (or as mentioned on the 6th post, the base is DC-isolated). You simulated the capacitor with a large capacitance (10uF) and the initial condition of the capacitor is that the voltage across the two ends is zero (no charge is stored in the capacitor).  Details Published on 2019-3-29 09:33
I don't quite understand why one transistor is conducting and the other is not conducting when the voltage is high. This is the result of the base not being biased (or as mentioned on the 6th post, the base is DC-isolated). You simulated the capacitor with a large capacitance (10uF) and the initial condition of the capacitor is that the voltage across the two ends is zero (no charge is stored in the capacitor).  Details Published on 2019-3-29 09:32
I don't quite understand why one transistor is conducting and the other is not conducting when the voltage is high. This is the result of the base not being biased (or as mentioned on the 6th post, the base is DC-isolated). You simulated the capacitor with a large capacitance (10uF) and the initial condition of the capacitor is that the voltage across the two ends is zero (no charge is stored in the capacitor).  Details Published on 2019-3-29 09:30
 
 
 
 

770

Posts

0

Resources
8
 
dcexpert published on 2019-3-27 21:27 This is a simple DC isolation driver
I built a simulation circuit here. According to the simulation waveform analysis, the PWM output is normal. When the high level is high, the base voltage is about 0.6V, and the collector output voltage is low; when the low level is low, the base voltage is -4.37V, and the collector outputs 12V high level. When the MCU continues to output high level, the base voltage is only close to 0V. I don’t understand why one transistor is turned on and the other is not turned on when the same high level is reached.

MCU输入和基极电压对比.jpg (59.38 KB, downloads: 0)

MCU输入和基极电压对比

MCU输入和基极电压对比

MCU输入和集电极输出对比.jpg (54.96 KB, downloads: 0)

MCU输入和集电极输出对比

MCU输入和集电极输出对比

MCU持续高电平输出和基极电压对比.jpg (56.51 KB, downloads: 0)

MCU持续高电平输出和基极电压对比

MCU持续高电平输出和基极电压对比

MCU持续高电平输出和集电极输出对比.jpg (53.72 KB, downloads: 0)

MCU持续高电平输出和集电极输出对比

MCU持续高电平输出和集电极输出对比

QQ拼音截图未命名.jpg (136.71 KB, downloads: 0)

QQ拼音截图未命名.jpg
This post is from Analog electronics
 
 
 
 

2w

Posts

0

Resources
9
 
Sirigu1992 posted on 2019-3-29 09:07 Teacher, I have built a simulation circuit here. According to the simulation waveform analysis, PWM output is normal. When the level is high, the base voltage is about 0.6V, and the collector output voltage is...
I don't quite understand why one transistor is turned on and the other is not turned on when the level is high. This is the result of the base not being biased (or as the 6th floor said, the base is DC-isolated). You simulated, the capacitor capacity is quite large (10uF), and the initial condition of the capacitor is that the voltage across the two ends is zero (no charge is stored in the capacitor). When the signal starts to input a high level, the capacitor is charged, and at this moment there is a forward current in the emitter junction of the transistor. When the input is low level, the capacitor has nowhere to discharge, so the voltage across the capacitor will increase a little. After several cycles, the capacitor will be fully charged, and the voltage across the capacitor will be close to the peak value of the input signal, and the transistor can no longer conduct when the input signal is high level. This is exactly the same as the operation of the diode half-wave rectifier circuit (the transistor emitter junction is the rectifier diode).
This post is from Analog electronics
 
 
 
 

2w

Posts

0

Resources
10
 
Sirigu1992 posted on 2019-3-29 09:07 Teacher, I built a simulation circuit here. According to the simulation waveform analysis, PWM output is normal. When the base voltage is high, it is about 0.6V, and the collector output voltage is...
Your simulation was only observed for a short time, so you can see the part of the waveform where the transistor can conduct at the beginning of the signal input. If you observe for a longer time, you will see the part where the capacitor is fully charged and the transistor is no longer conducting.
This post is from Analog electronics
 
 
 
 

2w

Posts

0

Resources
11
 
Sirigu1992 posted on 2019-3-29 09:07 Teacher, I have built a simulation circuit here. According to the simulation waveform analysis, PWM output is normal. When the base voltage is high, it is about 0.6V, and the collector output voltage is...
If the input is continuously high, the capacitor will be filled quickly. The transistor has no base current and will no longer conduct. If the input is continuously high, it will only conduct for a short time when the signal starts (the input signal changes from zero to high).
This post is from Analog electronics
 
 
 
 

2w

Posts

0

Resources
12
 
Sirigu1992 posted on 2019-3-29 09:07 Teacher, I have built a simulation circuit here. According to the simulation waveform analysis, PWM output is normal. When the base voltage is high, it is about 0.6V, and the collector output voltage is...
The solution is to connect a diode in reverse parallel with the emitter junction. After the diode is connected in parallel, the input signal changes from low level to high level, and the transistor emitter junction has current (capacitor charging current). When the input signal changes from high level to low level, the capacitor discharges through the diode. In this way, the capacitor will not be filled with the input signal, and the transistor can be turned on every time a high level comes.
This post is from Analog electronics
 
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list