I use Arduino Uno to receive a trigger from ohter instrument and then output a digital signal after a certain delay relative to the trigger. At beginning, I can set the minmum delay time around 4us and the digital signal rising edge has 200ns jittering if observing with an oscilloscope.
After using I2C (in order to accept data from computer or another Arduino), I found:
1) the delay between the trigger and the digital signal becomes much larger. It is bigger than 20us, I have no way to make it short than 20us.
2) the pricision of the rising edge of the digital signal gets worse. It has a jitter around 500ns. In other word, after using I2C, the timing precision I can fire the digital signal gets worse.
Is the digital signal timing precision affected by I2C? Somebody says that the I2C interupt has interference on digital signal timing. Is it true?
Thanks for help!