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.

CC2530 TIMER4

Other Parts Discussed in Thread: CC2530

I want used CC2530 timer4  generator pwm signal,Now ,Normal frequency,but by changing the T4CC1 unable to change the duty cycle.the pwm output is P2.0 .

void pwm_timer4_init(void)
{
      P2SEL  &=~0X01;      //P2.0默认为普通端口
      PERCFG |= 0x10;
      P2SEL  |= 0X01;
      P2DIR  |= 0X01;     //p2.0输出
      P2INP  &=~0X00;   
      T4CNT  = 0X00; //initial value
      T4CTL  |= 0x04; //clear timer3     
      T4CTL  |=0XE6;   
      T4CCTL0 = 0x1C;
}

void pwm_timer4_send(void)
{
      T4CC0 = 0xFA; //overflow value
      T4CC1 = 0X5A;    
      T4CTL |= 0x10; //start timer3
}