Henrik,
That looks awesome! I will try it this weekend when I get some time.
I did get it to work on an 18F2320 by taking the first bit of code that Bruce posted in the link in my initial post and modifying it a bit. Basically I could only measure one circuits pulse in relation to the 60HZ signal though. Not both circuits.
I did that by taking out his failing edge capture and replacing it with a rising edge capture of the second pulse via CCP2
So CCP1 looks for the rising edge on the 60Hz signal, and then it switches to look for the rising edge of the second pulse on CCP2. The rest is the same as his code for the most part.
I think its pretty close to your original thinking, except using CCP to capture instead of raw pins.
I got some really nice, workable results right off the bat, so I was pretty happy I figured something out at least![]()
I can wait to try your code out, as it gets me even closer.
Thanks so much to all of you for helping and lending your thoughts. I'll let you know how it goes!
-Ryan
Bookmarks