用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级,写数据与写指令在时序图上时间是相同的。数据手册上的可都是ns级,us级为什么会出现错误
}
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |