1 Configure I2C driver in the kernel
Linux-2.6.32.2 provides a complete driver for the I2C interface of S2C2440, so we only need to configure it in the kernel to use it.
Execute: make menuconfig in the kernel source code directory to enter the kernel configuration main menu, and select the following submenus in sequence:
Device Drivers --->
<*> I2C support --->
I2C Hardware Bus support --->
As shown in the figure, we can see that "<*> S3C2410 I2C Driver" has been selected here. The S3C2410 here can also be applied to S3C2440 because their I2C port and register definitions are exactly the same.
The driver source code corresponding to the above configuration is: linux-2.6.32.2/drivers/i2c/busses/i2c-s3c2410.c
2 Test I2C-EEPROM
Mini2440 In order to facilitate user testing, an EEPROM chip is mounted based on the I2C bus, which is AT24C08. By writing and reading this chip, we can test the I2C bus driver. Execute: make zImage in the kernel root directory, burn the generated new kernel into the development board, and still use the root_qtopoia provided by Friendly Arm, because it already contains the I2C-EEPROM test program
Enter in the command line: i2c –w to write data to the 24C08 device of the board (0x00-0xff)
Type in the command line: i2c –r to read the output from the 24C08 device on the board
Previous article:Linux-2.6.32 ported to mini2440 development board Ported UDA1341 audio driver
Next article:S3C2440 spi driver simple test
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Lotus launches ultra-900V hybrid technology "Luyao" to accelerate the "Win26" plan
- [Raspberry Pi 3B+ Review] Raspberry Pi 3B and 3B+ Comparison Test
- Is this advertising screen composed of 8 dot matrix screens?
- 8 reasons that affect the accuracy of UWB positioning technology
- MSP430G2553 press the button light, release it and it will go out
- Example of sending and receiving text messages (AT commands) with MSP430 and TC35I modules
- Which domestic DC-DC and LDO should I choose?
- A brief discussion on three-phase six-arm full-bridge drive circuit
- 【CH579M-R1】+ Turn on timer 0 to control LED flashing and refresh LCD time display
- Xunwei i.MX6ULL development board Platform device driver running test
- Huawei and Alibaba employees who switched to Microsoft were boycotted just because of the crazy overtime?