Discussion in "General help Guidance and Discussion" started by    prajwalsnh    Oct 21, 2013.
Mon Oct 21 2013, 07:03 AM
Hi everyone,

I have few stupid doubts in ADC. I just tried a simple adc test in my 8051 using ADC 0804. Well, i got the expected output. But after which some peculiar question came to my mind. I used 10K Preset as the ANALOG INPUT for ADC 0804. When i rotated the knob the resistance changed and accordingly the LED's connected to a port also varied between its on and off condition. But my question is we provide DC voltage which is a constant voltage for preset. on varying the preset how come the output is ANALOG??? I mean in terms of waveform DC voltage will be a straight LINE. But how will it change to alternating waveform at resistor end? Can anybody explain the clear concept of AC & DC, ANALOG and DIGITAL. I'm sorry if my question sounds funny
Mon Oct 21 2013, 10:05 AM
Looks like you're confused with basic definition of Analog and Digital signal. When you say digital it means it can only have two levels either 0 or 1. where zero is represented by 0V and 1 represented by 5V in TTL. So Digital signal does not understand any other voltage levels other than 0 or 1. Where as when we say Analog, Its just a signal with a voltage level, which can be either +ve or -ve or zero.

The AC, DC are different concept, they are concept of signal theory. And AC/DC signals are functions of time.
DC signal (Fn) can be represented by
Fn = x;
x is a constant value
where as AC signal Fn is
Fn = x(t)
where x is function of time, i.e. it changes with time so we call it AC signal.
Now at a particular time interval t, x(t) will have a certain value with will remain constant at that time, for t+1 it will be different.

This same theory is used in ADC, to measure an analog signal you sample incoming signal at particular time t where its value is x Volts and you get ADC value, and at t+1 it has y Volts. you store all these values in your controller and when you want to reconstruct the original signal just send the timed values to DAC and you will get similar waveform on the output.

I tried to explain some concepts of signal theory hope you understood.
Tags signal theorysignal and systemanalog signal representationdigital signaldigital signal representationsignal time function
Mon Oct 21 2013, 04:26 PM
@Ajay Bhargav

Thanks for your reply sir I know the theory whatever u told. But 'm not able to understand still. what wil be the voltage at micro-controller pin?? No doubt it will be DC 5V. But its analog or digital?? can i simulate in proteus to see the waveforms out of a preset as i told in earlier post??? If you don't mind can you give some example circuits and explain Thanks in advance.
Tue Oct 22 2013, 07:34 AM
When we say digital its just a convention to imply that system can only understand two levels 0 or 1. Even analog source can out put 5V but we call it analog because of its nature. Its hard to explain things like this its like general knowledge of electronics. In proteus you can connect one end of potentiometer to VCC and other GND, connect the centre one to oscilloscope. Now when you run the simulation you will see DC signal only but still we call it analog input (and not digital) because it can have any value from 0 to 5V unlike digital where you can only have 0 and 5V Hope this gives a better clarification.
 dikshac like this.
Tue Oct 22 2013, 03:57 PM
@Ajay Bhargav

Yes now i got it Nice explanation. Thanks a TON sir

Get Social


Powered by e107 Forum System


Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html



Tue Oct 15 2019, 04:32 PM
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
Thu Oct 03 2019, 09:53 AM
Thu Oct 03 2019, 07:37 AM
Fri Sep 20 2019, 04:53 PM
Thu Sep 19 2019, 11:57 AM
Tue Sep 17 2019, 04:21 AM


Guests: 47, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38097
Newest member: ilylily07
Forum Activity
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 17 2019, 08:35 PM
Do you understand how this code works?If so, addin...