<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>내 맘대로 보는 세상 &#187; attiny2313</title>
	<atom:link href="http://b.mytears.org/tag/attiny2313/feed" rel="self" type="application/rss+xml" />
	<link>http://b.mytears.org</link>
	<description>평범한 일상 속의 보석찾기..</description>
	<lastBuildDate>Sat, 19 Jun 2010 11:27:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>avr gadget</title>
		<link>http://b.mytears.org/2006/12/472</link>
		<comments>http://b.mytears.org/2006/12/472#comments</comments>
		<pubDate>Mon, 18 Dec 2006 20:12:30 +0000</pubDate>
		<dc:creator>정태영</dc:creator>
				<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Tae-young]]></category>
		<category><![CDATA[at90s2313]]></category>
		<category><![CDATA[attiny2313]]></category>
		<category><![CDATA[avr]]></category>
		<category><![CDATA[circuit]]></category>
		<category><![CDATA[interrupt]]></category>

		<guid isPermaLink="false">http://b.mytears.org/2006/12/472</guid>
		<description><![CDATA[<p>몇 일전에 만들었던 avr 로 만든 장난감의 회로도와 소스코드를 공개합니다. :)</p>
<p>회로도:</p>
<p>http://mytears.org/resour...et/avr-gadget-circuit.png</p>
<p>소스코드:</p>
<p>http://mytears.org/resour...s/avr/gadget/avr-gadget.c</p>
<p>결과물:</p>
<p>http://mytears.org/tmp/dir/?path=./avr&#038;N</p>
<p>회로에서 Vcc 라고 되어있는 부분에 2.7V ~ 5.5V 사이로 연결을 해주면 되며, 회로에는 나와있지 않지만 10번 핀은 Ground 에 연결해줘야만 합니다. 또한 Vcc 에 3V 를 연결하게 될 경우 L.E.D 에 저항은 연결할 필요가 없습니다. (330옴은 5V 기준)</p>
<p>프로그램을 간단하게 설명하자면 8bit timer 를 사용했고, timer ...</p>
<p><a href='http://b.mytears.org/2006/12/472'>Read the rest of this entry...</a></p>
<p><h3 style="clear:both;">Related Posts</h3><ul class="related_post"><li>12/12/2006 -- <a href="http://b.mytears.org/2006/12/466" title="AVR-ISP">AVR-ISP (7)</a></li><li>12/8/2006 -- <a href="http://b.mytears.org/2006/12/465" title="AVR">AVR (3)</a></li></ul></p><div style="width: 180px; margin-left: auto; margin-right: auto; margin-bottom: 30px; margin-top: 30px; ">
    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='73' height='79' align='left' style="border-bottom: 1px solid #CFD4DA; border-right: 1px solid #CFD4DA;">
    <param name='allowScriptAccess' value='always'/>
    <param name='movie' value='http://www.mixsh.com/widget/mixup/loader.html?muid=52225&guid=http%3A%2F%2Fb.mytears.org%2F2006%2F12%2F472&rdate=2006-12-19+05%3A12%3A30&rawhtml=&skin=1&showhitcnt=1&platform=5'/>
    <param name='quality' value='high'/>
    <param name='wmode' value='window'/>
    <embed src='http://www.mixsh.com/widget/mixup/loader.html?muid=52225&guid=http%3A%2F%2Fb.mytears.org%2F2006%2F12%2F472&rdate=2006-12-19+05%3A12%3A30&rawhtml=&skin=1&showhitcnt=1&platform=5' quality='high' wmode='window' width='73' height='79' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/>
    </object>
		</div>]]></description>
			<content:encoded><![CDATA[<p>몇 일전에 만들었던 avr 로 만든 장난감의 회로도와 소스코드를 공개합니다. :)</p>
<p>회로도:</p>
<p><a href='http://mytears.org/resources/avr/gadget/avr-gadget-circuit.png'>http://mytears.org/resour...et/avr-gadget-circuit.png</a></p>
<p>소스코드:</p>
<p><a href='http://mytears.org/resources/avr/gadget/avr-gadget.c'>http://mytears.org/resour...s/avr/gadget/avr-gadget.c</a></p>
<p>결과물:</p>
<p><a href='http://mytears.org/tmp/dir/?path=./avr&#038;N'>http://mytears.org/tmp/dir/?path=./avr&#038;N</a></p>
<p>회로에서 Vcc 라고 되어있는 부분에 2.7V ~ 5.5V 사이로 연결을 해주면 되며, 회로에는 나와있지 않지만 10번 핀은 Ground 에 연결해줘야만 합니다. 또한 Vcc 에 3V 를 연결하게 될 경우 L.E.D 에 저항은 연결할 필요가 없습니다. (330옴은 5V 기준)</p>
<p>프로그램을 간단하게 설명하자면 8bit timer 를 사용했고, timer 에 overflow 가 발생할 때 (0xFF 에서 0&#215;00 으로 넘어가게 되면) 생기는 ovf 인터럽트를 이용하고 있습니다. </p>
<p>처음엔 at90s2313 을 사용했었는데 불행히도 가지고 있는 at90s2313 중 하나는 다리가 부러져서 사망해버렸고, 나머지 하나는 뻘짓하다가 태워먹어버린고로 현재 소스코드는 attiny2313 용으로 작성되어 있습니다. (두 칩은 핀 배열등 대부분이 비슷하지만 ovf 인터럽트와 timer 관련 레지스터 이름이 살짝 다릅니다.)</p>
<p>인터럽트 테스트 코드:</p>
<p><a href='http://mytears.org/resources/avr/interrupt-test/int-test.c'>http://mytears.org/resour...interrupt-test/int-test.c</a></p>
<p>p.s) 결국 하나 남은 attiny2313 마저 장렬하게 전사&#8230; 프로젝트 검사를 아직 안받은고로 추가 주문 해야했다.</p>
<p>오늘의 교훈: 겁 없이 7805 를 믿고 15v 아답타에 연결하지 말자 -_-;;</p><div style="width: 180px; margin-left: auto; margin-right: auto; margin-bottom: 30px; margin-top: 30px; ">
    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='73' height='79' align='left' style="border-bottom: 1px solid #CFD4DA; border-right: 1px solid #CFD4DA;">
    <param name='allowScriptAccess' value='always'/>
    <param name='movie' value='http://www.mixsh.com/widget/mixup/loader.html?muid=52225&guid=http%3A%2F%2Fb.mytears.org%2F2006%2F12%2F472&rdate=2006-12-19+05%3A12%3A30&rawhtml=&skin=1&showhitcnt=1&platform=5'/>
    <param name='quality' value='high'/>
    <param name='wmode' value='window'/>
    <embed src='http://www.mixsh.com/widget/mixup/loader.html?muid=52225&guid=http%3A%2F%2Fb.mytears.org%2F2006%2F12%2F472&rdate=2006-12-19+05%3A12%3A30&rawhtml=&skin=1&showhitcnt=1&platform=5' quality='high' wmode='window' width='73' height='79' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/>
    </object>
		</div><h3 style="clear:both;">Related Posts</h3><ul class="related_post"><li>12/12/2006 -- <a href="http://b.mytears.org/2006/12/466" title="AVR-ISP">AVR-ISP (7)</a></li><li>12/8/2006 -- <a href="http://b.mytears.org/2006/12/465" title="AVR">AVR (3)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://b.mytears.org/2006/12/472/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
