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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-03-16T14:16:37+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-03-16T14:16:37+02:00</updated>

		<published>2012-03-16T14:16:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21168#p21168</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21168#p21168"/>
		<title type="html"><![CDATA[Re: v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21168#p21168"><![CDATA[
Because entering an interrupt routine disables global interrupts, and exiting the interrupt routine enables them again.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Fri Mar 16, 2012 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-03-15T22:21:26+02:00</updated>

		<published>2012-03-15T22:21:26+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21159#p21159</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21159#p21159"/>
		<title type="html"><![CDATA[Re: v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21159#p21159"><![CDATA[
&quot;sei();&quot; is simply to enable global interrupt, right? It is already enabled in V-USB. Why do we need to do it again inside interrupt? Thanks.<br /><br />-Xiangrui<br /><br /><blockquote><div><cite>Daid wrote:</cite>I've used timer interrupts to control step motors without an issue for the V-USB connection. Without enabling interrupts in the timer.<br /><br />If you want to enable interrupts inside the interrupt you need to do an &quot;sei();&quot; call inside the interrupt.</div></blockquote><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Thu Mar 15, 2012 10:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-03-12T19:18:42+02:00</updated>

		<published>2012-03-12T19:18:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21133#p21133</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21133#p21133"/>
		<title type="html"><![CDATA[Re: v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21133#p21133"><![CDATA[
I've used timer interrupts to control step motors without an issue for the V-USB connection. Without enabling interrupts in the timer.<br /><br />If you want to enable interrupts inside the interrupt you need to do an &quot;sei();&quot; call inside the interrupt.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Mon Mar 12, 2012 7:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrzephy]]></name></author>
		<updated>2012-03-09T16:59:35+02:00</updated>

		<published>2012-03-09T16:59:35+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21116#p21116</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21116#p21116"/>
		<title type="html"><![CDATA[Re: v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21116#p21116"><![CDATA[
Can you give more details on how to achieve this?<br />My ISR is pretty short, but I would rather let the V-USB ISR interrupt my ISR, just in case. If you can list the most important things/flags/functions to use, I would appreaciate it!<br /><br />Btw have you used this kind of approach and did it work reliably (i.e. no USB connection interruptions).<br /><br />Thanks.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5782">mrzephy</a> — Fri Mar 09, 2012 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-03-07T12:05:15+02:00</updated>

		<published>2012-03-07T12:05:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21103#p21103</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21103#p21103"/>
		<title type="html"><![CDATA[Re: v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21103#p21103"><![CDATA[
This is possible, however, you need to make sure the USB interrupt is the highest you use. And you need to make sure your other interrupt doesn't take too long (or enable interrupts inside the interrupt routine)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Wed Mar 07, 2012 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrzephy]]></name></author>
		<updated>2012-03-06T22:43:12+02:00</updated>

		<published>2012-03-06T22:43:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21099#p21099</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21099#p21099"/>
		<title type="html"><![CDATA[v-usb + interrupts?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6495&amp;p=21099#p21099"><![CDATA[
Is there a way to use interrupts when using v-usb? For example if I wanted a 1KHz timer. Because right now as soon as I enable some interrupt other than v-usb, USB will stop working.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5782">mrzephy</a> — Tue Mar 06, 2012 10:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
