<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="0.92">
<channel>
	<docs>http://backend.userland.com/rss092</docs>
	<title>AVR Freaks</title>
	<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;minimax=1</link>
	<description></description>
	<managingEditor>esivertsen@avrfreaks.net</managingEditor>
	<webMaster>esivertsen@avrfreaks.net</webMaster>
	<lastBuildDate>Wed, 20 Aug 2008 14:33:46 GMT</lastBuildDate>
	<item>
		<title>AVR forum :: RE: Infra Red Tranceiver</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480143#480143</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=167478&quot; target=&quot;_blank&quot;&gt;shabgard&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Infra Red Tranceiver&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:33 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 4&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;But how do you receive with that. I don't see any receiver.
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: RE: Communication Interface between micros</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480142#480142</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=22580&quot; target=&quot;_blank&quot;&gt;jayjay1974&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Communication Interface between micros&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:33 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 1&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;RS485.
&lt;br /&gt;

&lt;br /&gt;
How do you control when the 2313 send their data? As a RS485 is a shared medium it could happen both want to send data at the same time, and datacorruption will occur.
&lt;br /&gt;

&lt;br /&gt;
Better have the 8515 ask the each 2313 for data.
	&lt;br /&gt;_________________&lt;br /&gt;Positive person: The glass is half full
&lt;br /&gt;
Negative person: The glass is half empty
&lt;br /&gt;
An engineer: The glass is too big&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR studio 4 forum :: RE: Direct Simulation</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480141#480141</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=179338&quot; target=&quot;_blank&quot;&gt;movie_freak&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Re: RE: Direct Simulation&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:32 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 3&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Thats gr8.. Now, i want to know...how can we use it to see the execution directly on PC..when the software is running on..the hardware..
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>General Electronics :: RE: Inductance with a Fluke 8060A?</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480140#480140</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=101356&quot; target=&quot;_blank&quot;&gt;Plons&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Inductance with a Fluke 8060A?&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:30 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 3&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Are you looking for an instrument, or are you willing to build one yourself ?
	&lt;br /&gt;_________________&lt;br /&gt;A new day, a new approach ....
&lt;br /&gt;
&lt;a href=&quot;http://www.aplomb.nl/TechStuff/TechStuff.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.aplomb.nl/TechStuff/TechStuff.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: RE: AVR Freaks T-Shirt</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480139#480139</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=39216&quot; target=&quot;_blank&quot;&gt;sulake&lt;/a&gt;&lt;br /&gt;
	
	Posted: Aug 20, 2008 - 06:29 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;...or a AVR retro T-shirt.
&lt;br /&gt;
&lt;img src=&quot;http://www.hotlinkfiles.com/files/1708796_wwmak/AVR1_Retro_t-shirt.jpg&quot; border=&quot;0&quot; /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.hotlinkfiles.com/files/1708796_wwmak/AVR1_Retro_t-shirt.jpg&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.hotlinkfiles.com/files/1708796_wwmak/AVR1_Retro_t-shirt.jpg&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.spreadshirt.net/en/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.spreadshirt.net/en/&lt;/a&gt;
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>General Electronics :: RE: Selecting battery model</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480136#480136</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=111771&quot; target=&quot;_blank&quot;&gt;KnightsOfTheRound&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Selecting battery model&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:23 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 3&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Thanks for your quick answers.
&lt;br /&gt;

&lt;br /&gt;
Sorry for my poor english...
&lt;br /&gt;

&lt;br /&gt;
In fact after computing again, the board at full load will need less than 80mA of current.
&lt;br /&gt;

&lt;br /&gt;
So if I want 10h lifetime, I need to take a battery giving more than 800mA/h.
&lt;br /&gt;

&lt;br /&gt;
Is that right?
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR GCC forum :: ATmega640 -&amp;gt; ATmega2560</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480135#480135</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=132680&quot; target=&quot;_blank&quot;&gt;andrew99&lt;/a&gt;&lt;br /&gt;
	Subject: ATmega640 -&amp;amp;gt; ATmega2560&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:20 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 0&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Hello,
&lt;br /&gt;

&lt;br /&gt;
A program I am developing for the ATmega640 is going to exceed the 64K boundry and probably fill 75% of the 2560's flash when complete. When I exceed the 64K, is there anything I should be aware of? I am hoping this will be as seamless as possible. The program is being developed in AVR-GCC.
&lt;br /&gt;

