There's an obvious fault in your code, it misses to increment the pointer RF_PTR. Furthermore, the UART channel assigned to interrupt #int_rda2 will be most likely UART2, not UART1. But of course, this can't be exactly decided from a snippet of code. Finally I don't get the idea of this construct
Code:
if (RF_PTR==99)
RF_PTR=50;
For continuous processing of incoming serial data, I would preferably implement a ring buffer, using two pointers next_in and next_out.
I guess, that you are at the very start of your project, dealing with low level support routines. These things can be copied from example code shipped with your compiler.
The real challenge will be the modem and RFID device communication.
thanks for reply
so sory for this fault but i have a very big code and just i want an explain about this part of code(RFID) that iwant to add to our device