I recently checked the Linux 2.6.21 kernel's I2C driver and checked the relevant information on the Internet. I am also right about the error. I have some experience. Let's record it. There may be many mistakes in it. please correct them.1. I2C Protocol1.1 Working Principle of I2C busThe I2C bus is a serial bus consist
4 bus driver
4.1 Overview
The I2C bus driver is a software implementation of the I2C Adapter. It provides the ability to complete data communication between the I2C adapter and the slave device, such as the start, stop, response signal, and master_xfer implementation functions.
The I2C bus driver is described by i2c_ad
What is an I2C adapter?I read an article about the Linux I2C system, saying that there are two main hardware: one client, one adapter, and the I2C architecture centered around them.But what is adapter? Is it an I2C controller? If so, isn't the I2C controller having a few reg
1. Overview
2. Data Structure
3. Adapter
4. I2c-core
5. Slave Device
1. Overview
1.1 Definition I2C inter-integrated circuit SMBUS System Management Bus, the I2C subset
1.2 Characteristics The amount of data exchanged is small. The required data transfer rate is low.
1.3 Speed Fast speed Kbps Full speed Kbps
1.4 Topology
2 Data Structure
Understanding the da
I. Overview
Speaking of writing I2C drivers in Linux, there are currently two main methods: one is to treat I2C devices as a common character device, the other is to use the Linux I2C driver architecture. The two drivers are compared below.
The advantages of the first method (corresponding to the disadvantages of the second method) include:● The idea is straightf
I2C (Inter-IntegratedCircuit1 bus is a 2-line serial bus developed by Philips, used to connect
1 Introduction
I2C (Inter-Integrated Circuit1 bus is a two-line serial bus developed by Philips to connect the microcontroller and its peripheral devices. It is a special form of synchronous communication. it has the advantages of few interface lines, simple control mode, small encapsulation form, and high communi
Linux i2c subsystem architecture, linuxi2c Subsystem
Writing i2c Device Drivers (slave devices) can be either of the following methods:
1. You can write an independent Slave Device Driver and use it directly.
2. the Linux kernel has implemented a general device driver. The general device driver is used to write an application (User-mode driver) and a large number of interfaces provided by the device driver
When debugging an I2C touch screen driver, its I2C address is 0X01, finally found in \ linux-3.0 \ drivers \ i2c \ i2c-core.c has detected I2C address available is the following function:/* And this is a strict address validity check, used when probing. if a * device uses a
DirectoryFirst, LINUXI2C Drive--Overview
1.1 Written in front
1.2 I2C
1.3 Hardware
1.4 Software
1.5 reference two, LINUXI2C drive--I2C bus
2.1 I2C Bus Physical structure
2.2 I2C Bus Features
2.3 Start and stop conditions
2.4 Data transmission Format
2.5 response
2.6 Bus arbitration three, LINUXI2C drive--analysis of EE
I. Overview
Speaking of writing I2C drivers in Linux, there are currently two main methods: one is to treat I2C devices as a common character device, the other is to use the Linux I2C driver architecture. The two drivers are compared below.
The advantages of the first method (corresponding to the disadvantages of the second method) include:● The idea is straightf
I2C communication interview (1) In the current SoC system, many controllers are gradually integrated into the MCU. Only some simple peripherals communicate with the MCU, using the I2C protocol is the choice of many peripherals and MCU communication protocols. Generally, TP, batteryic sensor, and other devices in embedded devices use I2C communication protocols. T
Recently, I am working on a capacitive touch screen driver and using I2C bus interfaces to transmit data. So let's take a look at the I2C bus principles.
The I2C bus is a character transmission bus between chips launched by Philips. It adopts two-wire system, which consists of the serial clock line SCL and serial data line SDA. In the circuit design, the
1 I2C communication protocol and S3C2410 chip Introduction
I2C (Inter Integrated Circuit) bus was launched by Philips in 1980. The I2C bus transmits information between the bus and the device using two wires (SDA and SCL), serial communication between the microcontroller and external devices, or bidirectional data transmission between the master device and the sl
This part is prepared for analysis and summarization in several partsBecause I2C communication must have at least two chips, the driver consists of two parts:
I2C driver of the main chip
I2C driver from the chip
Note: What if none of the options are supported ??? (Unfortunately, only two chips can be driven, but the process is similar)
(1).
http://blog.csdn.net/cmm20071020/article/details/7179958
upgrade a I2C drive from 2.6.21 to 2.6.39
On the internet to find a post, said the drive is divided into I2C bus, I2C equipment, bus driver to do the actual bus read and write operations, device-driven implementation for different equipment operations. First look at a post to see the overall structure, an
Port Environment (Bold font in redIs the modified content,Blue bold ChineseFor special attention)
1. host environment: centos 5.5 and 1 GB memory in vmare.
2. Integrated Development Environment: Elipse ide
3. compiling environment: Arm-Linux-GCC v4.4.3 and arm-None-Linux-gnueabi-GCC v4.5.1.
4. Development Board: mini2440, 2 m nor flash, 128 m nand Flash.
5, U-boot version: u-boot-2009.08
6, Linux: linux-2.6.32.2
7. References:
Complete embedded Linux application development manual, edited by Wei
This time I will study the Code with the I2C driver in the kernel. Before going into the code, I will first briefly understand the relationship between the I2C core data structure. From this, we may be able to have a better understanding of the driver code. The design of the software data structure and the relationship between the data structures should at least describe the Organizational Relationship of t
I recently encountered some problems when debugging I2C. I hope you can help me with similar problems.
Keywords: I2C sub-steady state low speed signal dejitter
[Prelude]In the system, the I2C slave function must be implemented in the CPLD to communicate with the I2C interface of the CPU, so as to expand the gpio port
Forward the blog about I2C by Mr. Netease DP, which is easy to find during learning.Recently, it was found that the primary device reset may cause an I2C deadlock when accessing the I2C device. The result is high in the SCL and low in the SDA. After that, it is found that the I2C bus is pulled from the device. After th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.