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.

LM324 interfacing with Microcntroller Problem

Status
Not open for further replies.

knark

Junior Member level 1
Joined
Dec 13, 2010
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,438
Friends,
i am having problems when i interface my comparator LM324 which is taking inputs from infrared sensors and giving output to the microcontroller. what happens is that without microcontroller the comparator gives good output like 3.6V and 0 V for a high and a low respectively . but when we interface it with a controller i dont know what happens . some people are suggesting that you should have a pull up or pull down resistor at comparator's output. which one should i have pull up or down and why should i have it and we also know that there are internal pull ups in 89c51 so dont they function properly ?
 

The LM324 is an opamp not a comparator and does need a pullup resistor. You don't say what problem you get when you connect it to the microcontroller but the most likely problem is incorrect configuration of the microcontroller IO ports.

Keith
 

The LM324 is an opamp not a comparator and does need a pullup resistor.
Uh, perhaps you meant to say the LM324 does NOT need a pull-up resistor?

You don't say what problem you get when you connect it to the microcontroller............
That's right. I started visiting this forum regularly less than a month ago. But in that short time, I'm surprised to see many OPs ask questions with an incomplete background info or indeed none at all, making it difficult or impossible for others to even start to help diagnose the problem.
 

That's right. I started visiting this forum regularly less than a month ago. But in that short time, I'm surprised to see many OPs ask questions with an incomplete background info or indeed none at all, making it difficult or impossible for others to even start to help diagnose the problem.
I fear this problem isn't specific to Edaboard.

In the present case, the OP doesn't seem to have a problem at all. It looks he's guessing about problems that may happen.
but when we interface it with a controller i dont know what happens
I admit, I'm not too motivated to explain why there won't be a problem. These things can be tried out easily.
 

Whoops, yes, I meant to say the LM324 doesn't need a pullup. LM393, if you were really using a comparator, would.

Keith
 

Just for knowledge, I still use LM324 to drive MCU pins as of AT89C51 (AT89C2051... etc) in my new designs, ususally without a pull-up or pull-down resistor.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top