I2C Application
This application allows for communication by I2C, the Inter-IC Bus. Use the following pinout, which is similar to the JTAG pinout.
Name | Pin | Name | |
---|---|---|---|
SCL | 1 | 2 | Vcc |
SDA | 3 | 4 | Vcc |
5 | 6 | ||
7 | 8 | ||
GND | 9 | 10 | |
11 | 12 | ||
13 | 14 |
TODO, image goes here.
Clients
A Python client, goodfet.i2ceeprom is currently in a alpha stage and needs more testing
Development
Prior to any transaction, the SETUP (0x10) verb should be sent to the I2C application to properly set the I/O directions and values. The START (0x20), STOP (0x21), READ (0x00), and WRITE (0x01) verbs are used for transactions, with WRITE returning the acknowledge bit.
Please note that I2C application has yet to be tested. This should be completed by June 17 at the latest.
Verbs
The following verbs are supported.
Hex | #define | Description |
---|---|---|
0x00 | READ | Read bytes. |
0x01 | WRITE | Write bytes. |
0x10 | SETUP | Configure I/O pins. |
0x20 | START | Start a transaction. |
0x21 | STOP | Stop a transaction. |
0x80 | SCAN | Scan 8 bit addresses on the bus. |