barismetin / arduino-timerone

Automatically exported from code.google.com/p/arduino-timerone
0 stars 0 forks source link

ReadReceiver Sketch Incompatible with TimerOne-v8, works with TimerOne-v2 #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install timerone v8 & pinChangeInt library
2. Run ReadReceiver example sketch.
3. Connect RC receiver to pins D2, D3, and D4.
4. Run the sketch and open the serial monitor

What is the expected output? What do you see instead?
Upon inputting "p", some response should come back to the serial monitor, but 
nothing comes back.

After downgrading to TimerOne, v2, the ReadReceiver sketch operates as 
expected, and provides good times for the 3 RC channels.

I did not attempt this test with TimerOne-v7. 

What version of the product are you using? On what operating system?  Noted 
above.
Arduino 23, Windows 7, Arduino nano board

Please provide any additional information below.
Serial monitor data user TimerOne-v2:
PinChangeInt ReciverReading test
time:   0:1018  1:0 2:0 2
time:   0:1018  1:0 2:0 2
time:   0:1449  1:1670  2:1830  9
time:   0:470   1:1735  2:1830  12
time:   0:470   1:1735  2:1237  12
time:   0:2171  1:197   2:1237  15
time:   0:1171  1:1551  2:1569  108
time:   0:1171  1:1551  2:1569  199

When using TimerOne-v8, only the first line of text (from the setup portion of 
the sketch) is seen.  No times are ever printed.

Original issue reported on code.google.com by steve.ha...@gmail.com on 11 Dec 2011 at 6:50

GoogleCodeExporter commented 8 years ago
I also attempted to activate the proper Timer1.Read method call that is 
included in TimerOne-v8.  However, this did not produce any results on the 
serial port either.  The call is the 2nd one here from the ReadReceiver example:
    time[i]=readTimer1();    // read the time since timer1 was restarted
//    time[i]=Timer1.read();    // The function below has been ported into the
                            // the latest TimerOne class, if you have the
                            // new Timer1 lib you can use this line instead

Original comment by steve.ha...@gmail.com on 15 Dec 2011 at 2:44