基于单片机和nRF905SE的无线射频收发模块的系统设计,,,(西北工业大学现代设计与集成制造技术教育部重点实验室,陕西西安710072)SystemDesignforWirelessRadioTransceiverModuleBasedontheMCUandnRF905SECUIZheng-wei,WANGYan-en,WEISheng-min,DONGQian-li(TheKeyLaboratoryofContemporaryDesignandIntegratedManufacturingTechnologyMinistryofEducation,NorthwesternPolytechnicalUniversity,Xi.an710072,China):应用STC89C52RC单片机和nRF905SE无线射频器,设计了一种无线数据传输系统,该系统由发射模块和接收模块组成实验表明,根据系统所设计的发射模块能够将上位机传输过来的数据经单片机处理后,通过nRF905SE发送出去在接收模块中,nRF905SE则将数据正确接收后通过数码管显示出来,从而实现无线通信:;nRF905SE;;:TP391:A:1001-2257(2011)06-0019-04:2010-12-20Abstract:ThispaperintroducesaschematicdesignofwirelessdatatransmissionsystemwhatconsistsofSTC89C52RCsingle-chipmicrocomput-erandnRF905SEradiofrequencyinverter.Thesystemincludestransmittermoduleandreceivermodule.Experimentsshowthattransmittermodulecantransmitthedatawhichistransferredbythehostcomputerandhavebeenprocessedbythem-icrocontrollerthroughnRF905SEsent.Thereceivermoduledisplaysthedata,whichhavebeenreceivedproperlythroughnRF905SE,bynixietube.There-fore,itachieveswirelesscommunication.Keywords:MCU;nRF905SE;wirelessdatatransmission;RF0,,,,11.1STC89C52RC[1],,8051,AT89C(S)51/52,1.2nRF905SEnRF905SENordic,1.9~3.6V,32QFN(5mm@5mm),433/868/915MHz3ISM,650Ls[2]1,1,1,11,()CRC(),/,SPI,,,-10dBm11mA,12.5mA#19#562011(6)基于单片机和nRF905SE的无线射频收发模块的系统设计nRF905SE22,ShockBurstTMShockBurstTMCPUnRF905SEPWR_UP,TRX_CETX_EN,11nRF905SEPWR_UPTRX_CETX_EN0--SPI10-SPI1101111.31,2STC89C52RC,STC89C52RCnRF905SE2,,,[3]:,,;,;,(),[4]22.1nRF905SE3,MCU,SPI,nRF905SE,SPIMCUTRX_CETX_EN,nRF905SEShockBurstTM,(CRC),(DR)AUTO-RETRAN,nRF905SE,TRX_CE;TRX_CE,nRF905SE,3:ShockBurstTM,,TRX_ENTX_EN,,nRF905SE#20#562011(6)基于单片机和nRF905SE的无线射频收发模块的系统设计2.2nRF905SE,4[5]TRX_CETX_EN,nRF905SEShockBurstTM;650Ls,nRF905SE,;nRF905SE,(CD);CD,,[6];nRF905SE,(AM);nRF905SE,nRF905SECRC,(DR),MCUTRX_CE,nRF905SE,MCUSPI;,nRF905SEAMDR,nRF905SEShockBurstRX,ShockBurstTXPowerdown43KeilSoftware51CKeilC51,,[7-8]a.nRF905SEvoidTxPacket(uchar*TxRxBuf){uchari;CSN=0;SpiWrite(WTP);//for(i=0;i4;i++){SpiWrite(TxRxBuf[i]);}//32CSN=1;Delay(1);//SPI,CSN=0;//SPI,SpiWrite(WTA);//for(i=0;i4;i++)//4{SpiWrite(TxAddress[i]);}CSN=1;//SPITRX_CE=1;//,Delay(1);TRX_CE=0;//Standby}1,SpiWriteWTP,TX2,SpiWriteTX-PayloadTX3,4,SpiWriteWTA,TX5,SpiWriteTX-AddressTX6,TRX_CE=1;,,nRF905b.nRF905SEvoidRxPacket(void){uchari;Delay(100);TRX_CE=0;CSN=0;Delay(1);SpiWrite(RRP);for(i=0;i4;i++){TxRxBuffer[i]=SpiRead();}//CSN=1;Delay(10);#21#562011(6)基于单片机和nRF905SE的无线射频收发模块的系统设计TRX_CE=1;}1,TRX_CE=0,,905Standby2,RRP3,SpiRead,4,DRAMc.,(5),AGV,,5,MCU1,,[9]22STOPV60FV70BT80LT80R2,V**F,V**B,T**L,T**R(**2),AGV**%PWM,nRF905SE,nRF905SE,,,DR=1,,PWM5,,,,,,nRF905SE,,,AGV4STC89C52RCnRF905SE,AGV,,,,500m,,200m,,,,,,,,:[1].STC89C51RC/RD+[DB/OL].[2],,.nRF905[J].,2008,(1):29-31.[3],.ATmega16LnRF401[J].,2007,(2):40-42.[4].[J].,2009,(4):93-95.[5],.[J].,2009,(4):178-179.[6],,.nRF905[J].,2007,27(1):29-32.[7].C[J].,2003,13(8):80-82.[8],.[J].,2008,32(12):5-7.[9],.PCRS232[J].,2009,28(1):74-76.:(1986-),,,,;(1976-),,,,#22#562011(6)