<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://valley.egloos.com/rss/style/style.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>이글루스 'i2c' 태그 최근글</title>
		<link>http://valley.egloos.com/tag/i2c</link>
		<description>i2c</description>
		<language>ko</language>
		<pubDate>Sat, 08 Oct 2011 00:05:27 +0900</pubDate>
		<generator>Egloos</generator>
		<item>
	<title><![CDATA[어플에서 I2C 버스로 디바이스 접근하는 방법]]></title>
	<link>http://mydroid.egloos.com/3747057</link>
	<guid>http://mydroid.egloos.com/3747057</guid>
	<description>
	<![CDATA[ 
1. 보드에서 i2c 드라이버의 Major, minor 번호를 찾습니다.      cat /proc/devices    2. nodefile 을 만듭니다.     mknod /dev/i2c-0   c  Major  minor    3. 프로그램을 작성합니다.         fd = open( &quot;/dev/i2c-0&quot;, O_RDWR );  // 만들어진 노드파일을 엽니다.    4. 접근할 디바이스의 슬레이브주소를 설정합니다.       ioctl( fd, I2C_SLAVE, ADDR_MY_DEV );    5.  write 할때       unsigned char buf[32];         buf[0] =  0x10;   // 접근할 디바이스의 레지스터 주소       buf[1] =  0xaa;   //	]]>
	</description>
	<pubDate>Sat, 08 Oct 2011 00:05:27 +0900</pubDate>
	<dc:creator><![CDATA[드로이드]]></dc:creator>
</item>
<item>
	<title><![CDATA[통신(SPI, I2C, SCI, CAN)]]></title>
	<link>http://circle5940.egloos.com/45333</link>
	<guid>http://circle5940.egloos.com/45333</guid>
	<description>
	<![CDATA[ 
<img 
				src="http://thumb.egloos.net/76x100/http://pds21.egloos.com/pds/201107/31/72/d0109072_4e351f6185363.jpg"  
				alt="통신(SPI, I2C, SCI, CAN)" 
				width="76px"  
				height="100pxpx"
				align="left"
				style="border:1px solid #DDDDDD;margin:0 10px 10px 0px;"
				/> SPI 1. SPI란?- SPI는 Serial Peripheral Interface의 약자로서 직렬 통신의 한 방법 이며 동기식 통신을 한다.(모토로라에서 제안)- Data 송수신에는 3개의 선이 필요하며 Full-duplex통신이 가능하다(Full-duplex란 data 송신부와 수신부가 동시에 data전송, 즉 교환이 가능하다는 의미이다. 이와 대비되는 뜻으로는 Half-duplex가 있으며 간단하게 Full-duplex는 전화기, Half-duplex는 무전기로 보면 된다.)- Single Master 구조를 가지며 Slave는 Multi-slave로 여러 개를 가질 수 있는데 이때는 selection을 위해 선이 더 필요하다.- 주로 근거리 통신, 즉 chip간 통신에 사용된다.  2. SPI 통신의	]]>
	</description>
	<pubDate>Sun, 31 Jul 2011 18:33:58 +0900</pubDate>
	<dc:creator><![CDATA[Brian]]></dc:creator>
</item>
<item>
	<title><![CDATA[디버깅 삽질]]></title>
	<link>http://gosping.egloos.com/4977195</link>
	<guid>http://gosping.egloos.com/4977195</guid>
	<description>
	<![CDATA[ 
ARM-7TMDI에서 돌던 미들웨어를 ARM Coretex-3로 포팅해야 해서   주변 드라이버를 만들고 있었다.    2ms/10ms 타이머 돌려서 주기기동 동작시키고  간단히 Uart랑 I2C드라이버만들어서 미들웨어 테스트용으로 메인 루프 만들고 있는데  자꾸 I2C에서 에러가 나오는 것이다.    내가 만든 드라이버가 문제인줄 알고 하루죙일 찾다가  오실로스코프 신호하고 출력포트 확인해봤더니  SDL과SCL이 거꾸로.. -_-;;    아 놔!! 회로도가 틀리잖아!       	]]>
	</description>
	<pubDate>Thu, 11 Jun 2009 16:57:32 +0900</pubDate>
	<dc:creator><![CDATA[일본행 새우잡이 어선 ]]></dc:creator>
</item>
<item>
	<title><![CDATA[I2C 드라이버 문제점]]></title>
	<link>http://gosping.egloos.com/4960566</link>
	<guid>http://gosping.egloos.com/4960566</guid>
	<description>
	<![CDATA[ 
LPC마이컴 I2C 드라이버에 링 버퍼를 달아 사용하고 있었다.    링 버퍼 축소  시도   512Byte -&amp;gt; 384Byte    문제발생 :  한번에 보내야하는 234Byte 데이터 송신시    RingBuffer에 Write하는 속도가 Read하는 속도보다 빨라  오버 풀로 에러가 발생..    Read는 I2C 인터럽트에서만 하는데 RingBuffer에 Write할때에는  인터럽트 금지. 결국 I2C전송 속도가 시스템적으로 느림 상황    긴 데이터 송신시에는 최소 234Byte의 저장 공간과 그 전에 미처 전송되지 못한  데이터 공간이 필요        해결 방안 1      I2C 전송속도 100kbit/s에서 400kbit/s로 올림         문제점      1. 현재 시스템의 EE	]]>
	</description>
	<pubDate>Wed, 27 May 2009 15:51:49 +0900</pubDate>
	<dc:creator><![CDATA[일본행 새우잡이 어선 ]]></dc:creator>
</item>
<item>
	<title><![CDATA[TWI Slave Interrupt]]></title>
	<link>http://SmileToy.egloos.com/2071477</link>
	<guid>http://SmileToy.egloos.com/2071477</guid>
	<description>
	<![CDATA[ 
인터넷에 TWI를 Slave Interrupt 로 작성한것은 몇가지 있다. 그런데 보면 Slave Receive 만 Interrupt로 작성하고 Slave Transmit는 포함이 되어있지 않다. 그래서 오늘 해보았다. 그냥 폴링방법을 Interrupt 문에 맞추어서 넣어주면 동작 잘한다.  void init_TWI(void) {     TWAR = SLAVE_ID &amp;lt;&amp;lt; 1;       TWCR = (1&amp;lt;&amp;lt;TWEA) | (1&amp;lt;&amp;lt;TWEN) | (1&amp;lt;&amp;lt;TWIE);                    // SLAVE     sei(); }  char rData[10];                                                           	]]>
	</description>
	<pubDate>Wed, 24 Sep 2008 13:02:12 +0900</pubDate>
	<dc:creator><![CDATA[Fighting SmileToy]]></dc:creator>
</item>
	</channel>
</rss>

