请教SI4464
时间:10-02
整理:3721RD
点击:
请教大虾们,我用STM32驱动si4464,上电延时4ms后发了power-up指令,之后读取01芯片版本,收到了cts=0xFF,后面收版本信息时一直收不对
/* 1st phase: SPI1 Master*/
SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
SPI_InitStructure.SPI_Mode = SPI_Mode_Master;
SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;
SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low;
SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge;
SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; //硬件置低
SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_256; //SI4464 max to 10MHZ
SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
SPI_InitStructure.SPI_CRCPolynomial = 7;
SPI_Init(SPI1, &SPI_InitStructure);
当时钟为 SPI_BaudRatePrescaler_256,收到几个乱数,当时候设为其他值时收到的是全0,请问这个设置是否正确啊?
/* 1st phase: SPI1 Master*/
SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
SPI_InitStructure.SPI_Mode = SPI_Mode_Master;
SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;
SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low;
SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge;
SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; //硬件置低
SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_256; //SI4464 max to 10MHZ
SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
SPI_InitStructure.SPI_CRCPolynomial = 7;
SPI_Init(SPI1, &SPI_InitStructure);
当时钟为 SPI_BaudRatePrescaler_256,收到几个乱数,当时候设为其他值时收到的是全0,请问这个设置是否正确啊?
我刚看过了你的问题,这里是RF社区,讨论微波射频的工程师比较多,建议你发到ST社区的论坛:http://www.stmcu.org/
当然,如果社区里有朋友遇到过类似的问题也可以帮忙解决。