How to tap i2c pins from imx53 board?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to tap i2c pins from imx53 board?

1,334 Views
Hitex
Contributor I

Hi all,

I need to used the i2c interfce and connect an external radio module with the imx53 using i2c ?

the H/W ref manual mentions the j13 expansion port for the same .But no test points are mentioned .Pls suggest how to interface the i2c pins on the imx board with an exteranal i2c slave board?

thanks 

regards

hitesh

Tags (1)
0 Kudos
7 Replies

922 Views
AdCmo
Contributor III

All,

Was it necessary for you to enable I2C on the IOMUX for you to be able to get the slave recognized by the i2cdetect?

If so, do you mind explaining what you did and how you verified the wiring before running i2cdetect?

A simple wiring sketch of the slave and the i.mx53 connection will go along way in helping us.

Thanks,

Ad.


Hitesh said:

Thanks,

It worked

I host is able to communicate to i2c slave 

regards,

Hitesh

0 Kudos

922 Views
Hitex
Contributor I

Thanks,

It worked

I host is able to communicate to i2c slave 

regards,

Hitesh

0 Kudos

922 Views
xizhouwang
Contributor II

The log shows

i2cdetect 1 has found your slave device of address 0x60. another device on that bus is 0x40.

i2cdump has read 144 byte from your slave device 0x60. start with index 00 then read 16 bytes, with index 0x10 read antother 16 bytes. ...

using i2cget and i2cset to check your slave is talking correct byte or word.

0 Kudos

922 Views
Hitex
Contributor I

hi,

I havent connected the slave resitor but have tried i2c-tool.

1) the output of i2cdetect -l

==> 

  i2c-0 i2c imx-i2c I2C adapter
  i2c-1 i2c imx-i2c I2C adapter

2) i2cdetect 1 with slave i2c switched off it shows ==>

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- UU -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

3) i2cdetect 1 with slave i2c module connect i get==>

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- UU -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

now i tried

i2cdump 1 0x0a

is says device busy

i2cdump 1 0x40 shows 

xxxxxxxx

i2cdump 1 0x60 shows some values like

0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
10: 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
20: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ????????????????
30: 36 36 36 36 36 36 36 36 36 36 36 33 33 33 53 33 666666333335553
40: 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 ????????????????
50: 02 48 74 41 06 ff 41 52 72 0b 3c 17 f0 f8 4d 22 ?HtA?.ARr?<???M"
60: 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 ????????????????
70: 35 40 88 c1 94 ff 81 22 35 40 88 c1 94 ff 81 42 5@???.?"5@???.?B
80: 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91

i am not sure if my device is communicatng.

the datasheet of slave device says device id bits 0,1,2 should be "111" and another register bit R0 should be 1

how can i confirm if the device i am communicating has address 0x60

0 Kudos

922 Views
xizhouwang
Contributor II

Pull up generally should be nearest to the driver chip of the salve side.

0 Kudos

922 Views
Hitex
Contributor I

Hi,

thanks for the reply

Do we require the pull up resistor for the i2c interface on vga socket pin 12,15.



xizhou wang said:

5v I2C bus (via on board level shift chip) is available on the VGA socket of iMX53 QSB. There are 3.3v and 1.8V I2C bus on the board in other places.  Slave board can be tested using the i2c-tool of the Linux BSP.

 

0 Kudos

922 Views
xizhouwang
Contributor II

5v I2C bus (via on board level shift chip) is available on the VGA socket of iMX53 QSB. There are 3.3v and 1.8V I2C bus on the board in other places.  Slave board can be tested using the i2c-tool of the Linux BSP.

0 Kudos