Rf send

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rf send

630 Views
neil_lin
Contributor I

Hello Dear All:
I have a question , I use the Rf to send signal1 (ex. ......the last one is 0x1A = 0001,1010 )
then send signal2(ex. 0x2B = 0010 , 1011 ......  is the first one)
but when it send the signal1 No.5 bit ( 0001 , 1010 )  it was interrupt to send 0x2B...
normally it should send .......0x1A , 0X2B....... (  ......0001 ,1010 , 0010 , 1011......)

 

and I try to use the RFCR7.RFIF , RFCR7. RCTS or others flag to know when it end the first time(0x1A)

 

rfsend(signal1);
while (RFCR7.RFIF == 1);    // or while (RFCR7. RCTS == 1);

rfsend(signal2);

 

but it not send normally...

 

Did anyone have any idea ?

 

Thanks a lot.
Neil.

Labels (1)
0 Kudos
Reply
2 Replies

554 Views
Rick_Li
NXP Employee
NXP Employee

Please let me know what is the partnumber of your MCU.

could you please upload your schematic here?

0 Kudos
Reply

554 Views
neil_lin
Contributor I

Hi Yong Li:

I use Mpxy series.

I sure that I can send the signal by use its function , the RF Module is OK.

The following is my function.

void RFsend(uchar sData){
int i;

SIMOPT1_RFEN = 1;

RfSet(25,10,4,0x10,0x01,0x00,0x01);     //set RFCR0~6


txData = sData;

for(i=0;i<10;i++)
     RF_wDataBuf(1,&txData,i);     //wirte data to the rf buffer.

PLLCR_set();     //setRLLCR0~3

RFCR7 = 0x1a;

RFCR2_SEND=1;
}


//call function

//RFsend(0x1a);   // only 1 function send 0x1a that is OK.

//RFsend(0x1a);     //but 2 functions it only send 0x2b. the 0x1a 's parameters is cover by 0x2b.
//RFsend(0x2b);

//RFsend(0x1a);     //For this , it will send 0x1a  [delay about 1.5 ms]  0x2b. But I don't want to delay 1.5ms
//while(RFCR7_RFIF == 0);

//RFsend(0x2b);

Thank you.
Neil.

0 Kudos
Reply