Maybe I haven't understood exactly what you're trying to do, but I think you'll have problems trying to use just one pin for the cap function and the voltage divider. From what I've read ADCs don't generally like source impedances greater than ~ 10k, and 10k with a 1uF cap has a time constant of...