Printing to MegunoLink Priority Interrupt Status

Support forum for MegunoLink
Post Reply
Posts: 1
Joined: Mon Feb 18, 2019 4:18 pm

Mon Feb 18, 2019 4:32 pm

Hi Everyone!

I'm having a bit of trouble with my timestamps while printing data to a MegunoLink interface.

As background...I have a sensor that fires an interrupt pin when new data is ready to be read from the sensor FIFO buffer. Then, in my Arduino script, I have an interrupt service routine that timestamps the new data sample. I read the samples from the sensor FIFO buffer and pop the timestamps later for processing.

The problem though is that I seem to miss the interrupt when I'm printing results to MegunoLink. That leads to the wrong time being stamped to the next available sample from the sensor.

Any ideas why I'm missing the interrupt during my print commands? Does this have something to do with the interrupt priority status?

Happy to provide more information if needed!

Thanks for any help!
Posts: 359
Joined: Mon May 26, 2014 10:58 am

Wed Feb 20, 2019 4:14 am

Hi interrupt are definitely tricky. Serial and time keeping rely on them also so maybe there is some interaction there. Could you attach some example code?

Post Reply