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.

cc2530spi主模式clk

Other Parts Discussed in Thread: CC2541, CC2530

PERCFG &= ~0x01;  //USART0备用位置1

P2DIR &= ~0xC0;  //USART0优先
P0SEL |= 0x2C;  
P0SEL &= ~0x10;
P0DIR |= 0x10; // I/O方向
U0CSR |= 0x40; //允许接收
U0CSR &= ~0xA0; //SPI主模式

U0BAUD = 0xD8;
U0GCR |= 0x0B; //波特率

U0GCR &= ~0xE0; //上升沿先读低位

这是对2530spi主模式的初始化,然后一直在P0_5上测不到CLK正弦波(晶振正常),请问这程序有问题吗还是差什么步骤?望大佬驻足指教。