User`s manual

Figure 12: Command Conversion Code
9.3. Writing To Registers
Writing to a volatile register is nearly instantaneous. Writing to a non-volatile register, however,
takes typically 16 ms. Because the packet size can vary based on the need for encoding, there
are two possible packet structures. The following tables show the byte sequences for writing a
register in each case.
WARNING: Be sure that the module is properly powered and remains powered for the duration of
the register write. Loss of important configuration information could occur if the unit loses power
during a non-volatile write cycle.
Byte 0 Byte 1 Byte 2 Byte 3
Header Size Register Value
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 21076543210
0xFF 0x02 0 Register 0 Value
Table 8, Write Register Command, value to be written is less than 128 (0x80).
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4
Header Size Register Escape Value
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2107654321076543210
0xFF 0x03 0 Register 0xFE 0
Lower 7 bits
of Value
Table 9, Write Register Command, value to be written is greater than or equal to 128 (0x80).
The module will respond to this command with an ACK (0x06). If an ACK is not received, the
command should be resent. If a write is attempted to a read-only or invalid register, the module
will respond with a NAK (0x15).
9.4. Reading From Registers
A register read command is constructed by placing an escape character before the register
number. The following table shows the byte sequence for reading a register.
Byte 0 Byte 1 Byte 2 Byte 3
Header Size Escape Register
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 21076543210
0xFF 0x02 0xFE 0 Register
Table 10, Read Register Command
The module will respond to this command by sending an ACK (0x06) followed by the register
number and register value. The register value is sent unmodified. For example, if the register
value is 0x83, 0x83 is returned after the ACK (0x06). See table below for the format of the
response. If the register number is invalid, it will respond with a NACK (0x15).
Byte 0 Byte 1 Byte 2
ACK Register Value
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0x06 0 Register Value
Table 11, Read Register Module Response For A Valid Register
Wi.232DTS © 2003-2005 Radiotronix Inc. 22
Preliminary Preliminary Preliminary