微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > A circuit for detecting Power Supply, what's wrong?

A circuit for detecting Power Supply, what's wrong?

时间:03-31 整理:3721RD 点击:
there is a circuit to detect a 5V power supply via parallel port, pls take a look at the attachment.
[/img][img]
when Power Supply is present, parallel port input will detect Low level.
when Power Supply is absent, parallel port input will detect High level.

usually, if there is no this circuit, read parallel port will get 0x7F at address 0x379.
if this circuit is connected to parallel port, the circumstance is not improved.
the value of reading parallel doesn't change, even if the resister Rb2 is removed.

what's wrong with this circuit? Anyone help figure it out?
[/img]

transistor is ll be on state even if you remove rb2. So when 5 V applied input ll be low. but in absence of 5V still you ll get low cos transistor is in off state and there is no voltage.

You don't need that circuit att all. Just connect 5V straight to the port.

if there is no voltage to input, read Parallel port will get 1's,
I would like to get 0's when 5V is present.

connect 5V straight to the port, will not detect if the power supply is absent.
Because reading the parallel port will return 1's value when there is no any circuit.

connect GND straight to the port, will get 0's.
if 5V is removed, the port is float, will get 1's.

any suggestions?

try to reduce rb2, so that when 5 V absent it has the voltage below 0.7 V.(voltage that comes through paralel port(5V). Cos in absence of 5 V rb2 has a voltage above 0.7V which makes transistor on state. And on state pulls input to low state.

in the same manner use higher Rc1. it works too.

zirtapoz, appreciated!
it is ok when rb1=4.7k, rb2=1k, rc1=11k.

you wellcome..:)

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top