I2C slave

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I need the AVR (90s2313) to work as an i2c slave device.
Are there any libraries or examples of this on the net?
Preferably on AVR-GCC :?:

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is the application note AVR302 (with accompanying code) from Atmel but it is in assembler.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And it is no more on Atmels web-site! Whats going on here?

I have the PDF if You want it but I am missing the zip with the code.

It might be that it is on the Atmel CD I got with my STK500. I'll take a look. Let me know if You want it!

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I posted a thread on this subject a couple of days before (21st of August):
https://www.avrfreaks.net/phpBB2/...

I found the asm code on the net (linked in the other thread). But wonder how I can incorporate the code into Codevision C without too much of a hassle...

If you have any succes I would appreciate it if you let me know.

Kind Regards,
Bart