用C語言寫1602液晶的程序,在寫指令時,延時時間為什么不能是us級
void writeComm(uchar comm)
{
RS = 0;
P0 = comm;
LCDEN = 1;
delayUs( );
LCDEN = 0;
delayUs( );
void writeData(uchar dat)
{
RS = 1;
P0 = dat;
LCDEN = 1;
delayUs( );
LCDEN = 0;
delayMs(1); //此處為什么是ms級,寫數(shù)據(jù)與寫指令在時序圖上時間是相同的。數(shù)據(jù)手冊上的可都是ns級,us級為什么會出現(xiàn)錯誤
}
| 歡迎光臨 (http://www.raoushi.com/bbs/) | Powered by Discuz! X3.1 |