I am going to suggest you start a new post with the following -
1) Detailed specs
2) Drawing of overall application, by block or schematic, what you are driving externally
3) All relationships, eg. expected waveform vs V, described in math
4) Detailed timing diagram of desired waveforms
Get a set of fresh eyes, better than mine, to take a look at your needs.
Regards, Dana
@shveta