【正文】
onto something resembling an Olympic diving platform. Below, the Earth bees the concrete bottom of a swimming pool that he wants to land on, but not too hard. Still, he39。t start planning... Those years, those days of do, finally, like youth, will end in our life. 此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。 28 At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt。想要的,不想要的,界限明確,好像沒有什么可以撼動自己。t remember his appearance. 童年時,覺得壓歲錢和新衣服是過年必備,但是隨 著年齡的推進(jìn),會越來越發(fā)現(xiàn),那些東西根本就可有可無;初中時,以為要有一場暗戀才意味著真正的成長,但三年過去后,自己心平氣和的寫同學(xué)錄的時候,突然就發(fā)現(xiàn)是不是真正的成長了,好像并沒有那么重要了;然后到了高中,覺得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個句點,但畢業(yè)晚會的時候最終還是被梗塞在了咽喉,后來再次站在他曾經(jīng)揮汗如雨的球場,看著他投過籃球的球框時,突然間發(fā)現(xiàn)自己已經(jīng)想不起他的容顏。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。s governing body, has also ordered an immediate investigation into the referee39。s 150th anniversary celebrations and will attend City39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you, 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. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。 TR0=1。 IT0=0x01。 Adjust_Index=1。 LCD_DSY_BUFFER2[14]=39。 } else if(K4==0) // 確定 { while(K4==0)。 } else if(K2==0) // 加 { while (K2==0)。[39。 if(Adjust_Index==1||Adjust_Index==1) Adjust_Index=7。 Format_DateTime(DateTime[0],LCD_DSY_BUFFER2+11)。 Format_DateTime(DateTime[3],LCD_DSY_BUFFER1+11)。 if(++tCount!=2) return。DateTime[1]0) DateTime[1]。amp。amp。 case 2: //時 if(x== 1amp。amp。 if(x== 1amp。 if(DateTime[3]MonthsDays[DateTime[4]]) DateTime[3]=MonthsDays[DateTime[4]]。 if(x==1amp。 break。DateTime[6]0) DateTime[6]。amp。i++) d+=MonthsDays[i]。 w=(w+d)%7。 } void RefreshWeekDay() { uint i,d,w=5。039。i++) { DateTime[i]=Read_Data(0x81+2*i)。 } Write_DS1302(0x8e,0x80)。 Write_DS1302(0x8e,0x00)。 DS1302_Write_Byte(dat)。 return dat。 DS1302_Write_Byte(addr)。 } /* 從 DS1302 指定位置數(shù)據(jù) */ uchar Read_Data(uchar addr) { uchar dat。 b|=t7。 for(i=0。 CLK=1。 for(i=0。i16。 } void Set_LCD_POS(uchar p) { Write_LCD_Command(p|0x80)。 20 Display_LCD_String(0x00,zhongzhoudaxue)。 Write_LCD_Command(0x06)。 } void Init_LCD() //LCD 初始化 { Write_LCD_Command(0x38)。 P0=cmd。 } void Write_LCD_Command(uchar cmd)//寫命令 { LCD_Busy_Wait()。 P0=dat。 } void Write_LCD_Data(uchar dat) //寫數(shù)據(jù) { LCD_Busy_Wait()。 return state。 DelayMS(1)。 } uchar Read_LCD_State() 19 { uchar state。 void DelayMS(uint x) { uchar i。 void Write_LCD_Data(uchar dat)。 //所讀取的日期時間 char Adjust_Index=1。 uchar *WEEK[]={SUN,MON,TUS,WEN,THU,FRI,SAT}。 // 減 sbit K4=P3^7。 sbit EN=P2^2。 // DS1302 數(shù)據(jù)線 sbit CLK=P1^1。 15 致謝詞 感謝學(xué)院 ,感謝王春梅老師再次 給我 們 提供了一個展現(xiàn)自己的舞臺,給我 們 一次難得煅煉的機(jī)會,使得我 們 的動手能力和專業(yè)技能都有了很大的提高。因為時間比較倉促,流程圖寫的條理性不夠,不過相信以后多多練習(xí),就可以做得更好。 實驗心得總結(jié) : 通過本次單片機(jī)實訓(xùn),我們不僅再次鞏固復(fù)習(xí)了去年暑假里參加電子設(shè)計賽時學(xué)到的知識,還在老師同學(xué)的幫助下,進(jìn)一步了解熟悉了DS1302, LCD1602 的使用,及單片機(jī)的組成及其強(qiáng)大和不足。其次,選用LCD1602 進(jìn)行顯示時,數(shù)據(jù)位串行輸入,接口連線少,低功耗,顯示清晰。其次,時 ,分 ,秒顯示用了軟件譯碼 (查表 )的方式 ,再用了一段固定的程序段進(jìn)行進(jìn)制轉(zhuǎn)化。按 K2 鍵是對閃爍位進(jìn)行加一的操作。月份判斷比較簡單,只要超過 12,年份就加 1,月份置 1。 13 數(shù)據(jù)計算處理與性能分析: 加減鍵對時間日期改變處理算法: 對于年月日,時分秒來說,每個變量的最大值和最小值都不一樣,所以當(dāng)年月份時分秒改變時,進(jìn)行處理的算法也不一樣,年沒有最大值,所以不用采取“封頂”措施,每次年加一處理時,直接自加,而對于月份來說,月份是不能超過 13 的,所以當(dāng)月份自加到 13 時要重新置 1,具體處理見程序 ,在每個語句后,我都有分析注釋出來。 Display_LCD_String(0x40,LCD_DSY_BUFFER2)。 Format_DateTime(DateTime[2],LCD_DSY_BUFFER2+5)。 Format_DateTime(DateTime[6],LCD_DSY_BUFFER1+5)。 } } 液晶初始化子程序 /*************初始化 *************/ void T0_INT() interrupt 1 { TH0=50000/256。 if(x==1amp。 break。DateTime[2]23) DateTime[2]++。 RefreshWeekDay()。DateTime[3]MonthsDays[DateTime[4]]) DateTime[3]++。 break。DateTime[4]1) DateTime[4]。amp。 if(DateTime[3]MonthsDays[DateTime[4]]) DateTime[3]=MonthsDays[DateTime[4]]。 if(x==1amp。 DateTime[5]=(w+d)%7+1。 for(i=1。i2021+DateTime[6]。amp。039。 for(i=0。i7。 } 按鍵掃描子程序 調(diào)整時間用 4 個調(diào)整按鈕, 1個作為選擇控制用,另外 3個分別作為加調(diào)整,減調(diào)整和確定用。 write_setds(0x8c,0x10)。 write_setds(0x84,0x10)。 第 16腳:背光源負(fù)極。當(dāng) RS和 R/W 共同為低電平時可以寫入指令或者顯示地址,當(dāng) RS 為低電平R/W 高電平時可以讀忙信號,當(dāng) RS 為高電平 R/W 為低電平時可以寫入數(shù)據(jù)。 第 2腳: VDD 接 5V 正電源。當(dāng)“ WP”為 1時,寫保護(hù)位防止對任一寄存器的寫操 作。位 0 是讀 /寫操作位,進(jìn)行讀操作時,該位為 1;該位為 0則表示進(jìn)行的是寫操作。 圖 3 DS1302的引腳圖 2. DS1302 數(shù)據(jù) 操作原理 DS1302 在每次進(jìn)行讀、寫程序前都必須初始化,先把 SCLK 端置“ 0”,接著把 RST 端置“ 1”,最后才給予 SCLK 脈沖。如果在傳送過程中 RST 置為低電 平,則會終止此次數(shù)據(jù)傳送, I/O 引腳變?yōu)楦咦钁B(tài)。 X1 和 X2 是振蕩源,外接 晶振。在主電源關(guān)閉 的情況下,也能保持時鐘的連續(xù)運(yùn)行。 DS1302 內(nèi)部有一個 31*8 的用于臨時性存放數(shù)據(jù)的 RAM 寄存器。采用此種方案雖然減少芯