<?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/4892" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-10-04T13:05:31+02:00</updated>

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

		<entry>
		<author><name><![CDATA[dzairo]]></name></author>
		<updated>2010-10-04T13:05:31+02:00</updated>

		<published>2010-10-04T13:05:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16090#p16090</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16090#p16090"/>
		<title type="html"><![CDATA[Re: detect if usb is connected....]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16090#p16090"><![CDATA[
Hi .<br />I thinks so easy will be use pin change interrupt flag.<br />OK .<br /><br />thats all ..<br /><br />regards<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4367">dzairo</a> — Mon Oct 04, 2010 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-10-04T03:25:40+02:00</updated>

		<published>2010-10-04T03:25:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16086#p16086</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16086#p16086"/>
		<title type="html"><![CDATA[Re: detect if usb is connected....]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16086#p16086"><![CDATA[
There may be a built in usb-v funciotn for this not sure but why not just watch the pin state? Or use a pin-change interrupt.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Oct 04, 2010 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dzairo]]></name></author>
		<updated>2010-10-03T20:47:09+02:00</updated>

		<published>2010-10-03T20:47:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16085#p16085</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16085#p16085"/>
		<title type="html"><![CDATA[detect if usb is connected....]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4892&amp;p=16085#p16085"><![CDATA[
Hi all.<br />I'm here again and have question :<br />how detect if device is plug in usb or not.<br />If I have powered my PCB from differ power source I need detect if is plug in to usb or not. <br />If yes then I internal enable usb function , if not then I use different mode.<br />I create small PCB like avr butterfly but support USB boot-loader and usb to serial port converter with internal function (LCD ,RFID, may SDcard, I2C relay ... ).<br />there is more solution how to detect if usb is plug.<br />1. logic state of power line of usb (but need one free pin)<br />2. every 100 or more ms control INT0 flag , if every time change it's mean so mcu communicate , or use (atmega168) pin change interrupt flag<br />but exist any function in V-USB where can I check if mcu is plug in to USB or not? or how can I check it.<br />I want use usb as charger for internal li-ion cell and can using solution 1.<br /><br />regards<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4367">dzairo</a> — Sun Oct 03, 2010 8:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
