CrazyEngineers Forum

Turn The Screws!

Open your eyes, look in front, look at the back, look at any angle and you will see something that is an engineer's creation.

Engineers have been making things possible that others could only imagine. It perfectly makes sense to have a common place for engineers from around the world where they can share ideas, innovate, & help each other. Engineers are eternal, with the younger at 62 & the youngest at 17, the CEan gang consists of working professionals, students, entrepreneurs, CEOs, professors, geeks & nerds.

Need we say more? Click Here To Join The Gang!
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Electrical & Electronics Engineering
Reply

  #1 (permalink)
Old 6th June 2008, 02:49 PM
CE - Apprentice
 
I'm a Crazy eee(electrical&electronics engineering) Engineer
Join Date: 29th May 2008
Posts: 10
Default Most Basic Doubt Of Digital Electronics!!!

how do we give a digital 1 or 0 to a wire..(does giving a wire 5v makes it digitally 1 and giving 0v makes it digitally 0??)
suppose i have four input wires connected to a microcontroller giving following inputs:
1st wire : 5volt
2nd wire : 0 volt
3rd wire : 3 volt
4th wire : -3 volts
are these inputs analog or digital??
if they are analog then how do we give a digital input??
if they are digital inputs then which of them would be 1 and which would be zero??
please do not ignore my question thinking it to be too basic!!! i have searched from winki..to google to get my answer but couldnt get it...
thanks!!!
tech_vaibhav_ee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)
Old 6th June 2008, 08:46 PM
CE - Editor
 
xheavenlyx's Avatar
 
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006
Location: Dubai, UAE
Posts: 566
Default Re: Most Basic Doubt Of Digital Electronics!!!

Wow, your question is very understandable and I get it that you are thinking this is a dumb question. To most electronic engineers this is a very very bascic Q, BUT our shit education does not teach us these important basics So dont worry, its good to ask basics if we want to learn!

Digital Signal

Generally speaking digital or analog signal depends where you are giving 5 Volts or 3V or 0V.

If you give 5 Volts to microcontroller then its Digital 1. If 0 volts then 0.

You can rmember like this:
if 5volt then 1 (it is on)
if no volt then 0 (it is off)

But its not exact sometimes, it can be: (0 to 1.2 Volts) as 0. and (4.0 to 5 Volts) as 1 for a microcontroller.
Some microcontrollers can accept 3.3V as 1 and 0Volts as 0. These are all digital signals because you are giving it to a "digital device".

Analog Signal

BUT if you give the same 5 volts to a circuit which has a resistor and a bulb it is considered analog signal. Well, we dont say "Analog signal" usually, just voltage.

Another important thing. Digital circuits is just a collection of many analog devices like capacitors, transistors, resistors and inductors. The same analog stuff we learn in 9th grade. Thats all. Only thing is there are millionns of them in a digital circuit connected together to accept just two signal "modes" ON(5V) or OFF(0V). And diferent digital circuits can accept different voltages a 1 and 0.

Visit this link and keep reaaading Have fun!

Digital electronics - Wikipedia, the free encyclopedia
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 6th June 2008, 09:27 PM
CE - Addict
 
mahul's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 14th November 2007
Location: kolkata
Posts: 256
Send a message via Yahoo to mahul
Default Re: Most Basic Doubt Of Digital Electronics!!!

Here's my take

No energy is analog or digital, its a device that is analog or digital.

An analog device accepts the voltage value as it is, while a digital device makes some decision about the signal.

A digital device can only work with a fixed set of values. For example a microcontroller( and most other devices ) works with just two values, 0 and 1. So whatever voltage is supplied, it compares the voltage with a reference. If the value is higher than the reference, it considers it as 1, else 0. Now your q would be easy to answer. If you consider say, 2.5 volts as the reference, 3 and 5 V is '1' and 0 and -3 is '0'. The choice of the reference depends entirely on the designer.

CEans, please point out errors if any.
__________________

An apple changed the world, it fell on Newton's head

My Blog
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 8th June 2008, 05:34 AM
CE - Apprentice
 
I'm a Crazy eee(electrical&electronics engineering) Engineer
Join Date: 29th May 2008
Posts: 10
Default Re: Most Basic Doubt Of Digital Electronics!!!

thanks for your replies!!!
@mahul..you seems to be wrong on just one point here(i asked this question on other forums also, so i am very much clear of the answer... .)

its true that a microcontroller gives digital 1 or 0 for certain input voltages but these these limits are defined by the hardware itself and not by the user...generally a microcontroller gives a digital 0 for 0v-1v and digital 1 for 3v-5v(these are approximate values which changes from hardware to hardware)...if the input voltage is outside these limits then it may even damage the microcontroller...
tech_vaibhav_ee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)
Old 8th June 2008, 01:06 PM
CE - Addict
 
mahul's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 14th November 2007
Location: kolkata
Posts: 256
Send a message via Yahoo to mahul
Default Re: Most Basic Doubt Of Digital Electronics!!!

