Hallo! Der attiny26 USI, die unendliche Geschichte. Das Progrämmchen im Anhang konfiguriert den USI als TWI/I2C. Im Datenblatt heist es auf Seite 83 in der Tabelle: "The Serial Data (SDA) and the Serial Clock (SCL) pins are bidirectional and uses [steht da so :)] open-collector output drives. The output drivers are enabled by the DDRB0/2 bit in the DDRB Register. When the output driver is enabled for the SDA pin, the output driver will force the line SDA low if the output of the Shift Register or the PORTB0 bit in the PORTB Register is zero." Soweit das Datenblatt. Wenn der output driver nicht enabled ist wird die betreffende Leitung nicht auf 0 gezogen. Nun schicke ich einen I2C Befehl auf den Bus. (Der ist in Ordnung, Sieht auf dem Oszi wunderschön aus.) und BEIDE Leitungen, sowohl SDA als auch SCL werden auf null gezogen. SCL ist in Ordnung, der outputdriver ist enabled und bei erkannter Startbedingung zieht USI die Leitung auf 0. Aber SDA sollte oben bleiben, tut es aber nicht. Was mache ich falsch? Danke Axel
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.