Hi!
I'm making a program to run a LCD Display with a HD61830 controller.
I've got some C Sourcecode which helps some, but it uses something I don't quite understand:
Code:
/***************************************************
* wait till HD61830 is not busy
*************************************************/
void lcgwait(void)
{
char busy;
_outp(PORTB,LCGCMD|LCGRD|LCGDIS);
do{
_outp(PORTB,LCGCMD|LCGRD|LCGEN);
delay(EDELY);
busy=_inp(PORTA)&0x80;
_outp(PORTB,LCGCMD|LCGRD|LCGDIS);
delay(EDELY);
}while(busy);
}
Notice the "delay(EDELY);" ? what is EDELY? I could possibly replace it with sleep(), but it hasn't got any time! Is it "wait for answer" or something?
I appreciate any help on this
Cheers!