2009-05-27 08:54:31     how to access i2c as a slave in BF537

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-05-27 08:54:31     how to access i2c as a slave in BF537

Adam W (POLAND)

Message: 74646   

 

I want to communicate via i2c (it can be smbus), but BF537 must be a SLAVE device.

 

I looked at documentation, examples, sources of drivers, bo I cannot find anything usefull (all is

 

So questions:

 

1. how to open driver as a ic2 slave ? (slave device doesnt drive a SCK line)

 

2. how to setup my own i2c hardware address ? Master device doesnt need it, but in slave device it should be changable.

 

3. how to detect that master wants to read or write data to me ?

 

4. is it posiible to use smbus protocol ?

 

 

 

with best regards,

 

xadamus

QuoteReplyEditDelete

 

 

2009-05-27 14:06:09     Re: how to access i2c as a slave in BF537

Mike Frysinger (UNITED STATES)

Message: 74655   

 

there is no support for using the I2C as a slave.  you'll have to write your own device driver from scratch.

QuoteReplyEditDelete

 

 

2009-05-27 16:41:12     Re: how to access i2c as a slave in BF537

Adam W (POLAND)

Message: 74671   

 

eeh, my own device driver.. ? it doesnt sound easy..

 

so where can i find source of oryginal device driver for BF537 ?

 

 

 

> there is no support for using the I2C as a slave.  you'll have to write your own device driver from scratch.

 

---

QuoteReplyEditDelete

 

 

2009-05-27 17:05:18     Re: how to access i2c as a slave in BF537

Robin Getz (UNITED STATES)

Message: 74673   

 

Adam:

 

The source - is part of the linux kernel -- linux-2.6.x/drivers/i2c/busses/i2c-bfin-twi.c

 

-Robin

QuoteReplyEditDelete

 

 

2009-11-06 21:32:49     Re: how to access i2c as a slave in BF537

Adrien Cottenceau (CANADA)

Message: 82141   

 

Adam,

 

Did you find a way to use the BF537 as an i2c salve?

 

thanks.

 

 

 

Adrien.

QuoteReplyEditDelete

 

 

2009-11-06 21:42:34     Re: how to access i2c as a slave in BF537

Adrien Cottenceau (CANADA)

Message: 82142   

 

Adam,

 

Did you find a way to use the BF537 as an i2c salve?

 

Or is it possible to use it with the SMBUS mode? ( i.e. no SCK control)

 

thanks.

 

 

 

Adrien.

 

---

QuoteReplyEditDelete

 

 

2009-11-10 14:48:26     Re: how to access i2c as a slave in BF537

Oussema Harbi (TUNISIA)

Message: 82257   

 

Adam ,Adrian

 

Did you found any way to access the BF537 as an i2c slave ?

 

Am interrested if any of you started developping a new drive.

 

I don't have a bf537 available now ,so am ready to make the development if one of you accepts to test it for me.

 

I have exams this week ,but i ll try to make it next week if you re interrested.

 

Regards ,

 

Oussema.

QuoteReplyEditDelete

 

 

2009-11-11 21:58:09     Re: how to access i2c as a slave in BF537

Adrien Cottenceau (CANADA)

Message: 82279   

 

Oussema,

 

i didn't start developping a new driver.

 

But i have a bf537 board ready, so i can test your driver if you want.

 

Adrien.

QuoteReplyEditDelete

 

 

2010-01-15 07:14:57     Re: how to access i2c as a slave in BF537

Adrien Cottenceau (CANADA)

Message: 84652   

 

Any news?

Attachments

    Outcomes