Enable
Disable CRS 0
OR OFDM Register 0x1B with 0x1000
MaskSet OFDM Register 0x82 with 0xF0FF and set with 0x300
OR Radio Register 0x9 with 0x80
MaskSet Radio Register 0x12 with mask 0xFFFC and set with 0x2
Set the Initial Gain Values
Write 0x3ED5 to OFDM Register 0xBA
Backup OFDM Register 0x3
MaskSet OFDM Register 0x3 with mask 0xFFF8 and set with 0x5
OR Radio Register 0x4 with 0x4
- Loop from 0x10 to 0x20 (these are I values)
Write the loop value to Radio Register 0x13
Take a sample by reading the value of OFDM Register 0x74
- AND the sample value with 0xFF
- If the sample value is 0
- This loop position is the best CM value, break the loop
If the sample value is >= 0x80
- Use 0x100 - the sample value as the sample value
- If this sample value is lower than all of the previous (unsigned) values
- Use this loop position as the current best CM value
Restore OFDM Register 0x3
AND Radio Register 0x4 with 0xFFFB
Write the best CM value to Radio Register 0x13
Write 0xFFEC to OFDM Table 0x13, offset 0
Write 0x1E80 to OFDM Register 0xB7
Write 0x1C00 to OFDM Register 0xB6
Write 0xEC0 to OFDM Register 0xB5
Write 0xC0 to OFDM Register 0xB2
Write 0x1FFF to OFDM Register 0xB9
MaskSet OFDM Register 0xBB with mask 0xF000 and set with 0x53
MaskSet OFDM Register 0x61 with mask 0xFE1F and set with 0x120
MaskSet OFDM Register 0x13 with mask 0x0FFF and set with 0x3000
MaskSet OFDM Register 0x14 with mask 0x0FFF and set with 0x3000
Write 0x17 to OFDM Table 0x00, offset 6
- Loop 6 times
Write 0xF to OFDM Table 0x00, offset given by the loop position
Write 0xE to OFDM Table 0x00, offset 0xD
Write 0x11 to OFDM Table 0x00, offset 0xE
Write 0x13 to OFDM Table 0x00, offset 0xF
Write 0x5030 to OFDM Register 0x33
Enable CRS 0
Disable (Unused)
Disable CRS 0
AND OFDM Register 0x1B with 0xEFFF
MaskSet OFDM Register 0x82 with mask 0xF0FF and set with 0x100
MaskSet Radio Register 0x9 with mask 0xFF3F and set with 0x40
Enable CRS 0