深圳市必趣科技有限公司
BIG TREE TECH
UART mode protocol format
UART protocol consists of synchronization bits, read/write bits, 8-bit
register address and variable data.
Reads:
sync
data size w/r 8bit register address
0...4
5...7
8
9...15
1 0 1 0 1 0 0 0 1
register address
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Read instruction: rw(bit 8) is 1 when reading the data of register
address (bit 9-15).
Write:
sync
data size w/r 8bit register address
data
0...4
5...7
8
9...15
16...31
1 0 1 0 1 0 1 0 0
register address
data bytes 3, 2, 1, 0
(high to low byte)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
16
...
31
Write instruction: when rw(bit 8) is 0, write the register address (bit
9-15) with the data width defined by data size bits (5-6). The
variable-length data can be received, for example, the data size is 2, and
the data length is two bytes.
Note: The modified register needs to send the save instruction 0x18
before it can be written into Flash.