sairfan1
Full Member level 1
- Joined
- Jun 12, 2010
- Messages
- 97
- Helped
- 4
- Reputation
- 8
- Reaction score
- 7
- Trophy points
- 1,288
- Location
- Regina, Canada
- Activity points
- 2,384
I was reading datasheet for module RF96 (datasheet attached), by reading the datasheet I understand that we have to set register values to set carrier frequency as descrubed on the page 103, this topic is also described in some other sections of the datasheet like Pages, 13, 53, 77, 88
Formula described to calculate configuration value for registers RefFrLsb, RefFrMid, RefFrMsb is as below (ref page 103)
fRF = (XOSC) * Fr f / 2^19
Where they did not described what are these variables RF and Fr, through different tables in the datasheet I took the idea and tried to calculate the value as they described in the example:
OSC = 32MHz
Frequncy = 434 MHz
fRF = 32,000,000 * 434,000,000 / 524288
fRF = 13,888,000,000,000,000 / 524288
fRF = 26,489,257,812.5
which is 0x6 2AE1 FF54 and it does not match with the example in datasheet calculated value 0x6C 8000
I'm looking for help where am I making mistake. Thanks
Formula described to calculate configuration value for registers RefFrLsb, RefFrMid, RefFrMsb is as below (ref page 103)
fRF = (XOSC) * Fr f / 2^19
Where they did not described what are these variables RF and Fr, through different tables in the datasheet I took the idea and tried to calculate the value as they described in the example:
OSC = 32MHz
Frequncy = 434 MHz
fRF = 32,000,000 * 434,000,000 / 524288
fRF = 13,888,000,000,000,000 / 524288
fRF = 26,489,257,812.5
which is 0x6 2AE1 FF54 and it does not match with the example in datasheet calculated value 0x6C 8000
I'm looking for help where am I making mistake. Thanks