Difference between revisions of "How to use EEPROM"

From IGEP - ISEE Wiki

Jump to: navigation, search
(Created page with '= Overview = The IGEP expansion boards (except IGEP New York) provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).<br> = Play with E…')
 
m (Play with EEPROM memory)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Overview =
 
= Overview =
 
+
<section begin=overview />
 
The IGEP expansion boards (except IGEP New York) provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).<br>  
 
The IGEP expansion boards (except IGEP New York) provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).<br>  
 
+
<section end=overview />
 
= Play with EEPROM memory  =
 
= Play with EEPROM memory  =
 
+
<section begin=play />
 
Use i2c-tools to manage it:  
 
Use i2c-tools to manage it:  
 
<pre>i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt;
 
<pre>i2cget &lt;bus&gt; &lt;chip&gt; &lt;register&gt;
 
i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt;</pre>  
 
i2cset &lt;bus&gt; &lt;chip&gt; &lt;register&gt; &lt;value&gt;</pre>  
For example, the following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:  
+
<section end=play />
 +
==IGEPv2 Expansion==
 +
<section begin=igepv2exp />
 +
The following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:  
 
<pre>i2cset -f -y 2 0x50 0x10 0x22
 
<pre>i2cset -f -y 2 0x50 0x10 0x22
i2cget -f -y 2 0x50 0x10</pre>  
+
i2cget -f -y 2 0x50 0x10</pre>
 +
<section end=igepv2exp />
 +
 
 +
==IGEP PARIS Expansion==
 +
<section begin=paris />
 +
The following writes the value 0x22 to register 0x10 of device 0x51 on i2c bus 3:
 +
<pre>i2cset -f -y 3 0x51 0x10 0x22
 +
i2cget -f -y 3 0x51 0x10</pre>
 +
<section end=paris />
 +
 
 +
==IGEP BERLIN Expansion==
 +
<section begin=berlin />
 +
The following writes the value 0x22 to register 0x10 of device 0x51 on i2c bus 3:
 +
<pre>i2cset -f -y 3 0x51 0x10 0x22
 +
i2cget -f -y 3 0x51 0x10</pre>
 +
<section end=berlin />
  
 
= Know more=
 
= Know more=
 
+
<section begin=know_more />
 
See also: i2dump(8), i2cget(8) and i2cset(8) man page
 
See also: i2dump(8), i2cget(8) and i2cset(8) man page
 +
<section end=know_more />

Latest revision as of 19:12, 5 September 2012

Overview

The IGEP expansion boards (except IGEP New York) provides an AT24C01B serial EEPROM memory which is connected to the OMAP via I2C (register 50).

Play with EEPROM memory

Use i2c-tools to manage it:

i2cget <bus> <chip> <register>
i2cset <bus> <chip> <register> <value>

IGEPv2 Expansion

The following writes the value 0x22 to register 0x10 of device 0x50 on i2c bus 2:

i2cset -f -y 2 0x50 0x10 0x22
i2cget -f -y 2 0x50 0x10


IGEP PARIS Expansion

The following writes the value 0x22 to register 0x10 of device 0x51 on i2c bus 3:

i2cset -f -y 3 0x51 0x10 0x22
i2cget -f -y 3 0x51 0x10


IGEP BERLIN Expansion

The following writes the value 0x22 to register 0x10 of device 0x51 on i2c bus 3:

i2cset -f -y 3 0x51 0x10 0x22
i2cget -f -y 3 0x51 0x10


Know more

See also: i2dump(8), i2cget(8) and i2cset(8) man page