为什么CC1101读出PARTNUM和VERSION寄存器不对?
我用STM8S驱动CC1101,发现读出的PARTNUM是0x00(代码注释上要求是0x80),读出的VERSION是0x14,已经用逻辑分析仪确认SPI的波形是OK的。请问这是什么原因,谢谢?
INT8U i;
CC1101Reset( );
for( i = 0; i < 22; i++ )
{
CC1101WriteReg( CC1101InitData, CC1101InitData );
}
CC1101SetAddress( 0x05, BROAD_0AND255 );
CC1101SetSYNC( 0x8799 );
CC1101WriteReg(CC1101_MDMCFG1, 0x72); //Modem Configuration
CC1101WriteMultiReg(CC1101_PATABLE, (INT8U*)PaTabel, 8 );
i = CC1101ReadStatus( CC1101_PARTNUM );//for test, must be 0x80
i = CC1101ReadStatus( CC1101_VERSION );//for test, refer to the datasheet
页:
[1]