熱門: 51單片機(jī) | 24小時(shí)必答區(qū) | 單片機(jī)教程 | 單片機(jī)DIY制作 | STM32 | Cortex M3 | 模數(shù)電子 | 電子DIY制作 | 音響/功放 | 拆機(jī)樂園 | Arduino | 嵌入式OS | 程序設(shè)計(jì)
![]() |
發(fā)布時(shí)間: 2023-12-15 17:20
正文摘要:這是lcd的一些函數(shù) void delay(unsigned int xms) //延時(shí)// { unsigned char i,j; for(j = 0; j < xms; j++) &nbs ... |
檢查了一下發(fā)現(xiàn)是讀取數(shù)據(jù)函數(shù)的問題unsigned char ReadLcd() { unsigned char dat = 0; while(LcdBusyCheck()); DATA_PORT=0xff; LCD12864_EN=0; LCD12864_RS=1; LCD12864_RW=1; delay(1); LCD12864_EN=1; delay(1); dat=DATA_PORT; delay(1); LCD12864_EN=0; return dat; } 但是不知道怎么糾正 |
可能延時(shí)不夠,或者打點(diǎn)過程中 被中斷打斷了 |
Powered by 單片機(jī)教程網(wǎng)