This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

task time of radio from DISABLE to RX

HI:

i hava a sender and it send a frame every 15ms ,not use any protocol,and reciver code like as follow:
while (1) {
    Rf_StartRx(ReciverSC.RfBufPointer, ReciverSC.RfBufLen, 7);   // start up and enter RX
    while (0 == ReciverSC.FlagRfRecv); // wait for recive a frame
    ReciverSC.FlagRfRecv = 0;
    Rf_Stop(); //stop and disable RADIO
    SystemTick_ForceSleep(10); //goto sleep,10ms
}

the time of SystemTick_ForceSleep must less then 10ms,otherwise it will lose frame.in other words,Reciver must enter RX 5ms in advance before Sender send a frame,i think somewhere wrong but i cant fint id,can anyone help me?

Related