這個(gè)邏輯圖到底怎么編輯顯示數(shù)組?。?
下面是原理圖
下面是網(wǎng)上找的代碼,運(yùn)行后液晶可以顯示,就是不知道怎么做到顯示自己要的顯示值
#includeclude sbit BL = P5^4;//原來代碼沒有這個(gè)IO口操作,就是液晶背光源 //sbit CS = P3^5; #include /* standard I/O .h-file */ #include /* standard library .h-file */ #include /* character functions */ #define uchar unsigned char #define uint unsigned int #define _Nop() _nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_() #define BIAS 0x52 //1/3偏壓,4背極1000 0101 0010 #define SYSDIS 0X00 //關(guān)閉系統(tǒng)時(shí)鐘和偏壓發(fā)生器 #define SYSEN 0X02 //打開系統(tǒng)時(shí)鐘 #define LCDOFF 0X04 #define LCDON 0X06 #define XTAL 0x28 #define RC256 0X30 //系統(tǒng)時(shí)鐘選擇為片內(nèi)RC振蕩器 #define TONEON 0X12 //打開音頻輸出 #define TONEOFF 0X10 //關(guān)閉音頻輸出 #define WDTDIS 0X0A //禁止WDT溢出標(biāo)志輸出 sbit HT1621_DAT=P3^7; sbit HT1621_CS=P3^5; sbit HT1621_WR=P3^6; //sbit cs_sda = P3^5; //dog //const char num[]={0x}; uchar code Ht1621Tab[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; //delay us void Delay(uchar us) //5,7,9 { while(--us); } void DelayMS(uint iMs) { uint i,j; for(i=0;i