当前位置:网站首页>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
边栏推荐
- Crawl with requests
- 在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获
- What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
- 如何成为一名高级数字 IC 设计工程师(1-4)Verilog 编码语法篇:表达式
- Probability theory: application of convolution in calculating moving average
- 浅析-JMM内存模型
- The testing department of the company came to the king of the Post-00 roll, and the veteran exclaimed that it was really dry, but
- Is pinduogai's sales safe in 2022?
- 【obs】obs的ini格式的ConfigFile
- 读书笔记:《心若菩提》 曹德旺
猜你喜欢
Cause: org. apache. ibatis. builder. Builderexception: error parsing SQL mapper configuration problem analysis
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
基于I2C协议的驱动开发
Crawl with requests
Activity and fragment lifecycle
进程与线程
英特尔13代酷睿旗舰曝光,单核5.5GHz
面试题总结(2) IO模型,集合,NIO 原理,缓存穿透,击穿雪崩
php服务器 与redis交互大量CLOSE_WAIT分析
随机推荐
Google Earth engine (GEE) - ghsl global population grid dataset 250 meter resolution
2022-07-02: what is the output of the following go language code? A: Compilation error; B:Panic; C:NaN。 package main import “fmt“ func mai
Typescript learning summary
Tencent micro app to get wechat user information
(2) Base
Word line and bit line
我对测试工作的一些认识(资深测试人员总结)
The testing department of the company came to the king of the Post-00 roll, and the veteran exclaimed that it was really dry, but
面试题总结(2) IO模型,集合,NIO 原理,缓存穿透,击穿雪崩
How to realize automatic testing in embedded software testing?
2021 reading summary (continuously updating)
I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation
MATLAB提取不规则txt文件中的数值数据(简单且实用)
CorelDRAW Graphics Suite 2022新版功能详情介绍
QT: QSS custom qtreeview instance
线性表的双链表
Definition and properties of summation symbols
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
Empire CMS no thumbnail smart tag (e:loop) two ways to judge whether there is a titlepic
Résumé des questions d'entrevue (2) Modèle io, ensemble, principe NiO, pénétration du cache, avalanche de rupture