Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Issue successfully resolved

???
02/13/04 21:45
Read: times


 
#64759 - RE: C and 8051
Responding to: ???'s previous message
hi,
okay, try to look here more careful (I skip some lines to highlight the problem):
<PRE>
sbit busy = 0x087; //busy bit = db7

void chkbusy(void)
{
data unsigned temp;
do{
LCD_EN = 1; // CLOCKS E HIGH
temp = LCD_DATA;
LCD_EN = 0; // CLOCKS E LOW
} while (busy == 0);
}

So now could you explain why do you check bit 7 of P0 (sbit 0x87) instead check 7th bit of temp???
Try while (temp < 0x80);

Regards,
Oleg

List of 8 messages in thread
TopicAuthorDate
C and 8051            01/01/70 00:00      
   RE: C and 8051            01/01/70 00:00      
      RE: C and 8051            01/01/70 00:00      
         RE: C and 8051            01/01/70 00:00      
   RE: C and 8051            01/01/70 00:00      
   RE: C and 8051            01/01/70 00:00      
      RE: C and 8051            01/01/70 00:00      
         RE: C and 8051            01/01/70 00:00      

Back to Subject List