• 大小: 1.53MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-20
  • 语言: 其他
  • 标签: BK2423  2.4G  无线  

资源简介

BEKEN原厂提供的开发资料,有step by step 便于入门

资源截图

代码片段和文件信息

#include “bk2423.h“

UINT8 op_status;

//Bank1 register initialization value

//In the array Bank1_Reg0_13all[] the register value is the byte reversed!!!!!!!!!!!!!!!!!!!!!
code unsigned long Bank1_Reg0_13[]={       
0xE2014B40
0x00004BC0
0x028CFCD0
0x41390099
0x0B86BED9  //high sensitivity mode to enable normal sensitivity modeuse 0x0B869ED9
0xA67F0624  //RSSI measurement disabled to enable RSSI measurementuse 0xA67F0224
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
0x00127305
0x36B48000
};

code UINT8 Bank1_Reg14[]=
{
0x410x100x040x820x200x080x080xF20x7D0xEF0xFF
};

//Bank0 register initialization value
code UINT8 Bank0_Reg[][2]={
{00x0F}
{10x3F}
{20x3F}
{30x03}
{40xff}
{50x17}
{60x0F} //0x0F or 0x2F:2Mbps; 0x07:1Mbps ; 0x27:250Kbps
{70x07}
{80x00}
{90x00}
{120xc3}
{130xc4}
{140xc5}
{150xc6}
{170x20}
{180x20}
{190x20}
{200x20}
{210x20}
{220x20}
{230x00}
{280x3F}
{290x07}
};


code UINT8 RX0_Address[]={0x150x590x230xC60x29};
code UINT8 RX1_Address[]={0x100x560x240xCD0x78};

///////////////////////////////////////////////////////////////////////////////
//                  SPI access                                               //
///////////////////////////////////////////////////////////////////////////////

/**************************************************         
Function: SPI_RW();                                         
                                                            
Description:                                                
Writes one UINT8 to BK2423 and return the UINT8 read 
/**************************************************/        
UINT8 SPI_RW(UINT8 value)                                    
{                                                           
UINT8 bit_ctr;
for(bit_ctr=0;bit_ctr<8;bit_ctr++)   // output 8-bit
{
if(value & 0x80)
{
MOSI=1;
}
else
{
MOSI=0;
}

value = (value << 1);           // shift next bit into MSB..
SCK = 1;                      // Set SCK high..
value |= MISO;          // capture current MISO bit
SCK = 0;               // ..then set SCK low again
}
return(value);              // return read UINT8
}                                                           
/**************************************************/        
                                                            
/**************************************************         
Function: SPI_Write_Reg();                                  
                                                            
Description:                                                
Writes value ‘value‘ to register ‘reg‘              
/**************************************************/        
void SPI_Write_Reg(UINT8 reg UINT8 value)                 
{
CSN = 0;                   // CSN low init SPI transaction

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     946076  2012-03-14 13:59  BK2423-D01原厂资料\BK2423 Datasheet v2.0.pdf

     文件     563826  2011-05-31 14:43  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\BK2423 Programming Guide v1.0.pdf

     文件     524598  2011-05-31 14:48  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\BK2423 Programming Guide v2.0_en.pdf

     文件       4289  2011-05-31 14:08  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\bk2423.h

     文件      11124  2011-05-31 14:30  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\BK2423_Initialize.c

     文件       1666  2011-05-31 14:08  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\BK2423_TxRx.c

     文件       8297  2011-05-31 14:40  BK2423-D01原厂资料\BK2423Reference Code\Reference Code\Test_Func.c

     文件     574974  2012-03-14 13:59  BK2423-D01原厂资料\BK2423Reference Code.rar

     文件      11901  2012-03-14 14:00  BK2423-D01原厂资料\XL2423-D01.pdf

     文件      43238  2012-04-10 17:11  BK2423-D01原厂资料\XL2423-D01尺寸图.PCB

     目录          0  2013-10-17 10:02  BK2423-D01原厂资料\BK2423Reference Code\Reference Code

     目录          0  2013-10-17 10:02  BK2423-D01原厂资料\BK2423Reference Code

     目录          0  2013-10-17 10:02  BK2423-D01原厂资料

----------- ---------  ---------- -----  ----

              2689989                    13


评论

共有 条评论