|
还有就是这个函数搞不懂诶
void lcd_datawrite(uchar wrdata) small
{
while(lcd_busy == 0);
lcd_data = wrdata;
lcd_cs1 =0; // chip enable.
lcd_rd = 1; //
lcd_rs = 1; // rs = 1;
lcd_wr = 0; // wr = 0;
delay_nop(1);
lcd_wr = 1; // wr = 1;
lcd_rs = 1; // rs = 1;
lcd_cs1 =1; // chip disable.
}
lcd_busy。。端口给的datasheet上写的是 while(lcd_busy == 1);
但是我把程序移植到51板上必须是 while(lcd_busy == 0);才能显示。。我纠结了 |
|