chipKIT® Development Platform

Inspired by Arduino™

I2C - Wire Library

Created Wed, 28 Sep 2011 18:18:25 +0000 by rosimildo@gmail.com


rosimildo@gmail.com

Wed, 28 Sep 2011 18:18:25 +0000

It seems to use 1 I2C bus, while the board has many.

Is there anything on the pipeline to allow multiple usage of I2C buses ?

Thanks.


rosimildo@gmail.com

Mon, 10 Oct 2011 13:19:58 +0000

Replying to my own post:

Yes, the I2C library ( Wire ), is very limited.

  1. Only 1 I2C controller can be used ( I2C1 ), since it has hardcoded registers used in the ISR and so on....

  2. Master mode is blocking. There are loops waiting for the transmissions to end, before returning.

  3. On Slave mode, the RX event is called for every byte, instead of tell how many bytes were read.

OH well...

Thanks, Rosimildo