【正文】
果//********************************************************************** void sdisplay_down() { z=0。 l=1。 m=0。 for(k=0。k16。k++) { for(n=0。n16。n++) { temp=ziku[n]。 temp=8。 temp=temp|ziku[n+16]。 temp=1。 ziku[n+16]=temp。 temp=8。 ziku[n]=temp。 } do { display()。 m++。 if(m==50) { l=0。 m=0。 } else l=1。 } while(l)。 } }//主程序main(){ EA=1。 //允許啟用外部中斷 EX0=1。 EX1=1。 IT0=0。 //外部中斷為電平觸發(fā)方式(低電平有效) 為 IT1=0。 //顯示允許位 為特效允許位 ES=1。 SCON=0X58。 TMOD=0X21。 TH1 =0XFD。 TR1=1。 ET1=0。 ES=1。 PS=1。 EA=1。 x=1。 while(1){ if(x==1) { for(l=0。l32。l++) ziku[l]=Bmp019[l]。 }else { for(k=0。k32。k++) ziku[k]=sort[k]。 } x=1。 switch(mand) { case 39。l39。:while(x) { sdisplay_left()。 } case 39。r39。:while(x) { sdisplay_right()。 } case 39。u39。: while(x) { for(k=0。k32。k++) ziku[k]=sort[k]。 sdisplay_up()。 } case 39。d39。: while(x) { for(k=0。k32。k++) ziku[k]=sort[k]。 sdisplay_down()。 } default : while(x) { display()。 } }}}附錄 5: 外文參考資料翻譯LED(Light Emitting Diode),lightemitting diode,is a solid state semiconductor devices, which can be directly converted into electricity to light。 The LED display screen and video display into the text by LED matrix blocks。Graphic display can be displayed with puter,English,Chinese text and graphics, Video screen using microputer control,graphic,image,with realtime,synchronization,clear information dissemination way play all kinds of information, but also shows 2d,3d animation,videos,TV,VCD programs and live。The LED display screen display bright colors,stereo sense is strong,such as oil,such as films,widely used in finance,taxation,industry and merce,telemunications,sports,advertising,corporations,transportation,education system,station,port,airport,hospital,shopping malls,hotels,Banks,securities market,market,and construction management of industrial enterprises,Christie39。s and other public places。The LED display can display the change of digital image,text,graphics,Not only can be used for indoor environment can also be used in outdoor environment projectors, LCD TV wall,and the inparable advantages。LED by the wide attention and rapid development,and it is the advantages of itself。These advantages in is:high brightness,working voltage,low consumption,miniaturization,impact resistance and long service life and stable performance。LED the development prospect,is currently towards a higher brightness,higher resistance to climate,higher and higher light shine density evenness,reliability,the direction of development。AT89S51 Features? Compatible with MCS51174。 Products?4K Bytes of InSystem Programmable (ISP) Flash Memory? 1000 Write/Erase Cycles? Fully Static Operation: 0 Hz to 33 MHz? Threelevel Program Memory Lock? 128 x 8bit Internal RAM? 32 Programmable I/O Lines? Two 16bit Timer/Counters? Six Interrupt Sources? Full Duplex UART Serial Channel? Lowpower Idle and Powerdown Modes? Interrupt Recovery from Powerdown Mode? Watchdog Timer Description The AT89S51 is a lowpower,highperformance CMOS 8bit microcontroller with 4K bytes of insystem programmable Flash memory。The device is manufactured using Atmel’s highdensity nonvolatile memory technology and is patible with the industry standard 80C51 instruction set and pinout。The onchip Flash allows the programmemory to be reprogrammed insystem or by a conventional nonvolatile memory bining a versatile 8bit CPU with in system programmable Flash on a monolithicchip,the Atmel AT89S51 is a powerful icrocontroller which provides a highlyflexible and costeffective solution to many embedded control applications。The AT89S51 provides the following tandard features: 4K bytes of Flash,128 bytes of RAM,32 I/O lines, Watchdog timer, two data pointers,three 16bit timer/counters,a sixvector twolevel interrupt architecture,a full duplex serial port,onchip oscillator,and clock circuitry。In addition, the AT89S51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes。The Idle Mode stops the CPU while allowing the RAM, timer/counters,serial port,and interrupt system to continue functioning。The Powerdown mode saves the RAM contents but freezes the oscillator,disabling all other chip functions until the next interrupt or hardware reset。譯文LED(Light Emitting Diode),發(fā)光二極管,是一種固態(tài)的半導體器件,它可以直接把電轉化為光。LED顯示屏分為圖文顯示屏和視頻顯示屏,均由LED矩陣塊組成。圖文顯示屏可與計算機同步顯示漢字、英文文本和圖形;視頻顯示屏采用微型計算機進行控制,圖文、圖像并茂,以實時、同步、清晰的信息傳播方式播放各種信息,還可顯示二維、三維動畫、錄像、電視、VCD節(jié)目以及現(xiàn)場實況。LED顯示屏顯示畫面色彩鮮艷,立體感強,靜如油畫,動如電影,廣泛應用于金融、稅務、工商、郵電、體育、廣告、廠礦企業(yè)、交通運輸、教育系統(tǒng)、車站、碼頭、機場、商場、醫(yī)院、賓館、銀行、證券市場、建筑市場、拍賣行、工業(yè)企業(yè)管理和其它公共場所。LED顯示屏可以顯示變化的數(shù)字、文字、圖形圖像;不僅可以用于室內環(huán)境還可以用于室外環(huán)境,具有投影儀、電視墻、液晶顯示屏無法比擬的優(yōu)點。LED之所以受到廣泛重視而得到迅速發(fā)展,是與它本身所具有的優(yōu)點分不開的。這些優(yōu)點概括起來是:亮度高、工作電壓低、功耗小、小型化、壽命長、耐沖擊和性能穩(wěn)定。LED的發(fā)展前景極為廣闊,目前正朝著更高亮度、更高耐氣候性、更高的發(fā)光密度、更高的發(fā)光均勻性,可靠性、全色化方向發(fā)展。AT989S51具有以下特點:與MCS51產(chǎn)品指令系統(tǒng)完全兼容4k字節(jié)在系統(tǒng)編程(ISP)Flash閃速存儲器1000次擦寫周期全靜態(tài)工作模式:0Hz-33MHz三級程序加密鎖1288字節(jié)內部RAM32個可編程I/O口線2個16位定時/計數(shù)器6個中斷源全雙工串行UART通道低功耗空閑和掉電模式中斷可從空閑模喚醒系統(tǒng)看門狗(WDT)及雙數(shù)據(jù)指針AT89S51功能特性描述:AT89S51是一種低功耗、高性能CMOS8位微控制器,具有4K在系統(tǒng)可編程Flash 存儲器。使用Atmel公司高密度非易失性存儲器技術制造,與工業(yè)80C51產(chǎn)品指令和引腳完全兼容。片上Flash允許程序存儲器在系統(tǒng)可編程,亦適于常規(guī)編程器。在單芯片上,擁有靈巧的8位CPU和在系統(tǒng)可編程Flash,使得AT89S51為眾多嵌入式控制應用系統(tǒng)提供高靈活、超有效的解決方案。AT89S51具有以下標準功能:4k字節(jié)Flash,128字節(jié)RAM,32位I/O口線,看門狗定時器,2個數(shù)據(jù)指針,兩個16位定時器/計數(shù)器,一個5向量2級中斷結構,全雙工串行口,片內晶振及時鐘電路。另外,AT89S51可降至0Hz靜態(tài)邏輯操作,支持2種軟件可選擇節(jié)電模式??臻e模式下,CPU停止工作,允許RAM、定時器/計數(shù)器、串口、中斷繼續(xù)工作。掉電保護方式下,RAM內容被保存,振蕩器被凍結,單片機一切工作停止,直