【正文】
key2=1。 key3=1。 P1=0x66。 delay(300)。 a=keyscan()。 //調(diào)用鍵盤掃描, } key0=1。 P1=0x00。 break。//0304 case 0xe7: key0=0。 for(j=1。j+20210。j++) { key1=0。 key2=0。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=0。 key3=1。 P1=0x66。 delay(300)。 key1=0。 key2=1。 key3=0。 P1=0x3f。 delay(300)。 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 33 key1=0。 key2=1。 key3=1。 P1=0x06。 delay(300)。 a=keyscan()。 //調(diào)用鍵盤掃描, } key0=1。 P1=0x00。 break。//0401 case 0xd7: key0=0。 for(j=1。j+20210。j++) { key1=0。 key2=0。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=0。 key3=1。 P1=0x66。 delay(300)。 key1=0。 key2=1。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=1。 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 34 key3=1。 P1=0x5b。 delay(300)。 a=keyscan()。 //調(diào)用鍵盤掃描, } key0=1。 P1=0x00。 break。//0402 case 0xb7: key0=0。 for(j=1。j+20210。j++) { key1=0。 key2=0。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=0。 key3=1。 P1=0x66。 delay(300)。 key1=0。 key2=1。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=1。 key3=1。 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 35 P1=0x4f。 delay(300)。 a=keyscan()。 //調(diào)用鍵盤掃描, } key0=1。 P1=0x00。 break。//0403 case 0x77: key0=0。 for(j=1。j+20210。j++) { key1=0。 key2=0。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=0。 key3=1。 P1=0x66。 delay(300)。 key1=0。 key2=1。 key3=0。 P1=0x3f。 delay(300)。 key1=0。 key2=1。 key3=1。 P1=0x66。 delay(300)。 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 36 a=keyscan()。 //調(diào)用鍵盤掃描, } key0=1。 P1=0x00。 break。//0404 } } } /* 鍵盤掃描程序 */ uchar keyscan(void) //鍵盤掃描函數(shù),使用行列反轉(zhuǎn)掃描法 { uchar cord_h,cord_l。//行列值中間變量 P2=0x0f。 //行線輸出全為 1 cord_h=P2amp。0x0f。 //讀入行線值 if(cord_h!=0x0f) //先檢測(cè)有無按鍵按下 { delay(100)。 //去抖 if(cord_h!=0x0f) { cord_h=P2amp。0x0f。 //讀入行線值 P2=cord_h|0xf0。 //進(jìn)行線反轉(zhuǎn),將高四位調(diào)成高電平,低四位保持不變; cord_l=P2amp。0xf0。 //讀入列線值,(雖然我們把列線值全部置為 1,但是由于鍵位一直被按下,所以按鍵所在列由于硬件作用又變回 0) return(cord_h+cord_l)。//鍵盤最后組合碼值 } }return(a)。 //返回該值 } /* 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 37 延時(shí)程序 */ void delay(uint i) //延時(shí)函數(shù) { while(i)。 } 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 38 g an employment tribunal clai Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。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 information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。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。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s antiracism taskforce, is in London for the Football Association39。s 150th anniversary celebrations and will attend City39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。s about how he felt and I would like to speak to him first to find out what his experience was. 大慶師范學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 39 Uefa has opened disciplinary proce