AnsweredAssumed Answered

problem   busy LCD 16X2    TO 4bits

Question asked by yesid rodriguez on Jul 27, 2012
Latest reply on Aug 13, 2012 by yesid rodriguez

I am working one lcd 16x2 en en 4 bits. I read already different information about this.
I am working with one Mcu JM60. with a pll to 40 Mhz I have a problem, because when I have programed the Mcu appear this symbol ← one arrow to the left
I think the problem is in the funcion busy but I do not sure. if anybody can help me I thanks.

the others funtions I am sure are corrects  but I doubt of the busy funtion.

 

void busy()
{
unsigned char bf=1;
//port of dates input
PTEDD_PTEDD7=0;
PTEDD_PTEDD6=0;
PTEDD_PTEDD5=0;
PTEDD_PTEDD4=0;
rs=control; //0
rw=lee; //1
// enable = on;
while (bf ){ // If Busy (PTA7=1), loop
enable = on; // Set E=1
bf = PTED_PTED7; // Read status register
enable = off; // Set E=0
enable = on; // Set E=1
enable = off; // Set E=0
}
PTEDD_PTEDD7=1;
PTEDD_PTEDD6=1;
PTEDD_PTEDD5=1;
PTEDD_PTEDD4=1;
}

Outcomes