UG-570 AD9361 Reference Manual
| Page 54 of 128
Program the indirectly-addressable LNA gain difference words exactly as done in Step 5. Finally, program the error words back into the
AD9361 as described in Table 40.
In the processes and scripts shown previously, Rx1 is calibrated and then the error word results are programmed into Rx1 and Rx2. The
resulting RSSI errors are expected to be within approximately 0.5 dB for Rx2 when using Rx1 error words. For maximum accuracy, each
receiver should be calibrated independently with error words saved to nonvolatile memory for each receiver. When programming in the
field, the words would be programmed into the internal tables for each receiver separately.
Table 40. Programming Gain Step Errors into the AD9361 in the Field
Line Number Command Addr/Data Comment
1 SPIWrite 143,61 //Setup to write both Rx1 and Rx2 and start clock
2 SPIWrite 140,00 //Set LNA index address to 0
3 SPIWrite 141,ff //Write LNA index 0 error word from non-volatile memory
4 SPIWrite 143,65 //Write data into address 0
5
Repeat Step 2 to Step 4 for 3
remaining LNA indices
6 SPIWrite 143,61 //Setup to write both Rx1 and Rx2 and start clock
7 SPIWrite 140,00 //Set Mixer Index address to 0
8 SPIWrite 141,gg //Write Mixer index 0 error word from non-volatile memory
9 SPIWrite 143,69 //Write data into address 0
10
Repeat Step 7 to Step 9 for
14 remaining Mixer indices
11 SPIWrite 143,00 //Stop clock