I2C

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

How might I communicate to a I2C sensor using a attiny2313 or a atmega8?

Life Is Like A Bucket Of Chicken.

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

USI

C. H.
-------------------------------------------------------------------
It's only waste if you don't use it!

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

The ATmega8 has a TWI module. The ATtiny2313 has the USI. Personally I would go for the ATmega88 rather than the ATmega8.

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

Is there any info or a data sheet on the TWI or USI?

Life Is Like A Bucket Of Chicken.

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

The data sheets for the processors are located on this page:
http://www.atmel.com/dyn/product...

The application notes are located on this page:
http://www.atmel.com/dyn/product...

TWI is a I2C compatible hardware module that requires less CPU support to run. USI is a hardware module that can be I2C compatible, but it requires allot of more software and direct support from the CPU resources to run.

The application notes also have example programs.

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

Thank you,

A very useful data.

Life Is Like A Bucket Of Chicken.