Hello,
I have wrote a program but it's not transmitting anything when I look at the spectrum analyzer.
So, I've been debugging the code and especially the radio control states that it goes through.
One thing I noticed is that it does not get into MANCAL mode when RF_SCAL is sent.
Code basically look like this:
void main() {
// setup the registers
// Look at the state now
state1 = ReadFromRfIC(MARCSTATE); // this gives 0
Strobe(RF_SIDLE)
state2 = ReadFromRfIC(MARCSTATE); // this gives 1
Strobe(RF_SCAL)
state3 = ReadFromRfIC(MARCSTATE); // this gives 1
}
Shouldn't the state be 3, 4, or 5 after SCAL command is issued? It says that the calibration process takes about 1ms or so, so I would expect that the state be 3,4 or 5(MANCAL) state during that time.
I can go to any other mode. For example, if I issue RF_STX instead of RF_SCAL, the state reports its in state 19, which is TX.
Am I missing something? (MCSM0 is set for manual calibration. Not auto.) Is Calibration so fast that I don't see it in states 3, 4 or 5 and it simply states at Idle state?
Thank you.