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

正文內容

基于at89s51單片機無線傳輸系統(tǒng)設計(文件)

2025-02-03 13:37 上一頁面

下一頁面
 

【正文】 頻率默認值=001101100b=180dFRF= + CH_NOd/10 *(1+ HFREQ_PLLd)MHZHFREQ_ PLL1設置 PLL 在 433或868/915MHZ 模式 默認值=0。在軟件解碼無線數據傳輸系統(tǒng)中,解碼的核心是單片機,電路極為簡單,無須外圍器件。sbit TRX_CE=P1^1。sbit DR=P3^2。sbit CSN=P1^5。sbit key3=P3^7。ix。 MOSI=(bit)(dateamp。 SCK=1。 TX_EN=1。 SpiWrite(0x22)。 SpiWrite(0xE7)。 SpiWrite(0x20)。 CSN=1。 //等帶發(fā)送完成// TRX_CE=0。 PWR_UP=1。 CSN=0。 //輸出功率為10db,不重發(fā),節(jié)電為正常模式 SpiWrite( 0x44)。SpiWrite( 0xE7)。 CSN=1。 Delay(1000)。 Delay(1000)。 key_value=0x00。 key_value=0xa0。 key_value=0xa1。 key_value=0xa2。 TX_EN=0。 led=1。sbit CD=P0^3。sbit MOSI=P0^7。sbit led2=P1^2。void Delay(uint x){ uint i。}void SpiWrite(uchar date){ uchar i=8。 date=1 。 SCK=0。 SCK=1 。 } return date1。 TRX_CE=0。 SpiWrite(0x00)。 //地址寬度設置,為4字節(jié) SpiWrite(0x03)。SpiWrite(0xE7)。 PWR_UP=1。}void Wait_Rec_Packet(void){ if(DR) { TRX_CE=0。 TxRxBuffer[1] = SpiRead()。 TRX_CE=1。 TxRxBuffer[1]=0xff。 } else if(TxRxBuffer[2]==0xa2) { led3=~led3。 DR=1。 success_flag=0。 TRX_CE=1。 TRX_CE=1。 success_flag=0。本設計非常簡便可靠地實現了單片機編碼、發(fā)送、接收、解碼的任務,完成了無線數據傳輸的功能,取得了良好的效果,應用前景廣闊。本文所用的方法可以舉一反三,對不同類型的發(fā)射器的基本思路和方法是相同的,只需要根據具體波形修改其參數和表達式即可,能靈活應用。經實驗測試,上述無線數據傳輸的信號的發(fā)送和接收方法沒有出現傳輸誤碼,可靠實用,在編碼解碼方面降低了硬件成本。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。若在數據傳輸協議中,加上地址幀(設備號識別) 和校驗幀,該方法在計算機系統(tǒng)中將有更廣泛的應用。程序如果改為匯編語言編寫占用空間會比使用C語言編寫更小,完全可應用于各類單片機。當發(fā)射器的類型不同時只需對中斷處理程序的部分參數稍加改動即可,就可以適用于多種紅外遙控器信號的接收和解碼 ,極大地節(jié)約了硬件實現的資源開銷。 } }}4結束語本文著重介紹了無線數據傳輸系統(tǒng)的基本原理及無線數據傳輸的編碼解碼設計。 Delay(5000)。 while(1) { Wait_Rec_Packet()。 Delay(1000)。 led2=0。 } }}void main(void){ Ini_System()。 if(TxRxBuffer[2]==0xa0) { led1=~led1。amp。 CSN=1。 SpiWrite(0x24)。 TX_EN=0。 //接收地址 SpiWrite(0xDE)。 //接收發(fā)送有效數據長度為3字節(jié) SpiWrite(0xE7)。 //CH_NO, SpiWrite(0x0C)。 Delay(2)。 SCK=0。 SCK=0 。 while (i) { d
點擊復制文檔內容
范文總結相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1