8-bit AVR Microcontroller

Two-wire Serial Interface Characteristics

The table below describes the requirements for devices connected to the Two-wire Serial Bus. The ATmega8A Two-wire Serial Interface meets or exceeds these requirements under the noted conditions.

Timing symbols refer to Figure 30-3.

Table 1. Two-wire Serial Bus Requirements
Symbol Parameter Condition Min Max Units
VIL Input Low-voltage   -0.5 0.3VCC V
VIH Input High-voltage   0.7VCC VCC + 0.5 V
Vhys(1) Hysteresis of Schmitt Trigger Inputs   0.05VCC(2) V
VOL(1) Output Low-voltage 3mA sink current 0 0.4 V
tr(1) Rise Time for both SDA and SCL   20 + 0.1Cb(3)(2) 300 ns
tof(1) Output Fall Time from VIHmin to VILmax 10pF < Cb < 400pF(3) 20 + 0.1Cb(3)(2) 250 ns
tSP(1) Spikes Suppressed by Input Filter   0 50(2) ns
Ii Input Current each I/O Pin 0.1VCC < Vi < 0.9VCC -10 10 μA
Ci(1) Capacitance for each I/O Pin   10 pF
fSCL SCL Clock Frequency fCK(4) > max(16fSCL, 250kHz)(5) 0 400 kHz
Rp Value of Pull-up resistor fSCL ≤ 100kHz
VCC0.4V3mA
1000nsCb
Ω
fSCL > 100kHz
VCC0.4V3mA
300nsCb
Ω
tHD;STA Hold Time (repeated) START Condition fSCL ≤ 100kHz 4.0 μs
fSCL > 100kHz 0.6 μs
tLOW Low Period of the SCL Clock fSCL ≤ 100kHz(6) 4.7 μs
fSCL > 100kHz(7) 1.3 μs
tHIGH High period of the SCL clock fSCL ≤ 100kHz 4.0 μs
fSCL > 100kHz 0.6 μs
tSU;STA Set-up time for a repeated START condition fSCL ≤ 100kHz 4.7 μs
fSCL > 100kHz 0.6 μs
tHD;DAT Data hold time fSCL ≤ 100kHz 0 3.45 μs
fSCL > 100kHz 0 0.9 μs
tSU;DAT Data setup time fSCL ≤ 100kHz 250 ns
fSCL > 100kHz 100 ns
tSU;STO Setup time for STOP condition fSCL ≤ 100kHz 4.0 μs
fSCL > 100kHz 0.6 μs
tBUF Bus free time between a STOP and START condition fSCL ≤ 100kHz 4.7 μs
fSCL > 100kHz 1.3 μs
Notes:
  1. 1.In ATmega8A, this parameter is characterized and not 100% tested.
  2. 2.Required only for fSCL > 100kHz.
  3. 3.Cb = capacitance of one bus line in pF.
  4. 4.fCK = CPU clock frequency
  5. 5.This requirement applies to all ATmega8A Two-wire Serial Interface operation. Other devices connected to the Two-wire Serial Bus need only obey the general fSCL requirement.
  6. 6.The actual low period generated by the ATmega8A Two-wire Serial Interface is (1/fSCL - 2/fCK), thus fCK must be greater than 6MHz for the low time requirement to be strictly met at fSCL = 100kHz.
  7. 7.The actual low period generated by the ATmega8A Two-wire Serial Interface is (1/fSCL - 2/fCK), thus the low time requirement will not be strictly met for fSCL > 308kHz when fCK = 8MHz. Still, ATmega8A devices connected to the bus may communicate at full speed (400kHz) with other ATmega8A devices, as well as any other device with a proper tLOW acceptance margin.
Figure 1. Two-wire Serial Bus Timing