【正文】
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。揮別大學(xué)之際,感謝這四年最富有熱情的青春,感謝每一個(gè)相互勉勵(lì)一起進(jìn)步的人們,感謝讓我成長的大學(xué)。 //在設(shè)置密碼模式,第一次輸入密碼過程中,有 CANCEL 要求,退出該模式 } default : goto START。 goto BB。 Buzzer=0。 Warning=1。 DisplayListChar(0,1, )。 DisplayListChar(0,1, )。 //核對輸入當(dāng)前密碼是否正確 if( First_re==1) //第一次輸入正確,開始 輸入新密碼 { char Second_re。 //提示輸入當(dāng)前密碼 DisplayListChar(0,1,CURRENT CODE: )。 //開鎖 CANCEL } case 0x0d: case 0x1f: //按下 SET 鍵 進(jìn)入 SET模式 { char code_save2[6]。 Lock=1。標(biāo)簽 DisplayListChar(0,1,CODE: )。 switch (Operation) { case 0x0c: case 0x1c : //按下開鎖鍵 進(jìn)入開鎖模式,遙控操作碼是 0x1c { char code_save2[6]。 Operation=key_scan()。 EX0=1。 31 } } /******************************主程序 ************************/ Void main() { unsigned char code_yuan[6]={0x09,0x02,0x05,0x08,0x02,0x04}。i6。 temp=get_code(code_new2)。 DisplayListChar(0,0,SET NEW CODE ) 。 } } } /*****************密碼修改子程序 ********************************/ char change(char code_old[6]) //返回 1 表明應(yīng)該修改密碼, 0表示不修改 { int i=0。 delayms(50)。Buzzer=1。 Warning=0。 while(1) //連續(xù) 3次輸入密碼錯(cuò)誤處理 { 30 DisplayListChar(0,0,*****WRONG***** )。 //錯(cuò)誤密碼輸入計(jì)數(shù)器歸零 return 1。 Buzzer=0。 cancel=get_code(code_input1)。amp。break。break。break。 i++。amp。 if((temp_key==0x0e||temp_key==0x14)amp。 temp_key=key_scan()。 else return 0。 for(。 while(P1!=0xf0) P1=0xf0。 if(!P1_5)key_val= 0x0d。 if(!P1_6)key_val= 0x0a。 if(!P1_7)key_val= 0x07。 P1=0xfd。 if(!P1_4)key_val= 0x00。amp。amp。 P1=0xf0。 _Code=_cror_(_Code,1)。 if(RED) Delay(61)。s16。s++)//忽略前 26位的系統(tǒng)識別碼 { while(RED==0)。 } } while(RED==0)。s++)//重復(fù) 10次,檢測 ,因?yàn)橛锌赡懿恍⌒陌聪铝税存I或者由外部干擾。//操作碼 uchar _Code=0。i++)。j) 。 for(i=1000。 //AT24C02 驅(qū)動 extern void Write24c02(unsigned char *RamAddress,unsigned char RomAddress,unsigned char bytes)。 //紅外接收管 的數(shù)據(jù)輸出端接單片機(jī) 的 ,低電平有效 static char wrong_count=0。 } } /******************************************************* *** *** *** 主程序 *** 25 *** *** ******************************************************/ include include include include include //循環(huán)右移的函數(shù)頭文件 define uchar unsigned char define uint unsigned int sbit Buzzer =P2^6。 n=strlen(DData)。 Yamp。 //若 y為 1(顯示第二行),地址碼 +0X40 mx+=0x80。1。 //清屏 , 檢測忙信號 WriteCommandLCM(0x06,1)。 delay_LCM(5)。 //三次顯示模式設(shè)置 , 不檢測忙信號 delay_LCM(5)。 } LCM_EN=0。 _nop_()。 _nop_()。 } /***********lcm內(nèi)部等待函數(shù) *************/ void lcd_wait(void) { DATAPORT=0xff。 _nop_()。 //檢測忙信號 DATAPORT=WDLCM。 _nop_()。 LCM_RS=0。j60。 //顯示指定坐標(biāo)的一串字符子函數(shù) /*********延時(shí) K*1ms,**********/ void delay_LCM(uint k) { uint i,j。 //寫指令到 ICM 子函數(shù) void WriteDataLCM(uchar WDLCM)。 //讀 /寫選擇端 sbit LCM_EN=P2^2。 Stop()。 RamAddress++。 Write8Bit(ReadDviceAddress)。 TestAck()。 SCL=0。temp!=0。 } Stop()。number!=0。 TestAck()。 SCL=0。temp!=0。 SCL=0。 } bit TestAck() { bit ErrorBit。 SDA=1。 SDA=1。 SCL=0。 sbit SDA=P3^7。在設(shè)計(jì)完成過程中,先進(jìn)行 Proteus軟件仿真,最后進(jìn)行實(shí)物調(diào)試,最終達(dá)到了預(yù)期的設(shè)計(jì)目標(biāo),但 UPS供電還有待解決。否則返回 0,表明修改密碼失敗,不對 AT24C02。若密碼正確,則返回值為 1,表明應(yīng)該進(jìn)行開鎖動作。若取消操作,返回值為 0。此設(shè)計(jì)為了便于觀察結(jié)果,用綠色 LED代替鎖頭,若是有開鎖動作,則綠色 LED燈亮。 (七)聲光報(bào)警電路 聲光報(bào)警有紅色發(fā)光二極管 D1 與蜂鳴器組成,分別由 與 引腳控制,低電平有效。 圖 鍵盤 圖 密碼存儲 10 (六)液晶顯示模塊 本系統(tǒng)采用 LCD1602 液晶顯示 ,可顯示 16 2個(gè)字符。當(dāng)按鍵較多時(shí),與獨(dú)立式鍵盤相比,矩陣式鍵盤可節(jié)約 I/O口。 串行時(shí)鐘由單片機(jī) 引腳提供,通過 引腳對AT24C02 進(jìn)行在線讀寫。 R1 用于限制按鍵按下瞬間 C3 放電電流,避免火花。 (三)復(fù)位電路 圖 復(fù)位電路 圖 振蕩電路 9 此復(fù)位電路采用手動按鍵式復(fù)位。但此時(shí)直流量含有較大交流分量,再經(jīng)過 低通濾波電路 ,使電壓平滑。若從 ,開始延時(shí), 之后,檢測到的為低電平,則該位為“ 0”,反之則為“ 1”。后 16 位為 8位的操作碼和 8位的操作反碼用于核對數(shù)據(jù)是否接收準(zhǔn)確。接收頭接收到的是 38KHz的串行脈沖信號,經(jīng)過解調(diào)之后轉(zhuǎn)換成 TTL 電平。 HS0038 為直立側(cè)面收光型 , 三個(gè)管腳分別是地、+ 5 V 電源、解調(diào)信號輸出端。 HS0038接收紅外信號頻率為 38 kHz,周期約 26 μ S,同時(shí) 將遙控信號的接收、放大、檢波、整形集于一身, 是 紅外接收電路一體化的紅外接收裝置 。 當(dāng)發(fā)射機(jī)沒有按鍵按下時(shí), 7461不工作,其 OUT輸出腳為低電平;當(dāng)有按按下時(shí), 7461得電工作,其 OUT輸出腳輸出經(jīng)調(diào)制 38Khz的串行數(shù)據(jù)信號,并通過發(fā)射電路送出紅外信號 。如下圖所示(圖中Tm=) 4 圖 四、 遙控模塊硬件設(shè)計(jì) (一)遙控系統(tǒng)的構(gòu)成 遙控系統(tǒng)主要由紅外遙控發(fā)射裝置、接收裝置、微處理機(jī)等組成,見圖 . 圖 遙控系統(tǒng)框圖 (二)選用芯片介紹 1. 遙控編碼芯片 LC7461[3] LC7461是由 SANYO公司生產(chǎn)能的遙控專用編碼芯片。反碼的加入是為了能在接收端校對傳輸過程中是否產(chǎn)生差錯(cuò)。這是不同遙控器不能通用的主要原因。引導(dǎo)碼的主要作用類似于穿行通信中的同步脈沖,用來標(biāo)志遙控編碼脈沖信號的開始,使遙控接收器能由此判斷出所接收