Wiring Diagram

Table Of Contents
Jiangsu JWT Electronics Shares CO.,Ltd.
26 / 42
MCU sending data packet flow chart FIFO and PKT flags are used as interrupt signals of MCU
In the above flow chart, you can send the state machine first, then send data to send FIFO,
which can improve MCU efficiency, but ensure that all data is written before the packet is sent. If the
time required to write is very long, you should write all the data before starting the sending state.
//////////////// Launch process example
The initialization register, which is the register value that needs to be optimized
write reg[0x02] = 0x4060;
write reg[0x03] = 0x5810;
write reg[0x05] = 0x7fa6;
write reg[0x0A] = 0x2053;
write reg[0x0D] = 0x6003;
write reg[0x0F] = 0x661d;
write reg[0x1A] = 0x00f7;
write reg[0x01] = 0x207f;
write reg[0x0B] = 0x857f;
2, Clear and send FIFO
write reg[0x26] = 0x8080;
3, Write data to the FIFOFor example, you send data 0x05 0x01 0x02 0x03 0x04 0x05,
The first byte represents the length
write reg[0x27] = 0x0501;
write reg[0x27] = 0x0203;
write reg[0x27] = 0x0405;
4, Start the send to enable, and set the channel
write reg[0x00] = 0x80XX;//Low 7 is channel number
5Wait for the PKT flag to be high, indicating that the delivery is complete