![]() |
發布時間: 2021-5-8 11:11
正文摘要:HYLCM12864G(用ST7565P芯片驅動)按可參照有關PDF文檔(參考文檔附后)接為并口模式驅動成功,但想改為串口驅動卻無法顯示。我們知道,兼容串并口驅動的12864屏,通常有PSB引腳。PSB接地為串口模式,接高電平為并口 ... |
名字不是重點 發表于 2021-5-12 09:28 應該是這個道理 |
COG時,PSB沒有綁出,所以,改不了串行 |
carpcarey 發表于 2021-5-9 18:23 各電容引腳電壓如下: C1:0.44 C2:0 C3:0 C4:0.35 C5:0.39 C6:3.31 C7:3.31 C8:2.8 C9:2.7 C10:3.35 無論短接任何一腳到地,均沒有作用 不知道是不是程序出問題: /**************************************************************************** 函數功能:串口移位輸出 入口參數:datain ****************************************************************************/ void LCDShiftWrite(char datain) { unsigned char i; unsigned char Series; Series = datain; for(i=8;i>0;i--) { SCL=0;_nop_(); if(Series & 0x80){SI=1;} else {SI=0;} _nop_();_nop_(); SCL=1; // Series = Series << 1; } } /**************************************************************************** 函數功能:向ST7565寫命令 入口參數:命令字 cmd ****************************************************************************/ void WriteCom(uchar cmd) { CS=0; A0=0; //命令 LCDShiftWrite(cmd); CS=1; // } /**************************************************************************** 函數功能:向ST7565寫數據 入口參數:數據 dat ****************************************************************************/ void WriteData(uchar dat) { CS=0; // A0=1; //數據 LCDShiftWrite(dat); CS=1; // } 串口驅動時,RW和E接地, 其他代碼與并口一樣。 |
新新科技 發表于 2021-5-9 13:03 C1那腳接電阻對地再看看,不行試試C2。 |
glinfei 發表于 2021-5-8 18:48 是的,就是找不到P/S引腳,莫非廠家下狠心,沒有把P/S引出來? |
carpcarey 發表于 2021-5-8 13:56 短接R1沒有作用,R1兩端的都是低電平的,估計這個引腳不是P/S。 |
不知道P/S怎么置L, 如果能選,那,CS=L,SI 輸入,SCL上沿錄入,(按照D7到D0的順序)。另外,A0為H時,錄入的是命令啊,為L時是顯示的數據 |
When the serial interface has been selected (P/S = “L”) then when the chip is in active state (/CS = “L”) the serial data input (SI) and the serial clock input (SCL) can be received. The serial data is read from the serial data input pin in the rising edge of the serial clocks D7, D6 through D0, in this order. This data is converted to 8 bits parallel data in the rising edge of the eighth serial clock for the processing. |
R1短接試下 |