|
程序一直在忙檢測里死循環(huán),把忙檢測注釋掉,程序能正常走,但是12864顯示還是沒顯示,芯片是IAP15W4K58S4
/********************************************************************
//LCD12864 忙 信號檢測
//********************************************************************
void LCD12864_WaitIdle()
{
unsigned char temp;
LCD12864_RS_PORT = 0;
LCD12864_RW_PORT = 1;
while(1){
P4 = 0xff;
LCD12864_E_PORT = 1;
temp=P4;
LCD12864_E_PORT = 0;
if(temp&0x80==0)
break;
}
//while(i&0x80); /*等待BF 不為1*/
}
|
|