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.

CC430 Chip ready issue.

Other Parts Discussed in Thread: CC430F5137, CC430F5135

Hi All,

 

I have a custom made board for CC430F5137 and i am trying to work with with the sample code provided by TI for this micro. I am facing problem with Fixed_LT_FIFO_MHZ_915 project. I loaded this this code on my board  which is powered from two batteries and code does not work. When I halt the debug session, curssor state is at

 while ((RF1AIN&0x04)== 0x04); // chip-ready .

which  means chip is not ready. Can anybody help me for this problem..

 

 

unsigned char Strobe(unsigned char strobe)

{

  unsigned char statusByte = 0;

  unsigned int  gdo_state;

 

  // Check for valid strobe command 

  if((strobe == 0xBD) || ((strobe >= RF_SRES) && (strobe <= RF_SNOP)))

  {

    // Clear the Status read flag 

    RF1AIFCTL1 &= ~(RFSTATIFG);    

 

    // Wait for radio to be ready for next instruction

    while( !(RF1AIFCTL1 & RFINSTRIFG));

 

    // Write the strobe instruction

    if ((strobe > RF_SRES) && (strobe < RF_SNOP))

    {

      gdo_state = ReadSingleReg(IOCFG2);    // buffer IOCFG2 state

      WriteSingleReg(IOCFG2, 0x29);         // chip-ready to GDO2

 

      RF1AINSTRB = strobe; 

      if ( (RF1AIN&0x04)== 0x04 )           // chip at sleep mode

      {

        if ( (strobe == RF_SXOFF) || (strobe == RF_SPWD) || (strobe == RF_SWOR) ) { }

        else  

        {

          while ((RF1AIN&0x04)== 0x04);     // chip-ready ?

          // Delay for ~810usec at 1.05MHz CPU clock, see erratum RF1A7

          __delay_cycles(850);            

        }

      }

      WriteSingleReg(IOCFG2, gdo_state);    // restore IOCFG2 setting

 

      while( !(RF1AIFCTL1 & RFSTATIFG) );

    }

    else                    // chip active mode (SRES)

    {

      RF1AINSTRB = strobe;   

    }

    statusByte = RF1ASTATB;

  }

  return statusByte;

}

Thanks,
Anand

 

   

 

 

**Attention** This is a public forum