<?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: Lightweight USB Host. Part 4 &#8211; The code.</title>
	<atom:link href="http://www.circuitsathome.com/mcu/programming/lightweight-usb-host-part-4-the-code-repository/feed" rel="self" type="application/rss+xml" />
	<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository</link>
	<description>A Solder Joint</description>
	<lastBuildDate>Thu, 17 May 2012 05:09:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3694</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Wed, 06 Apr 2011 15:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3694</guid>
		<description>Only CPU can set/clear LOWSPEED.</description>
		<content:encoded><![CDATA[<p>Only CPU can set/clear LOWSPEED.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3689</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 06 Apr 2011 08:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3689</guid>
		<description>so does that mean the LOWSPEED bit also update itself when the device is connected? like when a lowspeed device is connected the lowspeed bit will go high in the rMODE and when it is use to check with the bmLOWSPEED and rMODE , it is use to determine if its high or low speed according to the KSTATUS or JSTATUS right?</description>
		<content:encoded><![CDATA[<p>so does that mean the LOWSPEED bit also update itself when the device is connected? like when a lowspeed device is connected the lowspeed bit will go high in the rMODE and when it is use to check with the bmLOWSPEED and rMODE , it is use to determine if its high or low speed according to the KSTATUS or JSTATUS right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3681</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Wed, 06 Apr 2011 01:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3681</guid>
		<description>Low-speed device has one data line pulled up by a resistor an full-speed device has other data line pulled up by the resistor. Host controller has both data lines pulled down by larger resistors. It reads data lines and determines speed by whatever data line is high at the moment. The J, K are updated automatically after device connect. If you start host controller with device already attached, you need to set SAMPLEBUS, wait for it to reset and then read JSTATUS,KSTATUS. Relation between JSTATUS,KSTATUS and speed depend on state of LOWSPEED  - take a look at busprobe() function in USB Host code to see how it works.</description>
		<content:encoded><![CDATA[<p>Low-speed device has one data line pulled up by a resistor an full-speed device has other data line pulled up by the resistor. Host controller has both data lines pulled down by larger resistors. It reads data lines and determines speed by whatever data line is high at the moment. The J, K are updated automatically after device connect. If you start host controller with device already attached, you need to set SAMPLEBUS, wait for it to reset and then read JSTATUS,KSTATUS. Relation between JSTATUS,KSTATUS and speed depend on state of LOWSPEED  &#8211; take a look at busprobe() function in USB Host code to see how it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3672</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 05 Apr 2011 10:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3672</guid>
		<description>Hi oleg, if you dont mind helping me out, could you explain to me how the KSTATUS and JSTATUS bit determine if the device connected is high speed or low speed? and what does it have to do with the LOWSPEED bit?  does the LOWSPEED updates itself when a device is connected? i am having trouble finding out the flow of how the device is detected. thanks. 

Here is my concept of how it works, pls correct me if im wrong. 
B4 a device is detected, the cpu set the HOST =1 , DPPULLDN = 1 and DMPULLDN = 1 to make the logic in the D+ and D- low. then when a device is plug in, depend on the device(if its high speed or low speed) it will make the D+ or D- to have voltage through it. so when a device is detected, the cpu ( my 18f4550) reads the rHRSL register and examines the KSTATUS and JSTATUS bit when SAMPLEBUS = 1 ( does it automatic update the kstatus and jstatus itself ? ). So if it is a high speed device, the Kstatus should be high right according to the datasheet? and so in the end its all about checking on the kstatus and jstatus. 

my main question is really on how the kstatus and jstatus update itself and when D+ is high voltage and D- is low voltage, does that mean it updates the kstatus ? sorry if some question could be the same, i just have to be certain. thanks !! pls reply as soon as possible.</description>
		<content:encoded><![CDATA[<p>Hi oleg, if you dont mind helping me out, could you explain to me how the KSTATUS and JSTATUS bit determine if the device connected is high speed or low speed? and what does it have to do with the LOWSPEED bit?  does the LOWSPEED updates itself when a device is connected? i am having trouble finding out the flow of how the device is detected. thanks. </p>
<p>Here is my concept of how it works, pls correct me if im wrong.<br />
B4 a device is detected, the cpu set the HOST =1 , DPPULLDN = 1 and DMPULLDN = 1 to make the logic in the D+ and D- low. then when a device is plug in, depend on the device(if its high speed or low speed) it will make the D+ or D- to have voltage through it. so when a device is detected, the cpu ( my 18f4550) reads the rHRSL register and examines the KSTATUS and JSTATUS bit when SAMPLEBUS = 1 ( does it automatic update the kstatus and jstatus itself ? ). So if it is a high speed device, the Kstatus should be high right according to the datasheet? and so in the end its all about checking on the kstatus and jstatus. </p>
<p>my main question is really on how the kstatus and jstatus update itself and when D+ is high voltage and D- is low voltage, does that mean it updates the kstatus ? sorry if some question could be the same, i just have to be certain. thanks !! pls reply as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3466</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 19 Mar 2011 05:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3466</guid>
		<description>Oh . I dont think that is possible because i am already in the midst of my project and its due in 3 weeks, i just got to be able to detect the pendrive from my usb port. So if you can help me to achieve that with just the required code i would really appreciate that :). The thing is that after looking at some examples all over the internet, i just cant find the right coding except on this page since u were using a 18F PIC so i thought maybe if u could help me point out just the required Void or header file then i could achieve my goal d . much help appreciated! thanks!</description>
		<content:encoded><![CDATA[<p>Oh . I dont think that is possible because i am already in the midst of my project and its due in 3 weeks, i just got to be able to detect the pendrive from my usb port. So if you can help me to achieve that with just the required code i would really appreciate that <img src='http://www.circuitsathome.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The thing is that after looking at some examples all over the internet, i just cant find the right coding except on this page since u were using a 18F PIC so i thought maybe if u could help me point out just the required Void or header file then i could achieve my goal d . much help appreciated! thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3454</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Fri, 18 Mar 2011 14:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3454</guid>
		<description>I don&#039;t think Arduino code can be easily ported to PIC. I was suggesting to switch your development to Arduino platform.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think Arduino code can be easily ported to PIC. I was suggesting to switch your development to Arduino platform.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3447</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 18 Mar 2011 07:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3447</guid>
		<description>The thing is that i dont know how to configure my PIC to arduino code. It is already complex trying to understand the basic stuff. Do you know how to configure the code that you wrote in arduino to support what i am trying to achieve? Thanks</description>
		<content:encoded><![CDATA[<p>The thing is that i dont know how to configure my PIC to arduino code. It is already complex trying to understand the basic stuff. Do you know how to configure the code that you wrote in arduino to support what i am trying to achieve? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3427</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Thu, 17 Mar 2011 02:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3427</guid>
		<description>See my comment above. This code is unfinished and  unsupported. Don&#039;t use it, go with Arduino.</description>
		<content:encoded><![CDATA[<p>See my comment above. This code is unfinished and  unsupported. Don&#8217;t use it, go with Arduino.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3424</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 17 Mar 2011 02:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3424</guid>
		<description>Oh and im using PIC18f4550. thanks :)</description>
		<content:encoded><![CDATA[<p>Oh and im using PIC18f4550. thanks <img src='http://www.circuitsathome.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-4-the-code-repository/comment-page-1#comment-3423</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 17 Mar 2011 02:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=690#comment-3423</guid>
		<description>Hi oleg, very informative codes and description ! 
Here is my situation, i am in my final year project where i want to be able to detect a pendrive and then show the file&#039;s name in the pendrive on the 4x20 LCD screen that i have. For now i just want to be able to detect the pendrive and the LCD will display &quot; pendrive found&quot;. Which of the codes do i have to use only? Like the max3421e.c , max3421e.h , project_config.h . what else do i need from the code? starting out slow first so i can understand whats going on properly. Thanks!! much help appreciated :)</description>
		<content:encoded><![CDATA[<p>Hi oleg, very informative codes and description !<br />
Here is my situation, i am in my final year project where i want to be able to detect a pendrive and then show the file&#8217;s name in the pendrive on the 4&#215;20 LCD screen that i have. For now i just want to be able to detect the pendrive and the LCD will display &#8221; pendrive found&#8221;. Which of the codes do i have to use only? Like the max3421e.c , max3421e.h , project_config.h . what else do i need from the code? starting out slow first so i can understand whats going on properly. Thanks!! much help appreciated <img src='http://www.circuitsathome.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

