<?xml version="1.0" encoding="utf-8" ?>
						<!-- generator="e107" -->
						<!-- content type="Forum / topic" -->
						<rss version="0.92">
						<channel>
						<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
						<link>http://www.8051projects.net/</link>
						<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
						<lastBuildDate>Thu, 20 Nov 2008 21:28:30 -0800</lastBuildDate>
						<docs>http://backend.userland.com/rss092</docs>

							<item>
							<title>a code for the shaft encoder</title>
							<description>Hi,I have problem writing a code for the shaft encoder to decode for my PIC to read the direction.Can some one please give me a sample code of the sha</description>
							<author>&lt;noauthor@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>like you have done in C already, here also you need to make a look up table for encoder to detect the change in direction.or... what you can do is.. c</description>
							<author>Ajay&lt;contact@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Ajay, i know you already told me about this...but i try to work it out on ASM code...it doesnot work..can u give me a sample code of how to decode the</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>GPIO 4 is the channel A of the shaft encoderGPIO 5 is the channel B of the shaft encoderbelow is part of the program code for the encoder to decode th</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>hihi, ajay,my application is for the LED dimmer, i need to know when i am turning clockwise or anti clockwise of the encoder, the light is either dimm</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Welcome back nich well in your program you have used so many returns.. i really have no idea where you're returning  Well minute changes will make you</description>
							<author>Ajay&lt;contact@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>I was using both of your idea in my design, i make it working on hardware now...but littlt buggy is that...when u over turned the shaft encoder, the l</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Hi Shyam, wat is mean by wait until states are 1,1 , 0,1  or 1,0 ?is it i need to test the both bit in order to enter the loop for testing the directi</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>hinicholastycif u had searched the forum u wud have found an earlier post on the similar topic.still  lemme tell u one technique which i use..u get tw</description>
							<author>shyam&lt;shyam@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>i think something is wrong with my code that its only detects 1 direction!!i have made my program on interrupt on change  to the both input port,the w</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>CODE:<br />for example:<br /><br />START<br />&nbsp; &nbsp; &nbsp; &nbsp; btfss &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GPIO,4; check encoder change</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Shyam , Ajay...Arun...i really need help on the encoder part...please help..i already tried my best !i still cant get the right direction ... i m usin</description>
							<author>nicholastyc&lt;thamyc_2000@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>hi nic,well   u do need those A and B pin as interrupt pins..  or else u may miss the step changes..or u can try one thing....   wait until   states a</description>
							<author>shyam&lt;shyam@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>is it i need to test the both bit in order to enter the loop for testing the direction?nic,take a variable  say int EncCount_int.int EncStateClk_int[]</description>
							<author>shyam&lt;shyam@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>can i see your code again?</description>
							<author>Ajay&lt;contact@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>yes lets see the code again..  the interrupt one.</description>
							<author>shyam&lt;shyam@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Hi Nic,This is a small adaptation of your polling routine using a single variable A11.It savs the current and previous  AB values in this manner as a </description>
							<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Now for the nibble A11 you can have the following valid values0x01,0x07,0x08 and 0x0E representing clockwise directionand0x2,0x04,0x0B,0x0D representi</description>
							<author>sashijoseph&lt;sashijoseph@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
							<item>
							<title>Re: a code for the shaft encoder</title>
							<description>Hi nic, i think SJ nailed it !Arun</description>
							<author>Arun Kumar V&lt;nura1002003@nospam.com&gt;</author>
							<link>http://www.8051projects.net/forum-t10071.html</link>
							</item>
						</channel>
						</rss>