52
commands use firmware to "bit-bang" the SCL and SDA lines. This firmware
cannot operate as fast as the hardware, and it can be interrupted at any time by
adapter internal interrupts. The eXtended commands run directly off the command
characters as they are received on the serial link. Speed of execution of eXtended
commands is controlled by the serial link communication rate, the execution speed
of the firmware, delays caused by execution interruptions that may occur while a
command is executing, and I
2
C Bus clock-stretching by external slave devices.
The following commands manipulate the I
2
C Clock (SCL) and data (SDA) lines.
Command: /X[S|~xx|R|r|P|0|1|?|D|d|C|c|L|A| |"]..., then Press Enter or ESCape
Enter /X followed by zero or more sub-commands, the [CR]
Response: /XCC(see commands below)[CR]
High Level Sub-Commands:
S = Send Start
~xx = Send Byte (xx = 00...FF)(response = A or N)
R = Read Byte with Ack (response = ~xx)
r = Read Byte with Nak (response = ~xx)
P = Send Stop
Mid Level Sub-Commands:
0 = Send 0 Bit
1 = Send 1 Bit
? = Read Bit (response = 0 or 1)
Low Level Sub-Commands:
D = Set SDA High
d = Set SDA Low
C = Set SCL High
c = Set SCL Low
L = Read SCL (response = 0 or 1)
A = Read SDA (response = 0 or 1)
Содержание i2cStick
Страница 1: ...User s Guide USB to I2 C Bus Host Adapter with iPort Utility Pack Software www mcc us com...
Страница 9: ......
Страница 10: ...1 Part 1 i2cStick USB to I2 C Bus Host Adapter Part 1 USB to I2 C Bus Host Adapter User s Guide Model MIIC 207...
Страница 20: ...11 Part 2 iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows...
Страница 21: ...12...
Страница 47: ...38...
Страница 48: ...39 Part 3 i2cStick Programmer s Reference Part 3 Programmer s Reference ASCII Command Interface Definitions...