Originally Posted by
Satya
First of all if it is asynchronous serial communication then baud rate should be matching to establish proper communication. If you are saying that the data is coming at a faster rate than the processor can handle you can use the buffering method. I hope whatever serial data comes you get an interrupt, so as soon as the interrupt is happening, write the data to an array and increment the index. Simultaneously the processor whenever it is free should check for the array and if any data is available it should process and maintain other index. But remember that the array can only be of fixed size. If the incoming data crosses the limit then it will overwrite the data in the array.