Possible to do I2C on the AT90USB162 micro-controller?

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

Hi,

I don't see it has the SDA/SCL pins.

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

Well, almost.

No mention, at all, of TWI in that device; amazing! So, if you need it, bit bang it. Its not THAT hard. I've done it on 8051.

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

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

millwood wrote:
it is possible to do anything on anything.

:D Man, we need someone like you to solve the USA's health care issues.

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

I have not got a AT90USB162 data sheet to hand. I it does not have a TWI peripheral (or USI), you just have to do a bit-banged Master. This will work absolutely fine for controlling Slaves.

Google 'Fleury AVR I2C'. Use the I2Cmaster.S implementation.

If you want to be an I2C Slave yourself, change to a different device.

David.

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

david.prentice wrote:
I have not got a AT90USB162 data sheet to hand. I it does not have a TWI peripheral (or USI), you just have to do a bit-banged Master. This will work absolutely fine for controlling Slaves.

Google 'Fleury AVR I2C'. Use the I2Cmaster.S implementation.

If you want to be an I2C Slave yourself, change to a different device.

David.

Found this http://www.tty1.net/userial/ , which has firmware to support I2C to the AT90USB162. I want to use the AT90USBxxx, though, dues to its built-in USB support.

And this http://code.google.com/p/micrope...

Thanks, all!