【正文】
s not have any talk of mutiny on this ship, he jokes. Always remember: You are outnumbered.They are safe, easy and family friendly, no wonder growing numbers of people are spending their vacations on a cruise ship. Zhou Wenting goes aboard. Imagine spending a holiday in a place where your every whim is catered for, where the sun and the ocean are on your doorstep and delicious food is served around the clock. You can go shopping in stores that have rock bottom prices, and if yo u grow tired of all the pampering, your bed is available anytime. You can travel with the whole family too, because the re are activities tailored to suit all age groups. 21 A vacation on an elegant cruise liner will meet the desire for an exotic experience, but will also be an enjoyable travel experience when acpanied by young children or elderly parents. Familyfriendly, safe and secure, cruise vacations have bee very popular in China. During the uping National Day Golden Week holiday, from Oct 1 to Oct 7, many families will board a ship to enjoy an exciting holiday at sea. The development of the cruise industry in recent years has been impressive. Statistics from the China Cruise and Yacht Industry Association show Chinese residents made million trips on cruise liners last year, pared with nearly 10,000 in 2021. The association pre dicts the market will continue to boom in the next two years. Residents of Shanghai, the city th at boasts the largest cruise ports of the four on the Chinese mainland, are more likely to book cruises than people in other parts of the country, according to a report published by Baidu Inc39。ll e to seeing this fearsome creature on this voyage around southern Greenland. Tomorrow we39。re looking at rocks that are 2 billion years old. Some of the harsh striations have been dated to the tectonic plate shifts of 65 million years ago that broke up the Earth39。 他對(duì)學(xué)生認(rèn)真負(fù)責(zé)的態(tài)度讓我由衷地敬佩。 while(ad_drdy==1)。 //寫通訊寄存器 ,選擇通道 1,并建立下一個(gè)操作為寫時(shí)鐘寄存器 ad_write(0x04)。 ad_reset=1。 j=ad_dout。 data unsigned char kk。 } //設(shè)置 A/D轉(zhuǎn)換模式 .然后可以連續(xù)讀出結(jié)果 . Void ad_set (unsigned char ch,unsigned char gain) // //ch=1,2。0x80。 i=0。 15 參考文獻(xiàn) [1] 關(guān)德新,馮文全 . 單片機(jī)外圍器件實(shí)用手冊(cè) [M].京:北京航空航天大學(xué)出版社, 1998,~98 [2] 郁有文,常健,程繼紅 . 傳感器原理及工程應(yīng)用 [M].西安:西安電子科技大學(xué)出版社, ~200 [3] 范立南,李雪飛,尹授 遠(yuǎn) . 單片微型計(jì)算機(jī)控制系統(tǒng)設(shè)計(jì) [M].北京:人民郵電出版社 ,~100 [4] 高吉祥 . 電子技術(shù)基礎(chǔ)試驗(yàn)與課程設(shè)計(jì) [M].北京:電子工業(yè)出版社, ~99 [5] 唐俊杰 ,高秦生 . 微型計(jì)算機(jī)原理及應(yīng)用 [M].北京:高等教育出版社, ~150 [6] 康華光 ,陳大欽 . 模擬電子技術(shù)基礎(chǔ) [M].北京 :高等教育出版社 ,, 10~200 [7] 張毅剛主編 . 單片機(jī)原理及應(yīng)用 [M].北京:高等教育出版社 ,~250 [8] 厲志飛 . 電子衡器的發(fā) 展趨勢(shì) [J].現(xiàn)代計(jì)量?jī)x器與技術(shù), 2021,( 04) [9] 王艷春 . 智能電子稱重系統(tǒng)的設(shè)計(jì) [J].微計(jì)算機(jī)信息, 2021,( 04) [10] 張景元 . 一種基于單片機(jī)的多功能電子稱 [J].微計(jì)算機(jī)信息, 2021,( 04) [11] 孫鵬,徐發(fā)明 . 模擬稱重傳感器信號(hào)發(fā)生器的設(shè)計(jì) [J].牡丹江師范學(xué)院學(xué)報(bào) , 2021,( 03): 23 [12] 南光群 . 基于 HT49R30A1 單片機(jī)控制的電子秤設(shè)計(jì) [J].電工技術(shù) , 2021,( 04): 8~9 [13] 明尚志 . 電子秤稱重傳感器 V/F 轉(zhuǎn)換電路的設(shè)計(jì) [J].電子測(cè)量技術(shù) , 2021, 30( 03): 175~177 [14] 周清華,馬善農(nóng) . 高性能低成本電子秤的參考設(shè)計(jì) [J].世界電子元器件 , 2021,( 5) : 59~64 [15] 張海霞 . 新型便攜式電子秤設(shè)計(jì) [J].計(jì)量技術(shù) , 2021,( 9) : 6~9 16 附錄一: A/D 轉(zhuǎn)換程序 include sbit ad_cs=P1^1。 電子秤不僅要向高精度、高可靠方向發(fā)展 , 而且更需向多種功能的方向發(fā)展。在反饋環(huán)節(jié)中,最重要的就是對(duì)數(shù)據(jù)的采集。 3. 顯示子程序。 主程序流程圖如圖 31 所示 圖 31 主程序流程 鍵盤軟件設(shè)計(jì) 我們知道鍵盤和顯示是人與微機(jī)系統(tǒng)打交道的主要設(shè)備。在連接 32 鍵以內(nèi)的簡(jiǎn)單鍵盤時(shí), CNTL、 SHIFT 輸入端可接地。 ( 5)校正。單價(jià)清除按“ 清除” 鍵。 圖 26 4 4矩陣鍵盤 (1) 稱重前, 若顯示的值不 為 , 則按“ 去皮” 鍵清除為 ; 若被稱物品需用盛器裝載, 先將盛器放在 秤盤 板上, 按“ 去皮” 鍵, 屏幕顯示為 , 然后裝入被稱物品進(jìn)行稱量。 ( 3) 定時(shí)中斷 T0 用于 A/D 轉(zhuǎn)換中斷延時(shí) 電子秤作為一種稱重儀器,對(duì)所稱精確度要求頗高,所以必須通過數(shù)值濾波求的有效采樣值,通過定時(shí)來完成這一系列的操作。根據(jù)通訊寄存器中的寄存器選擇位,輸入移位寄存器中的數(shù)據(jù) 被傳送到設(shè)置寄存器、時(shí)鐘寄存器或通訊寄存器 。 CS :片選端 ,低電平有效。20mV ~ 177。選定的輸入信號(hào)被送到一個(gè)基于模擬調(diào)制器的增益可編程專用前端。它的兩只應(yīng)變片和兩只電阻貼在彈性梁上,測(cè)量電阻隨重力變化導(dǎo)致彈性梁應(yīng)變而產(chǎn)生的變化。這種高精度數(shù)字電子秤計(jì)量準(zhǔn)確、攜帶方便,集質(zhì)量稱量功能與價(jià)格計(jì)算功能于一體,能夠滿足商業(yè)貿(mào)易和居民家庭的使用需求。隨著工農(nóng)業(yè)生產(chǎn)的發(fā)展和商品流通的擴(kuò)大,衡器的需求也日益增多,過去沿用的機(jī)械杠桿秤己不能適應(yīng)生產(chǎn)自動(dòng)化和管理現(xiàn)代化的要求。 關(guān)鍵詞 電 子秤;稱重傳感器;單片機(jī) 目 錄 中文摘 要 .................................................................... I 英文摘要 .................................................... 錯(cuò)誤 !未定義書簽。 前 言 ...................................................................... 1 1. 緒論 ..................................................................... 2 研究本文的意義 ..................................................... 2 數(shù)字電子秤的工作原理 ................................................ 2 數(shù)字電子秤性能及技術(shù)要求 ............................................ 3 2. 硬件設(shè)計(jì) ................................................................. 3 傳感器模塊 .......................................................... 3 A/D 轉(zhuǎn)換模塊 ........................................................ 4 AD7705 的結(jié)構(gòu) ................................................ 4 AD7705 各引腳功能 ............................................. 5 單片機(jī)模塊 .......................................................... 6 鍵盤顯示模塊 ........................................................ 7 鍵盤鍵的功能 .................................................. 7 鍵盤和顯示電路 ................................................ 8 過量程報(bào)警模塊 ...................................................... 9 3. 數(shù)字電子秤軟件設(shè)計(jì) ...................................................... 10 系統(tǒng)軟件設(shè)計(jì) ....................................................... 10 鍵盤軟件設(shè)計(jì) ....................................................... 10 鍵盤掃描 ..................................................... 11 數(shù)字顯示 ..................................................... 11 A/D 轉(zhuǎn) 換程序 ....................................................... 12 數(shù)據(jù)處理程序 ....................................................... 13 重量轉(zhuǎn)化 ..................................................... 13 價(jià)格計(jì)算 ..................................................... 13 4. 結(jié)論 ................................................................... 14 參考文獻(xiàn) ................................................................... 15 附錄一: .....