I have a problem that waveform distorted after adding high ohm resistor, (second figure shows that resistor voltage which doesn't follow of input pulse (yellow).
So I added Darlington pair right after 500k resistor node to avoid distortion. But nothing has been changed in practical case.
Note: Circuit configure is for easy understanding, actual one is more complicated. Thanks