<?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>エンジニアのための総合SNS &#187; ATmega328P</title>
	<atom:link href="https://sns.encafe2.org/blog/?feed=rss2&#038;tag=ATmega328P" rel="self" type="application/rss+xml" />
	<link>https://sns.encafe2.org/blog</link>
	<description>cafetería for all engineers</description>
	<lastBuildDate>Sat, 09 Nov 2019 18:12:29 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>マトリクスLEDのピン配列が無茶くちゃな件</title>
		<link>https://sns.encafe2.org/blog/?p=14301</link>
		<comments>https://sns.encafe2.org/blog/?p=14301#comments</comments>
		<pubDate>Sat, 08 Nov 2014 04:28:19 +0000</pubDate>
		<dc:creator><![CDATA[Kaz]]></dc:creator>
				<category><![CDATA[外部公開日記]]></category>
		<category><![CDATA[ATmega328P]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[OSL641501]]></category>
		<category><![CDATA[マトリクスLED]]></category>

		<guid isPermaLink="false">http://sns.encafe2.org/blog/?p=14301</guid>
		<description><![CDATA[写真では 01 02 03 04 05 06 07 08 16 15 14 13 12 11 10 9 なんで [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>写真では<br />
01 02 03 04 05 06 07 08</p>
<p>16 15 14 13 12 11 10 9<br />
なんですけど、</p>
<p>行5 行7 列2 列3 行8 列5 行6 行3</p>
<p>列8 列7 行2 列1 行4 列6 列4 行1</p>
<p>などというわけのわからなさ（苦笑）</p>
<p>配線を平面上で重ならない様にピンを割り当てた結果だというのはピンとLEDの間に線を引いてみてある程度理解出来ました。</p>
<p>でも、ここからプログラムに起こすには、またややこしいピン配列のLSI(ATmega328P)のことを考慮する必要がある。</p>
<p>LED 列1 　列2　　列3　　列4 列5　　列6　列7　 列8<br />
LSI端子 PB6 　PC3　PC2　PD6　PC0　PD5　PD3　PD2</p>
<p>common<br />
LED　 行1　　行2　 行3　 行4　　行5　行6　 行7 行8<br />
LSI端子　PD7　PD4　PB1　PB7　PC5　PB2　PC4　PB2</p>
<p>上の表に基づいて信号を送れば良さげなんですけど、今回の安全回路を端折ってまでコンパクトに作りたいという都合で他のピンに影響を与えないように特定のピンを操作するのは難しそう。</p>
<p>(PPB = PPB | (1<<bit) でポートを読み特定ビットだけ操作するだけすむということが今回の回路だと出来ない)</p>
<p>仮想ポートをメモリに作って、出力したピンの状態を記憶してビット操作するしかないようですね。。。</p>
<p>LEDの電流制限抵抗もPWMで電圧を落とすことにより端折りますのでCPUが暴走したらLEDが壊れるようなハードウェア構成になる予定。</p>
]]></content:encoded>
			<wfw:commentRss>https://sns.encafe2.org/blog/?feed=rss2&#038;p=14301</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
