lt8900的初始化
void LT_init()
{
RESET_N=0;
delay1(1000);
RESET_N=1;
CLK=0;
delay1(5000);
LT_writereg(0, 0x6F, 0xE0);这是怎么来的啊?????不知道啊,怎么看,大神,求助啊,下面的也全不知怎来的
LT_writereg(1, 0x56, 0x81);
LT_writereg(2, 0x66, 0x17);
LT_writereg(4, 0x9C, 0xC9);
LT_writereg(5, 0x66, 0x37);
LT_writereg(7, 0x00, 0x00);// use for setting RF frequency and to start or stop TX /RX packets
LT_writereg(8, 0x6C, 0x90);
LT_writereg(9, 0x48, 0x00);//set TX power level
LT_writereg(10, 0x7F, 0xFD);//crystal osc.enabled
LT_writereg(11, 0x00, 0x08);//rssi enabled
LT_writereg(12, 0x00, 0x00);
LT_writereg(13, 0x48, 0xBD);
LT_writereg(22, 0x00, 0xff);
LT_writereg(23, 0x80, 0x05);
LT_writereg(24, 0x00, 0x67);
LT_writereg(25, 0x16, 0x59);
LT_writereg(26, 0x19, 0xE0);
LT_writereg(27, 0x13, 0x00);
LT_writereg(28, 0x18, 0x00);
LT_writereg(32, 0x40, 0x20);//set preamble_len :3 byes. set syncword_len:16 bits ----Reg36[15:0]
LT_writereg(33, 0x3f, 0xC7);
LT_writereg(34, 0x20, 0x00);
LT_writereg(35, 0x03, 0x00);
LT_writereg(36, 0x03, 0x80);//set sync words
LT_writereg(37, 0x03, 0x80);//set sync words
LT_writereg(38, 0x5A, 0x5A);//set sync words
LT_writereg(39, 0x03, 0x80);//set sync words
LT_writereg(40, 0x44, 0x01);
LT_writereg(41, 0xb0, 0x00);//crc on scramble off ,1st byte packet length ,auto ack off
LT_writereg(42, 0xFD, 0xB0);
LT_writereg(43, 0x00, 0x0F);//configure scan_rssi
LT_writereg(50, 0x00, 0x00);
}
|