【正文】
模式可由外部中斷喚醒 ,INT0/, INT1/,T0/,T1/,RxD/,CCP0/, CCP1/ 。把 16 個燈陽極連在一起,在接到此引腳上。 由于光立方需要的設定程序數(shù)量多,同時要求高點,所以選用 51 系列新一代芯片 STC12C5A60S2,選用的原因: ,運用了第六代加密方法; 2.有強烈的抗干擾能力; ,外部復位可選擇; ,比 8051 快 812 倍。 2)額定電流為 20mA。 1mm,陰極管腳長度為 24177。 ( 2) LED 亮度方法 1 )能用生活中的兩節(jié) 的干電池判斷 LED 的陰極與陽極。應從最低亮度開始,防止 LED 被燒毀。 1)水平彎折:用手就能做到焊接的整齊性和保證角度的相同。 ( 4)由點到線 準備一塊木板,在上面均勻打孔,孔徑用 LED 來痕量。進行焊接,實現(xiàn)陽極對陽極的操作。上方 LED 與下方 6 LED 陰極搭接的位置,可用 LED 自身根部的凸點 作為標志。實現(xiàn)水平面共陽以后,就有 4 條對陽極引線,利用導線,達到各水平面的陽極線與電路板的焊接。 ( 5)靜態(tài)測試 考察 LED 的靜態(tài)特征,讓內部常亮點、常暗點相互對換。為了效果用靜電焊臺,同時穿防靜電手環(huán)。 就結構圖來說,立體的 LED 容易焊接, 64 個 LED,分為 16束, 4 層,束面共陰,水平面共陽。 ( 2)在檢查剩下那一列,采用相同的方法來做,發(fā)現(xiàn)每一個模塊都沒有問題,并且那一列的電壓輸入也正常,我們就不明白了,到底是什么錯誤呢?我們判斷是不是有燈壞了,因此又一個一個的檢查了這一列燈,而全部都會亮,經(jīng)過很細 7 心的檢查,觀察到有一個燈的亮度和其他的燈亮度完全不同,相對比較暗,于是我就把這個燈拿了下來,用另外一個代替,真的是開始那個燈的原因,主要是因為這燈的電阻變大,導致那一列的電壓降低啦,使燈無法亮起來。 ( 4)對產(chǎn)品調試過程中發(fā)現(xiàn)幾個燈處于不發(fā)光的狀態(tài),使用萬用表歐姆檔對其不發(fā)光的燈進行檢驗,觀察到燈已被弄壞,把燒壞的燈拆掉,但是有 3 個燈是存在虛焊問題,從新焊接后正常工作。物理學中所學的電學以及模電,數(shù)電,給了我扎實的基礎,通過本次設計我學會了如何 焊接,制作小的電子器件,以及對單片機的理解。只有牢固的基礎,我們才能創(chuàng)新,才能有所突破,才能學以致用。 for(i=0。 i++) for(j=0。 j++) 。 P1=0X00。 Delay(10)。 P2=0XFF。 P1=0X00。 Delay(10)。 P2=0XFF。 P1=0X00。 10 Delay(10)。 P2=0XFF。 /*********************************列斷續(xù)掃描 **************************/ P0=0X00。 P2=0X00。/*1*/ P1=0X2。 Delay(10)。 P2=0X00。/*3*/ P1=0X8。 Delay(10)。 P2=0X00。/*5*/ P1=0X20。 Delay(10)。 P2=0X00。/*7*/ P1=0X80。 Delay(10)。 P2=0X1。/*9*/ P1=0X00。 Delay(10)。 11 P2=0X4。/*11*/ P1=0X00。 Delay(10)。 P2=0X10。/*13*/ P1=0X00。 Delay(10)。 P2=0X40。/*15*/ P1=0X00。 Delay(10)。 P2=0X40。/*15*/ P1=0X00。 Delay(10)。 P2=0X10。/*13*/ P1=0X00。 Delay(10)。 P2=0X4。/*11*/ P1=0X00。 Delay(10)。 P2=0X1。/*9*/ 12 P1=0X80。 Delay(10)。 P2=0X00。/*7*/ P1=0X20。 Delay(10)。 P2=0X00。/*5*/ P1=0X8。 Delay(10)。 P2=0X00。/*3*/ P1=0X2。 Delay(10)。 P2=0X00。/*1*/ /****************************************列平面掃描 *************************************/ P1=0XF。 Delay(20)。 P2=0X00。/*2*/ P1=0X00。 Delay(20)。 P2=0XF0。/*4*/ P1=0X00。 Delay(20)。 P2=0X00。/*2*/ P1=0XF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 Delay(20)。 P1=0XFF。 14 Delay(20)。*******************************層平面完畢 ******************************/ /***************群體閃爍 ********************/ P0=0XF0。 P2=0X00。 P1=0XFF。 Delay(10)。 P2=0X00。 P1=0XFF。 Delay(10)。 P2=0X00。 P1=0XFF。 Delay(10)。 P1=0X1。 Delay(10)。 P2=0X00。/*2*/ P1=0X4。 Delay(10)。 P2=0X00。/*4*/ 15 P1=0X80。 Delay(10)。 P2=0X00。/*7*/ P1=0X20。 Delay(10)。 P2=0X00。/*5*/ P1=0X00。 Delay(10)。 P2=0X2。/*10*/ P1=0X00。 Delay(10)。 P2=0X8。/*12*/ P1=0X00。 Delay(10)。 P2=0X40。/*15*/ P1=0X00。 Delay(10)。 P2=0X10。/*13(返回開始) */ P1=0X00。 16 Delay(10)。 P2=0X40。/*15*/ P1=0X00。 Delay(10)。 P2=0X8。/*12*/ P1=0X00。 Delay(10)。 P2=0X2。/*10*/ P1=0X00。 Delay(10)。 P2=0X00。/*5*/ P1=0X20。 Delay(10)。 P2=0X00。/*7*/ P1=0X80。 Delay(10)。 P2=0X00。/*4*/ P1=0X4。 Delay(10)。 17 P2=0X00。/*2*/ P1=0X1。 Delay(10)。 P1=0X1。 Delay(10)。 P1=0X2。 Delay(10)。 P1=0X4。 Delay(10)。 P1=0X8。 Delay(10)。 P1=0X10。 Delay(10)。 P1=0X20。 Delay(10)。 P1=0X40。 Delay(10)。 P1=0X80。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(10)。 P1=0X00。 Delay(100)。 19 P1=0XE0。/*放大一倍 */ Delay(100)。 P1=0XFF。 Delay(100)。 P1=0XE0。/*放大一倍 */ Delay(100)。 P1=0X00。/*小正方形 */ Delay(200)。 P1=0X00。 Delay(10)。 P2=0XFF。 P1=0X00。 Delay(10)。 P2=0XFF。 P1=0X00。 Delay(10)。 P2=0XFF。 /****************貪吃蛇 ******************/ P0=0XF7。 20 P2=0X80。 P1=0X7。 Delay(50)。 P2=0X80。 P1=0X11。 Delay(50)。 P2=0X91。 P1=0X00。 Delay(50)。 P2=0XF0。 return 0。韓素紅老師曾多次給予我?guī)椭?,幫助我開拓設計思路,精心點撥、熱忱鼓勵。 在這四年的大學學習生涯中,我的人生步伐一直向前,在學習上和思想上,以及 動手能力上都受益匪淺,這除了自身的努力外與山西大同大學物理科學學院的各位老師的辛勤幫助、積極開導是分不開的。s Shaanxi province pass through a stop on the ancient Silk Road, Gansu39。80s. We sat on the back of pickup trucks for hours. The sky was blue, and we couldn39。t have a formal stage. The audience just sat on the grass. Usually, the performances became a big party with local people joining in. For him, the rewarding part about touring isn39。s performers of the troupe still tour the region39。s Poly Theater. Their show, titled Ulan Muqir on the Grassland, depicted the history and development of the art troupe. Being from the region allowed me to embrace the culture of Inner Mongolia and being a member of the troupe showed me where I belonged, Nasun, the art troupe39。s Liaoning province, decades ago. The solider gave the old man a handmade saddle when they bid farewell. The story inspired Nasun to write Carved Saddle, a song that later became one of his most popular numbers. Now, every year, Nasun recruits young singers and dancers for the troupe. The troupe has also designed a new repertoire, which is mostly based on the daily lives of Mongolian people, especially the lives of nomadic families, and has bined contemporary musical elements with folk songs of the region. Haimu, a 25yearold khoomei (a local variant of overtone singing) singer, joined the troupe three years ago. Along with a sixmember band, he performs fast songs and soft ones that he writes- all while pla