&lt;br /&gt;
Thanks,
&lt;br /&gt;

&lt;br /&gt;
A
	&lt;br /&gt;_________________&lt;br /&gt;AVR Studio 4 Ver. 4.14 589
&lt;br /&gt;
avr-gcc Ver. 4.3.0
&lt;br /&gt;
ISIS 7
&lt;br /&gt;
ELECTRA&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: RE: programming at90usbkey without having to press buttons?</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480134#480134</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=181145&quot; target=&quot;_blank&quot;&gt;lindi-&lt;/a&gt;&lt;br /&gt;
	Subject: RE: programming at90usbkey without having to press buttons?&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:19 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 2&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Good idea in principle but I'd like to avoid having to be physically near the chip at all. Even rebooting the PC does not drop the 5V usb bus voltage to zero. Also, I'm am bit uneasy about soldering anything extra to the board.
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>Off-topic forum :: RE: I am confused with Georgia</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480132#480132</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=126035&quot; target=&quot;_blank&quot;&gt;lpapad&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Re: RE: Re: RE: I am confused with Georgia&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:14 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 27&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Georgian President Saakashvili eats his tie on TV live (video)
&lt;br /&gt;

&lt;br /&gt;
&lt;!-- m --&gt;&lt;a href=&quot;http://english.pravda.ru/world/ussr/16-08-2008/106115-georgia_saakashvili-0&quot; target=&quot;_blank&quot;&gt;http://english.pravda.ru/world/ussr/16- ... kashvili-0&lt;/a&gt;&lt;!-- m --&gt;
&lt;br /&gt;

&lt;br /&gt;
That's news from BBC, re-published by Pravda.
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR GCC forum :: RE: Packed and unpacked structures?</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480131#480131</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=132680&quot; target=&quot;_blank&quot;&gt;andrew99&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Packed and unpacked structures?&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:11 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 2&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;clawson,
&lt;br /&gt;

&lt;br /&gt;
Thanks
&lt;br /&gt;

&lt;br /&gt;
A
	&lt;br /&gt;_________________&lt;br /&gt;AVR Studio 4 Ver. 4.14 589
&lt;br /&gt;
avr-gcc Ver. 4.3.0
&lt;br /&gt;
ISIS 7
&lt;br /&gt;
ELECTRA&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVRfreaks Trading Post :: RE: Sell PCB</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480130#480130</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=52616&quot; target=&quot;_blank&quot;&gt;daqq&lt;/a&gt;&lt;br /&gt;
	Subject: RE: Re: RE: Re: Sell PCB&lt;br /&gt;
	Posted: Aug 20, 2008 - 06:05 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 18&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;husdat: Yeah, we do get pissed of occasionally occasionaly, and not because of the hundreds of SPAM mails I receive daily. 
&lt;br /&gt;

&lt;br /&gt;
Of legal action: SPAMming is illegal in some countries. Unfortunately, nowhere by decapitation. So who's the bigger criminal, arnold for voicinng an opinion, or the merry spammer? And I really don't care for the feelings of spammers.
	&lt;br /&gt;_________________&lt;br /&gt;At first they wanted to go with &amp;quot;Starting with ARM processors&amp;quot;, but it was too long, so they went with &amp;quot;going postal&amp;quot;.&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: RE: 2313 indexing help</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480129#480129</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=138049&quot; target=&quot;_blank&quot;&gt;jgmdesign&lt;/a&gt;&lt;br /&gt;
	
	Posted: Aug 20, 2008 - 06:01 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 14&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;I am going to order one of Chuck's books.  While I have been an assembler eye dee ten tee for a lot of years, I like to read, and there is always something to learn.
&lt;br /&gt;

&lt;br /&gt;
Jim
	&lt;br /&gt;_________________&lt;br /&gt;Just remember, the light at the end of the tunnel.....MAY BE YOU!!
&lt;br /&gt;

&lt;br /&gt;
Good Night
&lt;br /&gt;

&lt;br /&gt;
Aerosmith&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR Tutorials :: Marry to Me or Maryy to my Money</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480126#480126</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=183782&quot; target=&quot;_blank&quot;&gt;sushan520&lt;/a&gt;&lt;br /&gt;
	Subject: Marry to Me or Maryy to my Money&lt;br /&gt;
	Posted: Aug 20, 2008 - 05:57 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 0&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;There is a little funny story which I’d like to share with you. There were once a man fallen 
