Help
Advanced Member level 2
hi,
Anyone can help me to explain the function PC_LINK_O_Send_Char??
Thany you..
Code:
Tran_buffer[9] = {\n,D,i,s,a,r,m,e,d};
.
.
.
void PC_LINK_O_Update(void)
{
if(Out_written_index_G < 9)
{
PC_LINK_O_Send_Char(Tran_buffer[Out_written_index_G]);
Out_written_index_G ++;
.
.
.
.
void PC_LINK_O_Send_Char(const char CHARACTER)
{
tLong Timeout1 = 0;
if(CHARACTER == '\n')
{
Timeout1 = 0;
while((++Timeout1) && (TI == 0)); // set (1) Transmit-Interrupt flag
if(Timeout1 == 0)
{
return;
}
TI = 0;
SBUF = 0x0D; // Output CR (Carriage Return),
}
Timeout1 = 0;
while((++Timeout1) && (TI == 0)); // count until 23d=17h (ETB = "End of Trans. Block")
if(Timeout1 == 0)
{
return;
}
TI = 0;
SBUF = CHARACTER;
}
Anyone can help me to explain the function PC_LINK_O_Send_Char??
Thany you..