Quote Originally Posted by mister_e View Post
Careful when using nested subs... may run into stack overflow sooner than you may think.
your right. i did run into a stack overflow problem when i was simulating the code. i tried to make my program more modular with nested subs but i guess the stack can only be 3 gosubs deep, anything more will give me a stack overflow problem

i will put my routines in loop1 and loop2 inside the interrupt. i think that will work and i won't run into an overflow problem.

thank you mr. e