<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rss  version="2.0">
				<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>

<language>en-gb</language>
				<copyright>2008 Rickey's World</copyright>
				<managingEditor>contact@nospam.com (Ajay Bhargav)</managingEditor>
				<webMaster>contact@nospam.com (Ajay Bhargav)</webMaster>
				<pubDate>Thu, 08 Jan 2009 20:25:06 -0800</pubDate>
				<lastBuildDate>Thu, 08 Jan 2009 20:25:06 -0800</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Im doing a project to control my laptop using the RC5 remote control, i already did the decoding program using a PIC18f452 .<br />Im new at this so plz bare with me  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  <br />Anywho.. i was wondering how hard will it be to transfer the data through USB..<br />i did a little research abt it but seems a little tricky!<br />Do u think it can be done ?  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  <br />I've heard about a PIC18 that has a USB port , will that make it easier for me ?]]></description>
<pubDate>Mon, 17 Dec 2007 01:25:09 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[well.. you can make use of a serial to USB converter IC like FT232 or buy a similar kind of module from market. so you can use your previously designed PIC board for your idea...<br />yes PIC series of 18F i think but not sure.. have USB onchip. you can use that one if you can find it <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 17 Dec 2007 02:14:02 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Thanks for the reply Ajay, great forum ..  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />Another question, should i make any changes to the VB code in case i was using USB instead of serial ?   <br />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 18 Dec 2007 01:18:30 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[I cannot say.. if you can see an extra serial port after connecting that USB to serial dongle. then you will also see the serial port in the VB software. so the same software can be used..<br /><br />I need to know more on how the dongle works with PC.. will it work as a virtual serial port or just like a normal USB.. most probably it will be a virtual serial port.]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 18 Dec 2007 03:38:22 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[do you want to connect to serial port or usb? a usb->serial converter is available but not the other way. if u use usb to serial conv, then  the usb port will become a virtual serial port. so you wont have to change your driver prog.]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 18 Dec 2007 10:37:23 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[<div class='indent'>do you want to connect to serial port or usb? a usb->serial converter is available but not the other way. if u use usb to serial conv, then the usb port will become a virtual serial port. so you wont have to change your driver prog. </div> <br /><br />I want to connect it to a usb port . There ARE serial to usb converters , but im not quite sure if that's the proper application!   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 02:40:16 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Thanks again ajay... <br />have a couple of questions regarding me using a pic18 instead of the AVR mcu ..<br /><br />I dont really get the code since i dont know the language, what i dont understand is why we're checking if it's in Keyboard mode or Mouse mode on the mcu , isnt that VB's work ? <br /><br />Bottom line, in order to get your VB code to work on my Pic18 code, what does my code needs to send/receive ?  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />  <br />Because up untill now, my code just decodes the signal into the standard RC5 command bits ...   <br /><br />This is more of a programming question so i might be in the wrong sub-forum, forgive me <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 02:29:51 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[if your really want a proper way then make use of PIC with USB.. like PIC18F2550. Serial to USB is just a compromise kind of thing. also extra cost. If you can get a PIC with USB then will be good for you.]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 03:37:09 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[First i want to tell you the significance of toggle bit <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  if you know then skip it <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' /> <br />when you press a button on remote, let say toggle bit is 1 even of you put your hand in front of remote without releasing the button, toggle bit is still 1. So receiver knows that you have not released the key yet. toggle bit will change its state only after you release the button and press it again.<br /><br />So in my application.. in mouse mode.. the navigation button for moving cursor up/down/left/right those keys has to be continuous so in my controller software i am reading mode bit before processing any key if it mouse mode i am not checking the toggle bit because button has to work continuously.<br />where as in keyboard mode or WMP control mode.. all keys like play/stop/next/forward etc are to be pressed only once.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />whenever you change the mode from WMP to Mouse or Mouse to WMP control, mode bit is changed and VB software is informed about the changed mode.<br /><br />The RC5 code i wrote is for 8051 not AVR <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 04:44:42 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Thanks again for replying ajay, and yes i think i will be using the Pic18f2550 , but for it to work along with your VB code , what will i need to do besides decoding the signal ?? <br /><br />as i said earlier, didnt quite understand your AVR code since i dont know the language. <br /><br />What part of the decoded bits are you sending through the TX ? <br />What are you receiving through the RX? <br />.. and most importantly, why do u have a mouse/keyboard parts in this program ? does it matter? i thought one would send the command bits, along with the toggle bits, would be enough...  <br /><br />Thanks again ! <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 04:05:58 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[weeeeeww...  That last post made it a lot clearer thx..   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />    <br /><br />another thing, this is UART transmission right ? (between 8051 and VB)<br />if so, how many bits are we transmitting, 8 or 9 ? <br /><br />as a last question for today  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  , '#30H' is 30 in Hex right? u didnt use the standard RC5 commands ..]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 06:40:40 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[yes transmission is between VB and 8051 and its only 8 bit <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />30H is 0x30 or 30 hex. i read the standard commands but i send back the normal digits.. coz its easy to debug using a simple hyper terminal <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 20 Dec 2007 10:23:06 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[<div class='indent'>whenever you change the mode from WMP to Mouse or Mouse to WMP control, mode bit is changed and VB software is informed about the changed mode.</div> <br /><br />I dont quite get that, you mean one of the 8 bits sent, informs the vb abt the mode status?   Or is it just that the vb starts off with a certain mode initially, and toggles it everytime the user presses 0 ? ( cause that's how i understood it ) <br /><br />Another thing i do not understand in the code, in the mouse routine...<br /> <div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;">mskip2: &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">cjne</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">03H</span>,mskip3<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> chk_valid<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">jb</span> VALID,ok2<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span><br />ok2:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#33H<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> tx<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span></div></div>  <br />What does the chk_valid do? and why it is only for a few commands of the mouse routine ?<br /><br /><br />  <div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;">mskip6:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">cjne</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#26H,mskip7<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#37H<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> tx<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span></div></div> <br />also in the mouse routine, why are you expecting a 26hex , since it's the 7 button?:-/]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 23 Dec 2007 06:58:42 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[<div class='quote_top'>Milz wrote ...</div><div class='quote'><br /> <div class='indent'>whenever you change the mode from WMP to Mouse or Mouse to WMP control, mode bit is changed and VB software is informed about the changed mode.</div> <br /><br />I dont quite get that, you mean one of the 8 bits sent, informs the vb abt the mode status?   Or is it just that the vb starts off with a certain mode initially, and toggles it everytime the user presses 0 ? ( cause that's how i understood it ) </div><br />Yest it starts with mouse mode initially.. and toggles it after pressing power key. when power key is pressed controller send 0 and then software replies back with mode.. if software send 'm' that means its in mouse mode.. so mode bit is toggled and controller switches to keyboard mode.<br /><br /><div class='quote_top'>Milz wrote ...</div><div class='quote'>Another thing i do not understand in the code, in the mouse routine...<br /> <div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;">mskip2: &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">cjne</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">03H</span>,mskip3<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> chk_valid<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">jb</span> VALID,ok2<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span><br />ok2:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#33H<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> tx<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span></div></div>  <br />What does the chk_valid do? and why it is only for a few commands of the mouse routine ?</div><br />As i already said.. for navigation keys like Up, Down, Left, Right Toggle bit is not checked.. but for others like left click and right click toggle key is checked. So for only few commands this routine is used.<br /><div class='quote_top'>Milz wrote ...</div><div class='quote'><br />  <div class=''>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;">mskip6:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">cjne</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#26H,mskip7<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#37H<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> tx<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span></div></div> <br />also in the mouse routine, why are you expecting a 26hex , since it's the 7 button? <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />  <br /></div><br />well.. this is a different story <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  you will see an extra piece of code added for 26H and 38H the reason was.. i was not having volume+/- keys on my test remote.. as it was a custom made... so i used those keys for same operation of Vol+/- you can remove that code if you want.. it was only for my convenience did not bother to remove it.. coz it wont harm anyone <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 23 Dec 2007 11:38:42 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Ajay rocks !  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/16.gif' alt='' style='vertical-align:middle; border:0' />  hehe  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  <br /> <br /> <div class='indent'>Yest it starts with mouse mode initially.. and toggles it after pressing power key. when power key is pressed controller send 0 and then software replies back with mode.. if software send 'm' that means its in mouse mode.. so mode bit is toggled and controller switches to keyboard mode.</div> <br />ok might sound stupid, but i had no idea vb sends back to the controller .. !  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/22.gif' alt='' style='vertical-align:middle; border:0' />  <br />from the few things i understood from the 8051 code, i didnt see any rx routine! <br />.. or i didnt get you ... that's an option too  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br /> <br />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 23 Dec 2007 18:21:39 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[check in the Timer1_timer sub<br /><br /><div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="vb" style="font-family: monospace;"><span style="color: #b1b100;">Case</span> &H30<br /><span style="color: #b1b100;">If</span> Mode <span style="color: #b1b100;">Then</span><br />&nbsp; &nbsp; MSComm1.<span style="color: #66cc66;">Output</span> = <span style="color: #b1b100;">Chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">Asc</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;m&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />&nbsp; &nbsp; Mode = <span style="color: #b1b100;">False</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; StatusLog.<span style="color: #66cc66;">SelText</span> = <span style="color: #b1b100;">vbCrLf</span> &amp; <span style="color: #ff0000;">&quot;0 Received, Mouse Mode&quot;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #b1b100;">Else</span><br />&nbsp; &nbsp; MSComm1.<span style="color: #66cc66;">Output</span> = <span style="color: #b1b100;">Chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">Asc</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;x&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />&nbsp; &nbsp; Mode = <span style="color: #b1b100;">True</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; StatusLog.<span style="color: #66cc66;">SelText</span> = <span style="color: #b1b100;">vbCrLf</span> &amp; <span style="color: #ff0000;">&quot;0 Received, Keyboard Mode&quot;</span><br /><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div></div><br /><br />after checking the Mode variable.. i send 'x' or 'm'. this is how it work.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 23 Dec 2007 21:54:19 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[<div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;">keyboard:&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">;Routine for Keyboard operation</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,TEMP<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">cjne</span> <span style="color: #46aa03; font-weight:bold;">a</span>,CMD,k_valid1<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">ret</span></div></div> <br /><br />As soon as you enter keyboard mode, you're checking if the command is the same as the previous command and if they are you're disregarding the command ...   Ok but what if the user presses two 'Next' button twice in a row, but with an acceptable delay between the two .. will the program disregard the 2nd click ?  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 25 Dec 2007 10:14:01 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[it will accept.. i know your confusion.. because even i was confused when i coded it.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  and believe me it works.. maybe the data reception is way too fast.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br />also sometimes.. you get error in sending commands.. reason for error is.. after reception of first bit.. we give delay with a wild guess that next bit might come at this place.. even a small mistake will make big difference.. even if no data is coming.. sometimes a flicker in ambient light cause circuit to get activate. Try it in sun you will get to know.. it just one example of error... there are many other possibilities like the way you handle the remote.. direction and angle.. etc... I tested the whole thing with almost all possibilities.. well you will understand when you use it... or make it from scratch <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 25 Dec 2007 11:18:17 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Hello again Ajay! happy new year to every1.. <br /><br />Ok so im finally trying out my pic , and while trying as a first step to simply test the decoding part, where the pic should output the command bits on Port D through LEDS .. It did Not work..  But what really is blowing my mind, is that it works perfectly well when i tried the code on Proteus !<br /><br />So im just wondering , what could be the problem , if it works on Proteus, but not on hardware?<br />P.S: When i click on my remote, it simply gives me random bits everytime... nothing close to the command i clicked on, even if i click the same button twice!     <img src='http://www.8051projects.net/e107_images/emotes/yahoo/102.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 02 Jan 2008 13:40:18 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[PROTEUS?? how did u simulate there???<br />and.. there is surely delay problem.. the timings are not correct..<br />even thought the theoretical values say about the timings..<br />but.. in reality.. there is sometimes a lot of difference.. try to decrease the delay.. slowly.. till you get right bits.. only way to get it working is testing on hardware..<br />it took me 7 days for perfect decoding.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />also.. once you finish with your code.. i will add ur PIC code in my library <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  will be useful..  so test test test.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 02 Jan 2008 13:55:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Actually, i did not test the hardware for a value, i used the timer to count the actual bit period,  In order not to take 7 days for decoding <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />  lol <br /><br />and yes it worked on proteus, i enter a stream of bits through RB0, and it decoded it perfectly. <br />Another thing, i also tried to output the calculated period through my pic, and the output was very close to the value it was supposed to be.. so the problem is not there.. <br /><br />I feel the problem could be in some floating input, noise, or something related to grounding the unused pins... i have no idea in that area <img src='http://www.8051projects.net/e107_images/emotes/yahoo/2.gif' alt='' style='vertical-align:middle; border:0' />    <br />bcuz it's now giving out the correct commands, like 20% of the time.. <br /><br />should the receiver be directly inserted into the PIC input ? <br /><br />thanks for your time  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 02 Jan 2008 14:20:28 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[yes.. directly connect the receiver to PIC pin.. controller pins are not big problem if not used.. Technically there should not be any problem in circuit if the connections are firm and tight.. so check for loose solder.<br />I am sure it will work.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  best of luck..<br />will wait for your PIC library..<br />coz soon i am going to shift this project to PIC with USB support onchip.. i am reading about writing device drivers as soon as i finish learning that. i will make this project USB ready! <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 02 Jan 2008 14:25:31 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[IT WORKED !  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/69.gif' alt='' style='vertical-align:middle; border:0' />   <img src='http://www.8051projects.net/e107_images/emotes/yahoo/69.gif' alt='' style='vertical-align:middle; border:0' />  <br />..   Thanks a lot ajay !  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />But a weird thing is that in the case of pressing the button to Increase the volume, it is doing MUTE...   and it's definitely not a code error, or remote problem... could it be bcuz i have the Windows Media player 9 ?? <br /><br />Another thing is that the USB to RS232 cable didnt work .. <br />ive installed it, and when i open the exe file, there's no ports to choose from.. <br />any ideas ? <br /><br />PS: will give the code when i finish cleaning up useless commands . cuz its DAMN LONG  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/10.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Thu, 17 Jan 2008 20:21:00 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[<img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' />  i know its gonna work <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  just the thing is.. now we need to develop a new application in VB which works only for USB.. hope you are getting me.. only you can do that coz you know how to make it work using windrive.<br />If you need my help then tell me.. or tell me what should i download to understand this thing.. gimme the link.. <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />and.. my code uses shortcuts for only WPM11 not 9 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/1.gif' alt='' style='vertical-align:middle; border:0' />  better now you upgrade your player to version 9 <img src='http://www.8051projects.net/e107_images/emotes/yahoo/3.gif' alt='' style='vertical-align:middle; border:0' />  coz its much much better.... in looks and functions <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />PS: my asm does not have any useless commands i think... are you using my asm code?]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Fri, 18 Jan 2008 06:21:33 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
						<item>
						<title>Re: RC5 PC remote control through USB ??</title>
<link>http://www.8051projects.net/forum-t3931.html</link>
<description><![CDATA[Milz waiting for your code.. and what are you doing about the USB thing?<br />i have got my 18F4550 too..]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 20 Jan 2008 10:41:03 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t3931.html</guid>
</item>
				</channel>
				</rss>