
//*****************************************************************
//	WriteData()  
//*****************************************************************
void WriteData() 
{ 
char data ch; 
//ch = get_char(); 			// remove this line
while(ch != 0x0D) 
{ 
ch = get_char(); 			// insert this line
i2c_writebyte(c++,ch); 
outchar(ch); 
//ch = get_char();                      // remove this line
} 
wrom = 0; 
ES = 1; 
} 