Using two outputs

devasri:
it seems the timer functions are too slow

Post your code and tell us the performance you require expressed in microseconds. "Too slow" is meaningless.

Try the digitalWriteFast() library.

...R