Protection from voltages on IO when powered off

We use an nRF52832 analog input to measure the voltage on a large capacitor. I think we have destroyed some chips when the capacitor is still charged and the power to the nRF is removed. This makes sense as inputs should not exceed VDD+0.3V.

We are measuring the capacitor voltage every three seconds or so. 

I thought a solution may be to put a resistor between the capacitor and the nRF input, and a small capacitor between the nRF input and ground.

If you think this makes sense, what values of R and C would be safe for the nRF?

Any other thoughts? Thanks

Related