&lt;br /&gt;
into love with a woman. And  one day he proposed to his lover.
&lt;br /&gt;

&lt;br /&gt;
M&amp;#65306; My darling&amp;#65292;I love you. will you marry me?(Go down on one of his knees,cup a diamond ring
&lt;br /&gt;
 with his hands )(devotion)
&lt;br /&gt;
W: Oh, darling, I love you too. But I can’t marry you.( Be bashful,effeminacy)
&lt;br /&gt;
M: Why don’t you marry me if you loved me? (full of grievance)
&lt;br /&gt;
W: Because you can’t buy me a Rolex.( shouting)
&lt;br /&gt;
M: Oh my God.( Fall in a dead faint)
&lt;br /&gt;
(Watchinstyly apeare,the  man chasing the woman and shouring ” Darling, I have Rolex now.”)
&lt;br /&gt;
The End. ” &lt;!-- m --&gt;&lt;a href=&quot;http://www.Watchinstyle.com,&quot; target=&quot;_blank&quot;&gt;http://www.Watchinstyle.com,&lt;/a&gt;&lt;!-- m --&gt; high quality replica watch, help you to save your 
&lt;br /&gt;
marriage.
&lt;br /&gt;

&lt;br /&gt;
This is only a jesting which will never be happened in the actual life. NO one will refuse to
&lt;br /&gt;
 marry his darling for only one piece of brand name watch. But this story really can give us 
&lt;br /&gt;
some inspirations. In this society with the developed economic and material. Money is become 
&lt;br /&gt;
more and more important. More and more people are believed that if you have money you can make
&lt;br /&gt;
 a ghost grinding for you(money is ominipotent) and money can makes the world go round. So, 
&lt;br /&gt;
making money becoming some  people’s only way of living. some even pay the price of their 
&lt;br /&gt;
health and happiness. And some even lost themselves to take the risk of criminal.
&lt;br /&gt;

&lt;br /&gt;
Of course, money is important,with money, we can do many thins.And we can almost do anything
&lt;br /&gt;
 if we have enough money. But there are something that can’t be bought by money.
&lt;br /&gt;
like &lt;!-- m --&gt;&lt;a href=&quot;http://www.lowestmall.com/blog/&quot; target=&quot;_blank&quot;&gt;http://www.lowestmall.com/blog/&lt;/a&gt;&lt;!-- m --&gt; We all know that you can buy the best medeicine but you can’t buy your health. You can buy the 
&lt;br /&gt;
most beautiful clothes and the best makeups but you can’t buy  the beauty, you can buy the 
&lt;br /&gt;
royalest wedding, but you can’t buy the true love. You can buy the most fantastic books, 
&lt;br /&gt;
but you can’t buy the wisdom. You can buy the most luxury products, but you can but the 
&lt;br /&gt;
happiness. You can buy the most expensive Omega watch, but you can’t buy the time.
&lt;br /&gt;

&lt;br /&gt;
As a matter of fact, health and happiness are the only true welth of your life. Health is
&lt;br /&gt;
 one thing that are very easily ignored by you. So many times, when you lost it, you will 
&lt;br /&gt;
 are a billionaire, but you were suffering a cancer, and you can only live in the world for
&lt;br /&gt;
 only one month. I think nobody will like this kind of life.  Just think of another kind of
&lt;br /&gt;
 situation, if you are a very rich guy, you can buy almost everything you want, but you will
&lt;br /&gt;
 full of angry and complainment and pain without any special reason. I promise it is not the 
&lt;br /&gt;
the life you want.
&lt;br /&gt;

&lt;br /&gt;
So always bear in mind, heatlth and happiness are the only true wealth in you life.
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: PowerSave + LCD, current too high!</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480124#480124</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=181722&quot; target=&quot;_blank&quot;&gt;Valval&lt;/a&gt;&lt;br /&gt;
	Subject: PowerSave + LCD, current too high!&lt;br /&gt;
	Posted: Aug 20, 2008 - 05:53 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 0&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Hi Everyone!
&lt;br /&gt;

