Linux under the I2C-driven loading process, divided into I2C equipment layer, I2C adapter layer and I2C core layer
The I2C device driver layer is the drive we write for a particular I2C device, and the following is the
is normal. According to the Development Board instructions that the device mounted on the/dev/i2c-1, the existence of the device is detected, the general device drive is normal.
The EEPROM device is of the at24c ** series. According to the instruction, the device address is 0x50. The preparation is complete.
1. Compile the IIC. h header file of the Hal interface module.
Go to the hardware/libhardware/inclu
Using stm32f103 + rt-thread1.1.0
Use the hardware IIC Controller
It should be the official i2c_ee code to read 24LC02
When the test is performed without a bus, the system will get stuck.
While (! I2C_CheckEvent (I2C2, I2C_EVENT_MASTER_MODE_SELECT );
Mount the bus, pull the I2C1 PB6 PB7 external pull-up resistor, open
# Define RT_USING_I2C_BITOPS# Define RT_I2C_BIT_DEBUGYou can pass ......, This requires careful research.
Then there is the latency, whi
controller, three serial ports, four DMA channels, four clock timers, eight 10-bit A/D conversion; supports I2C, I2S, SPI, Master/Slave USB, and SD/mmccard interfaces.
The I2C bus of the S3C2410 microprocessor can be in the following four modes: Master receiving mode, Master sending mode, slave receiving mode, and slave sending mode. The operation of the processor on I
Open the kernel configuration entry config_i2c_chardev and load the I2c-dev module.
Device node:/dev/i2c-x.
User space accesses any I2C device mounted to the I2C adapter through the device node.
The Read/write function of the I2c-dev module does not support block transport,
from the second point that SPI and UART can achieve full duplex, but I2C is not;Fourth, let's take a look at the opinions of the ox!Wudanyu: less I2C lines. I think it is more powerful than uart and SPI, but it is more technically troublesome because I2C requires bidirectional Io support and the pull-up resistance is used, I think the anti-interference capabilit
priority in wince
The following code is used to implement priority preemption:
// DwThreadID = GetCurrentThread (); // obtain the thread ID // dwThreadPri = CeGetThreadPriority (dwThreadID); // obtain the priority of the thread ID // dwThreadQuantum = CeGetThreadQuantum (dwThreadID ); // obtain the time parameter of the thread // CeSetThreadPriority (dwThreadID, 0); // set the priority of the current thread to the highest // CeSetThreadQuantum (dwThreadID, 0 ); // set the time parameter of the
EmbeddedLinux Bare Metal Development (13)--i²c communication a,IIC Protocol 1. Introduction ofIIC bus i2c (Inter - integrated circuit) bus is a philips The company developed a two-wire serial bus for connecting microcontrollers and peripherals. i2c Bus is a serial data bus, only two signal lines, one is two-way cable sda and the other one is the cloc
The I 2C Bus is a second-line bus for the connection between IC devices. It transmits data between devices connected to the bus via SDA (serial data line) and SCL (serial clock line) Two wires, and identifies each device according to the address: whether it is a microcontroller, a memory, an LCD driver, or a keyboard interface. I²c can be used to replace the standard parallel bus, can connect various integrated circuits and function modules. IIC-enabl
This document describes how to develop an I2C interface touch screen driver mounted on the friendly mini-2440 platform.
Kernel edition linux-2.6.32.2,The platform is a touch screen with the arm9-s3c2440 + I2C interface.
For exampleLinux I2C driver architectureDescriptionHttp://www.lupaworld.com/273398/viewspace-204237.html
To mount a new
: USB2I2C
USB2I2C is an interface chip for converting USB Bus to I2C bus I2C/IIC/TWI/SMBUS, through the USB 2i2c chip, the interface between the USB bus of the PC and the I2C bus protocol of the lower computer can be conveniently realized, that is, the IIC or TWI Bus: SCL li
sensor TMP101/TMP275/DS1621/MAX6625
Dedicated USB to I2C chip: USB2I2C
USB2I2C is an interface chip for converting USB Bus to I2C bus I2C/IIC/TWI/SMBUS, through the USB 2i2c chip, the interface between the USB bus of the PC and the I2C bus protocol of the lower computer can
Reprint: http://www.eefocus.com/article/08-07/48416s.htmlFigure 11-1 shows a single-master IIC bus system with 3 slave machines from the MCU as a host through the IIC bus. This is the most commonly used, the most typical IIC bus connection mode.On the physical structure, the IIC system consists of a serial data line SD
Is STM32 hardware I2C a pitfall ?, Stm32 hardware i2c
/**
**************************************** **************************************
* @ Author Maoxiao Hu
* @ Version V1.0.0
* @ Date May-2015
**************************************** **************************************
*
**************************************** **************************************
**/
I have been debugging the hardware
Probe Method of I2C driver framework, i2c framework probe
The Linux-based I2C driver adopts the probe method. The Linux driver for any device supporting I2C bus can be written according to the following framework.
The I2C device connects to the cpu's specific
I2C (Inter integrated circuit, internal integrated circuit) bus is a very inexpensive and efficient network for interconnecting peripherals in small, embedded systems. The I2C bus is sometimes called IIC, which has a history of more than more than 20 years. The I2C interface and the SPI interface work the same, but the
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.