新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > 最后算是搞定12232單片機驅(qū)動了

最后算是搞定12232單片機驅(qū)動了

作者: 時間:2016-11-29 來源:網(wǎng)絡 收藏
/*---------------------生成的以下字的字庫:驅(qū)動編寫萬致遠字庫由萬致遠HZK軟件建立。使用點陣顯示模式HZ就是您需要的漢字庫----------------*/unsigned char __code HZ[][32]={/******點陣*******0000100000000100111111011111111000001001000000000100100101000100010010010100010001001001001010000100100100101000010010010001000001111101000100000000010100101000000001010010100000011101010001001110010110000100010001010000000000010101111111100000100000000000*******點陣結(jié)束********/{0x2,0xFA,0x2,0x2,0xFF,0x2,0x0,0xFE,0x2,0x1A,0x62,0x82,0x62,0x1B,0x2,0x0,0x10,0x31,0x11,0x49,0x89,0x7F,0x0,0x7F,0x50,0x48,0x46,0x41,0x46,0x58,0x40,0x0},/******點陣*******0000000001000000000010000100000001111100010000000000000001000100000001011111111011111110010001000001000001000100000100000100010000100000010001000010010001000100010000101000010011111110100001000100000100000100000000010000010000000010001010000000010000010000*******點陣結(jié)束********/{0x20,0x24,0x24,0xE4,0x26,0x34,0x20,0x10,0x10,0xFF,0x10,0x10,0x10,0xF8,0x10,0x0,0x8,0x1C,0xB,0x8,0x8,0x8A,0x4C,0x30,0xC,0x3,0x40,0x80,0x40,0x3F,0x0,0x0},/******點陣*******0001000010000000000100000100100000100011111111000010001000001000010010100000100011111011111110000001001000000000001000100000010001000011111111101111011010010100010010101001010000000011111111000001101010010100111000101001010001000010100101000000001000001100*******點陣結(jié)束********/{0x20,0x30,0xAC,0x63,0x30,0x0,0xFC,0x24,0x25,0x26,0x24,0x24,0x3E,0x84,0x0,0x0,0x22,0x67,0x22,0x12,0x14,0x2,0xFF,0x9,0x7F,0x9,0x9,0x7F,0x89,0xFF,0x1,0x0},/******點陣*******0000000000000000011111111111111001000000000000101000100000000100000010000010000000001111111100000000100000000000000010000000100000001111111111000000000000001000000000000100100001111111111010000000000000001000000000000000100000000000010100000000000000100000*******點陣結(jié)束********/{0x8,0x6,0x2,0x2,0xFA,0x22,0x22,0x22,0x22,0x22,0x32,0x22,0x82,0xA,0x6,0x0,0x0,0x8,0x8,0x8,0x9,0x9,0x9,0x9,0x9,0x4D,0x89,0x41,0x3F,0x1,0x0,0x0},/******點陣*******0000000000000000000000000000010011111111111111100000001000000000000000100000000000000010000100000000001111111000000000100001000000000010000100000000010000010000000001000001000000000100000100000000100000010000000100000001000000100000101000000100000001000000*******點陣結(jié)束********/{0x4,0x4,0x4,0x4,0x4,0x4,0xFC,0x44,0x44,0x44,0x44,0xE4,0x44,0x6,0x4,0x0,0x0,0x80,0x40,0x20,0x10,0xE,0x1,0x0,0x40,0x80,0x40,0x3F,0x0,0x0,0x0,0x0},/******點陣*******0000010001000000111111100100000000010000010000000001000001000100001000001111111001000101000010001111111010001000000100001000100000010000100010000111110010010000000100000101000000010000001000000001111001010000111100001000100001000001000011100000011000000100*******點陣結(jié)束********/{0x42,0x62,0x52,0xCE,0x42,0x63,0x42,0x20,0xD0,0x1F,0x10,0x10,0xF0,0x18,0x10,0x0,0x20,0x62,0x22,0x3F,0x12,0x92,0x90,0x40,0x23,0x14,0x8,0x16,0x61,0xC0,0x40,0x0},/******點陣*******0000000000010000010000111111100000110000000000000001000000000000000000000000100000000111111111001111000100100000000100010010000000010001001000000001000100100100000100100010010000010010000111000001010000000000001010000000011001000111111111000000000000000000*******點陣結(jié)束********/{0x40,0x42,0x44,0xCC,0x0,0x20,0x22,0xE2,0x22,0x22,0xE2,0x23,0x32,0x20,0x0,0x0,0x0,0x40,0x20,0x1F,0x20,0x50,0x4C,0x43,0x40,0x40,0x47,0x48,0x48,0x6E,0x20,0x0}};void OutCLK() __interrupt 1 __using 1//CLK out 2kHz{TF0=0;//CLRTR0=0;EA=0;TH0=TH;TL0=TL;CLK=!CLK;TR0=1;EA=1;}void Delay_ms(UINT x){UINT y;while(x--){for(y=0;y<600;y++);}}void Init_Timer(){TMOD=0x21;//T0計數(shù)器模式,T1八位重載模式TH0=TH;TL0=TL;TR0=1;ET0=1;SCON = 0x50;TH1 = 0xFF; //57600TL1 = 0xFF; TR1 = 1;PCON=PCON|0x80;//波特率加倍EA=1;}void putchar(char s){SBUF=s;while(!TI);TI=0;}

評論


技術專區(qū)

關閉