Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 5210|Reply: 5

I²C interfacing

[Copy link]

17

Threads

212

Posts

1143

Credits

Gold member

Rank: 6Rank: 6

Credits
1143
Post time 2015-5-11 01:35:38 | Show all posts |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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

5

Threads

29

Posts

390

Credits

Intermediate member

Rank: 3Rank: 3

Credits
390
Post time 2015-5-11 02:19:26 | Show all posts
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

1143

Credits

Gold member

Rank: 6Rank: 6

Credits
1143
 Author| Post time 2015-5-11 02:42:14 | Show all posts
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 ?

8

Threads

616

Posts

4136

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4136
Post time 2015-5-11 12:21:03 | Show all posts
yes, correct. You can stick to Rpi's manual.

17

Threads

212

Posts

1143

Credits

Gold member

Rank: 6Rank: 6

Credits
1143
 Author| Post time 2015-5-11 16:38:05 | Show all posts
Ok, thanks. I will try like this

2

Threads

4

Posts

43

Credits

Novice

Rank: 1

Credits
43
Post time 2015-9-3 18:52:04 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-10-23 02:34 GMT+8 , Processed in 0.035306 second(s), 25 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list