Set my SAMD20 on Slave I²C for my RaspPi

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

So, basically, I want to use a Raspberri Pi as a Master and a SAMD20 as a slave for I²C communication.

 

Settings the Raspberry as a Master have been a breeze and I can easily communicate with several I²C chip already.

 

On the other hand, I'm completely lost with the SAMD20. I've tried to start a new "SAM SERCOM I2C Slave with Callbacks" projet and I'm not sure how to do anything.

 

Some help here?

 

Thanks,

 

Elok

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

I read that like you started from scratch and just added ASF support for I2C slave?  Maybe not the best way to go about it if that is the case, I would at least look at an example project like "Quick Start for the SAM SERCOM I2C Slave Driver (Callback) - SAM D20 Xplained Pro". Then read about the driver and that example here 

http://www.atmel.com/Images/Atme...

/Lars