LT8900进入休眠注意事项

LT8900在接收完成或发送完成之后,PKT有会一个输出一个高电平,该PKT的高电平在下一次TX/RX前,会保持高电平不变。(默认设定REG41=0xB800,PKT高电平有效,常态为Low。)

        REG7寄存器可知TX,RX=0,此时处于Idle状态。进入休眠模式(SetRFReg(35,GetRFReg(35)|0x4000);SET_nSS();),由于PKT下拉电阻的作用,会在这个电阻上消耗电流几十uA的电流。解决方法:

方法一、休眠时直接将LT8900电源切断;

方法二、将PKT设置为Floating,此时会有3uA左右的漏电流,但是能够接受;

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
by chaofu.zhang //2010-06-01 #ifndef LT8900_H #define LT8900_H //=================================================== // LT8900 Parameter Definition //=================================================== #define SYNCWORD_0 0x34 #define SYNCWORD_1 0x56 #define SYNCWORD_2 0x78 #define SYNCWORD_3 0x9A #define SYNCWORD_4 0xBC #define SYNCWORD_5 0xDE #define SYNCWORD_6 0xF0 #define SYNCWORD_7 0x12 #define LT_XTAL_OSC_EN 1 //Enable crystal #define LT_RSSI_PDN 0 //RSSI operation #define LT_VCO_CAL_EN 1 //calibrate VCO for each RF operation //Reg32 (0x20) #define LT_PREAMBLE_LEN 7 //preamble = 4byte #define LT_SYNCWORD_LEN 3 //syncword = 64bit #define LT_TRAILER_LEN 0 //trailer = 4bit #define LT_DATA_PACKET_TYPE 0 //data packet type = NRZ law #define LT_FEC_TYPE 0 // No FEC #define LT_BRCLK_SEL 0 // NO BRCLK clock output #define LT_R32H ((LT_PREAMBLE_LEN << 5) + (LT_SYNCWORD_LEN << 3) + LT_TRAILER_LEN) #define LT_R32L ((LT_DATA_PACKET_TYPE << 6) + (LT_FEC_TYPE << 4) + (LT_BRCLK_SEL << 1)) //Reg40 (0x28) #define LT_FIFO_EMPTY_THRESHOLD 4 #define LT_FIFO_FULL_THRESHOLD 4 #define LT_SYNCWORD_THRESHOLD 7 #define LT_R40H ((LT_FIFO_EMPTY_THRESHOLD <> 2)) #define LT_R40L ((LT_FIFO_FULL_THRESHOLD<<6) + LT_SYNCWORD_THRESHOLD) //Reg41 (0x29) #define LT_CRC_ON 1 //CRC on #define LT_SCRAMBLE_ON 1 //scrable off #define LT_PACK_LENGTH_EN 1 //first data byte is packet length #define LT_FW_TERM_TX 1 #define LT_AUTO_ACK 0 //auto ACK #define LT_PKT_FIFO_POL 0 //PKT_FLAG is active high #define LT_CRC_INIT_DATA 0x00 //CRC initial data const char code LT_CH_Table[10][8] = { (0,10,20,30,40,50,60,70), (1,11,21,31,41,51,61,71), (2,12,22,32,42,52,62,72), (3,13,23,33,43,53,63,73), (4,14,24,34,44,54,64,74), (5,15,25,35,45,55,65,75), (6,16,26,36,46,56,66,76), (7,17,27,37,47,57,67,77), (8,18,28,38,48,58,68,78), (9,19,29,39,49,59,69,79) }; sbit MISO = P1^0; //input sbit RESET_N = P1^1; //output sbit CLK = P1^2; //output sb
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值