Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWANLCD HANEL
INTERFACINGSending Information to LCD UsingMOVC Instruction(cont’)
.....void lcdcmd(unsigned char value){lcdready(); //c
heck the LCD busy flagldata = value; //put the value on the pinsrs = 0;rw = 0;en = 1; //strobe the enable pinMSDelay(1); en = 0;return;} void lcddata(unsigned char value){ lcdready(); //check the LCD busy flagldata = value; //put the value on the pinsrs = 1;rw = 0;en = 1; //strobe the enable pinMSDelay(1);en = 0;return;} .....