Wiring Diagram
Jiangsu JWT Electronics Shares CO.,Ltd.
28 / 42
Picture 13-6
Example of receiving process:
1,The initialization register, which is the register value that needs to be optimized
write reg[0x02] = 0x4026;
write reg[0x03] = 0x5810;
write reg[0x05] = 0x7fa6;
write reg[0x0A] = 0x3453;
write reg[0x0D] = 0x6003;
write reg[0x0F] = 0x661d;
write reg[0x1A] = 0x00f7;
write reg[0x18] = 0x6ffd;
write reg[0x27] = 0x1800;
write reg[0x01] = 0x207f;
write reg[0x0B] = 0x857f;
2, Empty the receiving FIFO
write reg[0x25] = 0x8080;
4,Start receive enable, and set channel
write reg[0x00] = 0x40XX; //Low 7 is channel number
5,Wait for the PKT flag to be high, indicating that it receives a frame of data, and starts to
read the data from FIFO, and the first byte read is the data length
read reg[0x28]
readreg[0x28], 。。。。。。。
3、Automatic reply and automatic retransmission
The function can be configured with registers:
Write register 0x01[3] = 1 to enable auto-ack function。
Write register 0x0b [11:8], set the number of resend, the default value is 3, that is, after the first