Thanks for those good ideas. I'll post some code when I have it on breadboard and tested with scope.