Problem with SyncAddress Interrupt

Started by huuchinh02, March 15, 2016, 06:43:42 AM

huuchinh02

I am working this module. I am getting a hard problem and I haven't yet good results for 2 weeks.

My problems is the module sometime get Syncaddress interrupt without CrcOk interrupt (~10% drop) and I don't want to get it. This is my interrupt function code

void RMF69_ISR()
{
  stt1=Read(IRQ_FLAG1);
  stt2=Read(IRQ_FLAG2);

  if(stt2 & CRC_OK)
{
    Read_fifo();
    Write(IRQ_FLAG2,FifoOverRun); // Clear FIFO and Flags
    Write(DIO_MAPPING1,DIO0_10); // Change interrupt to Syncaddress in Rx Mode
}
else if (stt1 & SYNC_ADD)
{
    Write(DIO_MAPPING1,DIO0_00); // Change interrupt to CrcOk in Rx Mode
}
}
I enabled AutoRxRestart, Carrier Fre = 868, FDev=50khz, bitrates = 100kps, FSK_TYPE
Power: PA0 = 0, PA1=1, PA2=1, power = 28
LNA: 50Ohm, AFC enbale (Gain select auto) 

Thank you to read!

TomWS

I've moved this to its own thread and added this comment just to pop this back to the top of the list.

Tom

huuchinh02