This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem with WOR feature in CC1101

Other Parts Discussed in Thread: CC1100

I want event0 to be 60 sec and Rx_timeout to be 1 sec. Here is my C code written in IAR EW IDE. Assume that SPI writes and reads are working and that GDO0 interrupt is also configured to a pin in the MSP430.

 

void rf_setWakeOnRadio(){

  hal_spiStrobe(CC1100_SIDLE); 

  while(hal_spiStrobe(CC1100_SNOP) & 0xF0){}

 

  rf_writeReg(CC1100_IOCFG0,0x24);  //GD0 Event 0

 

  rf_writeReg(CC1100_MCSM2,0x00);    

  rf_writeReg(CC1100_WOREVT0,0xFF);  //lower byte

  rf_writeReg(CC1100_WOREVT1,0xFF);  //higher byte

  rf_writeReg(CC1100_WORCTRL,0x79);  //event1, power up RC oscillator, WOR_RES

//MCSM0 is configured to 0x18

  __delay_cycles(36000000); 

 

  rf_strobe(CC1100_SWORRST);

  rf_strobe(CC1100_SWOR);

}

 

But I don't get the interrupt at GDO0 at event1. Is my code correct? What are the things I should look at if the aforementioned assumptions hold?

Please help.