大家好:那个我们编程时候,使用CC1110的半校准老是不成功,请问CC1110的半校准是怎么设置?用软件是怎么实现的尼?能否详细解说下?谢谢
Butterfly:
代码贴出来看看
zexin fu:
回复 Butterfly:
就是第一次运行程序全校准了之后,写0到FSCAL3【5:4】中,然后每次调频后都设置MCSM0.FS.AUTOCAL=01,您能否给个半校准的代码?谢谢
zexin fu:
回复 Butterfly:
你好,你能给我解释下怎么进行半校准吗?软件如何实现?在线等,比较急的,谢谢
zexin fu:
回复 Butterfly:
你好,这个是发送的一段程序 SIDLE(); // Force the Transceiver into the Idle state
setChannel(0); SCAL(); // Start PLL calibration at channel[0]
while (MARCSTATE != MARCSTATE_IDLE); // Wait for calibration to complete FSCAL3 &= 0xCF;while(1){
setChannel(FH_Channel); MCSM0 = 0x18; // AUTOCAL FS calibration DMA_ARM_CHANNEL(DMA_RX); SRX(); // Start PLL calibration at new channel while (MARCSTATE != MARCSTATE_RX); // Wait for calibration to complete SIDLE(); // Force the Transceiver into the Idle state MCSM0 = 0x08; // Manual FS calibration
rfSendPacket(MASTER_TX_TIMEOUT_WO_CALIB) //包含STX和dma
}