Hi all,
I am doing some work on UART. the code to recieve data on my UART from Hyperterminal is as follows:
Recieve(Count, Destination)
{
//Monitor the port to recieve data and continously poll the data.
//A data byte recieved will set the LSB in LCR to 1.
//Thus the CPU has safely read the data
do
{
status = Value in LSR & 0x01;
}while(!status);
//Once read copy the value in RBR to the dest
valueAtdest = ValueinRBRregister;
}
Now this particular code skips out the second character 0x0A if its previously accompnaioed by oxoD.
Say for every combination of 0x0D 0x0A the reciev function simple skips the 0x0A character due to which the next incoming meesages get lost.:(
Any help would be welcome
:)
Sundar
}