<i>void BUSYF_CHK_WAIT(void)
 {
   //Set P1 to input
   P1 = 0xFF;
   //Set R/W = 1 (read mode)
   P3_3 = 1;	   
   //Wait for not busy
   while(P1_7)
	{
	}</i>