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 定时器 定时误差

Other Parts Discussed in Thread: CC2530

cc2530  2.5.1a

使用定时器4

T4CTL |= (1<<1);
T4CTL &= ~(1<<0); //模模式

T4CTL &= ~( 1<<5 );
T4CTL |= ( 1<<6 );
T4CTL |= ( 1<<7 ); //分频/64

T4CCTL0 |= 0x40;
T4CCTL0 |= 0x04;

TIMIF &= ~( 1<<4 ); 
T4IF = 0; 
T4CTL |= ( 1<<3 ); 

T4CTL |= ( 1<<4 ); 

//T4CTL &= ~( 1<<4 ); 
T4CC0 = 25; 
IEN1 |= ( 1<<4 ); 
EA = 1; 

定时中断中取反IO

使用示波器测试有正负30us误差。

是因为协议栈在某些时候屏蔽了总中断?