Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:slicepi [2015/02/07 21:50] – [RPi I2C] darroninterfaces:slicepi [2024/07/10 12:30] (current) – external edit 127.0.0.1
Line 2: Line 2:
 <wrap right> <wrap right>
 {{:interfaces:rpipio.jpg?200}} {{:interfaces:rpipio.jpg?200}}
 +\\ \\
 +{{:interfaces:slipi.jpg?200}}
 </wrap> </wrap>
  
Line 27: Line 29:
 == With and without device tree == == With and without device tree ==
 <code> <code>
-echo 'SUBSYSTEM=="i2c-dev", MODE="0666"' >> /etc/udev/rules.d/10-local.rules+echo 'SUBSYSTEM=="i2c-dev", MODE:="0666"' >> /etc/udev/rules.d/10-local.rules
 echo "options i2c_bcm2708 baudrate=400000" >> /etc/modprobe.d/modprobe.conf echo "options i2c_bcm2708 baudrate=400000" >> /etc/modprobe.d/modprobe.conf
 echo 'i2c-dev' >> /etc/modules echo 'i2c-dev' >> /etc/modules
Line 36: Line 38:
  
 === I/O === === I/O ===
-^RPi version ^I2C device ^Default MCP Address|+^RPi revision ^I2C device ^Default MCP Address|
 | 1 |/dev/i2c-0 |0x20| | 1 |/dev/i2c-0 |0x20|
 | 2 |/dev/i2c-1 |0x20| | 2 |/dev/i2c-1 |0x20|
Line 45: Line 47:
  
 Separate data I/O connections (only supported option) Separate data I/O connections (only supported option)
 +
 +==Wiring==
  
 <code> <code>
Line 66: Line 70:
    - Not used by all LVP compatible devices.     - Not used by all LVP compatible devices. 
  
 +==Config==
 +<code>
 +VPP=0     # A0
 +PGC=1     # A1
 +PGDO=2    # A2
 +PGDI=3    # A3
 +PGM=-1
 +DEVICE=MCP230XX
 +IFACE=/dev/i2c-1
 +ADDR=0x20
 +SLEEP=0
 +#VPP_RUN + PGD_IN_PULLUP
 +BITRULES=0x1010
 +</code>
 +===Resources===
 +
 +{{downloads:Slice_Pi.pdf|Assembly manual}}