Hallo,
noch eine kleine Ergänzung zum Thema TWI Geschwindigkeit.
Ich hatte folgende Notiz im MEGA32 Datenblatt auf Seite 288 / 289 zunächst wohl übersehen:
7. The actual low period generated by the ATmega32 Two-wire Serial Interface is (1/fSCL - 2/fCK), thus the low time requirement will not be strictly met for fSCL > 308 kHz when fCK = 8 MHz. Still, ATmega32 devices connected to the bus may communicate at full speed (400 kHz) with other ATmega32 devices, as well as any other device with a proper tLOW acceptance margin.
Danach ist das nicht weiter tragisch, solange die Slaves das Timing nicht 100% exakt nach I2C Spezifikation erwarten. Nur das Timing weicht bei mehr als 300kBit/s etwas ab.
--> 400kHz Master Modus ist also Bedenkenlos möglich (hatte ich ja auch schon getestet - gab keine Probleme).
MfG,
SlyD
Lesezeichen