In
Universal Mode, how can I display the data read back from the slave
device?
- In order to read
from a slave device, the least significant bit of the
slave address must be set to a 1. During a read operation, all
of the data bytes between the slave address and the next START
or STOP condition are filled in with values read from the slave.
For example, to read 4 bytes from a slave at address 0x80, you
would enter
S 81 00 00 00 00 P
as the the command sequence. The 00s are just place holders that
determine how many bytes are to be read. After transmitting the
command sequence, the Universal Mode window will display
something like
S 81 11 22 33 44 P
where the 11, 22, 33, and 44 are the four values read from the
slave. Transmitting the command sequence again will cause 4 more
bytes to be read with the display being updated with the new
values.
|