freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于at89s51單片機(jī)無線傳輸系統(tǒng)設(shè)計(參考版)

2025-01-19 13:37本頁面
  

【正文】 s society, People urgently hope exchange information anytime, anywhere without constraints of time. A variety of intelligent control system is also inseparable from the transmission of the data wireless data transmission is new transmission,and its different from the traditional wired transmission, the system does not require transmission cable and it cheap, simple be construction. Now, there are a lot of electrical products (such as domestic appliances) control are also using wireless data transmission,some electrical products function with wireless data transmission relatively simple, wireless data transmission signal receiving recognition are often used coding modulation matching decode electrical products with more of plex functions wireless data transmission, which wireless data transmission signal recognition and decoding with MCU, and its also use a variety of coding modulation. This project describes a wireless data transmission program base on AT89S51 MCU and nRF905 modules, and identification programming method MCU for reference.Keywords:AT89S51 Micro Controller Unit, nRF905 module, Wireless data transmission。若在數(shù)據(jù)傳輸協(xié)議中,加上地址幀(設(shè)備號識別) 和校驗(yàn)幀,該方法在計算機(jī)系統(tǒng)中將有更廣泛的應(yīng)用。經(jīng)實(shí)驗(yàn)測試,上述無線數(shù)據(jù)傳輸?shù)男盘柕陌l(fā)送和接收方法沒有出現(xiàn)傳輸誤碼,可靠實(shí)用,在編碼解碼方面降低了硬件成本。程序如果改為匯編語言編寫占用空間會比使用C語言編寫更小,完全可應(yīng)用于各類單片機(jī)。本文所用的方法可以舉一反三,對不同類型的發(fā)射器的基本思路和方法是相同的,只需要根據(jù)具體波形修改其參數(shù)和表達(dá)式即可,能靈活應(yīng)用。當(dāng)發(fā)射器的類型不同時只需對中斷處理程序的部分參數(shù)稍加改動即可,就可以適用于多種紅外遙控器信號的接收和解碼 ,極大地節(jié)約了硬件實(shí)現(xiàn)的資源開銷。本設(shè)計非常簡便可靠地實(shí)現(xiàn)了單片機(jī)編碼、發(fā)送、接收、解碼的任務(wù),完成了無線數(shù)據(jù)傳輸?shù)墓δ?,取得了良好的效果,?yīng)用前景廣闊。 } }}4結(jié)束語本文著重介紹了無線數(shù)據(jù)傳輸系統(tǒng)的基本原理及無線數(shù)據(jù)傳輸?shù)木幋a解碼設(shè)計。 success_flag=0。 Delay(5000)。 TRX_CE=1。 while(1) { Wait_Rec_Packet()。 TRX_CE=1。 Delay(1000)。 success_flag=0。 led2=0。 DR=1。 } }}void main(void){ Ini_System()。 } else if(TxRxBuffer[2]==0xa2) { led3=~led3。 if(TxRxBuffer[2]==0xa0) { led1=~led1。 TxRxBuffer[1]=0xff。amp。 TRX_CE=1。 CSN=1。 TxRxBuffer[1] = SpiRead()。 SpiWrite(0x24)。}void Wait_Rec_Packet(void){ if(DR) { TRX_CE=0。 TX_EN=0。 PWR_UP=1。 //接收地址 SpiWrite(0xDE)。SpiWrite(0xE7)。 //接收發(fā)送有效數(shù)據(jù)長度為3字節(jié) SpiWrite(0xE7)。 //地址寬度設(shè)置,為4字節(jié) SpiWrite(0x03)。 //CH_NO, SpiWrite(0x0C)。 SpiWrite(0x00)。 Delay(2)。 TRX_CE=0。 SCK=0。 } return date1。 SCK=0 。 SCK=1 。 while (i) { date1=1 。 SCK=0。 SCK=1。 date=1 。 MOSI=(bit)(dateamp。}void SpiWrite(uchar date){ uchar i=8。ix。void Delay(uint x){ uint i。uchar TxRxBuffer[3]。sbit led2=P1^2。sbit CSN=P2^1。sbit MOSI=P0^7。sbit DR=P0^5。sbit CD=P0^3。sbit TRX_CE=P0^1。 led=1。 PWR_UP=1。 TX_EN=0。 TxPacket()。 key_value=0xa2。 if(!key3) { Delay(3)。 key_value=0xa1。 if(!key2) { Delay(3)。 key_value=0xa0。 if(!key1) { Delay(3)。 key_value=0x00。 TRX_CE=1。 Delay(1000)。 DR=1。 Delay(1000)。 TRX_CE=1。 CSN=1。SpiWrite( 0xE7)。SpiWrite( 0xE7)。SpiWrite( 0x03)。 //輸出功率為10db,不重發(fā),節(jié)電為正常模式 SpiWrite( 0x44)。 //配置命令// SpiWrite( 0x6C)。 CSN=0。 TX_EN=0。 PWR_UP=1。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1