Radio 2062 Channel Tune ( u8 channel)
- Find the line in the Radio 2062 Specific Channel Code Table corresponding to the input channel
Set bit 0x04 in Radio Register 0x4042
Write the Data1 entry from the table to Radio Register 0x1E
Write the Data2 entry from the table to Radio Register 0x20
Write the Data3 entry from the table to Radio Register 0x21
Write the Data4 entry from the table to Radio Register 0x52
Write the Data5 entry from the table to Radio Register 0x4018
Write the Data6 entry from the table to Radio Register 0x24
Write the Data7 entry from the table to Radio Register 0x25
Write the Data8 entry from the table to Radio Register 0x54
Write the Data9 entry from the table to Radio Register 0x53
- Set tmp1 to Crystal frequency / 1000
- Set tmp2 to pdiv * 1000 (pdiv comes from the private area)
Write 0xCC to Radio Register 0x4055
Write 0x07 to Radio Register 0x4056
If the frequency for the selected channel > 3000
- Set tmp3 to that frequency * tmp2
- Otherwise
- Set tmp3 to 2 * tmp2 * channel frequency
- Set tmp4 to 48 * tmp1
- Copy tmp3 to tmp5
- Set tmp6 to tmp5 / tmp4
- Set tmp7 to tmp5 % tmp4
Write tmp6 to Radio Register 0x404E
- Set tmp5 to tmp7 * 0x100
- Set tmp6 to tmp5 / tmp4
- Set tmp7 to tmp5 % tmp4
Write tmp6 to Radio Register 0x404F
- Set tmp5 to tmp7 * 0x100
- Set tmp6 to tmp5 / tmp4
- Set tmp7 to tmp5 % tmp4
Write tmp6 to Radio Register 0x4050
- Set tmp5 to tmp7 * 0x100
- Set tmp6 to tmp5 / tmp4
- Set tmp7 to tmp5 % tmp4
Write tmp6 + ((2 * tmp7) / tmp4) to Radio Register 0x4051
Read Radio Register 0x4047 and save in tmp8
- Set tmp9 to ((2 * tmp3 * (tmp8 + 1)) + (3 * tmp1)) / (6 * tmp1)
Write (tmp9 >> 8) + 16 to Radio Register 0x404B
Write tmp9 & 0xFF to Radio Register 0x404C
If Radio Register 0x4037 & 0x10 is not zero
Write 0xFC to Radio Register 0x4055
Write 0 to Radio Register 0x4056
If Radio Register 0x4037 & 0x10 is not zero
- This should be reported if debugging on
Clear bit 0x04 in Radio Register 0x4042
Radio 2062 Specific Channel Code Table
Channel |
Frequency |
Data1 |
Data2 |
Data3 |
Data4 |
Data5 |
Data6 |
Data7 |
Data8 |
Data9 |
1 |
2412 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
2 |
2417 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
3 |
2422 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
4 |
2427 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
5 |
2432 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
6 |
2437 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
7 |
2442 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
8 |
2447 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
9 |
2452 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
10 |
2457 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
11 |
2462 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
12 |
2467 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
13 |
2472 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
14 |
2484 |
0xFF |
0xFF |
0xB5 |
0x1B |
0x24 |
0x32 |
0x32 |
0x88 |
0x88 |
34 |
5170 |
0x00 |
0x22 |
0x20 |
0x84 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
38 |
5190 |
0x00 |
0x11 |
0x10 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
42 |
5210 |
0x00 |
0x11 |
0x10 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
46 |
5230 |
0x00 |
0x00 |
0x00 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
36 |
5180 |
0x00 |
0x11 |
0x20 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
40 |
5200 |
0x00 |
0x11 |
0x10 |
0x84 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
44 |
5220 |
0x00 |
0x11 |
0x00 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
48 |
5240 |
0x00 |
0x00 |
0x00 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
52 |
5260 |
0x00 |
0x00 |
0x00 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
56 |
5280 |
0x00 |
0x00 |
0x00 |
0x83 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
60 |
5300 |
0x00 |
0x00 |
0x00 |
0x63 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
64 |
5320 |
0x00 |
0x00 |
0x00 |
0x62 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
100 |
5500 |
0x00 |
0x00 |
0x00 |
0x30 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
104 |
5520 |
0x00 |
0x00 |
0x00 |
0x20 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
108 |
5540 |
0x00 |
0x00 |
0x00 |
0x20 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
112 |
5560 |
0x00 |
0x00 |
0x00 |
0x20 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
116 |
5580 |
0x00 |
0x00 |
0x00 |
0x10 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
120 |
5600 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
124 |
5620 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
128 |
5640 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
132 |
5660 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
136 |
5680 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
140 |
5700 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
149 |
5745 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
153 |
5765 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
157 |
5785 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
161 |
5805 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
165 |
5825 |
0x00 |
0x00 |
0x00 |
0x00 |
0x3C |
0x77 |
0x37 |
0xFF |
0x88 |
184 |
4920 |
0x55 |
0x77 |
0x90 |
0xF7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
188 |
4940 |
0x44 |
0x77 |
0x80 |
0xE7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
192 |
4960 |
0x44 |
0x66 |
0x80 |
0xE7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
196 |
4980 |
0x33 |
0x66 |
0x70 |
0xC7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
200 |
5000 |
0x22 |
0x55 |
0x60 |
0xD7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
204 |
5020 |
0x22 |
0x55 |
0x60 |
0xC7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
208 |
5040 |
0x22 |
0x44 |
0x50 |
0xC7 |
0x3C |
0x77 |
0x35 |
0xFF |
0xFF |
212 |
5060 |
0x11 |
0x44 |
0x50 |
0xA5 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |
216 |
5080 |
0x00 |
0x44 |
0x40 |
0xB6 |
0x3C |
0x77 |
0x35 |
0xFF |
0x88 |