I2C use slows other tasks ?
Posted: 19 August 2011, 14:31 PM
I have a small problem with my GPS based qualifying light. Its secondary purpose is to write GPS records to an serial sd card modle at 10hz. Upon analysis i see occasional missing records and these seem to coincide with the main task processing a sector cross event which occur every 3 seconds or so.
The code triggered upon sector cross doesn't amount to much, but does involve updating the LCD (using zbasic I2C functions on s/w pins) in 4 places and i wonder if the I2C routines might cause a suspend of the GPS read sub-task ?
I can alter the display interface to be serial in the next version and i wonder if this might be more efficient as the serial output would not require any flow control. Alternatively I could use h/w I2C in the next version as the processor has more pins.
thanks
The code triggered upon sector cross doesn't amount to much, but does involve updating the LCD (using zbasic I2C functions on s/w pins) in 4 places and i wonder if the I2C routines might cause a suspend of the GPS read sub-task ?
I can alter the display interface to be serial in the next version and i wonder if this might be more efficient as the serial output would not require any flow control. Alternatively I could use h/w I2C in the next version as the processor has more pins.
thanks