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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-10-30T16:04:59+02:00</updated>

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

		<entry>
		<author><name><![CDATA[henni]]></name></author>
		<updated>2008-10-30T16:04:59+02:00</updated>

		<published>2008-10-30T16:04:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6536#p6536</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6536#p6536"/>
		<title type="html"><![CDATA[Re: Doest AVR-USB uses timers?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6536#p6536"><![CDATA[
No.<br />Exception: When you use the 12.8 MHz module and synchronize dynamically (very new firmware), Timer0 (8bit) is used.<br /><br /><blockquote><div><cite>lpx wrote:</cite>I want to use AVR-USB but i also want to make use of a 16-bit timer.<br />When using the 16-bit timer the avr usb stops working and vice versa.</div></blockquote><br />This has nothing to do with timers (or any other built-in peripheral hardware) but with <strong class="text-strong">interrupt load</strong>.<br /><blockquote><div><cite>lpx wrote:</cite>ISR(TIMER1_OVF_vect)<br />{<br />PORTC=~PORTC; //Invert the Value of PORTC<br />timeCounter += 100;<br />}</div></blockquote><br />Is USB not connected to PortC?<br />Does this ISR work fast enough (it looks like)?<br /><br /><blockquote><div><cite>lpx wrote:</cite>OCR1A = 18750;</div></blockquote><br />You put a quite large integer to an 8-bit I/O register!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1319">henni</a> — Thu Oct 30, 2008 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lpx]]></name></author>
		<updated>2008-10-27T20:41:16+02:00</updated>

		<published>2008-10-27T20:41:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6515#p6515</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6515#p6515"/>
		<title type="html"><![CDATA[Doest AVR-USB uses timers?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1842&amp;p=6515#p6515"><![CDATA[
Hi,<br /><br />I want to use AVR-USB but i also want to make use of a 16-bit timer.<br /><br />When using the 16-bit timer the avr usb stops working and vice versa.<br /><br />Is there any problem using a 16 bit timer togheter with AVR USB?<br /><br />This is my timer code:<br /><br />ISR(TIMER1_OVF_vect)<br />{<br />PORTC=~PORTC; //Invert the Value of PORTC<br /><br />timeCounter += 100;<br />}<br /><br /><br />void initTimer() {<br /><br />// Output Compare Register A = 18750 <br />OCR1A = 18750;<br /><br />// Mode of operation: CTC, Prescaler = FCPU/64<br />TCCR1B |= (1&lt;&lt;WGM12) | (1&lt;&lt;WGM12) | (1&lt;&lt;CS11) | (1&lt;&lt;CS10);   <br />TIMSK1 |= (1&lt;&lt;OCIE1A);<br /><br />//Initialize Counter<br />TCNT1=0;<br /><br />//Port C[3,2,1,0] as out put<br />DDRC=0xFF;<br /><br />PORTC=~PORTC; //Invert the Value of PORTC<br /><br />}<br /><br />Thanks,<br /><br />Nuno<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=231">lpx</a> — Mon Oct 27, 2008 8:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
