twi

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

Hi all, does anyone have any simple master code for xmega twi. i have read the atmel example but seems very bloated as such. I just need to write to a max7310 port expander. i am an iccavr user so if any code is written for that compiler it would be great.

Regards

paul

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

I assume the example you are referring to is Application Note 1308? I don't think this is bloated at all. The only file you would need is twi_master_driver.c and the header files it needs. It's not bloated at all- if anything, it was light on functionality and I added some needed stuff to make it bullet proof.

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

Can you help me find the Atmel examples? I want to use i2c on the atxmega128a1 but am unable to find any examples on the website.

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

Did you read the code and text of AVR1308 on this page:

http://www.atmel.com/dyn/product...

Did you look at ASF?

ASF (for Xmega) to a certain extent just seems to conglomerate the AVR13xx application notes.

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

Thank you! This is exactly what I need to write i2c