当前位置:网站首页>Driver development based on I2C protocol
Driver development based on I2C protocol
2022-07-03 11:17:00 【sydyh43】
1、linux Under the I2C Agreement framework
commonly i2c_adapter The following specific adapter hardware related operation codes are developed by the chip manufacturer . Just finish in I2C Secondary development based on the agreement , For example, based on I2C The protocol realizes the transmission of network data , perhaps I2C Control of peripheral devices , perhaps blalalala

2、I2C Read and write sequence diagram of the Protocol
I2C Device mount I2C After bus ,I2C The device address of the device is determined by the hardware . Same article I2C Differences on the bus I2C The device address of the device is different .I2C The unit of protocol transmission is a byte .
Write timing

once I2C The write operation of includes device address + Write operations ; Register address , data .
Every time CPU After sending a byte of data ,I2C Equipment handle DATA Line pull down , do ACK
Reading sequence

Reading sequence is slightly more complex than writing sequence . In two parts , The first step is to write , tell I2C The device needs to read the address of the register . Step 2 read operation , Second send I2C Device address , wait for I2C equipment ACK after , Complete data reading .【 here CPU Become the receiving end , After reading one byte of data ,CPU Can send ACK. If there is ACK, The slave device will continue to send register data ( Most of the I2C The device supports multi address reading , Send a register address , Continue the next multiple register data ); If NOACK,I2C The device stops sending data 】
3、 The code framework
To be added
边栏推荐
- Google Earth engine (GEE) - ghsl global population grid dataset 250 meter resolution
- Commonly used discrete random distribution
- Comment réaliser des tests automatisés pour les tests logiciels embarqués?
- 大厂技术专家:工程师如何提升沟通能力?
- [VTK] vtkWindowedSincPolyDataFilter 源码注释解读
- One hot code
- Bi skills - permission axis
- 【Proteus仿真】74HC154 四线转12线译码器组成的16路流水灯
- Overview of testing theory
- I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation
猜你喜欢

Communication software development and Application

数据库增量备份 - DB INCR DB FULL

Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure

在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获

历经一个月,终于拿到金蝶Offer!分享一下四面面经+复习资料

Tencent micro app to get wechat user information

解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误

Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?

Google Earth Engine(GEE)——GHSL 全球人口网格数据集250米分辨率

The five-year itch of software testing engineers tells the experience of breaking through bottlenecks for two years
随机推荐
What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
反正切熵(Arctangent entropy):2022.7月最新SCI论文
在腾讯云容器服务Node上执行 kubectl
2022 pinduogai 100000 sales tutorial
AMS Series 1 - AMS startup process
C语言二维数组
[VTK] vtkPolydataToImageStencil 源码解读
【obs】obs的ini格式的ConfigFile
What are the strengths of "testers"?
Commonly used discrete random distribution
Typescript learning summary
读书笔记:《心若菩提》 曹德旺
Using activity to realize a simple inputable dialog box
ExecutorException: Statement returned more than one row, where no more than one was expected.
Error installing the specified version of pilot
QT: QSS custom qtoolbutton instance
如何让让别人畏惧你
The manuscript will be revised for release tonight. But, still stuck here, maybe what you need is a paragraph.
如何成为一名高级数字 IC 设计工程师(1-2)Verilog 编码语法篇:Verilog 1995、2001、2005 标准
The element form shows the relationship between elementary transformation and elementary matrix