atmega8 as twi-slave

hi,

i try to use the atmega8 as a slave-device on the twi (i2c) bus. i can send the slave-adress and the atmel reacts on it, but then it sends SCL to low and the bus is blocked. i have no idea whats the next step.

does anyone have a working slave-implementation (example-code)?

thanks

regards

olli

Reply to
Oliver Joa
Loading thread data ...

Hi,

sorry, hier nochmal in Deutsch. Ich will einen Atmega8 als Slave- Device an einem I2C(TWI)-Bus betreiben. Wenn ich vom Master die Adresse schicke, kommt die auch beim Atmega an, der legt aber SCL auf low und dann geht gar nix mehr. Hat jemand einen Beispiel-code, oder eine Idee?

Gruss

Olli

Reply to
Oliver Joa

Hi,

Ein Beispielcode ist zum Beispiel im avrlib enthalten:

formatting link

Eine eigene Implementierung für nur Master-Transmit und Slave-Receive kann ich an Interessierte per Mail zustellen.

Bye Daniel

--
  .~.    Daniel Schramm  Phone: +49 231 6108112   Mail:daniel.schramm@gmx.de
  /V\    Bruehlweg 36    Mobile:+49 178 8839848   ICQ: 35816985
 Click to see the full signature
Reply to
Daniel Schramm

super, danke.

oh ja, waere genial. je mehr beispiele desto besser. danke

gruss olli

Reply to
Oliver Joa

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.