User Manual

I
2
CDriver User Guide 24
7.4 Raw protocol
I
2
CDriver uses a serial protocol to send and receive I
2
C commands. Connect
to the I
2
CDriver at 1M baud, 8 bits, no parity, 1 stop bit (1000000 8N1).
Because many I
2
CDriver commands are ASCII, you can control it interactively
from any terminal application that can connect at 1M baud. For example typing
u and s toggles the CS line and ? displays the status info.
Commands are:
? transmit status info
e byte echo byte
1 set speed to 100 KHz
4 set speed to 400 KHz
s addr send START/addr, return status
0x80-bf read 1-64 bytes, NACK the final byte
0xc0-ff write 1-64 bytes
a N read N bytes, ACK every byte
p send STOP
x reset I
2
C bus
r register read
d scan devices, return 112 status bytes
m enter monitor mode
c enter capture mode
b enter bitbang mode
i leave bitmang, return to I
2
C mode
u byte set pullup control lines
v start analog voltage measurement
w read voltage measurement result
So for example to send this sequence:
©2019 Excamera Labs