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.

How to set Timer for ir ganerate

Other Parts Discussed in Thread: REMOTI, CC2530

I have see RemoTI but still not work.

void inittimerIR(void)
{
  //  CLKCONCMD &= ~0x38;;
  //  CLKCONCMD |= 0x18;
 
  //Inittimer1();
  //Inittimer3();
  T1CTL = 0x00;
  T1CCTL0 = 0x10 | 0x04;
  T1CCTL1 = 0x18 | 0x04;
 
  //T1CNTL = 0;
  //  T1CC0 = 85;
  //  T1CC1=21;
  T1CC0L = 2;
  T1CC0H = 0;
  T1CC1L = 1;
  T1CC1H = 0;
 
  T1CNTL = 0;
  T1CTL = 0x00 | 0x02;
 
  // Wait till the single bit is cleared
  while (T1CNTL == 0);
 
  // Stop timer 1
  //T1CTL = 0x00;
 
  //timer3
  //T3CTL = 0x04;
  T3CTL = 0x40 | 0x02;   // 4
  T3CCTL0 = 0x10 | 0x04;
  T3CCTL1 = 0x18 | 0x04;
 
  //  T3CC0 = 0xD2;    //211
  //  T3CC1 = 0x46;    //105
  T3CC0 = 0xD2;    // 
  T3CC1 = 0x46;    // 
  
  //IRCTL |= 1;
}

void SendIRsignal(void)
{
  IRCTL |= 1;
  writeI2C(IRdata,IRdataLen);
  IRCTL |= 0;
}