我使用的是ATmega128L+CC1000,使用868.297200MHz RX 模式,内部晶振,外接14.7456MHz的晶体,配置寄存器如下: WriteToCC1000Register(CC1000_MAIN, 0x11); WriteToCC1000Register(CC1000_FREQ_2A, 0x75); WriteToCC1000Register(CC1000_FREQ_1A, 0xA0); WriteToCC1000Register(CC1000_FREQ_0A, 0x00); WriteToCC1000Register(CC1000_FREQ_2B, 0x58); WriteToCC1000Register(CC1000_FREQ_1B, 0x33); WriteToCC1000Register(CC1000_FREQ_0B, 0x13); WriteToCC1000Register(CC1000_FSEP1, 0x01); WriteToCC1000Register(CC1000_FSEP0, 0xAB); WriteToCC1000Register(CC1000_CURRENT, 0x8C); WriteToCC1000Register(CC1000_FRONT_END, 0x32); WriteToCC1000Register(CC1000_PA_POW, 0x80); WriteToCC1000Register(CC1000_PLL, 0x40); WriteToCC1000Register(CC1000_LOCK, 0x10); WriteToCC1000Register(CC1000_CAL, 0x26); WriteToCC1000Register(CC1000_MODEM2, 0x90); WriteToCC1000Register(CC1000_MODEM1, 0x6F); WriteToCC1000Register(CC1000_MODEM0, 0x27); WriteToCC1000Register(CC1000_MATCH, 0x10); WriteToCC1000Register(CC1000_FSCTRL, 0x01); WriteToCC1000Register(CC1000_PRESCALER, 0x00); WriteToCC1000Register(CC1000_TEST6, 0x10); WriteToCC1000Register(CC1000_TEST5, 0x08); WriteToCC1000Register(CC1000_TEST4, 0x25); WriteToCC1000Register(CC1000_TEST3, 0x04); WriteToCC1000Register(CC1000_TEST2, 0x00); WriteToCC1000Register(CC1000_TEST1, 0x00); WriteToCC1000Register(CC1000_TEST0, 0x00);
写入结束以后,我读出配置寄存器的内容,发现CC1000_PLL的值由写入时的0x40变成了0x42,请问这样正确吗?我写的配置正确吗? 谢谢! |