标题: 新手求大神指导,12864液晶用keil调试时,一直在忙检测函数里死循环,怎么回事? [打印本页] 作者: 探路 时间: 2017-11-13 13:00 标题: 新手求大神指导,12864液晶用keil调试时,一直在忙检测函数里死循环,怎么回事? uchar dectbusybit() //忙检测
{
uchar s;
RS=0; //读指令
RW=1;
EN=1;
delayms(5);
s=P0;
EN=0;
return s;
}
void lcd_wrcom(uchar com) //写指令函数
{
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