Must use a buffer made with an operational amplifier. TTL inputs are low impedance this is why the voltage across capacitor drop fast.

regards