please choosego to mobile | Continue to access the PC version
View: 9851|Reply: 5

I²C interfacing

[Copy link]

17

threads

212

posts

1375

credits

Gold member

Rank: 6Rank: 6

credits
1375
Published in 2015-5-11 01:35:38 | Show all floors |Read mode
Edited by gaara at 2015-5-10 19:34

Hi all,

I'm trying to learn about I2C interface on orange pi; because all is not clear for me.

I know there's
  • SDA (Serial Data Line)
  • SCL (Serial Clock Line)
  • +3.3V
  • GND
I know also that I2C is called asso TWI. So I have read the range datasheet, and I see this (image)

But: does SCK and SCL the same thing ?
In this case, can we plug 3 I²C differents devices ?

Thanks

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

5

threads

29

posts

818

credits

Senior member

Rank: 4

credits
818
Published in 2015-5-11 02:19:26 | Show all floors
I2C and TWI is the same
But: does SCK and SCL the same thing ?

No
SCL is the Clock from I2C/TWI, SCK is the Clock from SPI

In this case, can we plug 3 I²C differents devices


Yes ... with the (old) 7bit up to 112 devices. With same devices max 8 on one I2C Bus (the last three adressbits must be set over Jumper or Dip)

With the newer 10 bit I2C Bus up to 1136 devices

regards

17

threads

212

posts

1375

credits

Gold member

Rank: 6Rank: 6

credits
1375
 Author| Published in 2015-5-11 02:42:14 | Show all floors
Edited by gaara at 2015-5-10 21:03

Ok thanks.
But where are the SCL bus in the Orange ?
The documentation is a little poor...
If ti's the same as RPi:


Correct ?

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2015-5-11 12:21:03 | Show all floors
yes, correct. You can stick to Rpi's manual.

17

threads

212

posts

1375

credits

Gold member

Rank: 6Rank: 6

credits
1375
 Author| Published in 2015-5-11 16:38:05 | Show all floors
Ok, thanks. I will try like this

2

threads

4

posts

43

credits

Novice

Rank: 1

credits
43
Published in 2015-9-3 18:52:04 | Show all floors
Well, if that semi-clear with pinout, what to do with that from programming side - on Raspbian on H3 CPU (Mini 2) device?
As I understand there shoud be some kernel support for that, but rasbperry docs calls it bcmXXX_i2c , and it will not work on H3 CPU, I bet.

I have some small OLED I2C display to play with.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list