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

正文內(nèi)容

超聲波熱量表無(wú)線抄表系統(tǒng)畢業(yè)論文-資料下載頁(yè)

2025-06-27 16:21本頁(yè)面
  

【正文】 35195647615230632883include include include include /* Private typedef */typedef enum {FAILED = 0, PASSED = !FAILED} TestStatus。u8 ReadCommand[] = {0xfe,0xfe,0xfe,0x68,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x90,0x1f,0x00,0x3c,0x16}。/* Private define */int sender=0。u8 addoffset=0。/* Private variables */u8 RxBuffer[48]={0}。int Rx_flag=0,Tx_flag=0,i。u8 TxCounter= 0, RxCounter=0,NbrOfDataToRead=0,Timeout=0,itflag=0。volatile TestStatus TransferStatus1 = FAILED, TransferStatus2 = FAILED。@far @interrupt void TIM2_UPD_IRQHandler (void){ITStatus ins=RESET。//采集中斷標(biāo)志ins=TIM2_GetITStatus(TIM2_IT_UPDATE)。//清中斷標(biāo)志TIM2_ClearFlag(TIM2_IT_UPDATE)。//判定是否已過(guò)半秒且為更新中斷Timeout=Timeout+1。Tx_flag=0。if(Timeout==3){Timeout=0。GPIO_WriteReverse(GPIOD,GPIO_PIN_0)。addoffset=addoffset+1。if (addoffset==9){addoffset=1。}}}void main(void){//GPIO_Init(GPIOA, GPIO_PIN_5, GPIO_MODE_OUT_OD_HIZ_FAST)。GPIO_DeInit(GPIOD)。//實(shí)始化GPIOD,配置其第0,2,3位為推挽輸出,高電平.GPIO_Init(GPIOD, GPIO_PIN_0|GPIO_PIN_2|GPIO_PIN_3, GPIO_MODE_OUT_PP_HIGH_FAST)。CLK_DeInit()。/*High speed internal clock prescaler: 1*/CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV8)。CLK_HSICmd(ENABLE)。UART2_DeInit()。UART2_Init((u32)2400, UART2_WORDLENGTH_9D, UART2_STOPBITS_1, UART2_PARITY_EVEN, UART2_SYNCMODE_CLOCK_DISABLE, UART2_MODE_TXRX_ENABLE)。TIM2_DeInit()。//定時(shí)器2初始化,每2秒中斷一次TIM2_TimeBaseInit(9, 65535)。//使能定時(shí)器2更新中斷TIM2_ITConfig(TIM2_IT_UPDATE, ENABLE)。// 允許CPU全局中斷enableInterrupts()。while(1){if(Tx_flag == 0){Tx_flag = 1。sender=19。TxCounter=0。while (sender){// Wait until end of transmitwhile (UART2_GetFlagStatus(UART2_FLAG_TXE) == RESET){}if (sender==13){// Write one byte in the UART1 Transmit Data RegisterUART2_SendData8(ReadCommand[TxCounter++]+addoffset)。}else{UART2_SendData8(ReadCommand[TxCounter++])。}}//啟動(dòng)定時(shí)器2TIM2_Cmd(ENABLE)。}// Wait the byte is entirtly received by UART3if(UART2_GetFlagStatus(UART2_FLAG_RXNE) != RESET){// Store the received byte in the RxBuffer2RxBuffer[RxCounter] = UART2_ReceiveData8()。if(RxBuffer[47]==0xfc){Rx_flag = 1。GPIO_WriteReverse(GPIOD,GPIO_PIN_1)。}RxCounter++。}if(Rx_flag == 1){Timeout =0。TIM2_Cmd(DISABLE)。Rx_flag = 0。NbrOfDataToRead = 48。RxCounter =0。TxCounter=0。while (NbrOfDataToRead){//Wait until end of transmitwhile (UART2_GetFlagStatus(UART2_FLAG_TXE) == RESET){}// Write one byte in the UART1 Transmit Data RegisterUART2_SendData8(RxBuffer[TxCounter++])。}for (i=0。i48。i++){RxBuffer[i]=0x00。}Tx_flag = 0。addoffset=addoffset+1。if (addoffset==9){addoffset=0。}}}}/*** @brief Compares two buffers.* @param[in] pBuffer1 First buffer to be pared.* @param[in] pBuffer2 Second buffer to be pared.* @param[in] BufferLength Buffer39。s length* @retval TestStatus Status of buffer parison* PASSED: pBuffer1 identical to pBuffer2* FAILED: pBuffer1 differs from pBuffer2* @par Required preconditions:* None*/目 錄摘要....................................................................IAbstract...............................................................II第1章 緒論............................................................1.........................................................1............................................1 自動(dòng)抄表系統(tǒng)的研究背景....................................1 國(guó)外自動(dòng)抄表系統(tǒng)的現(xiàn)狀.....................................3 國(guó)內(nèi)自動(dòng)抄表系統(tǒng)的現(xiàn)狀....................................4 選題依據(jù)及意義.................................................4 本課題研究的主要內(nèi)容..........................................6第2章 系統(tǒng)概述........................................................7 硬件終端設(shè)計(jì)...................................................7 熱量表......................................................7 采集器......................................................7 集中器......................................................8 中心服務(wù)器.................................................9 系統(tǒng)軟件介紹...................................................9 采集器軟件..................................................9 集中器軟件..................................................9 中心軟件...................................................10.......................................................10第3章 超聲波熱量表的研究...........................................12 超聲波流量的監(jiān)測(cè)方法.........................................12 時(shí)差法超聲波流量測(cè)量原理.................................12 時(shí)差法測(cè)量的優(yōu)點(diǎn)..........................................14 超聲波傳播時(shí)間測(cè)量...........................................14. 溫度測(cè)量......................................................16 溫度測(cè)量原理..............................................16 溫度測(cè)量的實(shí)現(xiàn)............................................16 影響測(cè)溫精度的因素.......................................19 熱量算法的設(shè)計(jì)...............................................20 熱量計(jì)算原理..............................................20 熱量計(jì)算方法..............................................21......................................................23第4章 數(shù)據(jù)采集與傳輸?shù)脑O(shè)計(jì)與實(shí)現(xiàn)................................25 MBUS儀表總線設(shè)計(jì).........................................25 MBUS儀表總線協(xié)議.....................................25 MBUS總線的結(jié)構(gòu)模型及特點(diǎn)............................25 MBUS儀表總線協(xié)議.....................................27 數(shù)據(jù)的傳輸..............................................30 MBUS電路的設(shè)計(jì).......................................32 ZIGBEE無(wú)線通訊設(shè)計(jì)........................................33 ZIGBEE知識(shí)介紹.........................................33 ZIGBEE技術(shù)網(wǎng)絡(luò)層的體系結(jié)構(gòu)研究.......................35 ZIGBEE的網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)..................................36 網(wǎng)絡(luò)的組建原理........................................
點(diǎn)擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1