Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:slicepi [2015/01/11 01:41] – [k8048 Microchip PIC programmer] darron | interfaces:slicepi [2024/07/10 12:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
<wrap right> | <wrap right> | ||
{{: | {{: | ||
+ | \\ \\ | ||
+ | {{: | ||
</ | </ | ||
Line 8: | Line 10: | ||
=== Power === | === Power === | ||
The Slice of Pi/O may be configured in 3V3 or 5V modes of operation | The Slice of Pi/O may be configured in 3V3 or 5V modes of operation | ||
- | via a jumper | + | via a jumper. |
+ | |||
+ | Power may be taken from the board on PWR and GND if | ||
a suitable 4-pin header is fitted. | a suitable 4-pin header is fitted. | ||
=== RPi I2C === | === RPi I2C === | ||
- | Enable I2C on the RPi as root. | + | |
+ | == Without device tree == | ||
< | < | ||
sed -i ' | sed -i ' | ||
- | echo ' | + | </ |
+ | |||
+ | == With device tree == | ||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | == With and without device tree == | ||
+ | < | ||
+ | echo ' | ||
echo " | echo " | ||
echo ' | echo ' | ||
Line 21: | Line 35: | ||
</ | </ | ||
- | For the MCP23017 a baudrate of 900000 has been tested and appears to work | + | For the MCP23017 a baudrate of 900000 has been tested and appears to work satisfactorily. You should experiment with this value. |
- | satisfactorily. You should experiment with this value. | + | |
=== I/O === | === I/O === | ||
- | ^RPi version ^I2C device ^Default MCP Address| | + | ^RPi revision ^I2C device ^Default MCP Address| |
| 1 |/ | | 1 |/ | ||
| 2 |/ | | 2 |/ | ||
Line 34: | Line 47: | ||
Separate data I/O connections (only supported option) | Separate data I/O connections (only supported option) | ||
+ | |||
+ | ==Wiring== | ||
< | < | ||
Line 55: | Line 70: | ||
- Not used by all LVP compatible devices. | - Not used by all LVP compatible devices. | ||
+ | ==Config== | ||
+ | < | ||
+ | VPP=0 # A0 | ||
+ | PGC=1 # A1 | ||
+ | PGDO=2 | ||
+ | PGDI=3 | ||
+ | PGM=-1 | ||
+ | DEVICE=MCP230XX | ||
+ | IFACE=/ | ||
+ | ADDR=0x20 | ||
+ | SLEEP=0 | ||
+ | #VPP_RUN + PGD_IN_PULLUP | ||
+ | BITRULES=0x1010 | ||
+ | </ | ||
+ | ===Resources=== | ||
+ | |||
+ | {{downloads: | ||