Chapter 13
-
65
The write_byte command writes a byte of data to a specified location in a sec-
ondary node. The location is an application-defined byte that can indicate a
port or variable. The byte is sent in ASCII Hex format:
The response to write_byte identifies the sender and serves as an acknowledge-
ment that the command was received:
A command sent to node i to write the byte FEh to location c is:
:i2cfe
followed by a LF.
These are the transmitted values in hexadecimal:
3a 69 32 63 66 65 0a
On accepting the command, node i writes the value FEh to location c and
responds with:
:i
followed by a LF.
!
%""2""
.6(
0 : (ASCII 58) Start-of-communication indicator
1 address Identifies the recipient
2 2 (ASCII 49) write_byte command
3 location Identifies the location to write to
4 data Data to write, most significant nibble
(ASCII Hex format)
5 data Data to write, least significant nibble
(ASCII Hex format)
6 LF (ASCII 10) End-of-communication indicator
!
%""2""
.6(
0 : (ASCII 58) Start-of-communication indicator
1 address Identifies the sender
2 LF (ASCII 10) End-of-communication indicator