微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > MCU和单片机设计讨论 > lt8900无线模块看不明白,有人会吧?帮忙一下咯

lt8900无线模块看不明白,有人会吧?帮忙一下咯

时间:10-02 整理:3721RD 点击:

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);
       
}

这些都是根据芯片手册来操作的,当然看不懂。你得会看芯片手册先呀

好嘿嘿嘿嘿嘿嘿嘿嘿嘿

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top