標題: 新手求大神指導,12864液晶用keil調(diào)試時,一直在忙檢測函數(shù)里死循環(huán),怎么回事? [打印本頁] 作者: 探路 時間: 2017-11-13 13:00 標題: 新手求大神指導,12864液晶用keil調(diào)試時,一直在忙檢測函數(shù)里死循環(huán),怎么回事? uchar dectbusybit() //忙檢測
{
uchar s;
RS=0; //讀指令
RW=1;
EN=1;
delayms(5);
s=P0;
EN=0;
return s;
}
void lcd_wrcom(uchar com) //寫指令函數(shù)
{
while((dectbusybit()&0x80)==0x80);//忙等待 作者: cccc8888 時間: 2017-11-13 13:42
Peripherals Menu
The menu Peripherals includes dialogs to view and change on-chip peripheral settings. The content of this menu is tailored to show specific peripherals of the CPU selected for the application. This menu is active only in Debug Mode.
The table shows some typical dialogs provided by this menu
Menu Item Description
Interrupts Interrupt Controller
I/O Ports I/O Ports
Serial Serial Port
Timer Timers/Counters
Watchdog Watchdog Timer
A/D Converter Analog to Digital Converter
D/A Converter Digital to Analog Converter
I2C Controller I2C Controller
CAN Controller CAN Controller