Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

ubuntu_amateur

Member level 4
Joined
Sep 24, 2006
Messages
71
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,665
there is a circuit to detect a 5V power supply via parallel port, pls take a look at the attachment.
[/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?
 

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.
 

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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top