Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c_hardware_i2c [2017/01/19 13:24] odroid [How to change the I2C clock speed] |
en:c_hardware_i2c [2017/06/20 13:18] (current) brian.kim [How to change the I2C clock speed] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== I2C ====== | ====== I2C ====== | ||
- | This page introduces how you can interface your I2C devices to **ODROID-C**. | + | This page introduces how you can interface your I2C devices to **ODROID-C** series. |
===== H/W connection ===== | ===== H/W connection ===== | ||
Line 48: | Line 48: | ||
Change the DTB file for i2c-2 (i2c channel #2) | Change the DTB file for i2c-2 (i2c channel #2) | ||
<code> | <code> | ||
- | dtput -t i /media/boot/meson64_odroidc2.dtb /i2c@c11087c0 master_i2c_speed "100000" | + | fdtput -t i /media/boot/meson64_odroidc2.dtb /i2c@c11087c0 master_i2c_speed "100000" |
sync | sync | ||
reboot | reboot | ||
Line 55: | Line 55: | ||
If you want to go back to original 300Khz mode, change "100000" to "300000".\\ | If you want to go back to original 300Khz mode, change "100000" to "300000".\\ | ||
- | **Actual I2C clock speed.** Measured with oscilloscope\\ | + | **Actual I2C clock speed** (Measured with an oscilloscope)\\ |
In 300Khz mode : 270Khz \\ | In 300Khz mode : 270Khz \\ | ||
In 100Khz mode : 80Khz \\ | In 100Khz mode : 80Khz \\ |