&lt;br /&gt;
I am trying to use the LCD in powerSave Mode with the internal clock (1MHz). &lt;span style=&quot;font-weight: bold&quot;&gt;The LCD works fine but the current is &amp;gt; 200uA !!&lt;/span&gt; I think that is much too high! Or is that normal? When I go in PowerSave mode without LCD enable, I get 0.5uA!
&lt;br /&gt;

&lt;br /&gt;
Does anybody already measured that current??
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Details:
&lt;br /&gt;

&lt;br /&gt;
- ATmega169PV
&lt;br /&gt;
- AVR Studio 4 version 4.14
&lt;br /&gt;
- JTAGICE mkII
&lt;br /&gt;
- The device is the only component on the print. 
&lt;br /&gt;

&lt;br /&gt;
- I am sure that the uC is entering sleeping mode.
&lt;br /&gt;
- Every peripheral / module are switched off!
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
My code:
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;#include &amp;lt;avr/io.h&amp;gt;
&lt;br /&gt;
#include &amp;lt;avr/sleep.h&amp;gt;
&lt;br /&gt;
#include &amp;lt;avr/wdt.h&amp;gt;
&lt;br /&gt;
#include &amp;lt;avr/interrupt.h&amp;gt;
&lt;br /&gt;
#include &amp;lt;avr/power.h&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
int main &amp;#40;void&amp;#41;
&lt;br /&gt;
&amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cli&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // disable all interrupt
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;set_sleep_mode&amp;#40;SLEEP_MODE_PWR_SAVE&amp;#41;; // Set sleep mode&amp;nbsp; 
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;MCUCR&amp;amp;=~0x10;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Allow pull up
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;ACSR|=0x80;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Analog comparator off
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;ADCSRA=0x00;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// ADC turned off
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;DIDR1|=0x03;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Digital Input disable
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//LCDCRA=0x44;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// LCD OFF, low power waveform, buffer disable
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;UCSR0B=0x00;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;// Disable USART receiver &amp;amp; transmitter
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;SPCR&amp;amp;=~0x40;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Disable SPI
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;TCCR1B=0x00;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Disable Timer/counter1 &amp;#40;no clock selected&amp;#41;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;TCCR2A=0x00;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Disable Timer/counter2 &amp;#40;no clock selected&amp;#41;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;TIMSK2=0x00;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; //power_adc_enable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;power_adc_disable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//power_spi_enable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;power_spi_disable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//power_usart0_enable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;power_usart0_disable&amp;#40;&amp;#41;; 
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//power_timer1_enable&amp;#40;&amp;#41;;&amp;nbsp; 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;power_timer1_disable&amp;#40;&amp;#41;;&amp;nbsp; 
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;power_lcd_enable&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//power_lcd_disable&amp;#40;&amp;#41;;
&lt;br /&gt;
//--------------------------------------------------------------
&lt;br /&gt;
// Init LCD
&lt;br /&gt;

&lt;br /&gt;
// Choix du clock
&lt;br /&gt;

&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;ASSR|=0x10;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Need to be 1 with External clock
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCRB = 0x26;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Internal clock, Duty 1/3, Bias 1/3, 24 seg
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;LCDCRB = 0xA6;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// External clock, Duty 1/3, Bias 1/3, 24 seg
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
// Frame rate du LCD
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDFRR=0x60;&amp;nbsp; &amp;nbsp;//Internal clock &amp;#40;1MHz&amp;#41; &amp;#58;Frame rate=1MHz/&amp;#40;8*2048*1&amp;#41;=61,04Hz
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;LCDFRR=0x10;&amp;nbsp; &amp;nbsp;//External clock&amp;#58;Frame rate= 32kH/&amp;#40;8*64&amp;#41;=62.5HZ
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;LCDFRR=0x10;&amp;nbsp; &amp;nbsp;//Internal clock&amp;#40;8MHz /256&amp;#41; &amp;#58;Frame rate=&amp;#40;8MHz/256&amp;#41;/&amp;#40;8*64*1&amp;#41;=61,04Hz
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
// Coontrol &amp;amp; Status A
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCRA|=0x40;&amp;nbsp; &amp;nbsp;// Low power wave form
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCRA|=0x04;&amp;nbsp; &amp;nbsp;// Buffer disable
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCRA&amp;amp;=~0x03;&amp;nbsp; &amp;nbsp;// No output supply, no blanking
&lt;br /&gt;

