Time Consumption - MobiFlight/MobiFlight-Connector GitHub Wiki

Atmega NormalIO Atmega FastIO Pico NormalIO Pico FastIO Remark
Outputs 11 us 11 us only writing one output, analogWrite(), no changes
Buttons 9 us 3 us 2 us only reading one input
224 us 220 us (??) reading AND evaluating one input, must be wrong for the Pico
LEDSegment 6.3 ms 1.3 ms 1.3 ms 2x8 daisy chained
Encoder 23 us 10 us 3 us only reading one encoder
290 us 22 us reading AND evaluating one
Stepper 23 ms 23 ms 3 us not changed to FastIO
Servos
LCD 12 ms 12 ms 9.7 ms limited by I2C
AnalogIn 122 us 122 us 11 us calculating average value
OutputShifter 0.74 ms 0.16 ms 4x8bit daisy chained
InputShifter 0.5 ms 0.14 ms 4x8bit daisy chained
Multiplexer 2.4 ms 0.9 ms 4 x 16 bit

*) Pico (measurements from month ago)

Reading time for Encoders:

  • 1ms: actual status, works with only very very less detection of wrong direction for fast turning
  • 2ms: very less detection of wrong direction for fast turning -> OK
  • 3ms: less detection of wrong direction for fast turning
  • 4ms: same as 3ms
  • 5ms: slow turning is OK, fast turning with multiple detection of wrong direction
  • 10ms: even slow turning does not work