<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using the Analog To Digital Converter.</title>
	<atom:link href="http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 03:41:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Andre</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-36065</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Tue, 20 Dec 2011 22:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-36065</guid>
		<description>Hi Avinash &amp; thanks for this wonderful page of AVR. I have a question friend. where returns the function return(ADC)? thanks</description>
		<content:encoded><![CDATA[<p>Hi Avinash &amp; thanks for this wonderful page of AVR. I have a question friend. where returns the function return(ADC)? thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-33622</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Sun, 27 Nov 2011 04:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-33622</guid>
		<description>&lt;strong&gt;@Abhilash

Thanks, but I personally don&#039;t like Arduinos. So I am never gonna work on those.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p><strong>@Abhilash</p>
<p>Thanks, but I personally don&#8217;t like Arduinos. So I am never gonna work on those.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhilash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-33621</link>
		<dc:creator>Abhilash</dc:creator>
		<pubDate>Sun, 27 Nov 2011 04:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-33621</guid>
		<description>Sir thank you very much for your great support through these tutorials.Please post tutorials on arduino development boards.
I hope that in future Arduino Uno will be there in your online shop.
Thank you.</description>
		<content:encoded><![CDATA[<p>Sir thank you very much for your great support through these tutorials.Please post tutorials on arduino development boards.<br />
I hope that in future Arduino Uno will be there in your online shop.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antzy</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-32066</link>
		<dc:creator>Antzy</dc:creator>
		<pubDate>Thu, 10 Nov 2011 06:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-32066</guid>
		<description>Hi,
Just wanted to point out that ADCSRA should be set as:

ADCSRA=(1&lt;&lt;ADEN)&#124;(1&lt;&lt;ADPS2)&#124;(1&lt;&lt;ADPS1)&#124;(1&lt;&lt;ADPS0); //Enable ADC with Prescalar=Fcpu/128 

You did not shift 1 by ADPS1 and ADPS0 in the explanation while it is written correctly in the code.
Hope I&#039;m not wrong...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Just wanted to point out that ADCSRA should be set as:</p>
<p>ADCSRA=(1&lt;&lt;ADEN)|(1&lt;&lt;ADPS2)|(1&lt;&lt;ADPS1)|(1&lt;&lt;ADPS0); //Enable ADC with Prescalar=Fcpu/128 </p>
<p>You did not shift 1 by ADPS1 and ADPS0 in the explanation while it is written correctly in the code.<br />
Hope I&#039;m not wrong&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-31356</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Thu, 03 Nov 2011 03:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-31356</guid>
		<description>&lt;strong&gt;@Mike

see this
http://extremeelectronics.co.in/avr-tutorials/programming-in-c-tips-for-embedded-development/&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p><strong>@Mike</p>
<p>see this<br />
<a href="http://extremeelectronics.co.in/avr-tutorials/programming-in-c-tips-for-embedded-development/" rel="nofollow">http://extremeelectronics.co.in/avr-tutorials/programming-in-c-tips-for-embedded-development/</a></strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-31317</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 02 Nov 2011 16:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-31317</guid>
		<description>Hello.I have a problem understanding this line of code:
ADMUX=(1&lt;&lt;REFS0);
I know that &quot;&lt;&lt;&quot; is the bitshift operator. The operation x&lt;&lt;n shifts the value of x left by n bits. If REFS0 is initial 0 then 1 is shifted to the left by 0 positions. So in the right-hand side we have the bit value 1 and this value is assign to ADMUX(a register with 8 bits).Is this possible? I&#039;ll appreciate if you could help me figure out this problem.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hello.I have a problem understanding this line of code:<br />
ADMUX=(1&lt;&lt;REFS0);<br />
I know that &quot;&lt;&lt;&quot; is the bitshift operator. The operation x&lt;&lt;n shifts the value of x left by n bits. If REFS0 is initial 0 then 1 is shifted to the left by 0 positions. So in the right-hand side we have the bit value 1 and this value is assign to ADMUX(a register with 8 bits).Is this possible? I&#039;ll appreciate if you could help me figure out this problem.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeraj</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-30040</link>
		<dc:creator>Jeraj</dc:creator>
		<pubDate>Sun, 16 Oct 2011 11:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-30040</guid>
		<description>Its really a nice tutorial for new guys in avr!!!
thanx dear.!!</description>
		<content:encoded><![CDATA[<p>Its really a nice tutorial for new guys in avr!!!<br />
thanx dear.!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeraj</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-30039</link>
		<dc:creator>Jeraj</dc:creator>
		<pubDate>Sun, 16 Oct 2011 11:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-30039</guid>
		<description>Its really a nice tutorial for new guys in avr!!!</description>
		<content:encoded><![CDATA[<p>Its really a nice tutorial for new guys in avr!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kusum</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-24812</link>
		<dc:creator>kusum</dc:creator>
		<pubDate>Tue, 28 Jun 2011 06:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-24812</guid>
		<description>thank u.it is a great tutorial.but i have a question if instead of using lcd we would like to the accelerometer values in eeprom of atmega128,then what do we need to do?</description>
		<content:encoded><![CDATA[<p>thank u.it is a great tutorial.but i have a question if instead of using lcd we would like to the accelerometer values in eeprom of atmega128,then what do we need to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sadiqur Rahman</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-22517</link>
		<dc:creator>Sadiqur Rahman</dc:creator>
		<pubDate>Fri, 03 Jun 2011 06:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-22517</guid>
		<description>Is there any way to test segment program without Microcontroller. I means that I wanna test segment code as a new programmer in my PC. Please reply to me...</description>
		<content:encoded><![CDATA[<p>Is there any way to test segment program without Microcontroller. I means that I wanna test segment code as a new programmer in my PC. Please reply to me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visualize ADC data on PC Screen using USART - AVR Project &#124; eXtreme Electronics</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-22392</link>
		<dc:creator>Visualize ADC data on PC Screen using USART - AVR Project &#124; eXtreme Electronics</dc:creator>
		<pubDate>Thu, 02 Jun 2011 02:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-22392</guid>
		<description>[...] Analog To Digital Convertor [...]</description>
		<content:encoded><![CDATA[<p>[...] Analog To Digital Convertor [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LED with adjustable flash, need help</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-19646</link>
		<dc:creator>LED with adjustable flash, need help</dc:creator>
		<pubDate>Sat, 02 Apr 2011 10:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-19646</guid>
		<description>[...] the register names and found this tutorial which appears to be for the same hardware you are using. Using the Analog To Digital Converter. &#124; eXtreme Electronics Probably way too much help [...]</description>
		<content:encoded><![CDATA[<p>[...] the register names and found this tutorial which appears to be for the same hardware you are using. Using the Analog To Digital Converter. | eXtreme Electronics Probably way too much help [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-19361</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Sun, 27 Mar 2011 02:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-19361</guid>
		<description>&lt;strong&gt;declare percent as float like&lt;/strong&gt;

&lt;code&gt;float percent;
percent = (adc_result*100.00)/1023.00;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>declare percent as float like</strong></p>
<p><code>float percent;<br />
percent = (adc_result*100.00)/1023.00;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dama</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-19357</link>
		<dc:creator>dama</dc:creator>
		<pubDate>Sun, 27 Mar 2011 00:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-19357</guid>
		<description>Hi, I&#039;m having a problem regarding with getting the percentage of the adc reading. I am using this equation percent=(adc_result1*100)/1023. I get my percentages right, but the problem is that after 64 percent it jumps to 1 percent again, I was wondering if you could help me figure out the problem.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m having a problem regarding with getting the percentage of the adc reading. I am using this equation percent=(adc_result1*100)/1023. I get my percentages right, but the problem is that after 64 percent it jumps to 1 percent again, I was wondering if you could help me figure out the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-18359</link>
		<dc:creator>praveen</dc:creator>
		<pubDate>Fri, 04 Mar 2011 03:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-18359</guid>
		<description>please  provide  some insight into use of ADC in differential mode and a sample code to assist beginners .</description>
		<content:encoded><![CDATA[<p>please  provide  some insight into use of ADC in differential mode and a sample code to assist beginners .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh ygv</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-18160</link>
		<dc:creator>dinesh ygv</dc:creator>
		<pubDate>Sun, 27 Feb 2011 14:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-18160</guid>
		<description>There is a function named LCDInit(LS_BLINK&#124;LS_ULINE) in the code given above but, the actual name of the function in lcd.h supplied by your web-site in LCD usage tutorial has the function InitLCD(LS_BLINK&#124;LS_ULINE). 

Please consider changing this and make this to be in sync with that tutorial.</description>
		<content:encoded><![CDATA[<p>There is a function named LCDInit(LS_BLINK|LS_ULINE) in the code given above but, the actual name of the function in lcd.h supplied by your web-site in LCD usage tutorial has the function InitLCD(LS_BLINK|LS_ULINE). </p>
<p>Please consider changing this and make this to be in sync with that tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayant</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-17259</link>
		<dc:creator>Jayant</dc:creator>
		<pubDate>Fri, 04 Feb 2011 18:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-17259</guid>
		<description>Sorry for the question posted in my previous comment.
I didn&#039;t noticed the bitwise operator &#039;&#124;&#039; in ADMUX&#124;=ch;.
Anyway thanking you.</description>
		<content:encoded><![CDATA[<p>Sorry for the question posted in my previous comment.<br />
I didn&#8217;t noticed the bitwise operator &#8216;|&#8217; in ADMUX|=ch;.<br />
Anyway thanking you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayant</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-17254</link>
		<dc:creator>Jayant</dc:creator>
		<pubDate>Fri, 04 Feb 2011 16:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-17254</guid>
		<description>hi, thanks for the great tutorial.....it is really very helpful for beginners like me.
i had a doubt....in your ReadADC routine when you say :
ch=ch&amp;0b00000111;
   ADMUX&#124;=ch;
we are also setting the REFS1 and REFS2 to 0.....which means we are no more using AVCC as our reference voltage(which we were supposed to do).
Please correct me if i am going wroing somewhere.

thanking you in advance.</description>
		<content:encoded><![CDATA[<p>hi, thanks for the great tutorial&#8230;..it is really very helpful for beginners like me.<br />
i had a doubt&#8230;.in your ReadADC routine when you say :<br />
ch=ch&amp;0b00000111;<br />
   ADMUX|=ch;<br />
we are also setting the REFS1 and REFS2 to 0&#8230;..which means we are no more using AVCC as our reference voltage(which we were supposed to do).<br />
Please correct me if i am going wroing somewhere.</p>
<p>thanking you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-16543</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 14 Jan 2011 13:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-16543</guid>
		<description>I apologize for my ignorance. I wasn’t asking for an arithmetic lesson, just help with the C code which I am a beginner. I was enjoying your website and tutorials until I was ridiculed. What’s the sense of publishing tutorials for beginners if you are clearly offended by a beginner’s questions. Phill, thanks for being open minded and not blinded by ego.</description>
		<content:encoded><![CDATA[<p>I apologize for my ignorance. I wasn’t asking for an arithmetic lesson, just help with the C code which I am a beginner. I was enjoying your website and tutorials until I was ridiculed. What’s the sense of publishing tutorials for beginners if you are clearly offended by a beginner’s questions. Phill, thanks for being open minded and not blinded by ego.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phill</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-2/#comment-16536</link>
		<dc:creator>Phill</dc:creator>
		<pubDate>Fri, 14 Jan 2011 08:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-16536</guid>
		<description>@Avinash, im not sure that that would work. If you divided by 1023, then the answer would be one as it cant deal with decimal fractions unless your using the float data type. If you only need 1% accuracy, why not grab the 7most significant bits from adc times by 100 and then divide by 127. That way you can advoid floats, and your code should be significantly faster (because your advoiding floats, and using smaller numbers!)</description>
		<content:encoded><![CDATA[<p>@Avinash, im not sure that that would work. If you divided by 1023, then the answer would be one as it cant deal with decimal fractions unless your using the float data type. If you only need 1% accuracy, why not grab the 7most significant bits from adc times by 100 and then divide by 127. That way you can advoid floats, and your code should be significantly faster (because your advoiding floats, and using smaller numbers!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 13/36 queries in 0.013 seconds using apc
Object Caching 548/554 objects using disk: basic

Served from: extremeelectronics.co.in @ 2012-02-08 10:53:48 -->
