Thread: Discussion Open Flight Stabilizer
View Single Post
Old Jan 09, 2013, 07:47 PM
Odysis is offline
Find More Posts by Odysis
Life begins at transition
Australia, VIC, Sale
Joined May 2007
3,593 Posts
Some read/write operations (i.e. 16bit ones) need to disable ISRs as they take two clock cycles to complete. that might be one reason you're seeing small ISR disable periods.

Why they're doing that in the I2C I don't know.

Edit: Just had a look at your code. Using micros() will give you a 4us best case resolution. Why not use TCNT1 like you have with Timer0?
Odysis is offline Find More Posts by Odysis
Last edited by Odysis; Jan 09, 2013 at 08:01 PM.
Reply With Quote