Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 16th April 2007, 11:42 PM   #1
Default Cmos To ttl

hi , i have a problem in interfacing sensors which work on 9-12 Volt
and a microcontroller which work on 5 volt .
Any ideaS?
Eng.Remon is offline  
Old 17th April 2007, 12:25 AM   #2
Default

Probably have to use two power supplies. If your sensors have analog outputs, you're going to have to put them through an A to D converter to make use of them anyway.
j.p.bill is offline  
Old 17th April 2007, 01:52 AM   #3
Default

Use an LM339 quad Comparator or an LM393 dual Comparator. They work well on a single supply. The output is a TTL/CMOS compatible open collector output which can be pulled up to whatever Vcc your processor is running on. If you look very carefully they may even have single comparators in a SOT23-5 package. Be careful you don't have both of the inputs outside the common mode range. With a reference at V+/2 this should be no problem if V+ is in the 9-12Volt range. Don't forget the bypass caps on the comparator either.
Papabravo is offline  
Old 17th April 2007, 01:57 AM   #4
Default

How about two resistors as a voltage divider? All the other solutions seem overly complex to me for such a simple problem.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 17th April 2007, 02:07 AM   #5
Default

Quote:
Originally Posted by Eng.Remon
hi , i have a problem in interfacing sensors which work on 9-12 Volt
and a microcontroller which work on 5 volt .
Any ideaS?
We kind of have to know more details about the sensor. What is it's output. digital or analog ? What kind of sensor, etc.

Quality of answers we be in proportion to the quality of the specfic information you can provide......

Lefty
Leftyretro is offline  
Old 17th April 2007, 05:33 PM   #6
Default

it is an IR sensor which its output is 9-12 so this signal should be input to the micro controller 8051 atmel.
Eng.Remon is offline  
Old 17th April 2007, 08:56 PM   #7
Default

How about a link to a datasheet. Your answers are just not very helpful.
Papabravo is offline  
Old 17th April 2007, 09:07 PM   #8
Default

it is a 8051 atmel micro controller which is known
and the sensor outputs 9 volt all i need is to interface it wid the micro controller input pin
Eng.Remon is offline  
Old 17th April 2007, 09:12 PM   #9
Default

Quote:
Originally Posted by Eng.Remon
it is a 8051 atmel micro controller which is known
and the sensor outputs 9 volt all i need is to interface it wid the micro controller input pin

Well if it's a digital ouput from the sensor, that is it is either 9v or 0v then a simple voltage divider of say two 10k resistors should work. CMOS ouput to top of top resistor, common voltage of both sensor and micro to bottom of bottom resistor and micro input connected to where the two resistors hook together. That should give you a 4.5v input to your micro.....
Leftyretro is offline  
Old 17th April 2007, 09:41 PM   #10
Default

You need to check the max output from the CMOS IC's.

TTL requires a larger operating current per gate then Cmos, check IC datasheets.

You may have to drive it via a Cmos buffer.

Also for TTL you have to use pull up / down resistors on gates not used, to avoid false triggering.
__________________
There are more ways to get to Rome.

Electricity, Electric clocks, Meters and Trains are great.

Please don't sent me private messages, I will not answer them.
The questions asked can be discussed in the open forums.

http://www.youtube.com/user/RODALCO2007 some interesting electrical stuff to watch.
RODALCO is offline  
Reply

Tags
cmos, ttl

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Need help with TTL kittydog42 General Electronics Chat 5 17th April 2007 06:24 AM
CMOS gates mtkee2003 General Electronics Chat 3 3rd July 2006 04:24 PM
Using a Microcontroller to replace TTL & CMOS ICs William At MyBlueRoom Micro Controllers 3 25th June 2006 06:13 AM
TTL Vs CMOS Logic ghauri Electronic Projects Design/Ideas/Reviews 1 2nd June 2006 06:57 PM
Logic Family characteristics Styx General Electronics Chat 5 6th July 2005 08:01 AM



All times are GMT. The time now is 07:49 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker