Ok, i'll test it this evening
16:19:55.00
16:19:56.00
16:19:56.02
16:19:56.02
16:19:56.04
16:19:56.04
Or will that only become an issue with drift showing up in longer recordings?
...
ltcTimer.begin(genLtc, ltcTimer_freq);
ltcTimer.priority(0);
}
void startLtc() {
ltcTimer.begin(genLtc, ltcTimer_freq);
ltcTimer.priority(0);
....
20:01:01.22
20:01:01.23
20:01:01.00
20:01:02.01
20:01:02.02
20:01:02.03
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/core_pins.h:34:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/wiring.h:38,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:45,
from C:\Users\TOM~1.TOM\AppData\Local\Temp\arduino_build_210495\pch\Arduino.h:6:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:5665:50: error: expected unqualified-id before 'volatile'
#define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
^
C:\Users\Tom.TomDell\Desktop\LTC reader\LTC readwrite\frankb_post_70_v2\frankb_post_70_v2.ino:18:1: note: in expansion of macro 'NVIC_SET_PRIORITY'
NVIC_SET_PRIORITY(88, 0); //set GPIO-INT-Priority for Pin 1, added for speed improvement
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:5665:50: error: expected ')' before 'volatile'
#define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
^
C:\Users\Tom.TomDell\Desktop\LTC reader\LTC readwrite\frankb_post_70_v2\frankb_post_70_v2.ino:18:1: note: in expansion of macro 'NVIC_SET_PRIORITY'
NVIC_SET_PRIORITY(88, 0); //set GPIO-INT-Priority for Pin 1, added for speed improvement
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:5665:50: error: expected ')' before 'volatile'
#define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
^
C:\Users\Tom.TomDell\Desktop\LTC reader\LTC readwrite\frankb_post_70_v2\frankb_post_70_v2.ino:18:1: note: in expansion of macro 'NVIC_SET_PRIORITY'
NVIC_SET_PRIORITY(88, 0); //set GPIO-INT-Priority for Pin 1, added for speed improvement
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:5665:50: error: expected ')' before 'volatile'
#define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
^
C:\Users\Tom.TomDell\Desktop\LTC reader\LTC readwrite\frankb_post_70_v2\frankb_post_70_v2.ino:18:1: note: in expansion of macro 'NVIC_SET_PRIORITY'
NVIC_SET_PRIORITY(88, 0); //set GPIO-INT-Priority for Pin 1, added for speed improvement
^
Multiple libraries were found for "TimeLib.h"
Used: C:\Program
Multiple libraries were found for "Audio.h"
Used: C:\Program
Multiple libraries were found for "SPI.h"
Used: C:\Program
Multiple libraries were found for "SD.h"
Used: C:\Program
Not used: C:\Program
Multiple libraries were found for "SerialFlash.h"
Used: C:\Program
Multiple libraries were found for "analyze_ltc.h"
Used: C:\Users\Tom.TomDell\Documents\Arduino\libraries\LinearTimecode-Decoder-master
Multiple libraries were found for "Wire.h"
Used: C:\Program
Error compiling for board Teensy 3.2 / 3.1.
void setup() {
#ifdef USE_LTC_INPUT
AudioMemory(4);
#endif
setSyncProvider(getTeensy3Time);
pinMode(syncPin, OUTPUT);
pinMode(ltcPin, OUTPUT);
Serial.begin(9600);
ltcTimer_freq = (1.0f / (2 * 80 * (fps ))) * 1000000.0f - 0.125f;// -0.125: make it a tiny bit faster than needed to allow syncing
initLtcData();
[COLOR=#800000][I] //set frame number to last frame to force roll-over with new second()
ltc.data &= 0xf0f0f0f0f0f0fcf0ULL; //delete all dynamic data in frame
int t, t10;
t = fps;
t10 = t / 10;
ltc.data |= (t10 & 0x03) << 8;
ltc.data |= ((t - t10 * 10));
//now wait for seconds-change
int secs = second();
while (secs == second()) {;} [/I][/COLOR]
//start timer and pin-interrupt:
fpsTimer.begin(&genFpsSync, (1.0f / (2 * fps)) * 1000000.0f);
fpsTimer.priority(0);
attachInterrupt(digitalPinToInterrupt(syncPin), &startLtc, RISING);
NVIC_SET_PRIORITY(88, 0); //set GPIO-INT-Priority for Pin 1
}
I am curioust's our project now
[...]
more to come.