<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/2243" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-02-16T16:24:32+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/2243</id>

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-02-16T16:24:32+02:00</updated>

		<published>2009-02-16T16:24:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7990#p7990</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7990#p7990"/>
		<title type="html"><![CDATA[Detect Master presence?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7990#p7990"><![CDATA[
If a master is present, there will be a SOF pulse every 1 ms on D-. If you connect D- to the interrupt and set USB_COUNT_SOF in usbconfig.h, you'll see whether usbSofCount increments.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Feb 16, 2009 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danny]]></name></author>
		<updated>2009-02-15T23:25:41+02:00</updated>

		<published>2009-02-15T23:25:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7982#p7982</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7982#p7982"/>
		<title type="html"><![CDATA[Detect Master presence?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2243&amp;p=7982#p7982"><![CDATA[
Hi,<br /><br />I have modified USBasploader so that the bootlader waits approx. 8 seconds before launching the existing firmware. I used the watchdog on the atmega88 for this purpose. This works fine but isn't portable to an atmega8 since the max watchdog time-out on that is 2 seconds. I have tested a 2 second time-out and it seems a little too short. Or perhaps the chances of missing the 2 second window are to big <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=":wink:" title="Wink" />.<br /><br />The purpose of this modification is to allow access to the bootloader without setting a jumper. I prefer the 8 second wait after a reset over the hassle of adding or removing a jumper.<br /><br />Anyway, i'm looking for another solution for the atmega8 and i was wondering if there is a function or variable that i could check to see if there is a master present? I would like to use this check to either enter usbasp programmer mode or leave the bootloader.<br /><br />Regards, Danny.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1734">Danny</a> — Sun Feb 15, 2009 11:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
