自动化与仪器仪表
自動化與儀器儀錶
자동화여의기의표
AUTOMATION & INSTRUMENTATION
2014年
1期
98-101
,共4页
I2C总线驱动%RTC设备%at91sam9g25%Linux驱动%集中器
I2C總線驅動%RTC設備%at91sam9g25%Linux驅動%集中器
I2C총선구동%RTC설비%at91sam9g25%Linux구동%집중기
I2C-bus driver%RTC device%at91sam9g25%Linux drivers
I2C总线以其简单高效的方式被广泛的运用在嵌入式产品设计中,而实时时钟RTC则是其中应用的典型代表。在嵌入式Linux系统中,对其I2C驱动程序提供了较好的支持框架。但随着Linux内核版本的不断升级,对于I2C设备驱动的结构设计也趋于复杂,往往让开发者有些不知所措。本文以2.6.39版本Linux内核为背景,在分析该Linux版本I2C总线设备结构和RTC设备资源的基础上,结合RTC设备驱动模型和I2C/SMBus传输方式,对RTC设备在at91sam9g25上进行了具体的设备驱动设计实现,并通过在电力用户集中器设备中的应用,证明了驱动设计的可行性。
I2C總線以其簡單高效的方式被廣汎的運用在嵌入式產品設計中,而實時時鐘RTC則是其中應用的典型代錶。在嵌入式Linux繫統中,對其I2C驅動程序提供瞭較好的支持框架。但隨著Linux內覈版本的不斷升級,對于I2C設備驅動的結構設計也趨于複雜,往往讓開髮者有些不知所措。本文以2.6.39版本Linux內覈為揹景,在分析該Linux版本I2C總線設備結構和RTC設備資源的基礎上,結閤RTC設備驅動模型和I2C/SMBus傳輸方式,對RTC設備在at91sam9g25上進行瞭具體的設備驅動設計實現,併通過在電力用戶集中器設備中的應用,證明瞭驅動設計的可行性。
I2C총선이기간단고효적방식피엄범적운용재감입식산품설계중,이실시시종RTC칙시기중응용적전형대표。재감입식Linux계통중,대기I2C구동정서제공료교호적지지광가。단수착Linux내핵판본적불단승급,대우I2C설비구동적결구설계야추우복잡,왕왕양개발자유사불지소조。본문이2.6.39판본Linux내핵위배경,재분석해Linux판본I2C총선설비결구화RTC설비자원적기출상,결합RTC설비구동모형화I2C/SMBus전수방식,대RTC설비재at91sam9g25상진행료구체적설비구동설계실현,병통과재전력용호집중기설비중적응용,증명료구동설계적가행성。
I2C bus is widely used in embedded product design for its simple and efficient way, and the real-time clock (RTC) is one of the typical applications. In embedded Linux system, it provides better supporting frameworks for I2C drivers within its ker-nel. But as the continuing updating of the Linux kernel, it’s more and more complicated for driver developers to design the I2C driv-ers within the Linux driver architecture. In this paper, under the version 2.6.39 Linux kernel, the I2C-bus driver architecture and RTC device resource are analyzed first;and then, combined RTC driver model with I2C/SMBus transmission, a specific driver de-sign of RTC based at91sam9g25 is implemented and applied in concentrator to verify its feasibility.