【正文】
3A4A5A6A7A8A9A10A11A12D0D1D2D3D4D5D6D7CECSVPP2764AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7CERDWRIO/MALETIMEROUTTIMERINRSTPA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 T1IN T1INPC0 PC1 PC2 PC3 PC4 PC5815512ALEREWEA8A9A10A11A1210uFPSENVCC10uFVCCALEA8A9A10A11A12VCCDQGNDDS18B20VCCDQGNDDS18B20(1)VCCVCC162738495J?DB9SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7DOUT DIG7 DIG6 DIG5 DIG4 DIG3 DIG2 DIG1 DIG0 DCLK LOAD DINVCCGNDCH451abfcgdeDPY1234567abcdefg8dpdpCOMN1abfcgdeDPY1234567abcdefg8dpdpCOMN8abfcgdeDPY1234567abcdefg8dpdpCOMN2abfcgdeDPY1234567abcdefg8dpdpCOMN7abfcgdeDPY1234567abcdefg8dpdpCOMN3abfcgdeDPY1234567abcdefg8dpdpCOMN6abfcgdeDPY1234567abcdefg8dpdpCOMN4abfcgdeDPY1234567abcdefg8dpdpCOMN5VCCC1+V+C1C2+VT2outR2inC2VccGNDT1outR1inR1outT1inT2inR2outMAX232VCCVCCTXD RXD1110987651234 RD WR ALEVCCALEWRRDIO/MDINLOADDCLKVCC20pFVCC0220V AC1243VoutVinGND7805220uFD1+12V10uF +5V南昌工程學院本科畢業(yè)設計(論文) 23 附件二:程序清單 include define tiji=0 define reliang=0 {Sbit plus=p^ //程序初 始化 delay(int i) {while(i)。 p0=0x80。t=1。break。} if(= =1) {z=i*4/4。} if(t= =1) {delay()。i++) {if(= =1) {z1=1*4/1。t=1。break。} p0=p01。 {case0:break。 case4:break。 case8:break。 case12:break。 int y。 if(Byte(i)= =ENTER) {y=Byte(4)*10000+Byte(3)*1000+Byte(2)*100+Byte(1)*10+Byte(0)。 39。 at89c51_gpio_setpin(DQ,0)。 }while((at89c51_gpio_getpin(DQ))!=0)。 for(i=0。 at89c51_gpio_getpin(DQ,1); d=d1。i++){ temp=1。 at89c51_gpio_setpin(DQ,1)。 udelay(65)。} include //焓值 K 輸入 define KEYP P0 define CH451 P1 unsigned char code TAB[17]= {0xc0,0xf9,0xa4,0xb0,0x99, 0x92,0x82,0xf8,0x80,0x98 0xa0,0x83}。 { while(1) scanner()。i++)。col4。 else if(rowkey==0x02)row=1。0x0f。 W451(0x0a,14)。i8。 W451(7,X%100*10)。 =1。 =1。} char () {char i=0,data=0。 data1。} (char x) {char i=0。 =xamp。 x=x1。 float tt=0。 W_Byte(0xcc)。 t=t8。} int w=0。 T1=()。 Init451()。 Var=key()。t agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly. For more informu, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. ation about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。s antiracism taskforce, is in London for the Football Association39。s 21 win. Michel Platini, president of European football39。 May be back in th。s actions. CSKA said they were surprised and disappointed by Toure39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Ya ya Toure, he told BBC Sport. For me it39。t charge you more than 35% of your pensation if you win the case. you39。 init_tmr(): init_sci()。 {while(Var= =V) V=getchar()。 W=(T2T1)*V*Q+W。 char Var=0。 tt=t*。 a=()。 w_Byte(0x0c)。} float () {char a=0。 delay(5)。i0。 if(= =1) data/=0x80。i0。 x=。 =0。} Init(8051)。 w451(5,x%10000*10)。} display(int x) { char i。 } } Int451() //顯示部分軟件設計 {w451(0x0c,1)。 kcode=4*col+row。0xf。 unsigned char rowkey,kcode。 for(i=0。 void delay 1ms(int)。 at89c51_gpio_setpin(DQ,1)。 udelay(10)。 at89c51_gpio_setpin(DQ,0)。 for(i=0。i++){ at89c51_gpio_getpin(DQ,1)。} void writebyte(unchar d){ unchar i。 at89c51_gpio_setpin(DQ,1)。 at89c51_gpio_setpin(DQ,1)。} Byte(i+1)=Byte(i)。i5。 } return z。 case10:break。 case6:break。 case2:break。 return z。t=1。} if(= =1) {z1=i*4/3。break。 for(i=0。break。t=1。} if(= =1) {z=i*4/2。i7。 t=0,z1。 現(xiàn)在的自己已經(jīng)不再是剛進大學時的那個小男生了,四年的磨礪讓我的肩頭多了一份責任和承擔,已經(jīng)踏入社會開始工作的我,面臨的抉擇和困難也非常之多,但是不管前途多么的未知和艱難,我會毫無畏懼地前行 。也要感謝我同組的同學,沒有他的硬件,我的軟件就不能很好的完成??傊痪湓挘厴I(yè)設計使我把上 課學到的東西運用到實踐工作當中去,從實踐生產(chǎn)中有所領悟。 在整個畢業(yè)設計過程中,我們通過反復的學習,從而達到鍛煉自己的目的。 顯示部分軟件控制設計 為保證完成正常的顯示功能,主程序首先要 CH451 控制寄存器裝入控 制字,然后才可以進行顯示操作。通訊程序流程圖如圖 所示: 南昌工 程學院本科畢業(yè)設計(論文) 15 圖 流量通訊子程序流程圖 溫度檢測設計 溫度信號采集部分有兩只配對的溫度傳感器 DS18B20 組成 ,在單片機的控制下 ,兩只溫度傳感器將代表溫度值的脈沖信號送入 、 ,至此溫度信號采集過程結(jié)束。 (3) 是否校驗,有奇校驗,偶校驗或不校驗。 ( 4) 熱量計量程序:熱量計量程序又可分為進水 /出水口溫度采集、室溫信號采集和熱量計算三部分。 主程序流程圖如下: 圖 主程序流程圖 開始 讀流量 傳感器脈沖 讀溫度計算差值 計算處理 脈沖發(fā)送處理 顯示更新 斷電標志存儲 ROM 熱量累計量存入 ROM CPU休眠 電壓低? 初始化 NO YES 南昌工 程學院本科畢業(yè)設計(論文) 13 在本系統(tǒng)中,軟件主要由主程序和若干中斷服務子程序組成。在這個過程中,必須嚴格注意控制使用任意轉(zhuǎn)移語句,以提高程序運行效率和可靠性。要實現(xiàn)智能儀表的預期功能,需要編制調(diào)試大量的軟件程序,工作量非常大。其計算公式簡化為: Q=K*V*? T ( 31) 式中: Q 為吸收的熱量, K 為熱焓修正系數(shù) (可以通過水的密度與焓值表查詢 ), ? T流量傳感器 供水溫度傳感器 K 系數(shù)計算 溫差計算 總線驅(qū)動 硬件乘法器 散熱器 數(shù)據(jù)顯示 數(shù)據(jù)保存 回水溫度傳感器 南昌工 程學院本科畢業(yè)設計(論文) 11 為進回水溫差, V 為熱水體積瞬時流量。當水流經(jīng)系統(tǒng)時,流量傳感器發(fā)出流量信號,配對溫度傳感器分別檢測出入口和出口溫度信號,積算器采集流量、溫度信號,根據(jù)與溫度相關的