LowPowerLab Forum

Hardware support => RF - Range - Antennas - RFM69 library => Topic started by: huuchinh02 on March 15, 2016, 06:43:42 AM

Title: Problem with SyncAddress Interrupt
Post by: huuchinh02 on March 15, 2016, 06:43:42 AM
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!
Title: Re: Problem with SyncAddress Interrupt
Post by: TomWS on March 15, 2016, 06:28:57 PM
I've moved this to its own thread and added this comment just to pop this back to the top of the list.

Tom
Title: Re: Problem with SyncAddress Interrupt
Post by: huuchinh02 on March 15, 2016, 09:20:43 PM
Hi Tom,

Thanks you very much.  ;D