TX Local Oscillator Calibration
Setup
Registers and table values are backed up and the LO is put into a known setting for calibration
- Backup table value
- Find the gain values
Backup Radio Register 0x87
Write 0x29 to Radio Register 0x87
Backup Radio Register 0x88
Write 0x54 to Radio Register 0x88
Backup Radio Register 0xB6
Write 0x29 to Radio Register 0xB6
Backup Radio Register 0xB7
Write 0x54 to Radio Register 0xB7
Backup Radio Registers 0x1F and 0x21
If PHY Register 0x9 has bit 1 set
Write 0x20 to Radio Register 0x1F
Write 0x20 to Radio Register 0x21
- Otherwise
Write 0x4 to Radio Register 0x1F
Write 0x4 to Radio Register 0x21
Backup Radio Registers 0xA6 and 0xA7
MaskSet Radio Registers 0xA6 with mask 0x0FFF and set with 0xA000
MaskSet Radio Registers 0xA7 with mask 0x0FFF and set with 0xA000
Backup PHY Register 0xA5
Write 0x3000 to PHY Register 0xA5
- Table Stuff
Backup PHY Registers 0x91 and 0x92
Write 0x100 to PHY Registers 0x91
Write 0x100 to PHY Registers 0x92
- More Table Stuff
Write 0x8AA9 to PHY Register 0xC2
- Delay for 100 uSec
- Table Stuff
Measurement
Gain Parameters are tested to find the optimal settings
Cleanup
Registers and table values are restored
- Tables
Write 0x00 to PHY Register 0xC2
MaskSet PHY Register 0xA6 with mask 0x0FFF and set with the backed up copy of this register
MaskSet PHY Register 0xA7 with mask 0x0FFF and set with the backed up copy of this register
Restore PHY Register 0xA5
- More Tables
Restore Radio Registers 0x87, 0x88, 0xB6, 0xB7, 0x1F and 0x21
Restore PHY Registers 0x91 and 0x92