You got me wrong vaibhav. When i said "designer", I meant the hardware designer, not the user who would execute his software code. It's because of the designers choice that the voltage values differ from microcontroller to microcontroller.
__________________

An apple changed the world, it fell on Newton's head

My Blog
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #6 (permalink)
Old 8th June 2008, 01:34 PM
CE - Apprentice
 
I'm a Crazy eee(electrical&electronics engineering) Engineer
Join Date: 29th May 2008
Posts: 10
Default Re: Most Basic Doubt Of Digital Electronics!!!

sorry for the misunderstanding...neways ..thanks for the reply...
tech_vaibhav_ee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 8th June 2008, 07:27 PM
CE - Addict
 
mahul's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 14th November 2007
Location: kolkata
Posts: 256
Send a message via Yahoo to mahul
Default Re: Most Basic Doubt Of Digital Electronics!!!

Oh ur welcome :P
__________________

An apple changed the world, it fell on Newton's head

My Blog
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)
Old 14th June 2008, 11:34 PM
CE - Apprentice
 
I'm a Crazy Electrical, Electronics Engineer
Join Date: 14th June 2008
Posts: 22
Default Re: Most Basic Doubt Of Digital Electronics!!!

Just another point, A digital system operates with inputs whose value can take either 1 or 0. The voltage values that is set as 0v to 1v for digital 0 and 3v to 5v for digital 1 is called as TTL or Transistor-Transistor Logic values. For example, You could design a digital system that would accept a analog voltage range of say, 0v to 5v for digital 0 and 7v to 12v for digital 1.
There are different logic levels like TTL, say for example the RS-232 standard specifies the voltage levels as plus or minus 3v to 15v, so check the datasheet of the digital IC you will be using

Last edited by elric : 14th June 2008 at 11:56 PM.
elric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)
Old 15th June 2008, 12:43 AM
CE - Newbie
 
I'm a Crazy ELECTRONICS Engineer
Join Date: 12th June 2008
Posts: 1
Thumbs down Re: Most Basic Doubt Of Digital Electronics!!!

Quote:
Originally Posted by tech_vaibhav_ee View Post
how do we give a digital 1 or 0 to a wire..(does giving a wire 5v makes it digitally 1 and giving 0v makes it digitally 0??)
suppose i have four input wires connected to a microcontroller giving following inputs:
1st wire : 5volt
2nd wire : 0 volt
3rd wire : 3 volt
4th wire : -3 volts
are these inputs analog or digital??
if they are analog then how do we give a digital input??
if they are digital inputs then which of them would be 1 and which would be zero??
please do not ignore my question thinking it to be too basic!!! i have searched from winki..to google to get my answer but couldnt get it...
thanks!!!
very bad idea
jamesroker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)
Old 15th June 2008, 03:51 PM
CE - Apprentice
 
vissin's Avatar
 
I'm a Crazy Electronics Engineer
Join Date: 15th April 2008
Posts: 32
Default Re: Most Basic Doubt Of Digital Electronics!!!

Quite unfortunately, there are many engineers who don't understand what their respective engineering field is all about. So Vaibhav, it is good of you to ask such a basic question (a question that most electronics engineers will answer incorectly)

You've had some answers here and so I will try not to repeat anything unnecessarily in my reply.

We devide signals in many ways. Analog (periodic & non-periodic) and Digital being two of our concern in this discussion. The difference between these two is that while Analog is continuous, Digital is not so. Digital signals instead identifies a 'quantum' which is the smallest change in signal that can be recognized.

Analog voltage, for an instance can take any value eg 1V, 1.45V, 3.268V... etc. All these values are acceptable subject to what level of accuracy you desire. A digital signal, on the other hand, with a quantumm of 1V can only take such values as 1V, 2V, 3V...etc. A value like 1.5V is not legal. It will be taken as 1V (or 2V depending on logic).

The above is a generic understanding of Digital and Analog. There are many further classification in the two. When you speak of '1' and '0' you're talking of "Binary Logic Digital Signal". In this only two logic levels of the signal are accepted, '1' and '0' which may represent 'true' and 'false' or 'on' and 'off'.

What analog value of the actual signal is taken as '1' and what is taken as '0' depends on the logic standard that being used. The most popular one (historically) being TTL logic. A newer one would be CMOS logic. You may search about these on google and study them. Pay attention to noise margin and other such concepts.

To answer your following question:
'
are these inputs analog or digital??
if they are analog then how do we give a digital input??'

All natural signals are analog in nature. Digital signals don't exist on it's own. When you say 5V you're naming an analog value. Understand also that this 5V is not an absolute value. It's a differential value (5V with respect to a certain potential level accepted to be 0V). What you accept as logic '1' and what as logic '0' will be clear to you when you read about TTL and CMOS logics.
vissin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 05:14 AM.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.Ad Management by RedTyger