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

正文內(nèi)容

基于51系列單片機(jī)的led旋轉(zhuǎn)顯示器(編輯修改稿)

2024-07-17 12:49 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 id)interrupt 1)定時(shí)器T0的終端服務(wù)程序主要是為了把旋轉(zhuǎn)一周的各個(gè)位置分為180分,這樣方便顯示和確定顯示位置及顯示內(nèi)容。在T0的中斷服務(wù)程序中,首先重新給T0賦校正后的初值,然后判斷當(dāng)前的T0中斷次數(shù),及確定當(dāng)前顯示的位置,然后再判斷是否改送顯示,如果要送顯示,則調(diào)用相應(yīng)的現(xiàn)實(shí)之程序,然后T0中斷次數(shù)自加一,最后跳出中斷,詳細(xì)參看右流程圖.定時(shí)器T1中斷服務(wù)程序(void Time_luoji()interrupt 3)因?yàn)樯厦娴腡0的初值不是固定的,所以我們不能再使用T0用做時(shí)間運(yùn)行的標(biāo)準(zhǔn),要不時(shí)間會(huì)時(shí)快是慢,所以這里我們使用了T1作為時(shí)間的運(yùn)行標(biāo)準(zhǔn),我們給T1的定時(shí)為20毫秒,當(dāng)產(chǎn)生50個(gè)中斷,就是一秒鐘,所以50個(gè)中斷,時(shí)間秒的值加1。詳細(xì)參看流程圖。includeunsigned char code shuzi_0[8]={0x82,0x7C,0x7C,0x7C,0x7C,0x7C,0x82,0xfe}。/*0,0*/unsigned char code shuzi_1[8]={0xfe,0x7e,0x7a,0x00,0x7e,0x7e,0xfe,0xfe}。/*1,1*/unsigned char code shuzi_2[8]={0x3a,0x3c,0x5c,0x5c,0x6c,0x6c,0x72,0xfe}。/*2,2*/unsigned char code shuzi_3[8]={0xba,0x7c,0x7c,0x6c,0x6c,0x6c,0x92,0xfe}。/*3,3*/unsigned char code shuzi_4[8]={0x9e,0xae,0xb6,0xba,0x00,0xbe,0xbe,0xfe}。/*4,4*/unsigned char code shuzi_5[8]={0xa0,0x6c,0x6c,0x6c,0x6c,0x6c,0x9c,0xfe}。/*5,5*/unsigned char code shuzi_6[8]={0x82,0x6c,0x6c,0x6c,0x6c,0x6c,0x9a,0xfe}。/*6,6*/unsigned char code shuzi_7[8]={0xfc,0xfc,0xfc,0x0c,0xf4,0xf8,0xfc,0xfe}。/*7,7*/unsigned char code shuzi_8[8]={0x92,0x6c,0x6c,0x6c,0x6c,0x6c,0x92,0xfe}。/*8,8*/unsigned char code shuzi_9[8]={0xb2,0x6c,0x6c,0x6c,0x6c,0x6c,0x82,0xfe}。/*9,9*/unsigned char code fuhao_A[8]={0xfe,0xfe,0xbb,0xbb,0xfe,0xfe,0xfe,0xfe}。/*:,10*//*******************************************************************************************************************************/unsigned char code hanzi_a[2][16]={0xf7,0x37,0x47,0x70,0x17,0x73,0xb7,0xbd,0xdd,0xdd,0xed,0xe5,0xc9,0xdd,0xbf,0xff, 0xf7,0xe7,0xf7,0xf7,0x00,0xfb,0xbb,0xbd,0xbd,0xbd,0x81,0xbd,0xbc,0x9d,0xbf,0xff}。/*輕*/unsigned char code hanzi_b[2][16]={0xff,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0x03,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xff,0xff, 0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xc0,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xff}。/*工*/unsigned char code hanzi_c[2][16]={0xfb,0xcb,0x3d,0xfb,0x3b,0xc3,0xdf,0xef,0xf0,0x17,0xf7,0xf7,0xd7,0xe7,0xff,0xff, 0xef,0xf7,0xf9,0xfe,0x7d,0x73,0xbf,0xcf,0xf3,0xfc,0xf3,0xef,0x9f,0x3f,0xbf,0xff}。/*歡*/unsigned char code hanzi_d[2][16]={0xbf,0xbd,0xbb,0x37,0xff,0x03,0xfb,0xfd,0x7d,0x03,0xfb,0xfb,0xfb,0x01,0xfb,0xff, 0xff,0xbf,0xdf,0xe0,0xdf,0xb8,0xbd,0xbe,0xbf,0x80,0xbf,0xbd,0xbb,0x9c,0xdf,0xff}。/*迎*/unsigned char code hanzi_e[2][16]={0xbf,0xdf,0xef,0x03,0xdc,0xef,0x73,0x98,0xfb,0x0b,0xfb,0xbb,0x6b,0x73,0xff,0xff, 0xbf,0xcf,0xff,0x88,0x7f,0x7e,0x77,0x6d,0x4b,0x7c,0x7f,0x1f,0xff,0xee,0x9f,0xff}。/*您*/unsigned int Tcz,s=0,bt=0。//s表示中斷次數(shù) ,Tcz表示定時(shí)器TO的初值unsigned char iDex=0,hiDex=0。 //控制字母和漢字的碼值具體位數(shù)unsigned char Hour=10,Minute=15,Second=45,Hour_Flag=0,buffer=0。void hanzi_Show(unsigned char m)。void Time_Show(unsigned char m)。 //數(shù)字09加:顯示函數(shù)void Time_Amend()。 //時(shí)間邏輯控制函數(shù)void Hour_Display()。 //小時(shí)顯示函數(shù)void Minute_Display()。 //分鐘顯示函數(shù)void Second_Display()。 //秒鐘顯示函數(shù)void A_Display()。 //“:”顯示函數(shù)void Init()。 //初始化函數(shù)int k=0。void INT00(void)interrupt 0 //外部中斷服務(wù)函數(shù),定
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1