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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-02-02T11:05:38+02:00</updated>

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

		<entry>
		<author><name><![CDATA[fkpwolf]]></name></author>
		<updated>2012-02-02T11:05:38+02:00</updated>

		<published>2012-02-02T11:05:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20849#p20849</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20849#p20849"/>
		<title type="html"><![CDATA[Re: usb got disconnected as pin attached with PC Fan speed wire]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20849#p20849"><![CDATA[
ok. I found I need a pull-up resistor after several night debug...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6329">fkpwolf</a> — Thu Feb 02, 2012 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fkpwolf]]></name></author>
		<updated>2012-01-30T16:10:15+02:00</updated>

		<published>2012-01-30T16:10:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20825#p20825</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20825#p20825"/>
		<title type="html"><![CDATA[usb got disconnected as pin attached with PC Fan speed wire]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6411&amp;p=20825#p20825"><![CDATA[
my environment: attiny45, default circuits which use internal RC oscillator. So PB5, PB4, PB3 and PB0 are left for own using.<br /><br />It works well at most test case. And now I want to use it to monitor common 4pin PC Fan speed. I use Timer 0 overflow interrupt:<br /><div class="codebox"><p>Code: </p><pre><code>TCCR0B = 0x02;// 1:8 presc. <br />TCNT0 =0;<br />TIMSK= 1 &lt;&lt; TOIE0; //unmark Timer 0 overflow interrupt<br />.......<br />ISR(TIM0_OVF_vect) {......<br /></code></pre></div><br />It is simple. But when fan's speed wire was connected any pin of pb5/pb3/pb0 and then turn on the fan, usb got disconnected. I also tried pin change interrupt, and got same result. Only when I used pb4, usb works steady but input data was always 0.<br /><br />I curiosity that why only pb4 was working?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6329">fkpwolf</a> — Mon Jan 30, 2012 4:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
