i have added a 220uf/16v capacitor between the VCC and GND of nrf51822. the problem is solved. but not with a .1uf. is this is a correct solution for this............?
The nRF51 (and most micros for that matter) need to have decoupling on their power supply lines. You'll often find a big cap (10uF) in parallel with a much smaller cap (10nF or even smaller) to provide a reservoir or "tank" of energy. It smooths out the often heavy and fast power draws that micros are known to produce.
This question and answer can explain it far better than I can.
What is a decoupling capacitor and how do I know if I need one?
Power supplies are slow...they take roughly 10 us to respond (i.e. bandwidth up to 100 kHz). So when your big, bad, multi-MHz microcontroller switches a bunch of outputs from high to low, it will draw from the power supply, causing the voltage to start drooping until it realizes (10 us later!) that it needs to do something to correct the drooping voltage.
To compensate for slow power supplies, we use decoupling capacitors. Decoupling capacitors add fast "charge storage" near the IC. So when your micro switches the outputs, instead of drawing charge from the power supply, it will first draw from the capacitors. This will buy the power supply some time to adjust to the changing demands.
The "speed" of capacitors varies. Basically, smaller capacitors are faster; inductance tends to be the limiting factor, which is why everyone recommends putting the caps as close as possible to VCC/GND with the shortest, widest leads that are practical. So pick the largest capacitance in the smallest package, and they will provide the most charge as fast as possible.