【正文】
. In order to achieve the voltage conversion the system use the way of resistors sharing voltage.單片機(jī)與TC35I之間的通信是通過串行,和速率是9600。municationsmode是8位異步一個(gè)起始位,8位數(shù)據(jù)位,1位停止。但TC35i串行輸入要求的CMOS電平,和89C52單片機(jī)的串行輸出需要TTL電平。為了實(shí)現(xiàn)電壓轉(zhuǎn)換系統(tǒng)使用電阻共享電壓的方式圖4 nRF905應(yīng)用示意圖圖5 TC35i模塊與單片機(jī)的接口電路軟件設(shè)計(jì)軟件系統(tǒng)包括數(shù)據(jù)采集模塊、溫度補(bǔ)償模塊和無線收發(fā)模塊無線發(fā)送程序,nRF905發(fā)送數(shù)據(jù)的過程如下:1)當(dāng)有數(shù)據(jù)要發(fā)送,單片機(jī)把收信人的地址和數(shù)據(jù)以nRF905按時(shí)間順序的SPI接口。然后把要發(fā)送的數(shù)據(jù)發(fā)送到發(fā)送緩沖器寄存器,WTP命令寫入數(shù)據(jù)寄存器和發(fā)送TX的有效載荷,WTA命令寫德克薩斯州TX地址寄存器地址。2)微控制器設(shè)置trx_ce = 1和tx_en = 1刺激shockbursttm nRF905發(fā)送方式。當(dāng)數(shù)據(jù)傳輸完成后,數(shù)據(jù)準(zhǔn)備好引腳設(shè)置高;3) Beacause of AUTO_RETRAN being high, the data of nRF905 is constantly reissued until3)的auto_retran高因?yàn)?,nRF905芯片的數(shù)據(jù)是不斷地重新發(fā)布到TRX_CE=0.trx_ce = 0。4) when TRX_CE pin is set low, means the data transmission pleted and nRF905 enter idlemode.4)當(dāng)trx_ce引腳設(shè)置低,意味著數(shù)據(jù)傳輸完成,進(jìn)入idlemode nRF905。無線接收程序,nRF905接收數(shù)據(jù)的過程如下:1)當(dāng)TRX _這= 1和TX _ = 0,nRF905 enters shockbursttm receive模式不斷和等待接收數(shù)據(jù)的檢查2)當(dāng)nRF905檢測(cè)載體具有相同的頻段,載波檢測(cè)引腳將被設(shè)置高。3)當(dāng)nRF905接收相匹配的地址,地址匹配引腳將被設(shè)置高。4)當(dāng)分組正確接收,字頭,地址和CRC比特將自動(dòng)removed, and the data ready pin will be set high.除去,和數(shù)據(jù)準(zhǔn)備好引腳將被設(shè)置高。5) MCU set TRX_CE to 0, and nRF905 enter to idle mode.5)設(shè)置為“0”trx_ce單片機(jī)和nRF905,進(jìn)入空閑模式。6) When all the data received, nRF905 set data ready pin and address matching pin to 0, and6)當(dāng)接收的所有數(shù)據(jù)集,nRF905的數(shù)據(jù)準(zhǔn)備好引腳和地址匹配引腳到“0”,和nRF905 turn to shutdown mode or ShockBurstTM transmitmode and receive mode.nRF905轉(zhuǎn)向模式或關(guān)機(jī)shockbursttm transmitmode和接收模式。圖6無線數(shù)據(jù)傳輸?shù)牧鞒虉D圖7無線接收數(shù)據(jù)流程圖 摘要設(shè)計(jì)了一種檢測(cè)可燃?xì)怏w濃度的裝置,具有無線收發(fā)器功能,可以發(fā)送報(bào)警信息到用戶的移動(dòng)迅速通過GSM實(shí)驗(yàn)結(jié)果表明,該裝置具有較高的精度,穩(wěn)定性和可靠性。它可以滿足大多數(shù)這需要可燃?xì)怏w濃度的實(shí)時(shí)監(jiān)測(cè)中的應(yīng)用。工具書類【1】劉氏,陳王Q,H G,吃。電容層析成像技術(shù)對(duì)氣固兩相流循環(huán)流化床的研究[J]測(cè)量。流量測(cè)量儀表,2005,16(3):135144。measurement for circulating fluidized beds [J].Flow Measurement and Instrumentation,2005,16 (23):135144. [2] TGS 813for the Detection of Combustible Gases [DB/OL].20090812.[ 2 ] TGS 813的可燃?xì)怏w檢測(cè)20090812 [分貝/ OL ]。[3] Liu Wei, Chen HeXin, Zhang JunWei,etc. Intelligent control and alarm system based on[ 3 ]劉薇,陳合新,張瑋, TC35i。計(jì)算機(jī)科學(xué)國際會(huì)議和計(jì)算技術(shù)(iscsct),上海,2008:8083機(jī)械制造工藝與設(shè)備使用無線傳輸技術(shù)的可燃?xì)怏w檢測(cè)系統(tǒng)的設(shè)計(jì)DesignTC35i. International Symposium on Computer Science and Computational Technology (ISCSCT), Shanghai, 2008:8083functions and can send the alarm information to user’s mobile promptly through results show that the devices have high precision, stability and reliability. It can meet mostapplications which need realtime monitoring of bustible gas concentration.