&lt;br /&gt;
// Set contrast &amp;amp; voltage
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCCR=0x18;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;// Maximum drive time, 3.00V
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDCRA|=0x80;&amp;nbsp; &amp;nbsp;// Enable LCD
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
//--------------------------------------------------------------
&lt;br /&gt;
//Disable watchdog
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;// Write logical one to WDCE and WDE
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WDTCR |= &amp;#40;1&amp;lt;&amp;lt;WDCE&amp;#41; | &amp;#40;1&amp;lt;&amp;lt;WDE&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;// Turn off WDT
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WDTCR = &amp;#40;1&amp;lt;&amp;lt;WDCE&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
//--------------------------------------------------------------
&lt;br /&gt;
// Ports
&lt;br /&gt;

&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;DDRA = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;DDRB = 0x40;
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;DDRC = 0xFF;&amp;nbsp; &amp;nbsp;//LCD&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;DDRD = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;DDRE = 0x00;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;DDRF = 0x00;
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;DDRG = 0x3F;&amp;nbsp; &amp;nbsp;//PG5 input only &amp;#40;pull up always on, PG6,PG7 don't exist
&lt;br /&gt;

&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;PORTA = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PORTB = 0xBF;&amp;nbsp; &amp;nbsp;// 32kHZ Off
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;PORTC = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;PORTD = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PORTE = 0xFF;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PORTF = 0xFF;
&lt;br /&gt;
//&amp;nbsp; &amp;nbsp;PORTG = 0xFF;&amp;nbsp; &amp;nbsp;//LCD
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
// LCD
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR0 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR1 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR2 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR3 = 0xAA;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR5 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR6 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR7 = 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR8 = 0xAA;
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR10= 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR11= 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR12= 0xAA;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;LCDDR13= 0xAA;
&lt;br /&gt;

&lt;br /&gt;
//--------------------------------------------------------------
&lt;br /&gt;
//Disable JTAG
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MCUCR|=0x80;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MCUCR|=0x80;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp;sleep_mode&amp;#40;&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
return 0;
&lt;br /&gt;
&amp;#125; &lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
Many many thank's in advance!
&lt;br /&gt;

&lt;br /&gt;
Valval
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
	<item>
		<title>AVR forum :: False RPM</title>
		<link>http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;theme=print&amp;p=480122#480122</link>
		<description>Author: &lt;a href=&quot;http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;amp;file=viewprofile&amp;amp;u=69473&quot; target=&quot;_blank&quot;&gt;mahmoud shendy&lt;/a&gt;&lt;br /&gt;
	Subject: False RPM&lt;br /&gt;
	Posted: Aug 20, 2008 - 05:52 PM (GMT 5)&lt;br /&gt;
	Topic Replies: 0&lt;br /&gt;&lt;br /&gt;
	&lt;span class="postbody"&gt;Dear All, I have a problem in my new design. The design is simply a Universal motor Speed control that:
&lt;br /&gt;

&lt;br /&gt;
1- The mains supply is 110V AC, rectified using a full wave recifying bridge.
&lt;br /&gt;
2- The rectified voltage is applied to the motor via a CMOS switching transistor.
&lt;br /&gt;
3- The AVR (ATmega8) is switching the MOS by a frequency of about 7KHz in PWM mode.
&lt;br /&gt;
4- The Shaft of the motor has a six magnet poles that is affecting a Hall Effect Sensor.
&lt;br /&gt;
5- The code I write is computing the RPM of the motor..
&lt;br /&gt;
6- When the motor is fed directly from the mains, the RPM calculated properly without any problem.
&lt;br /&gt;
7- When the motor is switched by that chopping frequency, the readings of the RPM become hazardous with great    
&lt;br /&gt;

&lt;br /&gt;
fluctuations.
&lt;br /&gt;

&lt;br /&gt;
	What is causing this problem.. By the way, When I watch the Sensor Output on the Oscilloscope, I found     
&lt;br /&gt;

&lt;br /&gt;
        that without chopping, the output is clean square wave, but after applying the chopping frequency, the     
&lt;br /&gt;

&lt;br /&gt;
       sensor-square wave has a fluctuations of frequency equal to the chopping one..
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
   Now, the problem becomes obvious, How to overcome it???
&lt;br /&gt;

&lt;br /&gt;
          Thanx in advance...  SHENDY
	&lt;/span&gt;&lt;br /&gt;
	</description>
	</item>
</channel>
</rss>