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

正文內(nèi)容

基于nrf905單片機控制的遙控車畢業(yè)設(shè)計論文-閱讀頁

2025-07-12 22:53本頁面
  

【正文】 讓我在大學(xué)經(jīng)歷了許多難忘的事情,讓我的校園生活過的豐富多彩。最后我要感謝我可敬的父母,你們永遠是我最堅強的后盾,一直默默在為我無私的付出,是您們的支持才讓我走到今天這一步,讓我有機會上大學(xué),有機會接受高等教育并且順利畢業(yè)。 附錄一: 原理圖:接收模塊發(fā)射模塊附錄二:發(fā)射程序:include define uchar unsigned char define uint unsigned int define WC 0x00 define RC 0x10 define WTP 0x20 define RTP 0x21 define WTA 0x22 define RTA 0x23 define RRP 0x24 typedef struct RFConfig{ uchar n。}RFConfig。uchar data TxBuf[32]。uchar bdata DATA_BUF。sbit flag1 = DATA_BUF^0。 //TX、RX模式//sbit PWR_UP = P1^1。sbit MOSI = P1^3。 //SPI使能//sbit SCK = P1^5。sbit AM = P1^7。sbit key_q= P2^3。 //后退sbit key_l = P2^0。 //右轉(zhuǎn)sbit led = P3^3。 while(n) for(i=0。i++)。 DATA_BUF=byte。i8。 else MOSI=0。 // 時鐘 DATA_BUF=DATA_BUF1。 } }void Config905(void){ uchar i。 SpiWrite(WC)。i。 } CSN=1。 CSN=0。 //寫地址命令// for (i=0。i++) { SpiWrite(TxBuf[i])。 Delay(1)。 SpiWrite(WTA)。i4。 } CSN=1。 Delay(1)。 } void SetTxMode(void) { TX_EN=1。 Delay(1)。 TRX_CE=1。 } void init_nrf905(){ CSN=1。 DR=1。 PWR_UP=1。 TX_EN=0。 SetRxMode()。 for(i=0。i++) for(j=0。j++)。 led = 1。 delay_1ms(100)。 TxBuf[0] = 1。 TxBuf[0] = 2。 TxBuf[0] = 3。 TxBuf[0] = 4。 if((key_s == 1) amp。 (key_x == 1) amp。 (key_l == 1) amp。 (key_r == 1)) { led = 1。 } SetTxMode()。 }}接收模塊:include //調(diào)用單片機頭文件define uchar unsigned char //無符號字符型 宏定義 變量范圍0~255define uint unsigned int //無符號整型 宏定義 變量范圍0~65535define WC 0x00 // Write configuration register mand define RC 0x10 // Read configuration register manddefine WTP 0x20 // Write TX Payload manddefine RTP 0x21 // Read TX Payload manddefine WTA 0x22 // Write TX Address manddefine RTA 0x23 // Read TX Address manddefine RRP 0x24 // Read RX Payload mandsbit zuo1= P2^3。 sbit you1= P2^1。 sbit led = P3^3。 uchar buf[10]。code RFConfig RxTxConf ={ 10, 0x01, 0x0c, 0x44, 0x20, 0x20, 0xcc, 0xcc, 0xcc,0xc0, 0x58 }。uchar data RxBuf[32]。uchar bdata DATA_BUF。sbit flag1 = DATA_BUF^0。sbit PWR_UP = P1^1。sbit MOSI = P1^3。sbit SCK = P1^5。sbit AM = P1^7。void Delay(uchar n){ uint i。i80。 }void Config905(void){ uchar i。 // Spi enable for write a spi mand SpiWrite(WC)。i。 } CSN=1。 DATA_BUF=byte。s parameter into a bdata variable for (i=0。i++) // Setup byte circulation bits { if (flag) // Put on data line MOSI=1。 SCK=1。 // Shift DATA_BUF SCK=0。 for (i=0。i++) // Setup byte circulation bits { DATA_BUF=DATA_BUF1。 // Set clock line high if (MISO) flag1=1。 SCK=0。 // Return function parameter}void RxPacket(void){ uchar i。 // Set nRF905 in standby mode // 設(shè)置nRF905在待機模式 CSN=0。 // Read payload mand for (i=0。i++) { RxBuf[i]=SpiRead()。 // Disable spi while(DR||AM)。}void SetRxMode(void){ TX_EN=0。 Delay(1)。 // Spi禁用 SCK=0。 // Init DR for input AM=1。 // nRF905 power on TRX_CE=0。 // Rx模式 Config905()。 // Set nRF905 in Rx mode }void go(){ zuo1=1。 you1=1。 }void back(){ zuo1=0。 you1=0。 }void left(){ zuo1=0。 you1=1。 }void right(){ zuo1=1。 you1=0。 }void stop(){ zuo1=1。 you1=1。 }void main(){ init_nrf905()。 while(1) { if(DR) { RxPacket()。 led = 0。 led = 0。 led = 0。 led = 0。 led
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1