i2c tools && ds90ub927芯片使用:

**下载:**git clone git://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git -b i2c-tools-3.1

**交叉编译:**静态链接编译,

使用方法:

1、i2cdetect:

/*
"Usage: i2cdetect [-y] [-a] [-q | -r] I2CBUS [FIRST LAST]"
"          i2cdetect -F I2CBUS"
"          i2cdetect -l"
"I2CBUS is an integer or an I2C bus name"
"If provided, FIRST and LAST limit the probing range"
*//*=============================================================-l    Output a list of installed busses.
-F  Display the list of functionalities implemented by the adapter and exit.
-y  Disable interactive mode. By default, i2cdetect will wait for a           confirmation from the user before messing with the I2C bus. When this flag is used, it will perform the operation directly. This is mainly meant to be used in scripts.-r Use SMBus "read byte" commands for probing (by default, the command used is the one believed to be the safest for each address). Not recommended.This is know to lock SMBus on various write-only chips (most notably clock chips at address 0x69)=============================================================*/// 探测机器上的所有i2c总线
i2cdetect -l// 探测指定i2c总线上的设备
i2cdetect -y -r i2cbusnum

2、i2cdump:

/*
"Usage: i2cdump [-f] [-y] [-r first-last] [-a] I2CBUS ADDRESS [MODE [BANK [BADNREG]]]"
"  I2CBUS is an interger or an I2C bus name"
"  ADDRESS is an interger (0x08 - 0x77, or 0x00 - 0x7f if -a is given)"
"  MODE is one of :"
"      b (byte,default)"
"      w (word)"
"      W (word on even register addresses)"
"      s (SMBus block)"
"      i (I2C block)"
"      c (consecutive byte)"
"      Append p for SMBus PEC"
*/
/*=============================================================-f   Force access to the device even if it is already busy. By default, i2cdump will refuse to access a device which is already under the control of a kernel driver. Using this flag is dangerous, it can seriously confuse the kernel driver in question. It can alse cause i2cdump to return invalid results.So use at your own risk and only if you know what you're doing
-r   first-last  Limit the range of registers being accessed. This option is only available with modes b, w, c and W. For mode W, first must be even and last must be odd.-y Disable interactive mode. By default, i2cdump will wait for a confirmation from the user before messing with the I2C bus. When this flag is used, it will perform the operation directly. This is mainly meant to be used in script.=============================================================*/// 打印指定总线上指定地址的所有寄存器值
i2cdump -f -y busnum  deviceaddr

3、i2cset && i2cget

/*
"Usage: i2cset [-f] [-y] [-m MASK] [-r] [-a] I2CBUS CHIP-ADDRESS DATA-ADDRESS [VALUE]...[MODE]"
"I2CBUS is an integer or an I2C bus name"
"ADDRESS is an integer (0x08 - 0x77, or 0x00 - 0x7f if -a is given)"
"MODE is one of:"
"  c (byte, no value)"
"  b (byte data, default)"
"  w (word data)"
"  i (I2C block data)"
"  s (SMBus block data)"
"  Append p for SMBus PEC"
*//*=============================================================
-f   Force access to the device even if it is already busy. By default, i2cdump will refuse to access a device which is already under the control of a kernel driver. Using this flag is dangerous, it can seriously confuse the kernel driver in question. It can alse cause i2cdump to return invalid results.So use at your own risk and only if you know what you're doing-y Disable interactive mode. By default, i2cdump will wait for a confirmation from the user before messing with the I2C bus. When this flag is used, it will perform the operation directly. This is mainly meant to be used in script.
=============================================================*/// 获取指定总线上,指定地址,指定寄存器的值
i2cget -f -y busnum  deviceaddr  regaddr// 设置指定总线,指定设备地址,指定寄存器的值
i2cset -f -y busnum  deviceaddr  regaddr  value

ds90ub927 && ds90ub948

ds90ub927:lvds 转换成FDP-Link III信号。加串器。

ds90ub948:FDP-Link III信号转换成 lvds信号。解串器。

应用场景:

屏幕和板卡分离,即ds90ub927在板卡端,ds90ub948在屏幕端,两端通过FDP-Link III连接。

ds90ub948:控制屏幕的背光使能,输出背光PWM,LCD使能。

927和948线缆连接上之后,927的状态寄存器会显示连接状态,以及在DES ID寄存器自动填充解串器的i2c地址。如果连接状态无误并且能找到 DES ID,就可以配置927的I2C control寄存器,打开Pass All模式,后面即可在imx6端通过同一i2c总线,使用DES ID的地址,即可读取、写入948的寄存器值。

关于pwm:

948解串器自身无法产生pwm方波,927和948的gpio 0 1 2 3可配置为远程控制(手册中仅0 1 2 3可以配置为远程控制),即用927的gpio口控制948的gpio口的输出,首先imx6输出pwm方波到927的gpio口(0,1,2或3),927通过FDP-Link透传到948上,然后输出到屏幕端。

