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.

CC1110 SPI问题



大家好!使用STM32做SPI主机,4个CC1110做从机组成的一主多从的通讯模式。这是我写的SPI接收中断:

#pragma vector=URX0_VECTOR
__interrupt void URX0_IRQ(void)
{

while(USART0_BUSY());
dat = U0DBUF;
}。

问题1:请问SPI接收数据是否这样获取呢?为什么每次dat都是0XFF呢?

问题2:STM32做主机获取CC1110的一组数据,依次使能片选信号,通过连续发送哑巴字节的从CC1110读回一组数据。问题是CC1110何时将要发送的数据放入U0DBUF = data。是在接收中断里面吗?