I am revisiting an old project from last year and needed some help again (previous topic: http://arduino.cc/forum/index.php/topic,66527.0.html)
Signals involved:
1 hz input signal (say connected to pin 2)
10 mhz input signal (external clock - say connected to pin 1)
The ultimate goal:
On every rising edge of the 10mhz signal (pin 1), I want to store the input value of pin 2. X amount of rising edges from pin 1 later (where X is a number I can choose - for now, let's say 10 cycles to give us a 1 microsecond delay), I want to output what was stored 10 rising edges previously to pins 5, 6, and 7.
The goal of this is to take the input 1hz signal, and to output the exact same signal on pins 5,6, and 7, but shortly delayed (by X/10 microseconds).
It has been a while since I have programmed for the arduino, and reading through the suggestions on page 2 of the previous topic is confusing me since I do not know how to use pointers - though it seems like that is the way to go?
Thanks for any help you can provide!
**note, in my last topic I said that the external clock was 1mhz -- it is actually 10mhz, as stated in this post.