can anyone tell me how to communicate two nrf51 using uart
If you are using driver, everything is described here.