i2c tools ds90ub927芯片使用相关推荐

  1. linux pcf8563开发文档,linux下的i2c与时钟芯片pcf8563通信

    2012/7/19 linux下的i2c与时钟芯片pcf8563通信 by: 韩大卫 @吉林师范大学 1,本程序增加了对星期寄存器(wday)的写操作. 2, 本程序将i2c-test 改为rtdat ...

  2. Hi3516A开发--i2c tools安装和使用

    一.首先下载安装包: i2c-tools-3.0.1 linux上调试i2c的工具 源码 二.解压安装 1.解压tar -zxvf i2c-tools-3.0.1.tar.gz 2.修改Makefil ...

  3. FT232H USB转串口,I2C,JTAG高速芯片

    随着FT232H USB2.0高速芯片的发布,英商飞特蒂亚公司(FTDI)进一步巩固了其在USB接口集成电路产品的地位.此款多功能的单通道USB转UART/FIFO接口设备可通过EEPROM配置为各种 ...

  4. linux pcf8563开发文档,Linux下i2c与时钟芯片PCF8563的通信

    Linux下的i2c驱动以及与时钟芯片PCF8563通信过程. 为更深入的了解linux下的i2c总线驱动以及通信原理,可以用一个用户程序模拟,这个程序,可以使用一个addr, 一个offset,对i ...

  5. MSP430F5529硬件I2C驱动SH1106芯片显示屏

    前言 最近在捣鼓MSP4300F5299LP开发板,搞了两天,刚好看到这个芯片的USCI模块,以前接触的单片机都是一个UART或USART,遂在数据手册中了解到,原来是集合了UART.SPI.I2C为 ...

  6. 推荐富士通I2C接口FRAM芯片MB85RC16V

    FRAM只是一种像ram一样运行的高速非易失性存储器.这允许程序员根据需要灵活地分配ROM和RAM存储器映射.它为最终用户创造了在底层对FRAM进行编程以根据他们的个人喜好进行定制的机会.独立的FRA ...

  7. STC8H开发(十三): I2C驱动DS3231高精度实时时钟芯片

    目录 STC8H开发(一): 在Keil5中配置和使用FwLib_STC8封装库(图文详解) STC8H开发(二): 在Linux VSCode中配置和使用FwLib_STC8封装库(图文详解) ST ...

  8. linux i2c调试命令,嵌入式Linux下I2C接口调试

    By Toradex秦海 1).简介 I2C是嵌入式设备最为常用的接口之一,常用于如下面这些应用场景,因此本文就基于嵌入式Linux演示在User Space进行I2C设备调试. - Digital ...

  9. Linux应用开发【第十二章】I2C编程应用开发

    文章目录 12 I2C编程应用开发 12.1 I2C协议 12.1.1 概述 12.2.2 物理层 1) 特性1:半双工(非全双工) 2) 特性2:地址和角色可配置 3) 特性3:多主机 4) 特性4 ...

最新文章

  1. PM配置详解之二:工厂维护和客户服务中心的主数据
  2. MySQL 解压缩安装
  3. 解析Linux 多应用程序docker自动部署脚本
  4. 在Flutter中解析复杂的JSON(一篇顶十篇)
  5. Apache启动过程(PHP_MINIT_FUNCTION的调用)
  6. mysql 服务无法启动 没有报告任何错误_My SQL学习之路(一)
  7. linux正则表达式_【开发者成长】5 分钟搞定 Linux 正则表达式
  8. Rancher体系下容器日志采集
  9. DisplayLink 安装错误
  10. springboot10 Web开发静态资源
  11. oppo包名_常用APP(apk)对应包名总结(持续更新...)
  12. 【ArcGIS微课1000例】0010:ArcGIS影像裁剪(裁剪、掩膜提取)
  13. MATLAB学习笔记(二)——数据及其运算
  14. allure用例定制参数及报告效果展示
  15. Dual-edge triggered flip_flop(Dualedge)
  16. 虚拟机操作工具--Xmanager5 下载/安装/使用
  17. 笔记本电脑无法进入睡眠状态_电脑进入睡眠模式后打不开屏幕怎么办
  18. 微信小程序中使用emoji表情相关说明
  19. SAP S4 FI后台详细配置教程- PART1 (通用配置及基础架构篇)
  20. Tetris项目总结

热门文章

  1. git常见错误(1)
  2. 北京交通大学计算机与科学技术,北京交通大学计算机与信息技术学院
  3. 达梦数据库或者oracle数据库报错: 超过最大参数个数(32767)
  4. 《商用密码应用与安全性评估》第二章 商用密码应用与安全性评估政策法规-删减版小结
  5. Android相机支持的预览格式详解
  6. Centos搭建kafka(zookeeper)
  7. zencart删除或清空网站的所有订单,顾客,和商品
  8. MySQL 批量修改表名
  9. 小程序点读第一天uniapp开发
  10. 吹蜡烛...............