freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

led漢字顯示屏的設(shè)計(jì)與制作論文-資料下載頁(yè)

2025-06-28 08:12本頁(yè)面
  

【正文】 xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,/*顯示8行空白*/0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,}。 uchar data disp_buff[64]。 //64 個(gè)顯示數(shù)據(jù)緩存//數(shù)據(jù)格式為 第1級(jí)第1行高八位,低八位,第2級(jí)第1行高八位,低八位,第1級(jí)第2行高八位。uchar data disp_han。 //目前顯示到第幾行 void T0_Set() /*定義中斷方式,中斷時(shí)間*/{ TMOD = 0x01。 //定時(shí)0,工作在方式1 TH0 = (655361000)/256。 TL0 = (655361000)/256。 TR0 = 1。 //啟動(dòng)計(jì)數(shù) EA = 1。 //開總中斷 ET0 = 1。 //開定時(shí)器0中斷 return。}void delay_1ms(uchar x){ uchar j。 while(x){ for(j=0。j125。j++) {。} } }void main(){ uchar i,m。 uint data_temp[3]。 uint temp,temp1。 uchar hanzi。 uchar han。 uchar shift=1。 for(i=0。i64。i++) disp_buff[i]=0xff。 T0_Set()。 while(1){ for(hanzi=0。hanzi7。hanzi++){ //最多顯示多少個(gè)字 for(shift=0。shift16。shift++){ //一個(gè)字移位16位 for(han=0。han16。han++){ //一個(gè)字有16行數(shù)據(jù) data_temp[0]=ziku_table[(hanzi*32)+(han*2)+1]*0x100 + ziku_table[(hanzi*32)+(han*2)]。 data_temp[1]=ziku_table[((hanzi+1)*32)+(han*2)+1]*0x100 + ziku_table[((hanzi+1)*32)+(han*2)]。 data_temp[2]=ziku_table[((hanzi+2)*32)+(han*2)+1]*0x100 + ziku_table[((hanzi+2)*32)+(han*2)]。 //右往左移動(dòng) temp = data_temp[0]。 temp1 = data_temp[1]。 for(i=shift。i0。i){ temp = (temp1) 。 if((temp1amp。0x0001)!=0) temp = temp + 0x8000。 temp1 = (temp11)。 } disp_buff[han*4+1]=temp/0x100。 disp_buff[han*4+0]=temp%0x100。 // temp = data_temp[1]。 temp1 = data_temp[2]。 for(i=shift。i0。i){ temp = (temp1) 。 if((temp1amp。0x0001)!=0) temp = temp + 0x8000。 temp1 = (temp11)。 } disp_buff[han*4+3]=temp/0x100。 disp_buff[han*4+2]=temp%0x100。 } delay_1ms(10)。 //移位速度 } } for(hanzi=0。hanzi7。hanzi++){ //最多顯示多少個(gè)字 for(shift=0。shift16。shift++){ //一個(gè)字移位16位 for(han=0。han16。han++){ //一個(gè)字有16行數(shù)據(jù) data_temp[0]=ziku_table[(hanzi*32)+(han*2)+1]*0x100 + ziku_table[(hanzi*32)+(han*2)]。 data_temp[1]=ziku_table[((hanzi+1)*32)+(han*2)+1]*0x100 + ziku_table[((hanzi+1)*32)+(han*2)]。 data_temp[2]=ziku_table[((hanzi+2)*32)+(han*2)+1]*0x100 + ziku_table[((hanzi+2)*32)+(han*2)]。 //左往右移動(dòng) temp = data_temp[0]。 temp1 = data_temp[1]。 for(i=shift。i0。i){ temp = (temp1) 。 if((temp1amp。0x8000)!=0) temp = temp + 0x0001。 temp1 = (temp11)。 } disp_buff[han*4+3]=temp/0x100。 disp_buff[han*4+2]=temp%0x100。 // temp = data_temp[1]。 temp1 = data_temp[2]。 for(i=shift。i0。i){ temp = (temp1) 。 if((temp1amp。0x8000)!=0) temp = temp + 0x0001。 temp1 = (temp11)。 } disp_buff[han*4+1]=temp/0x100。 disp_buff[han*4]=temp%0x100。 } delay_1ms(10)。 //移位速度 } } for(hanzi=0。hanzi7。hanzi++){ //最多顯示多少個(gè)字 for(shift=0。shift16。shift++){ //一個(gè)字移位16位 for(han=0。han16。han++){ //一個(gè)字有16行數(shù)據(jù) data_temp[0]=ziku_table[(hanzi*32)+(han*2)+1+shift*2]*0x100 + ziku_table[(hanzi*32)+(han*2)+shift*2]。 temp = data_temp[0]。 disp_buff[han*4+1]=temp/0x100。 disp_buff[han*4+0]=temp%0x100。 disp_buff[han*4+3]=temp/0x100。 disp_buff[han*4+2]=temp%0x100。 } delay_1ms(15)。 //移位速度 } } for(hanzi=0。hanzi7。hanzi++){ //最多顯示多少個(gè)字 for(shift=0。shift16。shift++){ //一個(gè)字移位16位 for(han=0。han16。han++){ //一個(gè)字有16行數(shù)據(jù) m=0。 if(shifthan) m=64。 data_temp[0]=ziku_table[(hanzi*32)+(han*2)+1+mshift*2]*0x100 + ziku_table[(hanzi*32)+(han*2)+0+mshift*2]。 temp = data_temp[0]。 disp_buff[han*4+1]=temp/0x100。 disp_buff[han*4+0]=temp%0x100。 disp_buff[han*4+3]=temp/0x100。 disp_buff[han*4+2]=temp%0x100。 } delay_1ms(15)。 //移位速度 } } } } void SLED_Disp() interrupt 1 using 3{ uchar i。 uchar data_buff。 uchar temp。 uchar zishu。 uchar code Module_Quantity=2。 //模塊數(shù)量 uchar han。 TH0 = (655361000)/256。 TL0 = (655361000)/256。 Latch_port = 0。 //HC595鎖定輸出,避免數(shù)據(jù)傳輸過程中,屏數(shù)據(jù)變化從而顯示閃爍 CLK_port = 0。 han=disp_han。 for(zishu=Module_Quantity。zishu0。zishu){ temp = disp_han*Module_Quantity*2 + (zishu1)*2+1。 data_buff = disp_buff[temp]。 for(i=0。i8。i++){ if((data_buffamp。0x80)!=0) DA_in_port = 1。 else DA_in_port = 0。 CLK_port = 1。 CLK_port = 0。 data_buff = 1。 } temp = disp_han*Module_Quantity*2 + (zishu1)*2。 data_buff = disp_buff[temp]。 for(i=0。i8。i++){ if((data_buffamp。0x80)!=0) DA_in_port = 1。 else DA_in_port = 0。 CLK_port = 1。 CLK_port = 0。 data_buff = 1。 } } EN_port = 1。 //關(guān)屏顯示,原理為使HC138輸出全為1,從而三極管截止,點(diǎn)陣不顯示 ABCD_port = (ABCD_port amp。 0x0f)|(han4)。 //HC138譯碼輸出 Latch_port = 1。 //允許HC595數(shù)據(jù)輸出到Q1Q8端口 EN_port = 0。 //HC138輸出有效,打開顯示 Latch_port = 0。 //鎖定HC595數(shù)據(jù)輸出 disp_han++。 //顯示下一行數(shù)據(jù) if(disp_han=16) disp_han=0。}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1