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.

CC2541

Other Parts Discussed in Thread: CC2541

我用cc2541做透明传输,协议规定,上升沿读,下降沿写,我用中断实现,先写命令后读数据,命令八位,我在最后一位的时候切换触发电平,可是一切换后面紧跟着的一个电平就丢了,我脉冲大概是65us,读写间隔150us??请问我该怎么解决呢?

if((commandrec == 0)&&(timeoutcounter > 0x07))

               {  

                 if ((*write_data)==0xFF)

                       CS = 1;                

                  comdirection = predirection;

                 if(comdirection)

                 {

                     P1DIR &= ~(1<<4);                

                     PICTL &= 0xFD;

                 }  

                 commandrec = 1;

               }